Artifact e169a20d55e324f4affd09f028ae7a30a2c00d413f80c7d9d4b3a4c1eb20f571:
- File
psl-1983/3-1/glisp/gltrans.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: 1002) [annotate] [blame] [check-ins using] [more...]
% GLTRANS.SL.1 12 April 1983 % % Translate files from GLISP form to PSL. % G. Novak 12 April 83 (global '(gltransfile)) % Open a file for output (de gltransopen (filename) (setq gltransfile (open filename 'output))) % Close the output file (de gltransclose () (close gltransfile)) % Read a file, translate it, and append to the output file. (de gltransread (filename) (prog (infile expr) (setq infile (open filename 'input)) lp (setq expr (channelread infile)) (cond ((eq expr !$EOF!$) (return t)) ((pairp expr) (eval expr) (channelterpri gltransfile) (cond ((eq (car expr) 'dg) (glcc (cadr expr)) (channelprin1 gltransfile (cons 'de (cons (cadr expr) (cdr (get (cadr expr) 'glcompiled)))))) (t (channelprin1 gltransfile expr))) (channelterpri gltransfile))) (go lp)))