diff src/core_print.sml @ 339:075b36dbb1a4

Crud supports INSERT
author Adam Chlipala <adamc@hcoop.net>
date Sun, 14 Sep 2008 15:10:04 -0400
parents e976b187d73a
children dfc8c991abd0
line wrap: on
line diff
--- a/src/core_print.sml	Sun Sep 14 11:02:18 2008 -0400
+++ b/src/core_print.sml	Sun Sep 14 15:10:04 2008 -0400
@@ -283,6 +283,32 @@
             box [p_exp' true env e,
                  string ".",
                  p_con' true env c]
+      | EWith (e1, c, e2, {field, rest}) =>
+        parenIf par (if !debug then
+                         box [p_exp env e1,
+                              space,
+                              string "with",
+                              space,
+                              p_con' true env c,
+                              space,
+                              string "=",
+                              p_exp' true env e2,
+                              space,
+                              string "[",
+                              p_con env field,
+                              space,
+                              string " in ",
+                              space,
+                              p_con env rest,
+                              string "]"]
+                     else
+                         box [p_exp env e1,
+                              space,
+                              string "with",
+                              space,
+                              p_con' true env c,
+                              space,
+                              p_exp' true env e2])
       | ECut (e, c, {field, rest}) =>
         parenIf par (if !debug then
                          box [p_exp' true env e,