summaryrefslogtreecommitdiff
path: root/src/source_print.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2012-04-29 13:17:31 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2012-04-29 13:17:31 -0400
commit05b7d79819dd5f006527bef7679b06868b3e0da7 (patch)
tree0ecad148d41060d9728486fd61309de6e8cb561e /src/source_print.sml
parentc5521a5f402e3d5f7c2e9c4a36966df196a70fdd (diff)
Initial support for reusing elaboration results
Diffstat (limited to 'src/source_print.sml')
-rw-r--r--src/source_print.sml46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/source_print.sml b/src/source_print.sml
index f6218d22..aad673f3 100644
--- a/src/source_print.sml
+++ b/src/source_print.sml
@@ -569,33 +569,33 @@ fun p_decl ((d, _) : decl) =
string "=",
space,
p_sgn sgn]
- | DStr (x, NONE, str) => box [string "structure",
+ | DStr (x, NONE, _, str) => box [string "structure",
+ space,
+ string x,
+ space,
+ string "=",
+ space,
+ p_str str]
+ | DStr (x, SOME sgn, _, str) => box [string "structure",
+ space,
+ string x,
+ space,
+ string ":",
+ space,
+ p_sgn sgn,
+ space,
+ string "=",
+ space,
+ p_str str]
+ | DFfiStr (x, sgn, _) => box [string "extern",
+ space,
+ string "structure",
space,
string x,
space,
- string "=",
+ string ":",
space,
- p_str str]
- | DStr (x, SOME sgn, str) => box [string "structure",
- space,
- string x,
- space,
- string ":",
- space,
- p_sgn sgn,
- space,
- string "=",
- space,
- p_str str]
- | DFfiStr (x, sgn) => box [string "extern",
- space,
- string "structure",
- space,
- string x,
- space,
- string ":",
- space,
- p_sgn sgn]
+ p_sgn sgn]
| DOpen (m, ms) => box [string "open",
space,
p_list_sep (string ".") string (m :: ms)]