[stringtemplate-interest] [ST4] Introduce Boolean literals (e.g. true/false)?
Udo Borkowski
ub at abego-software.de
Thu Feb 3 10:28:41 PST 2011
How about adding two literals "true" and "false" to the grammar of ST4, refering to the Boolean.TRUE and FALSE?
I would like to use these as default values.
E.g.
myTemplate(withPrefix=true, withLog=false) ::= …
I found no nice way to express something like this. How do others work around this?
Udo
More information about the stringtemplate-interest
mailing list