[antlr-interest] Lexer syntactic predicate bug

Allen Short washort at divmod.com
Fri Mar 16 14:23:22 PDT 2007



On Sat, 17 Mar 2007 09:56:22 +1300, Gavin Lambert <antlr at mirality.co.nz> wrote:

>Actually I half agree with it :)  It seems a bit odd to me to use a synpred 
>as the final alt, especially when there shouldn't be any ambiguity with the 
>first alt.
>
>Probably shouldn't produce an error, though.

I discovered this in an actual grammar with a lot more cases. The intent is to distinguish between "x < y" and "<foo>". In the process of removing everything that wasn't related to the failure I guess I ended up with a less than sensible example. :)


More information about the antlr-interest mailing list