[antlr-interest] Newbie Ques: How to remove mutual left-recursion among rules

Sandeep Gupta sandy.pec at gmail.com
Thu Sep 7 01:31:12 PDT 2006


I have the following rules, which throw a mutual left-recursion with other
rules. I am unable to figure out how to solve this problem.

fragment choiceLists
    :    cp ( '|' contentParticle )+
    ;

fragment sequenceLists
    :    contentParticle ( ',' contentParticle)*
    ;

fragment contentParticle
    :    (name | choiceLists | sequenceLists) Qualifier?
    ;


- Sandeep
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20060907/67c9c025/attachment.html 


More information about the antlr-interest mailing list