[stringtemplate-interest] nulls & templates...
Hill, Robert
rhill03 at eds.com
Tue Oct 31 23:19:46 PST 2006
Lol, I knew you wouldn't let me down. In that case, I'll rephrase...
How cool _is_ it? I'll tell you.. Damn cool ;)
If this isn't in the wiki, (I didn't see it on the functions page) , I
think I may add it later today.
Cheers!
Rob
Robert Hill
Information Engineer
EDS UKIMEA DWP ACU, Hallamshire Business Park, 100 Napier St,
Sheffield. S11 8HD
email: rhill03 at eds.com
Office: +44 114 291 1928
Mobile: +44 7903 185 516
>-----Original Message-----
>From: stringtemplate-interest-bounces at antlr.org
>[mailto:stringtemplate-interest-bounces at antlr.org] On Behalf
>Of Terence Parr
>Sent: 01 November 2006 02:00
>To: StringTemplate
>Subject: Re: [stringtemplate-interest] nulls & templates...
>
>
>On Oct 31, 2006, at 5:42 PM, Robert Hill wrote:
>
>> Instead of this..
>> <if(mem.explicitSql)><mem.explicitSql><else>:<userType.name><endif>
>>
>> I'd like to do
>> <mem.explicitSql; null=":<userType.name>">
>>
>> Is there anyway you can incorporate templates to be expanded in the
>> null= attribute?
>
>I think null={...} would work.
>
>> Also, in the separator= would be good?
>
>I think you can even do separator=anotherTemplate()
>
>:)
>
>> Since they're strings.... and its.. well, string-template,
>you'd kind
>> of assume it would be a good idea to accept templates
>anywhere string
>> are accepted right? What with all this recursive-mumbo-jumbo.. :)
>
> you are speaking my language man!
>
>> How cool would that be?. I'll tell you. Damn cool.
>
> it's already cool... try it! ;)
>
>> Its late. Im off to bed, cos someone's going to point out the syntax
>> is wrong, and it already does it.
>
>yep! ;)
>
> one of the things that people like is the uniformity of ST :)
>
>Ter
>_______________________________________________
>stringtemplate-interest mailing list
>stringtemplate-interest at antlr.org
>http://www.antlr.org:8080/mailman/listinfo/stringtemplate-interest
>
More information about the stringtemplate-interest
mailing list