Artifact 0cf7875034d2e5002b7e441c2f29a1ade26fe8e3fcb87443f6a7072d285d60c6:
- File
psl-1983/3-1/glisp/glhead.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: 1348) [annotate] [blame] [check-ins using] [more...]
- File
psl-1983/glisp/glhead.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: 1348) [annotate] [blame] [check-ins using]
% % GLHEAD.PSL.9 14 Jan. 1983 % % HEADER FOR GLISP FOR COMPATIBILITY WITH PORTABLE STANDARD LISP (PSL) % G. NOVAK 20 OCTOBER 1982 % (GLOBAL '(GLQUIETFLG GLSEPBITTBL GLUNITPKGS GLSEPMINUS GLOBJECTNAMES GLTYPENAMES GLBREAKONERROR GLUSERSTRNAMES GLLASTFNCOMPILED GLLASTSTREDITED GLCAUTIOUSFLG GLLISPDIALECT GLBASICTYPES GLOBJECTTYPES)) (FLUID '(TTLIST SPECS SOURCE GLGLOBALVARS DOMAINNAME ARGTYPES NOTFLG GLAMBDAFN ADDISATYPE PAIRLIST PROGG BITTBL KEY Y TYPES CONTEXT EXPR VALBUSY FAULTFN GLSEPATOM GLSEPPTR *GL* *GLVAL* GLTOPCTX RESULTTYPE RESULT GLNATOM FIRST OPNDS OPERS GLEXPR DESLIST EXPRSTACK GLTYPESUBS GLPROGLST)) % CASEQ MACRO FOR PSL (DM CASEQ (L) (PROG (CVAR CODE) (SETQ CVAR (COND ((ATOM (CADR L))(CADR L)) (T 'CASEQSELECTORVAR))) (SETQ CODE (CONS 'COND (MAPCAR (CDDR L) (FUNCTION (LAMBDA (X) (COND ((EQ (CAR X) T) X) ((ATOM (CAR X)) (CONS (LIST 'EQ CVAR (LIST 'QUOTE (CAR X))) (CDR X))) (T (CONS (LIST 'MEMQ CVAR (LIST 'QUOTE (CAR X))) (CDR X))))))))) (RETURN (COND ((ATOM (CADR L)) CODE) (T (LIST 'PROG (LIST CVAR) (LIST 'SETQ CVAR (CADR L)) (LIST 'RETURN CODE)))))))