[antlr-interest] Parser generation takes hours

Jim Idle jimi at temporal-wave.com
Tue Jan 5 11:04:07 PST 2010


Perhaps you could send us your grammar too? You might find that you just need to comment out one or two rules until you get to reworking them.

Jim

> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Terence Parr
> Sent: Tuesday, January 05, 2010 9:22 AM
> To: Jean-Pierre LAMBERT
> Cc: antlr-interest at antlr.org
> Subject: Re: [antlr-interest] Parser generation takes hours
> 
> very strange. antlr has a fail-safe so it cannot do that.  what
> command line options do you use?  command line or ANTLWorks?
> Ter
> On Jan 5, 2010, at 6:52 AM, Jean-Pierre LAMBERT wrote:
> 
> > Hello everybody,
> >
> > I'm currently rewriting a LR parser to be used for ANTLR. As a
> result,
> > ANTLR works literaly for hours before it outputs errors about my
> > grammar.
> >
> > My work is not finished; I have removed all left-recursions but I
> > still
> > have to do left-factorisations. The problem being that since ANTLR
> > works
> > for hours before I get the errors, it isn't very practical for me to
> > fix
> > the grammar.
> >
> > Do you have any suggestions in this case? What could be done so that
> > ANTLR would take only dozen of minutes? Is there something capital
> > that
> > I missed about ANTLR and LL grammars? How should be written ANTLR
> > rules
> > to avoid such a problem?
> >
> > Thanks in advance, any adice will be welcome.
> >
> > JP
> >
> > 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