[stringtemplate-interest] Replacing double quotes by single quotes in output strings?
Jim Idle
jimi at temporal-wave.com
Tue Dec 15 12:59:19 PST 2009
Not sure what you are asking for to be honest. Are just wanting to escape characters? Do you mean StringTemplate and not ANTLR? If you means StringTemplate then perhaps you need a renderer method, but generally you should do such replacements in the model and not in the template.
Jim
> -----Original Message-----
> From: stringtemplate-interest-bounces at antlr.org [mailto:stringtemplate-
> interest-bounces at antlr.org] On Behalf Of Thierry Coq
> Sent: Tuesday, December 15, 2009 12:52 PM
> To: stringtemplate-interest at antlr.org
> Subject: [stringtemplate-interest] Replacing double quotes by single
> quotes in output strings?
>
> Hello,
>
> is it possible to replace a double-quoted string, for example "HS" by
> single quotes: 'HS', and double single quotes when needed: for example:
> "'='" becomes '''=''', in the ANTLR code generator?
>
> I'm looking for a regexp, but I can't seem to find it.
>
> Best regards,
> Thierry
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org/mailman/listinfo/stringtemplate-interest
More information about the stringtemplate-interest
mailing list