summaryrefslogtreecommitdiff
path: root/src/cjr_print.sml
diff options
context:
space:
mode:
Diffstat (limited to 'src/cjr_print.sml')
-rw-r--r--src/cjr_print.sml14
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 "_",