views:

82

answers:

1

I've written a Scheme-ish language compiler/vm in JavaScript. http://github.com/z5h/zb-lisp
Dybvig's "Three Scheme Implementations" paper (available on my github) was hugely important in getting stuff like tail-call-optimization, call/cc and other things working.

I'm thinking about adding some type of macro support. And wondering if there are similarly awesome references for implementing macro systems.

Thanks.

+2  A: 

Lisp in Small Pieces is what you need.

Vijay Mathew
+1. Looks good. Just ordered it off Amazon. If it is what I'm looking for, I'll accept your answer. Thanks.
z5h
@z5h The book explains implementation of Scheme interpreters and compilers. Especially see chapter 9, where the implementation of a macro system is explained.
Vijay Mathew
It just arrived. Wow, it's going to take me a year to get through it!
z5h