Mercurial > repos > tabletprog
view modules/option.tp @ 350:a3b06d53bcb9
Make il and x86 modules cope with dict hash instead of dict linear for the program definition
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 10 Apr 2015 01:19:46 -0700 |
parents | fd4e0bf5bd9f |
children |
line wrap: on
line source
{ _none <- #{ value:none <- :ifval :ifnone { ifnone: } value <- :ifval { self } value? <- { false } none? <- { true } } #{ value <- :v { #{ value:none <- :ifval :ifnone { ifval: v } value <- :ifval { option value: (ifval: v) } value? <- { true } none? <- { false } } } none <- { _none } } }