[antlr-interest] C Runtime Error Handling Problems

Jim Idle jimi at temporal-wave.com
Wed Jan 28 18:29:13 PST 2009


Bot Tiger wrote:
> Well I think I may have found the source of the problem. I had 
> backtrack=true enabled, and that may have caused any error reporting 
> capabilities to disappear.
Yes. It will hit the 1 then try everything it can, give up and report 
the error at '1', but I think that the issue is that the first token 
gets a stat position of -1, which is something on my list.

Don't use backtrack if you want any meaningful errors.

Jim



More information about the antlr-interest mailing list