summaryrefslogtreecommitdiff
path: root/src/source_print.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-11-06 10:29:55 -0500
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-11-06 10:29:55 -0500
commit12bb99a0ba702af12e89bfe544f2a572e5d4818d (patch)
tree5857f5dc14c0b71b191d1a267c9a8fdfcee03810 /src/source_print.sml
parent45dee9afc8f0b8030115943af95df499ba8ee13e (diff)
Cookies through elaborate
Diffstat (limited to 'src/source_print.sml')
-rw-r--r--src/source_print.sml15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/source_print.sml b/src/source_print.sml
index 9e6608df..d33fb38d 100644
--- a/src/source_print.sml
+++ b/src/source_print.sml
@@ -428,6 +428,13 @@ fun p_sgn_item (sgi, _) =
string "=",
space,
p_con c]
+ | SgiCookie (x, c) => box [string "cookie",
+ space,
+ string x,
+ space,
+ string ":",
+ space,
+ p_con c]
and p_sgn (sgn, _) =
case sgn of
@@ -579,6 +586,14 @@ fun p_decl ((d, _) : decl) =
space,
string s]
+ | DCookie (x, c) => box [string "cookie",
+ space,
+ string x,
+ space,
+ string ":",
+ space,
+ p_con c]
+
and p_str (str, _) =
case str of
StrConst ds => box [string "struct",