[antlr-interest] warnWhenFollowAmbig with ANTLR3?

Jim Idle jimi at temporal-wave.com
Mon Mar 31 10:23:13 PDT 2008


No, there are cases when you want to turn off warnings without putting in a predicate or something to make the warning go away. At some point, I feel sure that this ability will come back into 3.x.

Jim

> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Johannes Luber
> Sent: Monday, March 31, 2008 6:08 AM
> To: Aurelian Melinte
> Cc: antlr-interest at antlr.org
> Subject: Re: [antlr-interest] warnWhenFollowAmbig with ANTLR3?
> 
> Aurelian Melinte schrieb:
> > Hello,
> >
> >
> > A question that might have been answered, but I could not find the
> answer: version 2 used to support this option:
> >
> >      options {warnWhenFollowAmbig = false;}
> >
> > Has this been replaced by something similar or is it just deprecated
> in version 3?
> 
> My guess is that you have to resolve ambiguities yourself via
> backtracking, syntactic predicates and left-factoring. There is a
> tutorial explaining the use of these techniques on the wiki. Ignoring
> the ambiguity warning means that the first option is always chosen.
> 
> Johannes





More information about the antlr-interest mailing list