Artifact 04de8e3ce2741e692f5c3c59e44a6f38f76d3a0d3916ff35ea437b56a8cf2aaa:
- File
psl-1983/3-1/util/rlispcomp.sl
— 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: 1850) [annotate] [blame] [check-ins using] [more...]
- File
psl-1983/util/rlispcomp.sl
— 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: 1850) [annotate] [blame] [check-ins using]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % RLISPCOMP.SL % % Author: Alan Snyder % Hewlett-Packard/CRC % Date: 27 September 1982 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % This program reads and interprets % the program command string as a list of source files to be compiled. (CompileTime (load common pathnames)) (load pathnamex parse-command-string get-command-string compiler) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% (fluid '(*usermode *redefmsg CurrentReadMacroIndicator* CurrentScanTable*)) (fluid '(*quiet_faslout *WritingFASLFile)) (de rlispcomp () (let ((c-list (parse-command-string (get-command-string))) (*usermode nil) (*redefmsg nil)) (compile-files c-list) ) ) (de compile-files (c-list) (cond ((null c-list) (PrintF "RLisp Compiler%n") (PrintF "Usage: RLISPCOMP source-file ...%n") ) (t (for (in fn c-list) (do (attempt-to-compile-file fn)) ) (quit) ))) (de attempt-to-compile-file (fn) (let* ((form (list 'COMPILE-FILE fn)) (*break NIL) (result (ErrorSet form T NIL)) ) (cond ((FixP result) (if *WritingFASLFile (faslend)) (printf "%n ***** Error during compilation of %w.%n" fn) )) )) (de compile-file (fn) (let ((source-fn (namestring (pathname-set-default-type fn "RED"))) (binary-fn (namestring (pathname-set-type fn "B"))) (*quiet_faslout T) ) (if (not (FileP source-fn)) (printf "Unable to open source file: %w%n" source-fn) % else (printf "%n----- Compiling %w%n" source-fn binary-fn) (faslout (namestring (pathname-without-type binary-fn))) (eval (list 'in source-fn)) % Damn FEXPRs (faslend) (printf "%nDone compiling %w%n%n" source-fn) )))