diff src/source_print.sml @ 20:1ab48e37d0ef

Some con reducing
author Adam Chlipala <adamc@hcoop.net>
date Sun, 08 Jun 2008 15:47:44 -0400
parents 9a578171de9e
children 067029c748e9
line wrap: on
line diff
--- a/src/source_print.sml	Sun Jun 08 14:42:12 2008 -0400
+++ b/src/source_print.sml	Sun Jun 08 15:47:44 2008 -0400
@@ -79,7 +79,7 @@
                                                 p_con c])
       | TRecord (CRecord xcs, _) => box [string "{",
                                          p_list (fn (x, c) =>
-                                                    box [p_con x,
+                                                    box [p_name x,
                                                          space,
                                                          string ":",
                                                          space,
@@ -127,6 +127,11 @@
         
 and p_con c = p_con' false c
 
+and p_name (all as (c, _)) =
+    case c of
+        CName s => string s
+      | _ => p_con all
+
 fun p_exp' par (e, _) =
     case e of
         EAnnot (e, t) => box [string "(",