[stringtemplate-interest] For Humans
Terence Parr
parrt at cs.usfca.edu
Tue Aug 7 10:28:42 PDT 2007
On Aug 7, 2007, at 10:20 AM, Barnes, Jeff wrote:
> I like to talk to myself when I use vi. :)
>
> $myList,anotherList:{myListItem, anotherListItem |
> ...
> };separator="\n"$
>
> I say "For each item in myList and the item at the same index in
> anotherList, lets call the item in myList myListItem, the item in
> anotherList anotherListItem and substitute their values in this
> template
> area in place of their markers as follows
>
> ...
>
> We'll separate each iteration with a new line.
>
> How would you say it?
I usually say iterate across myList and anotherList in parallel,
applying the anonymous templates with iterator attributes...
Ter
More information about the stringtemplate-interest
mailing list