[antlr-interest] Another question......
Terence Parr
parrt at cs.usfca.edu
Thu Jun 9 10:25:09 PDT 2005
On Jun 9, 2005, at 2:01 AM, stefan wrote:
> On Thursday 09 June 2005 11:12, Hill, Robert wrote:
>
>> Hi all,,
>> <gasp> another question... :)
>>
>> Im using the stringtemplate as the final code formatting phase of
>> my tool
>> trying to follow the separation of model/view etc, and was
>> wondering if
>> there was anyway of formating the strings in the template, kind of
>> like you
>> would with sprintf?.. What I'd like to do would be something
>> along the
>> lines of
>>
>> $name; separator = "\n"; format = "%.10s"$
>>
>
> At this moment you must format before stick values into the above
> template.
> Something similar with this is on the requests list; please see
> "StringTemplate Bugs, Requests, Changes" section on
> www.stringtemplate.org/bugs.html.
Yup, i plan on adding this very soon. I have a 2.2b2 version; that
feature will make into 2.2b3 locally...i should have something in
early July.
Ter
--
CS Professor & Grad Director, University of San Francisco
Creator, ANTLR Parser Generator, http://www.antlr.org
Cofounder, http://www.jguru.com
More information about the antlr-interest
mailing list