diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-09-07 10:02:27 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-09-07 10:02:27 -0400 |
commit | 700a48cc6e78f75166b6e322207a29981782c4e3 (patch) | |
tree | b457a00c7d51e21cfedb1ca9f1b2993d6771f74a /src/cjrize.sml | |
parent | 1777fbbddce252990fc5055e4e5462123938483c (diff) |
'error' function
Diffstat (limited to 'src/cjrize.sml')
-rw-r--r-- | src/cjrize.sml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cjrize.sml b/src/cjrize.sml index 71bb2a0d..f3e24710 100644 --- a/src/cjrize.sml +++ b/src/cjrize.sml @@ -253,6 +253,14 @@ fun cifyExp (eAll as (e, loc), sm) = ((L'.ECase (e, pes, {disc = disc, result = result}), loc), sm) end + | L.EError (e, t) => + let + val (e, sm) = cifyExp (e, sm) + val (t, sm) = cifyTyp (t, sm) + in + ((L'.EError (e, t), loc), sm) + end + | L.EStrcat (e1, e2) => let val (e1, sm) = cifyExp (e1, sm) |