[antlr-interest] StringTemplate : delimter other than dollar sign?

Andrew Deren andrew at adersoftware.com
Sat Dec 31 15:29:50 PST 2005


Paul,
You can try using my TemplateEngine which uses #.
It's primary use for HTML (but can be used in other scenarios) and you can
use homesite from macromedia that supports # (as TemplateEngine syntax is
based on cold fusion).
You can find it at:
http://www.adersoftware.com/index.cfm?page=templateEngine2

-----Original Message-----
From: antlr-interest-bounces at antlr.org
[mailto:antlr-interest-bounces at antlr.org] On Behalf Of Paul Whitaker
Sent: Friday, December 30, 2005 7:45 AM
To: luisl at scarab.co.za; antlr-interest at antlr.org
Subject: RE: [antlr-interest] StringTemplate : delimter other than dollar
sign?

Luis,

Thanks for the reply and the tip! I will try that, although it still may not
be effective since I am working within an HTML editor. This gives me hope
that there's potential to change the symbol though. It would appear that I
could create a new Lexer for, say, the pound symbol as a delimiter... Any
tips on getting started with that, before I dive in? I've never worked with
Antlr before this project.

Thanks again!
Paul

-----Original Message-----
From: Luis Leal [mailto:luisl at scarab.co.za] 
Sent: Thursday, December 29, 2005 3:36 PM
To: pwhitaker at autobase.net; antlr-interest at antlr.org
Subject: RE: [antlr-interest] StringTemplate : delimter other than dollar
sign?

Hi Paul,

You can use angle brackets instead of dollar signs. Use the following
constructor:

StringTemplateGroup group = new StringTemplateGroup("sqlstuff", "/tmp",
typeof(AngleBracketTemplateLexer));

Regards

Luis

-----Original Message-----
From: pwhitaker at autobase.net [mailto:pwhitaker at autobase.net]
Sent: 29 December 2005 08:55 PM
To: antlr-interest at antlr.org
Subject: [antlr-interest] StringTemplate : delimter other than dollar sign?


I'm using the C# port of StringTemplate. Working this library into a auto
sales project, the dollar sign is not a good choice due to frequent currency
references. I've noticed the symbol seems to be interwoven in the template
code. Has anybody changed this character? Is there an effective way to make
sure that I change it in all the right places? I would like to try the pound
symbol instead (#).

Thanks,
Paul Whitaker






More information about the antlr-interest mailing list