diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-07-13 12:06:47 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-07-13 12:06:47 -0400 |
commit | b3379c2a4d9b23c49c286b31ab24850129b5bb1e (patch) | |
tree | 20b0b499f8ea47e7b6d8f7fad4ac05d24fc4cad3 /src/corify.sml | |
parent | 95d278b9b8e9c314541b8251a34a32fe6deeb896 (diff) |
Closure code generation almost there
Diffstat (limited to 'src/corify.sml')
-rw-r--r-- | src/corify.sml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/corify.sml b/src/corify.sml index 9c44140d..55d9a95a 100644 --- a/src/corify.sml +++ b/src/corify.sml @@ -376,8 +376,13 @@ fun corifyDecl ((d, loc : EM.span), st) = | L.DVal (x, n, t, e) => let val (st, n) = St.bindVal st x n + val s = + if String.isPrefix "wrap_" x then + String.extract (x, 5, NONE) + else + x in - ([(L'.DVal (x, n, corifyCon st t, corifyExp st e, x), loc)], st) + ([(L'.DVal (x, n, corifyCon st t, corifyExp st e, s), loc)], st) end | L.DSgn _ => ([], st) |