[antlr-interest] Bug with Java Module Operator

Jim Idle jimi at temporal-wave.com
Tue May 8 14:11:09 PDT 2007


Use \% not % which is an instruction for stringtemplates :-)

Jim

> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Scott Fortmann-Roe
> Sent: Tuesday, May 08, 2007 2:08 PM
> To: ANTLR Interest
> Subject: [antlr-interest] Bug with Java Module Operator
> 
> 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 '%'.
> 
> ANTLR 3.0b7.
> 
> Looks like a bug.
> 
> -Scott
> 
> --
> Scott Fortmann-Roe
> 500 College Ave
> Swarthmore, Pa 19081
> (510) 866-5296


More information about the antlr-interest mailing list