summaryrefslogtreecommitdiff
path: root/src/source_print.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-06-22 19:10:38 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-06-22 19:10:38 -0400
commite4a1bf8af62cb275bf5f5ae2f83b7197b1b58461 (patch)
treef3be22e5bbf731f7e45263b40f58a3cf5be686ea /src/source_print.sml
parent5eee5f4a3b11c467c853f8397c7f679e5d5acc7a (diff)
Subsignatures
Diffstat (limited to 'src/source_print.sml')
-rw-r--r--src/source_print.sml9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/source_print.sml b/src/source_print.sml
index 208aa23a..49adadc3 100644
--- a/src/source_print.sml
+++ b/src/source_print.sml
@@ -238,6 +238,13 @@ fun p_sgn_item (sgi, _) =
string ":",
space,
p_sgn sgn]
+ | SgiSgn (x, sgn) => box [string "signature",
+ space,
+ string x,
+ space,
+ string "=",
+ space,
+ p_sgn sgn]
| SgiInclude sgn => box [string "include",
space,
p_sgn sgn]
@@ -273,6 +280,8 @@ and p_sgn (sgn, _) =
string "=",
space,
p_con c]
+ | SgnProj (m, ms, x) => p_list_sep (string ".") string (m :: ms @ [x])
+
fun p_decl ((d, _) : decl) =
case d of