summaryrefslogtreecommitdiff
path: root/src/mono_util.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-06-22 10:12:23 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-06-22 10:12:23 -0400
commitf3ddf9922b90bdd45ca5b1c33c72ff316d5440eb (patch)
tree01bca0e1718350a2e4601c9e493cbddb02d45ba3 /src/mono_util.sml
parent8f7e31d24652037510c5eac81f56e711a5212246 (diff)
FFI through monoize
Diffstat (limited to 'src/mono_util.sml')
-rw-r--r--src/mono_util.sml6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mono_util.sml b/src/mono_util.sml
index bbfd5842..7e4fe52f 100644
--- a/src/mono_util.sml
+++ b/src/mono_util.sml
@@ -54,6 +54,7 @@ fun mapfold fc =
xts,
fn xts' => (TRecord xts', loc))
| TNamed _ => S.return2 cAll
+ | TFfi _ => S.return2 cAll
in
mft
end
@@ -98,6 +99,11 @@ fun mapfoldB {typ = fc, exp = fe, bind} =
EPrim _ => S.return2 eAll
| ERel _ => S.return2 eAll
| ENamed _ => S.return2 eAll
+ | EFfi _ => S.return2 eAll
+ | EFfiApp (m, x, es) =>
+ S.map2 (ListUtil.mapfold (fn e => mfe ctx e) es,
+ fn es' =>
+ (EFfiApp (m, x, es'), loc))
| EApp (e1, e2) =>
S.bind2 (mfe ctx e1,
fn e1' =>