[stringtemplate-interest] Iteration
Terence Parr
parrt at cs.usfca.edu
Tue Aug 4 12:01:13 PDT 2009
hi. you need a new "function" like rest or first etc... not sure how
it'd work. it needs 2 args.
I'd say override setAttribute to wrap all lists with a new object that
knows how to answer .firsthalt and .lasthalf or whatever you need.
T
On Aug 4, 2009, at 11:41 AM, Dustin A. Lambert wrote:
> Ok, I guess I'll give in for now and let the controller segment the
> list...
>
> I tried to build some sort of logic around $i$, but there is nothing
> you can do to conditionally ignore entries based on values of $i$
>
>
> Dustin Lambert
>
>
>
> On Tue, Aug 4, 2009 at 2:38 PM, Terence Parr <parrt at cs.usfca.edu>
> wrote:
>
> On Aug 4, 2009, at 11:26 AM, Dustin A. Lambert wrote:
>
> I've been studying on how to do this to no avail.... Is is possible
> to pass a collection through a renderer?
>
> it would render to text not list of objects i'm afraid.
> T
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20090804/cd5a7045/attachment.html
More information about the stringtemplate-interest
mailing list