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/cjr_print.sml | |
parent | 1777fbbddce252990fc5055e4e5462123938483c (diff) |
'error' function
Diffstat (limited to 'src/cjr_print.sml')
-rw-r--r-- | src/cjr_print.sml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/cjr_print.sml b/src/cjr_print.sml index c813a260..25a84b9c 100644 --- a/src/cjr_print.sml +++ b/src/cjr_print.sml @@ -455,6 +455,20 @@ fun p_exp' par env (e, loc) = end | EFfi (m, x) => box [string "lw_", string m, string "_", string x] + | EError (e, t) => + box [string "({", + newline, + p_typ env t, + space, + string "tmp;", + newline, + string "lw_Basis_error(ctx, ", + p_exp env e, + string ");", + newline, + string "tmp;", + newline, + string "})"] | EFfiApp (m, x, es) => box [string "lw_", string m, string "_", |