[antlr-interest] Resetting an AST tree walker

Michael Bedward michael.bedward at gmail.com
Wed Apr 22 20:04:44 PDT 2009


Hi Steve,

> I would think CommonTreeNodeStream should work however, so it
> seems like a bug.

but as I tried to explain, the new behaviour of CommonTreeNodeStream
is that its contents are discarded as they are accessed by the tree
walker, so you can reset the stream but there's nothing there anymore
!

I don't like this at all, but I believe in the thread that you cited
earlier someone says it is the intended behaviour.

Michael


More information about the antlr-interest mailing list