© Gary D. Knott 2017

Gary D. Knott, Interpreting LISP, 10.1007/978-1-4842-2707-7_27

27. The LISP Interpreter Program

Gary D. Knott

(1)Civilized Software Inc., Silver Spring, Maryland, USA

The LISP interpreter presented below consists of three major subroutines : sread, seval, and swrite. The sread procedure reads input text, decomposes it into atom names and punctuation characters, enters all the new ordinary atoms and new number atoms that are encountered into the atom table and the number table, respectively, and constructs an S-expression representing the input. A typed-pointer to this S-expression is returned. If the input S-expression is not an atom, a corresponding list structure will be created in the list area. New ordinary atoms are entered ...

Get Interpreting LISP: Programming and Data Structures, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.