diff src/source_print.sml @ 85:1f85890c9846

Disjointness assumptions in expressions
author Adam Chlipala <adamc@hcoop.net>
date Tue, 01 Jul 2008 12:25:12 -0400
parents e86370850c30
children 7bab29834cd6
line wrap: on
line diff
--- a/src/source_print.sml	Tue Jul 01 12:10:46 2008 -0400
+++ b/src/source_print.sml	Tue Jul 01 12:25:12 2008 -0400
@@ -78,6 +78,15 @@
                                                 string "->",
                                                 space,
                                                 p_con c])
+      | TDisjoint (c1, c2, c3) => parenIf par (box [p_con c1,
+                                                    space,
+                                                    string "~",
+                                                    space,
+                                                    p_con c2,
+                                                    space,
+                                                    string "->",
+                                                    space,
+                                                    p_con c3])
       | TRecord (CRecord xcs, _) => box [string "{",
                                          p_list (fn (x, c) =>
                                                     box [p_name x,
@@ -202,6 +211,15 @@
                                                   string "=>",
                                                   space,
                                                   p_exp e])
+      | EDisjoint (c1, c2, e) => parenIf par (box [p_con c1,
+                                                   space,
+                                                   string "~",
+                                                   space,
+                                                   p_con c2,
+                                                   space,
+                                                   string "=>",
+                                                   space,
+                                                   p_exp e])
 
       | ERecord xes => box [string "{",
                             p_list (fn (x, e) =>