A compiler in less than 400 lines of Lisp code
Monday, February 16, 2004
Peter Seibel has
posted an example compiler (in CL) for a "made up"
microprocessor on comp.lang.lisp. He is planning to modify it to target an actual
microprocessor (or VM) - a good example of how Lisp can be used to
create a mini-language.
Some additional examples of using CL
to create interpreters or compilers are mentioned in the rest of the
thread and in Peter Norvig's
excellent book
Paradigms of Artificial Intelligence Programming: Case Studies in
Common Lisp (usually abbreviated to PAIP).

