[stringtemplate-interest] ST 3.2 question, passing params through iteration
Terence Parr
parrt at cs.usfca.edu
Thu May 3 07:54:04 PDT 2012
Hi Monty. hmm…this is correct:
> $outputs:{it | $outputMethod(it, parentName)$};separator="\n"$
what is the error? have you tried (it, …)?
Ter
On May 2, 2012, at 2:41 PM, Monty Zukowski wrote:
> I've got a list called outputs, and I want to have the outputMethod()
> applied to it, but I have another attribute from the enclosing
> template I would like to pass to each invocation of outputMethod.
>
> The template to call is like this:
>
> outputMethod(var, parentName)::=<<
> ...
>>>
>
> I'm trying to invoke it over the outputs list:
>
> $outputs:{it | $outputMethod(it, parentName)$};separator="\n"$
>
> or
>
> $outputs, parentName:{it | $outputMethod(it, parentName)$};separator="\n">
>
>
> I can't figure out the correct syntax for this. I've tried a number
> of different things. Any ideas?
>
> Thanks,
>
> Monty
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org/mailman/listinfo/stringtemplate-interest
More information about the stringtemplate-interest
mailing list