[antlr-interest] Trying to resolve mutual left-recursion

Jeremy Sheldon Jeremy.Sheldon at 90degreesoftware.com
Wed Sep 26 16:02:08 PDT 2007


Hi everyone,

 

I'm new to Antlr and have come up against mutual left-recursion for the
first time.  Despite doing some googling, I'm still struggling to try
and remove it.  Would anyone be kind enough to give me some pointers?

 

Here are the culprits:

 

query_expression

                : joined_table    

                |  non_join_query_expression;

                

non_join_query_expression

                :  non_join_query_term

                |  query_expression (UNION ALL | EXCEPT ALL)?
corresponding_spec? query_term;

 

Thanks in advance for your help,

Jeremy

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070926/dbb66b56/attachment.html 


More information about the antlr-interest mailing list