diff src/mono_print.sml @ 1021:7a4a55e05081

Use call/cc for recv and sleep
author Adam Chlipala <adamc@hcoop.net>
date Sun, 25 Oct 2009 15:29:21 -0400
parents dfe34fad749d
children 217eb87dde31
line wrap: on
line diff
--- a/src/mono_print.sml	Sun Oct 25 14:07:10 2009 -0400
+++ b/src/mono_print.sml	Sun Oct 25 15:29:21 2009 -0400
@@ -338,16 +338,15 @@
       | EServerCall (n, _, _) => box [string "Server(",
                                       p_exp env n,
                                       string ")"]
-      | ERecv (n, e, _) => box [string "Recv(",
-                                p_exp env n,
-                                string ")[",
-                                p_exp env e,
-                                string "]"]
-      | ESleep (n, e) => box [string "Sleep(",
-                              p_exp env n,
-                              string ")[",
-                              p_exp env e,
-                              string "]"]
+      | ERecv (n, _) => box [string "Recv(",
+                             p_exp env n,
+                             string ")"]
+      | ESleep n => box [string "Sleep(",
+                         p_exp env n,
+                         string ")"]
+      | ESpawn n => box [string "Spawn(",
+                         p_exp env n,
+                         string ")"]
 
 and p_exp env = p_exp' false env