compact.red 620 B

123456789101112131415161718192021222324252627
  1. module compact; % Header module for compact code.
  2. % Author: Anthony C. Hearn.
  3. % Copyright (c) 1989 The RAND Corporation. All Rights Reserved.
  4. create!-package('(compact mv mvmatch reddom compactf comfac),
  5. '(contrib compact));
  6. % These smacros are used in more than one module.
  7. symbolic smacro procedure mv!-!.!+(u,v); u . v;
  8. symbolic smacro procedure mv!-!.!*(u,v); u . v;
  9. symbolic smacro procedure mv!-lc u; cdar u;
  10. symbolic smacro procedure mv!-lpow u; caar u;
  11. symbolic smacro procedure mv!-lt u; car u;
  12. symbolic smacro procedure mv!-red u; cdr u;
  13. endmodule;
  14. end;