Hello, I've found that lexer errors are not counted. After I invoke my parser I look at the lxr->pLexer->rec->state->errorCount variable to see whether there were some lexer errors. But even though there are some the counter doesn't change. For the parser errors the counting looks good. It seems to me that in antlr3lexer.c on line 262 [runtime version 3.1.4 beta], the following is missing: lexer->rec->state->errorCount++;
I added that to my local copy of runtime and now it behaves as expected. Regards, Tomas List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en -~----------~----~----~----~------~----~------~--~---
