Artifact 5aa4574143e6655c2e7de4e35907724e8dd0d7d6a02c93b0e7f0f3011f46d74f:
- File
psl-1983/3-1/tests/main8.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: 1518) [annotate] [blame] [check-ins using] [more...]
% MAIN8.RED Small READ-EVAL-PRINT Loop WITH IO % Needs IO, SUB2, SUB3, SUB4, SUB5, SUB6,SUB7 IN "xxx-header.red"$ %/ in "pt:stubs3.red" real gc installed$ in "pt:stubs4.red"$ in "pt:stubs5.red"$ in "pt:stubs6.red"$ in "pt:stubs7.red"$ in "pt:stubs8.red"$ in "pt:psl-timer.sl"$ in "PT:GC-TEST.RED"$ on syslisp; Compiletime GLOBAL '(DEBUG IN!* OUT!* !$EOF!$ !*PVAL); FLUID '(Heap!-Warn!-Level); Procedure FirstCall; Begin scalar x, Done, Hcount; INIT(); InitHeap(); InitObList(); InitEval(); InitRead(); LispVar(DEBUG) := 'NIL; % For nice I/O Lispvar(Heap!-Warn!-Level) := 0; % Set for Non-trap LispVar(!*GC) :=T; LispVar(GCKnt!*) :=0; LispVar(GCTime!*) :=0; LispVar(!*RAISE) := 'T; % Upcase Input IDs LispVar(!*PVAL) := 'T; % Print VALUEs LispVar(!$EOF!$) := MKID Char EOF; % Check for EOF Hcount :=0; Prin2t "Invoke STARTUP Code"; InitCode(); LISPVAR(IN!*):=0; LISPVAR(OUT!*):=1; Hcount :=0; ClearIo(); Prin2T "Reading Init Files"; Lapin "INIT8"; Prin2t '"MINI-PSL with File I/O and RECLAIM"; Prin2T "Invoke (TESTMARKING) and then (GCTEST)"; While Not Done do <<Hcount:=Hcount+1; Prin2 Hcount; Prin2 '" lisp> "; x:=READ(); if x EQ !$EOF!$ then <<Terpri(); Prin2T " *** Top Level EOF *** ">> else if x eq 'QUIT then Done := 'T else <<Terpri(); x:=EVAL x; if Lispvar(!*PVAL) then Print x>>; >>; Quit; End; off syslisp; End;