[antlr-interest] Suppress Ambiguous Warnings in grammar rules

Jim Idle jimi at temporal-wave.com
Tue Nov 23 10:39:18 PST 2010


Not possible at the moment other than specifically setting k=1 for the
decision (which works for a lot), or stating a one token predicate to stop
ANTLR complaining. There are better options in mind for ANTLR 4

Jim

> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Kunal Sawlani
> Sent: Tuesday, November 23, 2010 6:40 AM
> To: antlr-interest at antlr.org
> Subject: [antlr-interest] Suppress Ambiguous Warnings in grammar rules
> 
> Hi,
> 
> I wanted to know if there was a way to suppress ambiguity warnings in
> ANTLR grammar.
> 
> I did notice that there was a generateAmbigWarnings options in ANTLR 2,
> but this does not seem to work in ANTLR 3.
> 
> Thanks
> --
> Kunal
> 
> 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