diff src/mono_print.sml @ 578:1e589a60b86f

Harmonized source-setting between server and client
author Adam Chlipala <adamc@hcoop.net>
date Tue, 30 Dec 2008 11:33:31 -0500
parents 3d56940120b1
children 8f8771f32909
line wrap: on
line diff
--- a/src/mono_print.sml	Tue Dec 30 10:49:42 2008 -0500
+++ b/src/mono_print.sml	Tue Dec 30 11:33:31 2008 -0500
@@ -216,10 +216,12 @@
                          p_exp env e,
                          string ")"]
 
-      | ESeq (e1, e2) => box [p_exp env e1,
+      | ESeq (e1, e2) => box [string "(",
+                              p_exp env e1,
                               string ";",
                               space,
-                              p_exp env e2]
+                              p_exp env e2,
+                              string ")"]
       | ELet (x, t, e1, e2) => box [string "(let",
                                     space,
                                     string x,
@@ -279,9 +281,10 @@
       | EUnurlify (e, _) => box [string "unurlify(",
                                  p_exp env e,
                                  string ")"]
-      | EJavaScript (_, e) => box [string "JavaScript(",
-                                   p_exp env e,
-                                   string ")"]
+      | EJavaScript (_, e, NONE) => box [string "JavaScript(",
+                                         p_exp env e,
+                                         string ")"]
+      | EJavaScript (_, _, SOME e) => p_exp env e
 
       | ESignalReturn e => box [string "Return(",
                                 p_exp env e,