Next: Expression syntax Up: Sather Lisp Previous: Introduction

Usage

The Sather Lisp implementation consists of the file Lisp.sa and the necessary Sather library files. After compilation with:


cs Lisp.sa -main LISP -o Lisp <CR>
(assuming SATHER_COMMANDS set correctly), the Lisp interpreter can be started:


Lisp <CR>
Sather Lisp - gri 15 Aug 94
(symbols) returns a list of all defined symbols
>

The '>' prompt signals that the interpreter is ready for input. The interpreter accepts any sequence of Lisp expressions as input and evaluates them consecutively. The output is the result of the last evaluated expression (unless an error occured before). The program can be left by typing in Ctrl_D (indicating end of file) or by using the predefined function exit:

> (exit) <CR>


borisv@ICSI.Berkeley.EDU
Thu Jul 20 19:01:07 PDT 1995