[stringtemplate-interest] start of counter for lists

Terence Parr parrt at cs.usfca.edu
Tue Jul 10 17:29:31 PDT 2007


On Jul 3, 2007, at 1:00 AM, Dieter Frej wrote:

> Hi everybody,
>
> I like the way the counter for lists is realized. Using $i0$ resp.  
> $i1$
> is fairly easy.

Hi Dieter, sorry for the delay.

> I understand that if you want to display the elements 27 to 65 of a
> list, you take care that only these elements are in the list (which  
> you
> want to display).

at the moment, yes.

> With the counters it is only numbered 0 (1) to 37
> (38). I was wondering if there is a possibility to set some kind of
> starting value for the counter? So the numbering is really from 27 to
> 65...

Not at the moment...others have suggested a way to break up  
arrays...oh, you are really needing something to count from a  
particular value.  Adding bug:

http://www.antlr.org:8888/browse/ST-27

Ter


More information about the stringtemplate-interest mailing list