[antlr-interest] Weird problem with semantic predicates. Incorrect warning message

Gabriel Petrovay gabriel.petrovay at 28msec.com
Tue Apr 28 05:54:58 PDT 2009


Hi,

That is true, but that only happened while I was trimming the huge
grammar down to this example. That correction does not solve the
problem. But thanks for the tip.

Any ideas?

Regards,
Gabriel

On Tue, Apr 28, 2009 at 2:47 PM, Gavin Lambert <antlr at mirality.co.nz> wrote:
> 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.
>
>



-- 
MSc Gabriel Petrovay
MCSA, MCDBA, MCAD
Mobile: +41(0)787978034


More information about the antlr-interest mailing list