Begin File: xlisp.tgz Description:An object-oriented lisp. Keywords: lisp languages Version: 2.1c Entered-date: Author: David Micheal Betz Ported-by: Eric Original-site: Copying-policy:Permission is granted for unrestricted non-commercial use. Supplemental: Inside of the cldoc.txt: Table of Contents INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . 1 A NOTE FROM THE AUTHOR . . . . . . . . . . . . . . . . . . . . . 2 XLISP COMMAND LOOP . . . . . . . . . . . . . . . . . . . . . . . 3 BREAK COMMAND LOOP . . . . . . . . . . . . . . . . . . . . . . . 5 DATA TYPES . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 THE EVALUATOR . . . . . . . . . . . . . . . . . . . . . . . . . . 9 HOOK FUNCTIONS . . . . . . . . . . . . . . . . . . . . . . . . . 10 LEXICAL CONVENTIONS . . . . . . . . . . . . . . . . . . . . . . . 11 READTABLES . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 LAMBDA LISTS . . . . . . . . . . . . . . . . . . . . . . . . . . 15 OBJECTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 SYMBOLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 EVALUATION FUNCTIONS . . . . . . . . . . . . . . . . . . . . . . 23 SYMBOL FUNCTIONS . . . . . . . . . . . . . . . . . . . . . . . . 25 PROPERTY LIST FUNCTIONS . . . . . . . . . . . . . . . . . . . . . 29 HASH TABLE FUNCTIONS . . . . . . . . . . . . . . . . . . . . . . 30 ARRAY FUNCTIONS . . . . . . . . . . . . . . . . . . . . . . . . . 31 SEQUENCE FUNCTIONS . . . . . . . . . . . . . . . . . . . . . . . 32 LIST FUNCTIONS . . . . . . . . . . . . . . . . . . . . . . . . . 37 DESTRUCTIVE LIST FUNCTIONS . . . . . . . . . . . . . . . . . . . 41 ARITHMETIC FUNCTIONS . . . . . . . . . . . . . . . . . . . . . . 42 BITWISE LOGICAL FUNCTIONS . . . . . . . . . . . . . . . . . . . . 47 STRING FUNCTIONS . . . . . . . . . . . . . . . . . . . . . . . . 48 CHARACTER FUNCTIONS . . . . . . . . . . . . . . . . . . . . . . . 50 STRUCTURE FUNCTIONS . . . . . . . . . . . . . . . . . . . . . . . 52 OBJECT FUNCTIONS . . . . . . . . . . . . . . . . . . . . . . . . 54 PREDICATE FUNCTIONS . . . . . . . . . . . . . . . . . . . . . . . 56 CONTROL CONSTRUCTS . . . . . . . . . . . . . . . . . . . . . . . 60 LOOPING CONSTRUCTS . . . . . . . . . . . . . . . . . . . . . . . 63 THE PROGRAM FEATURE . . . . . . . . . . . . . . . . . . . . . . . 64 INPUT/OUTPUT FUNCTIONS . . . . . . . . . . . . . . . . . . . . . 66 THE FORMAT FUNCTION . . . . . . . . . . . . . . . . . . . . . . . 68 FILE I/O FUNCTIONS . . . . . . . . . . . . . . . . . . . . . . . 71 STRING STREAM FUNCTIONS . . . . . . . . . . . . . . . . . . . . . 74 DEBUGGING AND ERROR HANDLING FUNCTIONS . . . . . . . . . . . . . 76 SYSTEM FUNCTIONS . . . . . . . . . . . . . . . . . . . . . . . . 78 ADDITIONAL FUNCTIONS AND UTILITIES . . . . . . . . . . . . . . . 83 BUG FIXES AND EXTENSIONS . . . . . . . . . . . . . . . . . . . . 87 EXAMPLES: FILE I/O FUNCTIONS . . . . . . . . . . . . . . . . . . 94 INDEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 QNX Notes: I think this port works. Some things have been changed a little bit - for instance, lisp files are loaded first from the path defined by the XLPATH environment variable. If this envar doesn't exist, it tries to use the PATH environment variable (that is the non-standard bit) then it falls back to the current working directory. What I did here was to install xlisp in /usr/local/bin, and put my .lsp files in /usr/local/bin as well. archive contents: drwxrwxr-x 0 apkleywegt support Jan 28 10:45 xlisp drwxrwxr-x 0 apkleywegt support Jan 28 10:28 xlisp/bin -rwxrwxr-x 0 apkleywegt support 232501 Oct 17 11:38 xlisp/bin/xlisp drwxrwxr-x 0 apkleywegt support Jan 28 10:29 xlisp/doc -rw-rw-r-- 0 apkleywegt support 476144 Sep 25 11:47 xlisp/doc/cldoc.ps -rw-rw-r-- 0 apkleywegt support 261465 Sep 25 11:47 xlisp/doc/cldoc.txt -rw-rw-r-- 0 apkleywegt support 471 Oct 17 12:09 xlisp/doc/QNX4.readme -rw-rw-r-- 0 apkleywegt support 684 Sep 25 11:47 xlisp/doc/readme.upd -rw-rw-r-- 0 apkleywegt support 3221 Sep 25 11:47 xlisp/doc/read.me drwx------ 0 apkleywegt support Jan 28 10:29 xlisp/lsp -rw-rw-r-- 0 apkleywegt support 116 Sep 25 11:47 xlisp/lsp/ackerman.lsp -rw-rw-r-- 0 apkleywegt support 9897 Sep 25 11:47 xlisp/lsp/akalah.lsp -rw-rw-r-- 0 apkleywegt support 10229 Sep 25 11:47 xlisp/lsp/akavect.lsp -rw-rw-r-- 0 apkleywegt support 2392 Sep 25 11:47 xlisp/lsp/art.lsp -rw-rw-r-- 0 apkleywegt support 1686 Sep 25 11:47 xlisp/lsp/backquot.lsp -rw-rw-r-- 0 apkleywegt support 5531 Sep 25 11:47 xlisp/lsp/blocks.lsp -rw-rw-r-- 0 apkleywegt support 598 Sep 25 11:47 xlisp/lsp/change.lsp -rw-rw-r-- 0 apkleywegt support 6081 Sep 25 11:47 xlisp/lsp/classes.lsp -rw-rw-r-- 0 apkleywegt support 10987 Sep 25 11:47 xlisp/lsp/common.lsp -rw-rw-r-- 0 apkleywegt support 1241 Sep 25 11:47 xlisp/lsp/dragon.lsp -rw-rw-r-- 0 apkleywegt support 1534 Sep 25 11:47 xlisp/lsp/edit.lsp -rw-rw-r-- 0 apkleywegt support 1664 Sep 25 11:47 xlisp/lsp/example.lsp -rw-rw-r-- 0 apkleywegt support 74 Sep 25 11:47 xlisp/lsp/fact.lsp -rw-rw-r-- 0 apkleywegt support 202 Sep 25 11:47 xlisp/lsp/fib.lsp -rw-rw-r-- 0 apkleywegt support 10941 Sep 25 11:47 xlisp/lsp/gblocks.lsp -rw-rw-r-- 0 apkleywegt support 454 Sep 25 11:47 xlisp/lsp/hanoi.lsp -rw-rw-r-- 0 apkleywegt support 9051 Sep 25 11:47 xlisp/lsp/hdwr.lsp -rw-rw-r-- 0 apkleywegt support 6843 Sep 25 11:47 xlisp/lsp/ifthen.lsp -rw-rw-r-- 0 apkleywegt support 1987 Sep 25 11:47 xlisp/lsp/infix.lsp -rw-rw-r-- 0 apkleywegt support 2528 Sep 25 11:47 xlisp/lsp/init.lsp -rw-rw-r-- 0 apkleywegt support 2802 Sep 25 11:47 xlisp/lsp/match.lsp -rw-rw-r-- 0 apkleywegt support 1178 Sep 25 11:47 xlisp/lsp/matrix.lsp -rw-rw-r-- 0 apkleywegt support 16040 Sep 25 11:47 xlisp/lsp/pp.lsp -rw-rw-r-- 0 apkleywegt support 4302 Sep 25 11:47 xlisp/lsp/prolog.lsp -rw-rw-r-- 0 apkleywegt support 37267 Sep 25 11:47 xlisp/lsp/qa.lsp -rw-rw-r-- 0 apkleywegt support 1361 Sep 25 11:47 xlisp/lsp/queens.lsp -rw-rw-r-- 0 apkleywegt support 2040 Sep 25 11:47 xlisp/lsp/queens2.lsp -rw-rw-r-- 0 apkleywegt support 15800 Sep 25 11:47 xlisp/lsp/repair.lsp -rw-rw-r-- 0 apkleywegt support 4850 Sep 25 11:47 xlisp/lsp/search.lsp -rw-rw-r-- 0 apkleywegt support 354 Sep 25 11:47 xlisp/lsp/sendmacr.lsp -rw-rw-r-- 0 apkleywegt support 1561 Sep 25 11:47 xlisp/lsp/sort.lsp -rw-rw-r-- 0 apkleywegt support 4632 Sep 25 11:47 xlisp/lsp/step.lsp -rw-rw-r-- 0 apkleywegt support 9151 Sep 25 11:47 xlisp/lsp/stepper.lsp -rw-rw-r-- 0 apkleywegt support 168 Sep 25 11:47 xlisp/lsp/tak.lsp -rw-rw-r-- 0 apkleywegt support 796 Sep 25 11:47 xlisp/lsp/tconc.lsp -rw-rw-r-- 0 apkleywegt support 3906 Sep 25 11:47 xlisp/lsp/turtle.lsp -rw-rw-r-- 0 apkleywegt support 4757 Sep 25 11:47 xlisp/lsp/turtles.lsp -rw-rw-r-- 0 apkleywegt support 1337 Sep 25 11:47 xlisp/lsp/wildcard.lsp drwxrwxr-x 0 apkleywegt support Jan 28 10:29 xlisp/src -rw-rw-r-- 0 apkleywegt support 409 Oct 17 11:36 xlisp/src/Makefile -rw-rw-r-- 0 apkleywegt support 26855 Oct 16 11:21 xlisp/src/dldmem.c -rw-rw-r-- 0 apkleywegt support 13412 Oct 16 11:22 xlisp/src/dlimage.c -rw-rw-r-- 0 apkleywegt support 20386 Oct 16 11:22 xlisp/src/dosstuff.c -rw-rw-r-- 0 apkleywegt support 3976 Sep 25 11:47 xlisp/src/gccasm.s -rw-rw-r-- 0 apkleywegt support 18875 Oct 16 11:22 xlisp/src/gccstuff.c -rw-rw-r-- 0 apkleywegt support 1250 Sep 25 11:47 xlisp/src/longjmp.asm -rw-rw-r-- 0 apkleywegt support 909 Sep 25 11:47 xlisp/src/makebor -rw-rw-r-- 0 apkleywegt support 1204 Sep 25 11:47 xlisp/src/makegcc -rw-rw-r-- 0 apkleywegt support 1104 Sep 25 11:47 xlisp/src/makemet2 -rw-rw-r-- 0 apkleywegt support 1096 Sep 25 11:47 xlisp/src/makemeta -rw-rw-r-- 0 apkleywegt support 714 Sep 25 11:47 xlisp/src/makemsc -rw-rw-r-- 0 apkleywegt support 837 Sep 25 11:47 xlisp/src/makendp -rw-rw-r-- 0 apkleywegt support 409 Oct 17 11:36 xlisp/src/makeqnx -rw-rw-r-- 0 apkleywegt support 860 Sep 25 11:47 xlisp/src/makesml -rw-rw-r-- 0 apkleywegt support 894 Sep 25 11:47 xlisp/src/maketurb -rw-rw-r-- 0 apkleywegt support 369 Sep 25 11:47 xlisp/src/makeunix -rw-rw-r-- 0 apkleywegt support 957 Sep 25 11:47 xlisp/src/makezort -rw-rw-r-- 0 apkleywegt support 19102 Oct 16 11:22 xlisp/src/metastuf.c -rw-rw-r-- 0 apkleywegt support 7586 Oct 16 11:22 xlisp/src/ndpstuff.c -rw-rw-r-- 0 apkleywegt support 276 Oct 16 11:22 xlisp/src/osdefs.h -rw-rw-r-- 0 apkleywegt support 410 Oct 16 11:22 xlisp/src/osptrs.h -rw-rw-r-- 0 apkleywegt support 9532 Oct 17 12:01 xlisp/src/qnxstuff.c -rw-rw-r-- 0 apkleywegt support 2988 Oct 16 11:22 xlisp/src/spawno.h -rw-rw-r-- 0 apkleywegt support 4625 Sep 25 11:47 xlisp/src/stepper.doc -rw-rw-r-- 0 apkleywegt support 2225 Sep 25 11:47 xlisp/src/system.asm -rw-rw-r-- 0 apkleywegt support 2040 Sep 25 11:47 xlisp/src/systemnd.asm -rw-rw-r-- 0 apkleywegt support 9790 Oct 16 11:22 xlisp/src/unixstuf.c -rw-rw-r-- 0 apkleywegt support 18788 Oct 16 11:22 xlisp/src/xlbfun.c -rw-rw-r-- 0 apkleywegt support 34197 Oct 16 11:22 xlisp/src/xlcont.c -rw-rw-r-- 0 apkleywegt support 4600 Oct 16 11:22 xlisp/src/xldbug.c -rw-rw-r-- 0 apkleywegt support 21463 Oct 16 11:22 xlisp/src/xldmem.c -rw-rw-r-- 0 apkleywegt support 11153 Oct 16 11:22 xlisp/src/xldmem.h -rw-rw-r-- 0 apkleywegt support 23222 Oct 16 11:22 xlisp/src/xleval.c -rw-rw-r-- 0 apkleywegt support 26502 Oct 16 11:22 xlisp/src/xlfio.c -rw-rw-r-- 0 apkleywegt support 12531 Oct 16 11:23 xlisp/src/xlftab.c -rw-rw-r-- 0 apkleywegt support 5305 Oct 16 11:23 xlisp/src/xlftab.h -rw-rw-r-- 0 apkleywegt support 4671 Oct 16 11:23 xlisp/src/xlglob.c -rw-rw-r-- 0 apkleywegt support 11055 Oct 16 11:23 xlisp/src/xlimage.c -rw-rw-r-- 0 apkleywegt support 13444 Oct 16 11:23 xlisp/src/xlinit.c -rw-rw-r-- 0 apkleywegt support 5341 Oct 16 11:23 xlisp/src/xlio.c -rw-rw-r-- 0 apkleywegt support 5758 Oct 17 12:02 xlisp/src/xlisp.c -rw-rw-r-- 0 apkleywegt support 42059 Oct 17 12:02 xlisp/src/xlisp.h -rw-rw-r-- 0 apkleywegt support 777 Sep 25 11:47 xlisp/src/xlispts.pr -rw-rw-r-- 0 apkleywegt support 4189 Oct 16 11:23 xlisp/src/xljump.c -rw-rw-r-- 0 apkleywegt support 31675 Oct 16 11:23 xlisp/src/xllist.c -rw-rw-r-- 0 apkleywegt support 10877 Oct 16 11:23 xlisp/src/xlmath.c -rw-rw-r-- 0 apkleywegt support 34378 Oct 16 11:23 xlisp/src/xlmath2.c -rw-rw-r-- 0 apkleywegt support 15992 Oct 16 11:23 xlisp/src/xlobj.c -rw-rw-r-- 0 apkleywegt support 3474 Oct 16 11:23 xlisp/src/xlpp.c -rw-rw-r-- 0 apkleywegt support 13451 Oct 16 11:23 xlisp/src/xlprin.c -rw-rw-r-- 0 apkleywegt support 20520 Oct 16 11:23 xlisp/src/xlread.c -rw-rw-r-- 0 apkleywegt support 37006 Oct 16 11:23 xlisp/src/xlseq.c -rw-rw-r-- 0 apkleywegt support 14391 Oct 16 11:23 xlisp/src/xlstr.c -rw-rw-r-- 0 apkleywegt support 11981 Oct 16 11:23 xlisp/src/xlstruct.c -rw-rw-r-- 0 apkleywegt support 9856 Oct 16 11:23 xlisp/src/xlsubr.c -rw-rw-r-- 0 apkleywegt support 8325 Oct 16 11:24 xlisp/src/xlsym.c -rw-rw-r-- 0 apkleywegt support 15615 Oct 16 11:24 xlisp/src/xlsys.c End