[stringtemplate-interest] Default delimiters in group files.

Zenaan Harkness zen at freedbms.net
Thu Oct 19 04:45:16 PDT 2006


In Java at least, I think there's a standard StringTemplate API call to
change the delimiter - see StringTemplateGroup constructors with "lexer"
argument...

See also DefaultTemplateLexer

HTH
Zen



On Thu, Oct 19, 2006 at 10:03:17AM +0100, John Stovin wrote:
> Hi,
> 
> Is there any way to change the default delimiter used in group files to be
> anything other than '<', '>', '<<', and '>>'? 
> 
> I'm trying to templatize a big XML file, and it's a pain having to escape
> all the XML angle bracket delimiters. I would love to be able to prevent
> StringTemplate from recognizing those sequences, and use something else
> instead.
> 
> ______________________
> John Stovin
> Senior Software Engineer
> 
> mailto:j.stovin at zoo-tech.com   http://www.zoo-tech.com
> t: +44 (0)114 274 3660                  f: +44 (0)114 274 3699	
> 
> ZOOtech Ltd., 20 Furnival Street, Sheffield, S1 4QT, United Kingdom. 
> Company Registration Number: 4197951
> 
> NOTE: This email is private and confidential to the named recipients. Any
> information provided is given in good faith. However, unless specifically
> stated to the contrary, ZOOtech Ltd. accepts no liability for the content of
> this email, or for the consequences of any actions taken on the basis of the
> information provided, unless that information is subsequently confirmed in
> writing.
> © 2006 ZOOtech Ltd.
> 
> 
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org:8080/mailman/listinfo/stringtemplate-interest

-- 
Homepage: www.SoulSound.net -- Free Australia: www.UPMART.org
Please respect the confidentiality of this email as sensibly warranted.


More information about the stringtemplate-interest mailing list