[antlr-interest] Re: Semantic predicates that aren't & hoisting

Monty Zukowski monty at codetransform.com
Fri Mar 11 09:40:07 PST 2005


David Jung wrote:

> exprList : LCURLY ( exprListOrStmt )* RCURLY ;
> exprListOrStmt : (RCURLY)=>exprList | expr SEMI ;

Shouldn't that be
exprListOrStmt : (LCURLY)=>exprList | expr SEMI ;

Give that a try and see if it works.

Monty


More information about the antlr-interest mailing list