Mercurial > repos > tabletprog
changeset 275:d83647152485
Added option module which was omitted in commit of SDL work
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 20 Jul 2014 12:34:25 -0700 |
parents | a923b5b7da3d |
children | 9f9cc73bf86d |
files | modules/option.tp |
diffstat | 1 files changed, 17 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/modules/option.tp Sun Jul 20 12:34:25 2014 -0700 @@ -0,0 +1,17 @@ +{ + _none <- #{ + value:none <- :ifval :ifnone { + ifnone: + } + } + #{ + value <- :v { + #{ + value:none <- :ifval :ifnone { + ifval: v + } + } + } + none <- { _none } + } +} \ No newline at end of file