diff src/prepare.sml @ 283:c0e4ac23522d

'error' function
author Adam Chlipala <adamc@hcoop.net>
date Sun, 07 Sep 2008 10:02:27 -0400
parents 0236d9412ad2
children 550100a44cca
line wrap: on
line diff
--- a/src/prepare.sml	Sun Sep 07 09:28:13 2008 -0400
+++ b/src/prepare.sml	Sun Sep 07 10:02:27 2008 -0400
@@ -106,6 +106,13 @@
             ((ECase (e, pes, ts), loc), sns)
         end
 
+      | EError (e, t) =>
+        let
+            val (e, sns) = prepExp (e, sns)
+        in
+            ((EError (e, t), loc), sns)
+        end
+
       | EWrite e =>
         let
             val (e, sns) = prepExp (e, sns)