[stringtemplate-interest] proposed "ignore newlines" template syntax

Sam Harwell sharwell at pixelminegames.com
Mon Apr 4 11:20:27 PDT 2011


That was my concern.

 

Thinking about it more, it seems you shouldn't need to escape the quotes
unless there are two of them, in which case you could use "\" to produce two
sequential quotes in the output.

 

Sam

 

From: stringtemplate-interest-bounces at antlr.org
[mailto:stringtemplate-interest-bounces at antlr.org] On Behalf Of Collin Fagan
Sent: Monday, April 04, 2011 1:03 PM
To: Terence Parr
Cc: stringtemplate-interest List
Subject: Re: [stringtemplate-interest] proposed "ignore newlines" template
syntax

 

Will using "" require people to escape a single " in a template?

t() ::= "" 
System.out.println(\"hi\");
""
Collin

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20110404/176d47f5/attachment.html 


More information about the stringtemplate-interest mailing list