As part of my Lisp studies, I have implemented a toy Scheme interpreter in roughly 1000 lines of Lua. It is here. It supports tail-call optimisation, lexical scope for closures, and first-class continuations via call/cc.
I have departed from the traditional approach of implementing a Scheme interpreter in Scheme itself because I wanted to avoid possible [...]
Archive of posts tagged interpreter