Artifact 8018ec04190461d41defde169637fcb062bee4ab7cc18120bcee46235221a760:
- File
psl-1983/3-1/tests/main9.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: 1449) [annotate] [blame] [check-ins using] [more...]
% MAIN9.RED READ-EVAL-PRINT, RECLAIM, CATCH and PROG IN "xxx-header.red"$ %/ in "pt:stubs3.red" % -- real gc installed as SUB8 in "pt:stubs4.red"$ in "pt:stubs5.red"$ in "pt:stubs6.red"$ in "pt:stubs7.red"$ in "pt:stubs8.red"$ in "pt:stubs9.red"$ in "pt:psl-timer.sl"$ 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 "Invoking STARTUP Code"; InitCode(); LISPVAR(IN!*):=0; LISPVAR(OUT!*):=1; Hcount :=0; ClearIo(); Prin2T "Reading the INIT files"; Lapin "INIT9"; Prin2t '"MINI-PSL with File I/O, RECLAIM and CATCH/THROW"; 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;