diff src/cjr_print.sml @ 283:c0e4ac23522d

'error' function
author Adam Chlipala <adamc@hcoop.net>
date Sun, 07 Sep 2008 10:02:27 -0400
parents 0236d9412ad2
children 4260ad920c36
line wrap: on
line diff
--- a/src/cjr_print.sml	Sun Sep 07 09:28:13 2008 -0400
+++ b/src/cjr_print.sml	Sun Sep 07 10:02:27 2008 -0400
@@ -455,6 +455,20 @@
         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 "_",