[antlr-interest] Reverse Iterate over String Template

Terence Parr parrt at cs.usfca.edu
Wed Jun 3 11:34:29 PDT 2009


I could have sworn there was a reverse...crap. not there. adding to  
list for new version.
Ter

On Jun 3, 2009, at 8:53 AM, Dave Dutcher wrote:

> 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.
>
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address



More information about the antlr-interest mailing list