[antlr-interest] mutual recursion in tree grammars

Terence Parr parrt at cs.usfca.edu
Tue Dec 21 20:15:06 PST 2010


Well, i use LL(*) to parse the tree so same rules apply.

a : b ;
b : a ;

Ter
On Dec 21, 2010, at 8:13 PM, Matthew Wilson wrote:

> Hi,
> 
> I was wondering why I'm getting the mutual recursion error in my tree
> grammar (antlrworks 1.4.2).  Why would left recursion (mutual/indirect or
> direct) matter at all in a tree grammar?  (How could there be referential
> cycles in the tree?)
> 
> Thanks,
> Matthew Wilson
> diakopter at gmail.com
> 
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address



More information about the antlr-interest mailing list