[antlr-interest] % in target code
Terence Parr
parrt at cs.usfca.edu
Wed Mar 26 16:37:36 PDT 2008
On Mar 26, 2008, at 4:30 PM, Olivier Lefevre wrote:
> It gets weirder, though. If I use % within an @lexer::members block
> instead of within an action block I get
>
> invalid StringTemplate % shorthand syntax: '%'
>
> and I try to use \% instead then I get
>
> invalid StringTemplate % shorthand syntax: '%'
> invalid StringTemplate % shorthand syntax: '%'
>
> Any idea?
freaky. Hmm...i remember some of that stuff using a template and some
using a string within a template in the output. OH! It's copying the
action to the lexer and then running antlr again! crap. try \\% please.
Thanks,
Ter
More information about the antlr-interest
mailing list