Mercurial > urweb
diff src/mono_util.sml @ 387:7abb28e9d51f
Binops; equality tested on int; lame 404 substitute
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Tue, 21 Oct 2008 09:50:19 -0400 |
parents | e976b187d73a |
children | bb27c7efcd90 |
line wrap: on
line diff
--- a/src/mono_util.sml Sun Oct 19 16:49:09 2008 -0400 +++ b/src/mono_util.sml Tue Oct 21 09:50:19 2008 -0400 @@ -175,6 +175,17 @@ fn e' => (EAbs (x, dom', ran', e'), loc)))) + | EUnop (s, e) => + S.map2 (mfe ctx e, + fn e' => + (EUnop (s, e'), loc)) + | EBinop (s, e1, e2) => + S.bind2 (mfe ctx e1, + fn e1' => + S.map2 (mfe ctx e2, + fn e2' => + (EBinop (s, e1', e2'), loc))) + | ERecord xes => S.map2 (ListUtil.mapfold (fn (x, e, t) => S.bind2 (mfe ctx e,