[antlr-interest] Weird problem with semantic predicates. Incorrect warning message
Gavin Lambert
antlr at mirality.co.nz
Tue Apr 28 05:47:54 PDT 2009
At 00:10 29/04/2009, Gabriel Petrovay wrote:
>pm_Expr
> : p_ExprSingle EOF
> ;
[...]
>p_IfExpr
> : IF LPAREN pm_Expr RPAREN
> ;
[...]
>p_EnclosedExpr
> : LBRACKET pm_Expr RBRACKET
> ;
While I don't have a direct answer to your question, I did notice
the above: you're telling it you're expecting EOFs followed by
other tokens. That's never going to work.
More information about the antlr-interest
mailing list