[stringtemplate-interest] nesting templates and getting theloop count of the outer loop
Terence Parr
parrt at cs.usfca.edu
Tue Oct 28 11:35:16 PDT 2008
On Oct 28, 2008, at 7:01 AM, Roel Vanhout wrote:
> To illustrate, I have made a minimal example program. The program and
> template file below produce the output:
>
> Group 0
> Page 0.0
> Page 1.1
> Group 1
> Page 0.0
> Page 1.1
> Page 2.2
correct.
> Whereas I would have expected it to be:
>
> Group 0
> Page 0.0
> Page 0.1
> Group 1
> Page 1.0
> Page 1.1
> Page 1.2
if you pass group_nr = i0 to inner, how could they have different
values?
Ter
More information about the stringtemplate-interest
mailing list