[stringtemplate-interest] List of used Attributes from ST without formal parameters

Dreyer Ulf (CR/APA3) Ulf.Dreyer at de.bosch.com
Thu Feb 22 05:01:47 PST 2007


Hi,


Is there any way to ask a template for a list of all the Attributes it uses?
I'd like to check template-chunks for required variables:

Example: 

>From "$log.length$"
I would like to get   'log.length', or possibly [log,log.length]

more complicated:
"$logs:{u| $u.name - u.length$}$  --> [logs, logs.name, logs.length]

Is there any way to do this besides writing another parser.
This seems such a waste because ST already contains a lot of 
the needed mechanisms.

Thans a lot,

Ulf

P.S.: (Using StringTemplate for C#  3.0.1)


-- 
Dipl. Inf. Ulf Dreyer
Robert Bosch GmbH
Zentralbereich Forschung und Vorausentwicklung
Software und Systemengineering in der Fertigungsautomatisierung CR/APA3
Postfach 30 02 40  D-70442 Stuttgart
Tel.: 0711/811- 34365
Fax:  0711/811-518 34365
eMail: ulf . dreyer at de . bosch . com

Robert Bosch GmbH, Sitz: Stuttgart, Registergericht: Amtsgericht Stuttgart HRB 14000 Aufsichtsratsvorsitzender: Hermann Scholl; Geschäftsführung: Franz Fehrenbach, Siegfried Dais; Bernd Bohr, Wolfgang Chur, Rudolf Colm, Gerhard Kümmel, Wolfgang Malchow, Peter Marks; Volkmar Denner, Peter Tyroller.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org:8080/pipermail/stringtemplate-interest/attachments/20070222/08d404aa/attachment.html 


More information about the stringtemplate-interest mailing list