[antlr-interest] On to the next issue: error(211)
Gavin Lambert
antlr at mirality.co.nz
Mon Nov 10 11:45:47 PST 2008
At 00:33 11/11/2008, Hendrik Maryns wrote:
>error(211): fsqTreeParser.g:68:3: [fatal] rule body has
non-LL(*)
>decision due to recursive rule invocations reachable from alts
>3,5. Resolve by left-factoring or using syntactic predicates or
>using backtrack=true option.
[...]
>body returns [Formula result]
> : label { $result = $label.result; }
> | atomic { $result = $atomic.result; }
> | unary { $result = $unary.result; }
> | binary { $result = $binary.result; }
> | n_ary { $result = $n_ary.result; }
> | quantor { $result = $quantor.result; }
> ;
>
>Indeed, the unary, binary, n_ary and quantor rules (indirectly)
>refer to formula:
It's unlikely that this would be the problem, or at least not
directly. It's more likely an issue with your AST structure being
too ambiguous.
Can you post your unary, binary, and n_ary rules (and any subrules
they refer to)?
More information about the antlr-interest
mailing list