[antlr-interest] mutual recursion in tree grammars

Terence Parr parrt at cs.usfca.edu
Tue Dec 21 21:08:40 PST 2010


> rule1 : rule3 ;
> rule2 : rule3 'a'* ; // some transformation using the 'a's
> rule3 : rule2? rule2* 'b'* ; // some transformation using the 'b's

rule1 -> rule3 -> rule2 -> rule3 is infinite recursion though right?

Ter


More information about the antlr-interest mailing list