[antlr-interest] patch re composite grammars for ANTLR 3.3 Snapshot
Terence Parr
parrt at cs.usfca.edu
Wed Oct 6 12:31:29 PDT 2010
added bug. thanks!
Ter
http://www.antlr.org/jira/browse/ANTLR-438
On Oct 6, 2010, at 11:51 AM, Scott Warren wrote:
> Jim,
>
> Here is a two-line change to your 3.3 snapshot which will fix the problem with composite grammars that I posted about recently. The issue was that nesting imports more than two deep produced incorrect parsers. I've built and tested the following fix and I'm confident it won't break anything. I'd be grateful if you could incorporate it into the 3.3 release.
>
> CompositeGrammar.java line 277:
> List<Grammar> grammars = subtreeRoot.getPreOrderedGrammarList();
>
> CompositeGrammarTree.java line 139:
> child._getPreOrderedGrammarList(grammars);
>
> Thanks,
>
> skw
More information about the antlr-interest
mailing list