[stringtemplate-interest] Fail on undefined property

Terence Parr parrt at cs.usfca.edu
Fri Jul 31 13:02:46 PDT 2009


On Jul 31, 2009, at 1:01 PM, John D. Mitchell wrote:

> Howdy,
>
> I haven't followed this thread too closely but in terms of  
> optionality, one trick would be to add syntactic support for  
> something like:
> <x?> or <x!>

  that could work but I would prefer to have it on the parameter  
definitions not the usage:

mytemplate(firstname, lastname?) ::= "..."


Ter


More information about the stringtemplate-interest mailing list