[antlr-interest] error(211)

Martin Kohl martin.kohl at gmail.com
Mon Aug 6 01:39:43 PDT 2007


Hi all,

I've stumbled upon an error:
error(211): Expr.g:490:3: [fatal] rule rule_name has non-LL(*) decision due
to recursive rule invocations reachable from alts 1,4.  Resolve by
left-factoring or using syntactic predicates or using backtrack=true option.

I've had this error in a few other places and I resolved it by setting the
backtrack=true option. However this doesn't work for this rule:
        (    expression ','
        |    '*' ','
        |    ','
        )*
        expression ':'

The Line Reference of the error message points to the second expression. If
I remove the * or the second expression the error is resolved.

I'd be very grateful for any advice as to how to resolve this problem.
Kind Regards,
Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070806/00be6728/attachment-0001.html 


More information about the antlr-interest mailing list