[antlr-interest] Bug using scopes, rule parameters, java code gen

Curtis Clauson NOSPAM at TheSnakePitDev.com
Fri Nov 9 19:11:35 PST 2007


Terence Parr wrote:
>> The argument to a rule is a reference to local or scoped attribute, 
>> and not target code. So you can refer to the named attribute within 
>> the scope, but you cannot use target language syntax like a Java 
>> method call.
> 
> you can, just a bug in this case.
> Added bug:
> 
> http://www.antlr.org:8888/browse/ANTLR-194

So the text within the rule argument and return '[' ... ']' brackets is 
action text? Kewl. Should make things easier when fixed. Thanks for the 
correction.

-- Curtis



More information about the antlr-interest mailing list