[stringtemplate-interest] another tweak

Terence Parr parrt at cs.usfca.edu
Sat Jul 11 13:13:10 PDT 2009


changes for today:

07-11-2009

o If default arg is a template with single expression wrapped in  
parens, x={<(...)>},
   then eval to string rather than setting x to the template for later  
eval. Useful
   in rare cases where the expression can change value when you read  
it, such as
   accessing time value or random number generator object.

o Added line break operator <\\>. It consumes remaining whitespace on  
that line, the first
and then any whitespace. Added a number of unit tests. example:

   "foo <\\>
        bar"

   emits "foo bar". All of the whitespace after the <\\> gets thrown  
away like a comment.



More information about the stringtemplate-interest mailing list