[antlr-interest] how to solve 'code too large' problem?

scott at javadude.com scott at javadude.com
Fri Jul 13 09:09:12 PDT 2007


Check out antxr: http://javadude.com/tools/antxr.

I tweaked ANTLR 2 to accept some xml-ish syntax and created tokenstreams
that use SAX or XMLPull to read tokens. I've been using it for all of my
xml parsing and it's so much easier than writing big if statements in a
startElement method or setting up rules in digester.

Later,
-- Scott

> On Friday 13 July 2007 07:36, Chaudhari, Pranita, OPEE14 wrote:
>> Hello,
>>
>> I am using Antlr V3 for writing grammar to parse UML Model (exported
>> to XMI).
>
> I have not been able to think of a reason to write an ANTLR parser for
> an XML document format.
>
> Can someone help me see why one would not use one of the existing XML
> parsers and other XML-based tools when dealing with XML documents?
>
>
> Randall Schulz
>



More information about the antlr-interest mailing list