[antlr-interest] Tree grammar example, redux

J. Stephen Riley Silber jsrs701 at yahoo.com
Thu Jun 11 11:49:11 PDT 2009


Finally got around to trying this and it worked like a champ.  Thanks, Ter.

--- On Tue, 6/2/09, Terence Parr <parrt at cs.usfca.edu> wrote:

From: Terence Parr <parrt at cs.usfca.edu>
Subject: Re: [antlr-interest] Tree grammar example, redux
To: "J. Stephen Riley Silber" <jsrs701 at yahoo.com>
Cc: antlr-interest at antlr.org
Date: Tuesday, June 2, 2009, 4:27 PM


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090611/03eb1e1b/attachment.html 


More information about the antlr-interest mailing list