Hi Janico, you are the one that creates the string template group and passes it 
to the parser. so, it will use whatever you give it. That way, your templates 
can use whichever  delimiter.
Ter
On Feb 8, 2010, at 9:22 AM, Janico Greifenberg wrote:

> Hi,
> 
> I'm trying to write an ANTLR3 grammar that generates HTML output using
> StringTemplate. To avoid having to escape all the HTML tags in the
> template rules (e.g. \<p\><variable>\</p\>), I'd prefer to use dollar
> as the delimiter for StringTemplate (e.g. <p>$variable$</p>).
> 
> While the latter seems to be the default when StringTemplate is used
> on its own, the parser code generated by ANTRL always uses
> AngleBracketTemplateLexer when initializing StringTemplate.
> 
> How can I get ANTLR to generate code using DefaultTemplateLexer (i.e.
> the variant that uses dollar as the delimiter)?
> 
> Janico
> 
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: 
> http://www.antlr.org/mailman/options/antlr-interest/your-email-address


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to