[antlr-interest] Passing RuleReturnScope as argument

Indhu Bharathi indhu.b at s7software.com
Mon Mar 16 06:26:15 PDT 2009


Hi, 

Is it not possible to pass an instance of RuleReturnScope as argument to a function? With the following sample, I get the error message 'missing attribute access on rule scope'. Curious to know the reason for this limitation... or am I missing something? Is there a workaround? 

foo : bar1 lbl=bar2 bar3 
{ 
$lbl.start.setText("asdf"); //valid 
act( $lbl ); //invalid 
} 

Thanks, Indhu 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090316/09ec8754/attachment.html 


More information about the antlr-interest mailing list