[prev in list] [next in list] [prev in thread] [next in thread]
List: stringtemplate-interest
Subject: Re: [stringtemplate-interest] Creating new attributes?
From: Morten Olav Hansen <mortenoh () gmail ! com>
Date: 2010-11-18 20:47:37
Message-ID: AANLkTimKua9E23mHiwZaR-fBqAcz5A2p1f5=8pw5mzMN () mail ! gmail ! com
[Download RAW message or body]
Ah, finally. Works like a charm. thanks!
--
Morten
On Thu, Nov 18, 2010 at 8:03 PM, Terence Parr <parrt@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
>
>
>
>
>
>
_______________________________________________
stringtemplate-interest mailing list
stringtemplate-interest@antlr.org
http://www.antlr.org/mailman/listinfo/stringtemplate-interest
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic