January 2013
Intermediate to advanced
328 pages
8h 5m
English
In the previous chapter, we studied common lexical and grammatical structures and learned how to express them as snippets of ANTLR grammars. Now it’s time to put that knowledge to use building some real-world grammars. Our primary goal is to learn how to assemble full grammars by sifting through reference manuals, sample input files, and existing non-ANTLR grammars. We’ll tackle five languages, ramping up gradually in complexity. You don’t have to build all of them now. Just work through the ones you’re comfortable with and come back as you encounter more complicated problems in practice. Also feel free to pop back to look at the patterns and ANTLR snippets in the previous chapter.
The first language ...
Read now
Unlock full access