[antlr-interest] lexical modes and XML grammar
Terence Parr
parrt at cs.usfca.edu
Sun Jan 1 15:04:08 PST 2012
http://www.antlr.org/wiki/download/attachments/28049418/XMLParser.g4
http://www.antlr.org/wiki/download/attachments/28049418/XMLLexer.g4
handles unicode tags etc…
I run with
$ for f in XML-inputs/*.xml; do echo $f; j org.antlr.v4.runtime.misc.TestRig XML document -print $f; done
add -encoding euc-jp flag to read euc-jp encoded xml file, for example.
v4 makes short work of xml now.
Ter
More information about the antlr-interest
mailing list