[antlr-interest] another bug in trying to matching EOF, perhaps?

Xie, Linlin linlin.xie at siemens.com
Wed Jun 24 13:43:49 PDT 2009


Hi Jim,

 

I'm trying to do my own error report, so I'm testing with some
ill-formed syntax. Then I came across the MATCH of EOF in the
myParser.c. Through debugging, I found that in getMissingSymbol in
recoverFromMismatchedToken, the ttype passed in is -1, and then inside
of it, when it tries to appen8 which would fail with the second
parameter being  (const char
*)recognizer->state->tokenNames[expectedTokenType].

 

Hope I didn't mistake anything, can you check it and see if it's a real
bug?

 

Many thanks!

Linlin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090624/f1046952/attachment.html 


More information about the antlr-interest mailing list