4 ms·
The book "Language Implementation Patterns"[1] covers ANTLR 3, and the author (who is one of the implementors of ANTLR) walks you through successively more inte
by fusiongyro 10y ago
The book "Language Implementation Patterns"[1] covers ANTLR 3, and the author (who is one of the implementors of ANTLR) walks you through successively more interesting DSLs until you're basically building a programming language, but does it in small steps.
I didn't struggle with compilers as an undegrad at all, and I found this book too slow for me, so I'm optimistic that you will be pleased by the pacing. :)
If you want to see a way older approach, I did really enjoy Jack Crenshaw's "Let's Build a Compiler"[2]—but it's so vintage it may be totally hipster by now. :)
[1] https://www.amazon.com/Language-Implementation-Patterns-Domain-Specific-Programming/dp/193435645X/ref=sr_1_2?ie=UTF8&qid=1481865280&sr=8-2&keywords=antlr https://www.amazon.com/Language-Implementation-Patterns-Doma...
[2] http://compilers.iecc.com/crenshaw/ http://compilers.iecc.com/crenshaw/