(How to Write a (Lisp) Interpreter (In Python))
norvig.com22 points by tosh 44 minutes ago
22 points by tosh 44 minutes ago
(how-to in-python (write (interpreter lisp)))
Writing a Lisp is one of my favorite projects. I try to do it every year or two, taking a different approach each time.
I can't recommend highly enough to implement a simple lisp (or a forth).
Illuminating experience and it will also help you see (among many other things) the parentheses in a different light.
First day of paradigms course in the 2000s and prof says "if your opinion of Scheme is too many parentheses, then you're an idiot."
Needless to say that was my opinion and every day I think, more and more, how right he was.
(later I did make some gui apps that included scripting and chose s-expr syntax because of how simple it is to implement it)
main problem isn't brackets themselves - it's that they're too on the right
had brackets been displayed as curly braces in C - everything would look much more manageable
Appreciated the title xD
(2010)?