[stringtemplate-interest] proposed "ignore newlines" template syntax
Terence Parr
parrt at cs.usfca.edu
Mon Apr 4 11:25:36 PDT 2011
Quote is pretty common. hmm...let me try avoiding escape for single ".
Ter
On Apr 4, 2011, at 11:20 AM, Sam Harwell wrote:
> 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
>
>
More information about the stringtemplate-interest
mailing list