Artifact 734ec979d0c19e23f4f397904485aa366feae7321cbf609c08391d7f03c8a940:
- File
psl-1983/3-1/kernel/defconst.red
— part of check-in
[eb17ceb7f6]
at
2020-04-21 19:40:01
on branch master
— Add Reduce 3.0 to the historical section of the archive, and some more
files relating to version sof PSL from the early 1980s. Thanks are due to
Paul McJones and Nelson Beebe for these, as well as to all the original
authors.git-svn-id: https://svn.code.sf.net/p/reduce-algebra/code/historical@5328 2bfe0521-f11c-4a00-b80e-6202646ff360 (user: arthurcnorman@users.sourceforge.net, size: 900) [annotate] [blame] [check-ins using] [more...]
- File
psl-1983/kernel/defconst.red
— part of check-in
[eb17ceb7f6]
at
2020-04-21 19:40:01
on branch master
— Add Reduce 3.0 to the historical section of the archive, and some more
files relating to version sof PSL from the early 1980s. Thanks are due to
Paul McJones and Nelson Beebe for these, as well as to all the original
authors.git-svn-id: https://svn.code.sf.net/p/reduce-algebra/code/historical@5328 2bfe0521-f11c-4a00-b80e-6202646ff360 (user: arthurcnorman@users.sourceforge.net, size: 900) [annotate] [blame] [check-ins using]
% % DEFCONST.RED - Definition and use of symbolic constants % % Author: Eric Benson % Symbolic Computation Group % Computer Science Dept. % University of Utah % Date: 8 January 1982 % Copyright (c) 1982 University of Utah % % DefConst is used to define a value for a name, to be used in const(Name) macro procedure DefConst Form; %. DefConst(Name, Value, ...); begin scalar ResultForm; ResultForm := list 'ProgN; Form := cdr Form; while not null Form do << ResultForm := list('EvDefConst, MkQuote car Form, MkQuote cadr Form) . ResultForm; Form := cddr Form >>; return ReversIP ResultForm; end; flag('(DefConst), 'Eval); lisp procedure EvDefConst(ConstName, ConstValue); put(ConstName, 'Const, ConstValue); macro procedure Const Form; get(cadr Form, 'Const) or StdError BldMsg("Unknown const form %r", Form); END;