[antlr-interest] % in target code

Terence Parr parrt at cs.usfca.edu
Wed Mar 26 15:25:34 PDT 2008


Use \% as it's the ST operator.
Ter
On Mar 26, 2008, at 2:38 PM, Olivier Lefevre wrote:
> I was using % (residue operator in Java) in an action block and got:
>
>   error(146): invalid StringTemplate % shorthand syntax: '%'
>
> What gives?? Why does ANTLR even try to parse the code within an  
> action block? It has no business to: target is target code.
>
> -- O.L.
>



More information about the antlr-interest mailing list