[antlr-interest] antlr3.4 C target Bug ?
Rampon Jerome
ramponjerome at yahoo.fr
Thu Feb 9 03:03:14 PST 2012
Hi,
For info ...
Something like a bug apparently (with C output and antlr3.4 version)
On missing EOF
in recoverFromMistmatchedToken, ... getMissingSymbol
from code testing EOF (pANTLR3_COMMON_TOKEN) MATCHT(EOF, &FOLLOW_EOF_in_...);
around line 2219, following code
text->append8(text, (const char *)recognizer->state->tokenNames[expectedTokenType]);
expectedTokenType has no real entry in tokenNames array
Returns NULL, then crash
Maybe already reported. I made a local fix in my version in append8
with expectedTokenType == EOF ? ....
Regards
Jerome
More information about the antlr-interest
mailing list