Clementson's Blog

Bits and pieces (mostly Lisp-related) that I collect from the ether.

February 2004
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29
Jan  Mar

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).

emacs Copyright © 2004 by Bill Clementson