[stringtemplate-interest] Re: [antlr-dev] length of bitset
available?
Terence Parr
parrt at cs.usfca.edu
Sat Jan 21 13:01:04 PST 2006
On Jan 21, 2006, at 12:56 PM, Kay Roepke wrote:
>
> On 21. Jan 2006, at 21:48 Uhr, Terence Parr wrote:
>
>> Ok, i see what you need..how about if I pass you the length for now?
>
> That sounds reasonable. Indeed I think it wouldn't be a problem to
> always make the length
> accessible for multi-valued attributes, would there?
None that I could think of. It then begs the question: what if I
need number of bytes not words? YOu'll want to be able to multiply
by 4. This is fine as long as it's a function of a length versus
attribute property. BUT, it opens up the syntax to general arith.
expr and I then need to do analysis to figure out if you are doing
salary*4.
> As long as there's no way of doing computations,
> it might shouldn't do any harm and be useful, too, for, say, page
> flippers on web pages or so.
Yup...i intend to add to 2.3; is it a function like <length(names)>
like first(), rest()? Seems like. I don't think <names.length> is
right nor <names:length()>.
Ter
More information about the stringtemplate-interest
mailing list