(How to Write a (Lisp) Interpreter (in Python))

I like a lot of programming languages. I do not love them with the same intensity.

I do not love Lisp for its ((syntax))), but Lisp rocks for its purity: in a tiny bag of concept, you get a lot of stuff.

This article, (How to Write a (Lisp) Interpreter (in Python)) show you how it is easy to write a lisp interpreter in python. It is 113 lines of code, and include the parser the executor and the basic functions to get started.

To try it out issue

python -i lis.py
And at the prompt:

repl();

 

 

 

Leave a Reply