[antlr-interest] lexical modes and XML grammar

Kyle Ferrio kferrio at gmail.com
Tue Jan 3 21:17:59 PST 2012


I see why you're (rightly) pleased about this.  I threw down some truly
ugly XML, and Honey Badger just ate it up.

If you keep making things this easy, I might not need to dive into the
internals.  What am I going to do with all that free time???

Kyle


On Sun, Jan 1, 2012 at 4:04 PM, Terence Parr <parrt at cs.usfca.edu> wrote:

> 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
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe:
> http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>


More information about the antlr-interest mailing list