© 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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.