[stringtemplate-interest] Creating new attributes?
Terence Parr
parrt at cs.usfca.edu
Thu Nov 18 11:03:28 PST 2010
On Nov 17, 2010, at 8:13 PM, Morten Olav Hansen wrote:
> Ah, ok.. that makes sense. So is it possible to assign this attribute
> to something else before entering the iteration-loop? or do you have
> an idea of a workaround?
Well, yeah, with another template def. ;) Basically don't let i0 come into region_n as implicit i0. try:
<regions:region_n(j=i0)>
wait. j won't iterate as arg. try
<regions:{ r | <region_n(reg=r,j=i0)>}>
then def reg, j in region_n
T
More information about the stringtemplate-interest
mailing list