[antlr-interest] Reverse Iterate over String Template
Dave Dutcher
dave at tridecap.com
Wed Jun 3 08:53:10 PDT 2009
I am new to string template too, but I don't think there is anyway to apply
a template to a multi valued attribute in reverse. Its easy to work around
though, just reverse your data before you add it to the string template
object. You can use Array.Reverse() for arrays and lists have a Reverse()
member to reverse their contents.
There is a stringtemplate list too, which is probably a better place for
questions.
Dave
_____
From: antlr-interest-bounces at antlr.org
[mailto:antlr-interest-bounces at antlr.org] On Behalf Of Christian Schladetsch
Sent: Tuesday, June 02, 2009 11:10 PM
To: antlr-interest at antlr.org
Subject: [antlr-interest] Reverse Iterate over String Template
Hello,
Sorry if this is to the wrong list; but I know that the ST folks are here
too.
Is there a way to iterate over a string template in reverse order? If not,
can anyone point me to a work-around for C# target?
Thanks in advance,
Christian.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090603/3d19bf8c/attachment.html
More information about the antlr-interest
mailing list