[stringtemplate-interest] Help with recursive template application

Terence Parr parrt at cs.usfca.edu
Sun Aug 23 13:01:37 PDT 2009


On Aug 21, 2009, at 6:40 AM, Vincent Dupuis wrote:
> classDeclaration(iter, parent) ::= <<
> class <iter.name> : public <parent>
> {
>     <iter.listOfSubClasses:classDeclaration(parent=iter.name,  
> iter=it); separator="\n">
> }
> >>

I just remember. "it" is created in the ":" operation but is not yet  
available when the args are evaluated. so "it" in this case does not  
refer to the  listOfSubClasses:classDeclaration iteration.
Ter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20090823/f9bb6fff/attachment.html 


More information about the stringtemplate-interest mailing list