summaryrefslogtreecommitdiff
path: root/src/cjr_print.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-07-10 15:49:14 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-07-10 15:49:14 -0400
commit0e95aa2c802d0a4fa54ebf985133eb2584a1d9ba (patch)
treef8d063fc040cfc82b2b55093ef6053799b1c0a97 /src/cjr_print.sml
parent0c1f369955bcdfe949bb6793812ef8ead2963228 (diff)
More with attributes and efficient serialization
Diffstat (limited to 'src/cjr_print.sml')
-rw-r--r--src/cjr_print.sml11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/cjr_print.sml b/src/cjr_print.sml
index 91e5060c..44e9f847 100644
--- a/src/cjr_print.sml
+++ b/src/cjr_print.sml
@@ -146,6 +146,13 @@ fun p_exp' par env (e, _) =
p_exp env e,
string "), lw_unit_v)"]
+ | ESeq (e1, e2) => box [string "(",
+ p_exp env e1,
+ string ",",
+ space,
+ p_exp env e2,
+ string ")"]
+
and p_exp env = p_exp' false env
fun p_decl env ((d, _) : decl) =
@@ -177,7 +184,9 @@ fun p_decl env ((d, _) : decl) =
let
val env' = E.pushERel env x dom
in
- box [p_typ env ran,
+ box [string "static",
+ space,
+ p_typ env ran,
space,
string ("__lwc_" ^ Int.toString n),
string "(",