Saturday, November 8, 2008

ANTLR as a gateway drug to lisp?

I'm reviewing the code I wrote for my code generator, and it wound up looking a lot like lisp. Actually, a lisp with destructing bind. Like Clojure, say.

The biggest advantage for me with using ANTLR over the lisps is that I can, and do, look at the generated parser and tree parser code. I understand the underlying implementation, which is essential for being able to debug. Clojure is a step into the wilds for me, I don't really understand what it is doing, and there is only so much macro-expand tells me.

Hopefully playing more with ANTLR will allow me to understand how Clojure works...