[antlr-interest] TreeParser reset()

Bill Andersen bill.andersen at mac.com
Tue Feb 8 20:40:23 PST 2011


Folks

I noticed that setTokenStream() in antlr.org.runtime.Parser calls reset(), but setTreeNodeStream() in antlr.org.runtime.tree.TreeParser does not call reset().  Is there a reason for this or is it just an oversight?  If the former should I call reset() before or after setTreeNodeStream() on a tree parser I want to re-use?

Thanks in advance.

   .bill


More information about the antlr-interest mailing list