[antlr-interest] Strange bug in ANTLR version higher than 3.1.2
jimi at temporal-wave.com
Thu Nov 5 08:04:14 PST 2009
You also need to fix your ruleid and parameter references to make sure that they use $xxx and not just xxx. You are getting lucky with these at the moment, but that won't always be the case :-)
> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of FranklinChen at cmu.edu
> Sent: Wednesday, November 04, 2009 10:19 PM
> To: Sam Harwell
> Cc: antlr-interest at antlr.org
> Subject: Re: [antlr-interest] Strange bug in ANTLR version higher than
> > For the 3.2 version, try changing this:
> > CommonTreeNodeStream nodes = new CommonTreeNodeStream(tree);
> > To this:
> > BufferedTreeNodeStream nodes = new BufferedTreeNodeStream(tree);
> This works!
> I also verified that making this simple change also works when I make
> it in the driver for my large program that uses a lot of manual tree
> restructuring similar to the test case I created.
> Thank you very much! Can you explain to me why the discrepancy when
> moving from 3.1.2 to 3.1.3/3.2?
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-
More information about the antlr-interest