Hacker News new | ask | show | jobs
by NaNaN 4422 days ago
Yet another LISP-like language parser tutorial. Just like Learning ??? Programming in ?? days. This is just the beginning, guys. LISP-like languages are not always great. (I'm not to look down this tutorial! Really!) I prefer imperative programming language parser tutorial. Every time I see such title, I will think of LISP.
2 comments

If you want an imperative tutorial then the Crenshaw tutorial [1] or Nicklaus Wirth's book Compiler Construction[2] are great starting points.

[1] http://compilers.iecc.com/crenshaw/

[2] http://www.ethoberon.ethz.ch/WirthPubl/CBEAll.pdf

Thank you. I have read Crenshaw's tutorial before, and I think I should get some time to translate it with modern language with unicode support to make more fun. :)
I'm admittedly nitpicking here, but I think "(non-)imperative" is not a useful label for characterizing Lisp-ish languages. Some Lisps, like Clojure, are rather functional; others, like Common Lisp, are considered imperative.

For the distinction you're looking for, I'd like to suggest "C-like" or "Algol-family" instead for those languages which work with sequences, conditionals, loops and probably braces and semicolons.