diff src/mono_print.sml @ 1073:b2311dfb3158

Initializers and setval
author Adam Chlipala <adamc@hcoop.net>
date Sun, 13 Dec 2009 14:20:41 -0500
parents 217eb87dde31
children 0657e5adc938
line wrap: on
line diff
--- a/src/mono_print.sml	Sun Dec 13 13:00:55 2009 -0500
+++ b/src/mono_print.sml	Sun Dec 13 14:20:41 2009 -0500
@@ -320,6 +320,12 @@
       | ENextval e => box [string "nextval(",
                            p_exp env e,
                            string ")"]
+      | ESetval (e1, e2) => box [string "setval(",
+                                 p_exp env e1,
+                                 string ",",
+                                 space,
+                                 p_exp env e2,
+                                 string ")"]
       | EUnurlify (e, _) => box [string "unurlify(",
                                  p_exp env e,
                                  string ")"]
@@ -485,6 +491,9 @@
       | DStyle s => box [string "style",
                          space,
                          string s]
+      | DInitializer e => box [string "initializer",
+                               space,
+                               p_exp env e]
 
                           
 fun p_file env file =