From 700a48cc6e78f75166b6e322207a29981782c4e3 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Sun, 7 Sep 2008 10:02:27 -0400 Subject: 'error' function --- src/cjr_print.sml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/cjr_print.sml') 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 "_", -- cgit v1.2.3