[stringtemplate-interest] Creating new attributes?
Morten Olav Hansen
mortenoh at gmail.com
Thu Nov 18 12:47:37 PST 2010
Ah, finally. Works like a charm. thanks!
--
Morten
On Thu, Nov 18, 2010 at 8:03 PM, Terence Parr <parrt at cs.usfca.edu> wrote:
>
> 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