Lisp Written in Lisp

An interpreter is a program that reads another program and executes it, one step at a time. An attractive feature of Lisp is that a Lisp interpreter can easily be written in Lisp itself.

The basic functions performed by a Lisp interpreter include:

The top level of Lisp could be expressed simply as:

(do () (#f)
  (display "> ")
  (write (eval (read)))
  (newline) )

The interpreter given below is somewhat like the one in McCarthy's Lisp 1.5 manual; it allows ordinary Scheme code to be interpreted.

Contents    Page-10    Prev    Next    Page+10    Index