isolated@alix.UUCP (20 James D. Corder) (03/13/90)
Hello NetPeople:-) The macine I am on has lisp. However, I can not find any doc's for it:-( If I say lisp...then write the program while in lisp the program will run fine. I have purchased several books on lisp, they say "see your doc's for file I/O...":-( I am trying to teach myself lisp, I would like to know how one can write a file in vi then load & run it in lisp??? Does lisp have a compiler like C? or can you write a sh[ell] script to load and run the lisp program for you? Thank you for all your help, James D. Corder ...osu-cis!alix!jdc ...att!osu-cis!alix!jdc alix!jdc@cis.ohio-state.edu
bigelow@hpfcso.HP.COM (Jim Bigelow) (03/14/90)
Try:
> (load '<file.lsp>) ;; where <file.lsp> is your file name.
Jim Bigelow
Colorado Language Lab
HP
ag0531@leah.Albany.Edu (Andy Gallo) (03/15/90)
And how about the debugger? I began my studies this semester in Common LISP for VAX/VMS. Now I'd like to switch to Franz LISP on a Unix platform. However, the online help files are not installed at my site. Can someone tell me: 1) how to exit the debugger back to the lisp prompt 2) how to 'traceback' in the Franz LISP debugger 3) what are the important differences between Common and Franz. Please not that I am a novice user, so it is enough just to point out the most common obvious differences. Thanks. Andy Gallo State University of New York at Albany
jeff@aiai.ed.ac.uk (Jeff Dalton) (03/15/90)
In article <2703@leah.Albany.Edu> ag0531@leah.Albany.Edu (Andy Gallo) writes: > > And how about the debugger? I began my studies this semester in >Common LISP for VAX/VMS. Now I'd like to switch to Franz LISP on a Unix >platform. However, the online help files are not installed at my site. Can >someone tell me: The following is for the Berkeley version of Franz, roughly Opus 38.92. > 1) how to exit the debugger back to the lisp prompt Call (reset) to go all the way back or type <eof> to go back one level. The easiest way to get all the way back is usually to type <eof> until you're there. To avoid accidently exiting Lisp, however, you may want to (sstatus ignoreeof t) Then, to exit Lisp you'll have to call (exit). > 2) how to 'traceback' in the Franz LISP debugger Call baktrack or showstack. The funny spelling is from MacLisp. > 3) what are the important differences between Common and > Franz. Please not that I am a novice user, so > it is enough just to point out the most common > obvious differences. 1. Franz is oriented towards lower case and is case-sensitive. 2. Franz doesn't have lexical scoping at all in the interpreter and has only a restricted form in compiled code. Local variables in compiled code are not dynamically bound but cannot be captured by closures. Indeed, #'(lambda ...) - expressions are compiled as completely spearate functions without regard for their context. 3. "defvar" works in Franz and makes the variable everywhere special, but top-level declarations are done with "declare" rather than "proclaim". 4. The generic arithmetic operations in Franz have names like "plus", "times", "difference" and "quotient". +, *, -, and / are single- type operations. Both args must be fixnums or both must be floats. There are no complex numbers or rationals. 5. There is no character data type. Characters are represented as integers or as symbols. 6. Franz doesn't combine lists and vectors as sequences. 7. Things like &optional work only in defun or defmacro, not in lambda-expressions. 8. There are no packages. A good source for information about Franz Lisp is Wilensky's LISPcraft (not to be confused with his Common LISPcraft). It tells you pretty much everything the Franz manual does and in some cases more. It is possible to get implementations of Flavors for Franz but not of CLOS. Jeff Dalton, JANET: J.Dalton@uk.ac.ed AI Applications Institute, ARPA: J.Dalton%uk.ac.ed@nsfnet-relay.ac.uk Edinburgh University. UUCP: ...!ukc!ed.ac.uk!J.Dalton