[antlr-interest] file size

A Z asicaddress at gmail.com
Tue Nov 8 18:13:06 PST 2011


  It depends on the grammar. The combined count for all my ANTLR-generated
C code is >300000 lines.



On Tue, Nov 8, 2011 at 12:38 PM, yushang <yusunn at gmail.com> wrote:

> Sounds sad :( it seems there are lots of work to do .
>
> 2011/11/9 Justin Murray <jmurray at aerotech.com>
>
> > That sounds very large to me. I have a parser that generates 97940 lines
> > of C, and this is for a terribly ambiguous language with lots of
> > backtracking. I would recommend doing some left-factoring and maybe add
> > some predicates to trim that down a bit.
> >
> > On 11/8/2011 1:22 PM, yushang wrote:
> > > Hi everyone,
> > > Do you think a parser file(C file) with 408284 lines a little big ?
> > > What is the biggest parser you've ever seen ? Maybe I need to optimize
> my
> > > grammar ?
> > > Many thanks
> > >
> > > List: http://www.antlr.org/mailman/listinfo/antlr-interest
> > > Unsubscribe:
> > http://www.antlr.org/mailman/options/antlr-interest/your-email-address
> >
> > List: http://www.antlr.org/mailman/listinfo/antlr-interest
> > Unsubscribe:
> > http://www.antlr.org/mailman/options/antlr-interest/your-email-address
> >
>
> 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