[antlr-interest] Tree grammar example, redux
Terence Parr
parrt at cs.usfca.edu
Tue Jun 2 16:27:09 PDT 2009
On Jun 2, 2009, at 4:25 PM, J. Stephen Riley Silber wrote:
> Hi gang,
>
> Frank mentioned the second example in this article (http://www.antlr.org/wiki/display/ANTLR3/Simple+tree-based+interpeter
> ) not working as of 3.1.3. I, too, have been trying to get it
> working, to no avail.
>
> Did something fundamental change in the TreeNodeStream
> functionality? I like this solution much better than spawning new
> tree parsers every time a function is called.
>
> What's the dillio?
I think maybe the default stream isn't buffered anymore. Try using
BufferedTreeNodeStream :)
Ter
More information about the antlr-interest
mailing list