[antlr-interest] Bug: CommonTreeNodeStream not passing adaptor to TreeIterator
Kaleb Pederson
kaleb.pederson at gmail.com
Mon Nov 9 14:28:58 PST 2009
On Mon, Nov 9, 2009 at 2:00 PM, Terence Parr <parrt at cs.usfca.edu> wrote:
> added bug
>
> http://www.antlr.org/jira/browse/ANTLR-413
>
> Ter
Thanks Ter,
In case it isn't obvious to anybody interested, the workaround is to
create your own subclass of CommonTreeNodeStream that sets the tree
iterator after calling the superclass constructor:
it = new TreeIterator(adaptor, root);
it.eof = this.eof;
--
Kaleb Pederson
Blog - http://kalebpederson.com
Twitter - http://twitter.com/kalebpederson
More information about the antlr-interest
mailing list