thanks! I figured it out. Your grammar references a token that's not referenced 
outside of a syntactic predicate

parser grammar Bad;

a : (A)=> B | C ;

That doesn't know what A is and gets invalid token.

http://www.antlr.org/jira/browse/ANTLR-456

Ter
On Mar 25, 2011, at 3:19 AM, Benjamin Niemann wrote:

> Using the latest antlr3-main
> $ java org.antlr.Tool runtime/Python/tests/t033backtracking.g
> search for <INVALID> in the generated code. Also happens with
> "-language Java", so it's not my fault ;)
> 
> -Ben
> _______________________________________________
> antlr-dev mailing list
> antlr-dev@antlr.org
> http://www.antlr.org/mailman/listinfo/antlr-dev

_______________________________________________
antlr-dev mailing list
antlr-dev@antlr.org
http://www.antlr.org/mailman/listinfo/antlr-dev

Reply via email to