[antlr-interest] Bug with Java Module Operator

Gavin Lambert antlr at mirality.co.nz
Tue May 8 14:17:40 PDT 2007


At 09:08 9/05/2007, Scott Fortmann-Roe wrote:
 >Using AST rewrite rules, the following throws an error:
 >
 >(op+='!'|'not')* negationExpr 	-> {$op != null && ($op.size() %
 >2)==1}? ^(NOT negationExpr)
 >
 >Something about invalid string template shorthand '%'.

Are you sure you're allowed to put semantic predicates there?  It 
looks like it ought to be before the arrow (which would make it a 
validation predicate).



More information about the antlr-interest mailing list