[antlr-interest] Generating XML from a antlr grammer!
Oliver Zeigermann
oliver at zeigermann.de
Mon Jun 11 08:21:00 PDT 2007
2007/6/11, Johannes Luber <jaluber at gmx.de>:
> Look at
> <http://www.antlr.org/wiki/display/ANTLR3/Quick+Starter+on+Parser+Grammars+-+No+Past+Experience+Required>
> for grammar files in general and
> <http://www.antlr.org/wiki/display/ANTLR3/1.+Lexer>, how recognize XML
> tags. BTW, the grammar in the latter link doesn't check the correct
> order of tags (matching closing tag to opening tag).
He, Johannes!
Good observation.
Maybe we can have a version that checks the order using validating
semantic predicates. That really would be a good example for their
use.
What do you think?
Oliver
More information about the antlr-interest
mailing list