[stringtemplate-interest] 1, 2, and 3
Andy Sipe
ajs.general at gmail.com
Wed May 6 11:42:00 PDT 2009
<sorry for the direct reply Sam, stupid reply button>
I'm trying out the 3.5 compatible versions that you listed below. So far it
has greatly helped with some generic collection problems I was having with
the previous version. Thanks!
I'm curious when this version might be released as a 'real' version?
Thanks -andy
On Mon, May 4, 2009 at 7:54 AM, Sam Harwell <sharwell at pixelminegames.com>wrote:
> Hi Ed,
>
> Trunc is implemented in my newer build of the C# port of StringTemplate.
> If you're using .NET Framework 3.5, you can use my latest build of the
> library. It's up-to-date with the latest Java version, but I'm sure it
> has some remaining bugs. I'm using it with the C# port of the ANTLR tool
> for grammar code generation, and since it uses ANTLR v3 grammars to
> parse the templates, I keep a set of bootstrap binaries built while I
> work. You can download the following files if you want to use it:
>
> http://fisheye2.atlassian.com/browse/~raw,r=6024/antlrcs/bin/Bootstrap/A<http://fisheye2.atlassian.com/browse/%7Eraw,r=6024/antlrcs/bin/Bootstrap/A>
> ntlr3.Runtime.dll
> http://fisheye2.atlassian.com/browse/~raw,r=6024/antlrcs/bin/Bootstrap/A<http://fisheye2.atlassian.com/browse/%7Eraw,r=6024/antlrcs/bin/Bootstrap/A>
> ntlr3.Runtime.Debug.dll
> http://fisheye2.atlassian.com/browse/~raw,r=6024/antlrcs/bin/Bootstrap/A<http://fisheye2.atlassian.com/browse/%7Eraw,r=6024/antlrcs/bin/Bootstrap/A>
> ntlr3.StringTemplate.dll
>
> I'm very interested in feedback on how it works out. :)
>
> Thank you,
> Sam Harwell
>
> -----Original Message-----
> From: stringtemplate-interest-bounces at antlr.org
> [mailto:stringtemplate-interest-bounces at antlr.org] On Behalf Of Ed
> MacDonald
> Sent: Monday, May 04, 2009 6:44 AM
> To: 'Terence Parr'
> Cc: stringtemplate-interest at antlr.org
> Subject: Re: [stringtemplate-interest] 1, 2, and 3
>
>
> Thanks Terence. It appears trunc wasn't implemented in the C# port of
> 3.0.1. (The method is defined but returns null).
>
> FYI...
> Here is where I had been reading about first, last, and rest with no
> mention
> of trunc:
> http://www.antlr.org/wiki/display/ST/Expressions
>
> I also see reference to a "tail" function, but no description of what it
> does other than to say "tail of a single-valued attribute yields the
> same as
> first, the attribute value".
>
> -Ed
>
>
>
> -----Original Message-----
> From: Terence Parr [mailto:parrt at cs.usfca.edu]
> Sent: May-03-09 7:56 PM
> To: Ed MacDonald
> Cc: stringtemplate-interest at antlr.org
> Subject: Re: [stringtemplate-interest] 1, 2, and 3
>
> that is a damn good question. normally we do the first one different
> not the last. OH. trunc(foo). I am adding to the cheat sheet. ooop.s
> Ter
> On May 2, 2009, at 6:50 PM, Ed MacDonald wrote:
>
> >
> > I'm trying to figure out how to apply a different treatment to the
> > last element in a multi-valued attribute. This seems like it would
> > be a pretty common use case, but I haven't been able to find how to
> > do it. The first(), last(), and rest() family of functions seemed
> > like it would do the trick but unfortunately rest() includes last().
> >
> > So I can do this: 1 and 2, 3.
> > But not this: 1, 2, and 3.
> >
> > Any suggestions?
> >
> > Thanks,
> > -Ed
> > _______________________________________________
> > stringtemplate-interest mailing list
> > stringtemplate-interest at antlr.org
> > http://www.antlr.org/mailman/listinfo/stringtemplate-interest
>
>
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org/mailman/listinfo/stringtemplate-interest
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org/mailman/listinfo/stringtemplate-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20090506/189ded27/attachment.html
More information about the stringtemplate-interest
mailing list