On Oct 12, 2008, at 3:58 AM, Sam Harwell wrote:
> The following pair of rules result in the following compile error:
>
> The following token definitions can never be matched because prior
> tokens match the same input: B
>
> A : (~'\\') => {int x = 0;} . ;
> B : '\\' . ;
>
Hmm...a bit odd. ANTLR thinks .* can follow any rule so it thinks \x
matches both. i have a bug to fix the .* assumption.
T
_______________________________________________
antlr-dev mailing list
[email protected]
http://www.antlr.org:8080/mailman/listinfo/antlr-dev