[antlr-interest] Tree walk exception
Eugene Seliverstov
theirix at gmail.com
Sat Nov 25 04:50:50 PST 2006
Hello!
Sometimes during work of tree grammar parser NullPointerException is thrown.
Exception happens at "org.antlr.runtime.tree.CommonTr
eeNodeStream.walkBackToMostRecentNodeWithUnvisitedChildren(
CommonTreeNodeStream.java :483)" and caused by accessing null element at top
of stack indexStack.
This can appear unexpectedly on different rules, on different input texts. I
think sometimes it's because small lookahead or disambiguation of
grammar rules, but why it's no detected at code generation time?..
Of course, I can provide grammars if it can help (they are too large to post
here).
Version of antlr - 3.0b5.
Thank you for regards!
--
Best regards,
Eugene Seliverstov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20061125/cf88c728/attachment.html
More information about the antlr-interest
mailing list