Edit: Ok, ok. Now that the title of submission has been changed from "Toy Lisp Interpreter" to "Little Lisp Interpreter" my quip, having lost context doesn't make me smile anymore either.
Little Lisp interpreter
11–20 of 49 posts
Re: Little Lisp interpreter
#12I've written a toy Lisp interpreter that eventually evolved into a toy Lisp compiler. It's a gratifying exercise that I'd recommend for every programmer.
Re: Little Lisp interpreter
#13If you find that interesting, you should probably take a look at this: http://michaux.ca/articles/scheme-from-scratch-introduction I had fun following along with him. Now, if he (or I can get my shot at it finished) can ever finish working on the byte-code based version!
The book is in two parts. The first starts from a simple evaluation function and enriches it with multiple name spaces, continuations and side-effects with commented variants, while at the same time the language used to define these features is reduced to a simple lambda-calculus.
The second part focuses more on implementation techniques and discusses precompilation for fast interpretation: threaded code or bytecode; compilation towards C. Some extensions are also described such as dynamic evaluation, reflection, macros and objects.
Re: Little Lisp interpreter
#14Re: Little Lisp interpreter
#15Already down? Google-cached: http://webcache.googleusercontent.com/search?q=cache:https:/...
Re: Little Lisp interpreter
#16I've written a toy Lisp interpreter that eventually evolved into a toy Lisp compiler. It's a gratifying exercise that I'd recommend for every programmer.
Re: Little Lisp interpreter
#17If you find that interesting, you should probably take a look at this: http://michaux.ca/articles/scheme-from-scratch-introduction I had fun following along with him. Now, if he (or I can get my shot at it finished) can ever finish working on the byte-code based version!
I would also find very interesting to see a step-by-step series on compiling scheme (with macros included) using llvm. I never tried really hard to look for one, though.
Re: Little Lisp interpreter
#18Re: Little Lisp interpreter
#19If you find that interesting, you should probably take a look at this: http://michaux.ca/articles/scheme-from-scratch-introduction I had fun following along with him. Now, if he (or I can get my shot at it finished) can ever finish working on the byte-code based version!
You might enjoy Lisp in Small Pieces. Is one of my favorite books The book is in two parts. The first starts from a simple evaluation function and enriches it with multiple name spaces, continuations and side-effects with commented variants, while at the same time the language used to define these features is reduced to a simple lambda-calculus. The second part focuses more on implementation techniques and discusses…
Re: Little Lisp interpreter
#20If you find that interesting, you should probably take a look at this: http://michaux.ca/articles/scheme-from-scratch-introduction I had fun following along with him. Now, if he (or I can get my shot at it finished) can ever finish working on the byte-code based version!
I should finish my Ada version sometime... Or just start a new project haha