[antlr-interest] [C Target][3.1.1] bugs in error reporting

register register72 at gmail.com
Tue May 19 07:52:42 PDT 2009


I have found two minor issues in the C runtime:
-the lxr->pLexer->rec->getNumberOfSyntaxErrors(lxr->pLexer->rec) always
returns 0 because the reportError function in antlr3lexer.c does not
increment the state->errorCount attribute of the recognizer
-The charposition attribute of a token returns always -1 when referenced
inside an action that is positioned at the end of a rule.

Regards,
register.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090519/8862ff3e/attachment.html 


More information about the antlr-interest mailing list