[stringtemplate-interest] whitespace removal
Terence Parr
PARRT at antlr.org
Mon Oct 12 17:38:46 PDT 2009
yeah, makes sense...can you imagine me having to fix all those antlr
gen templates? gack.
Ter
On Oct 12, 2009, at 5:37 PM, John D. Mitchell wrote:
> Yes! If you don't then I'll come over and beat you!
>
> :-),
> John
>
> On Oct 12, 2009, at 17:34 , Terence Parr wrote:
>
>> yo, i trim whitespace at the start and end of templates. easier to
>> add
>> \n and spaces in calling templates rather than trying to get rid of
>> it. Even in small templtes it makes sense:
>>
>> <names:{n | <n>}>
>>
>> You don't want the space between | and <n> to appear in output.
>>
>> That means I would keep the "trim ws rule" in v4 as i have in v3.
>>
>> Ter
>> _______________________________________________
>> stringtemplate-interest mailing list
>> stringtemplate-interest at antlr.org
>> http://www.antlr.org/mailman/listinfo/stringtemplate-interest
>
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org/mailman/listinfo/stringtemplate-interest
More information about the stringtemplate-interest
mailing list