[stringtemplate-interest] ST new feature request: new expression option: test="..."

Terence Parr parrt at cs.usfca.edu
Sun Apr 20 13:01:55 PDT 2008


On Apr 20, 2008, at 4:28 AM, Zenaan Harkness wrote:
> 3) With the proposed "test" expression option:
>
> params(atts) ::= "(<atts:prop(); separator=\",\n\", test= 
> \"it.hasSetter\">)"
>
> Yes, now that's clean and elegant, intuitive and Just Works (TM)  :)
>
> What do others think about such an expression option?

how about

> params(atts) ::= "(<atts:{a | <if(a.hasSetter)><prop(it=a)><endif>;  
> separator=\",\n\")"

Ter


More information about the stringtemplate-interest mailing list