Lisp Quickstart

Legend

The table cell to the right shows what you type, and the output, for this tutorial. Text shown in blue you are responsible for typing, with a Return at the end of the line. Text shown in black indicates stuff that is printed back to you. Text shown in red are remarks -- do not type them.

If the cell is divided by a line, as is shown at right, then this indicates two different examples.

This text is being printed out.
You would type this text  [This is a remark]
____________________________________________
Here is another example.



Running, Breaking, and Quitting Lisp

On osf1 or mason2, you start lisp by typing lisp at the command line. This fires up an implementation of lisp by Xanalys called LispWorks.

If you've downloaded clisp or are using clisp on the ITE cluster, you typically start it by typing clisp and this is what you see:

[On osf1...]
osf1.gmu.edu> lisp
LispWorks(R): The Common Lisp Programming Environment
Copyright (C) 1987-1998 Xanalys Incorporated.  All rights reserved.
Version 4.1.20
Saved by root as lispworks, at 29 May 2001 16:35
User sluke on osf1.gmu.edu
; Loading text file /usr/local/lispworks_4.1/hcl/4-1-0-0/
      config/siteinit.lisp

CL-USER 4>


__________________________________________________________________
[On chrono...] chrono[~]> clisp i i i i i i i ooooo o ooooooo ooooo ooooo I I I I I I I 8 8 8 8 8 o 8 8 I \ `+' / I 8 8 8 8 8 8 \ `-+-' / 8 8 8 ooooo 8oooo `-__|__-' 8 8 8 8 8 | 8 o 8 8 o 8 8 ------+------ ooooo 8oooooo ooo8ooo ooooo 8 Copyright (c) Bruno Haible, Michael Stoll 1992, 1993 Copyright (c) Bruno Haible, Marcus Daniels 1994-1997 Copyright (c) Bruno Haible, Pierpaolo Bernardi, Sam Steingold 1998 Copyright (c) Bruno Haible, Sam Steingold 1999-2001 [1]>

Valid XHTML 1.0 Transitional