January 2013
Intermediate to advanced
328 pages
8h 5m
English
If you’re used to previous versions of ANTLR or other parser generators, you’ll be surprised to hear that we can build language applications without embedding actions (code) in the grammars. The listener and visitor mechanisms decouple grammars from application code, providing some compelling benefits. Such decoupling nicely encapsulates an application instead of fracturing it and dispersing the pieces across a grammar. Without embedded actions, we can reuse the same grammar in different applications without even recompiling the generated parser.
ANTLR can also generate parsers in different programming languages for the same grammar if it’s bereft of actions. (I anticipate supporting different target ...
Read now
Unlock full access