[antlr-interest] Antlr 3 doesn't like '%' operator in actions?
Terence Parr
parrt at cs.usfca.edu
Thu Jun 21 17:33:16 PDT 2007
On Jun 22, 2007, at 4:12 AM, Jim Idle wrote:
>> Be aware that there are some lexer-related cases in which even
>> escaping the special characters doesn't work (see <http://
>> www.antlr.org/pipermail/antlr-interest/2007-June/021212.html>).
>
> This isn't what you think it is. It isn't a string template
> reference, it is because the search for $reference in the action
> code is being applied to that @lexer::header text for some reason,
> but not to the @header text. I thinks you are trying to reference
> $Id and then gives an error that you are trying to reference this
> outside a rule.
>
> This probably needs a bug report Ter?
added
http://www.antlr.org:8888/browse/ANTLR-150
Ter
More information about the antlr-interest
mailing list