Artifact fd2ab58dafd9940eca6bc215c4cb9841fe3b3bb18716fd58963bf7e53aeda1fb:
- File
psl-1983/3-1/kernel/onoff.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: 965) [annotate] [blame] [check-ins using] [more...]
- File
psl-1983/kernel/onoff.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: 965) [annotate] [blame] [check-ins using]
% % ONOFF.RED - Macros for setting/resetting flags, with SIMPFG hook % % Author: Martin Griss % Symbolic Computation Group % Computer Science Dept. % University of Utah % Date: 21 July 1982 % Copyright (c) 1982 University of Utah % % ONOFF.RED - ON and OFF for Bare PSL % MLG, from PU:RLISP-PARSER.RED lisp procedure OnOff!*(IdList, U); % % IdList is list of variables without !* prefix, U is T or NIL % begin scalar Y; for each X in IdList do if not IDP X then NonIDError(X, if null U then 'OFF else 'ON) else << Set(MkFlagVar X, U); if (Y := Atsoc(U, get(X, 'SIMPFG))) then Eval second Y >>; end; lisp procedure MkFlagVar U; % Should be redefined in PACKAGE.RED Intern Concat("*", ID2String U); % to lambda-bind current pkg to GLOBAL macro procedure ON U; list('OnOff!*, MkQuote cdr U, T); macro procedure OFF U; list('OnOff!*, MkQuote cdr U, NIL); flag('(ON OFF), 'IGNORE); END;