Artifact e65e25c076e931103ffe0332ceebeae7868befe80d79066c8a27313d462d38f7:
- File
psl-1983/3-1/tests/mini-read.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: 620) [annotate] [blame] [check-ins using] [more...]
- File
psl-1983/tests/mini-read.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: 620) [annotate] [blame] [check-ins using]
% MINI-READ.RED - A small reader CompileTime <<GLOBAL '(DEBUG); FLUID '(TOK!* TOKTYPE!* CH!* !*RAISE);>>; Procedure READ; % start RATOM, get first fresh token Read1(Ratom()); Procedure READ1(x); If x eq '!( then READLIST(RATOM()) % Skip the ( else if x eq '!' then CONS('QUOTE, NCONS READ()) else x; Procedure ReadList(x); % read LIST, starting at token x Begin scalar y; If x eq '!) then Return NIL; y:=Read1(x); % Finish read CAR of pair x:=Ratom(); % Check dot If x eq '!. then return CONS(y,car READLIST(RATOM())); Return CONS(y , READLIST(x)) End; End;