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-boun...@antlr.org
[mailto:antlr-interest-boun...@antlr.org] On Behalf Of Christian Schladetsch
Sent: Tuesday, June 02, 2009 11:10 PM
To: antlr-inter...@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.




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to il-antlr-interest@googlegroups.com
To unsubscribe from this group, send email to 
il-antlr-interest+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

Reply via email to