Mercurial > urweb
diff src/elab_util.sml @ 149:7420fa18d657
Record cut
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 24 Jul 2008 10:09:21 -0400 |
parents | e3041657d653 |
children | 34ccd7d2bea8 |
line wrap: on
line diff
--- a/src/elab_util.sml Tue Jul 22 19:12:25 2008 -0400 +++ b/src/elab_util.sml Thu Jul 24 10:09:21 2008 -0400 @@ -292,6 +292,16 @@ S.map2 (mfc ctx rest, fn rest' => (EField (e', c', {field = field', rest = rest'}), loc))))) + | ECut (e, c, {field, rest}) => + S.bind2 (mfe ctx e, + fn e' => + S.bind2 (mfc ctx c, + fn c' => + S.bind2 (mfc ctx field, + fn field' => + S.map2 (mfc ctx rest, + fn rest' => + (ECut (e', c', {field = field', rest = rest'}), loc))))) | EFold k => S.map2 (mfk k,