X-Git-Url: https://git.hcoop.net/hcoop/domtool2.git/blobdiff_plain/a356587aacf682b584fbbebf7b999154755e80c7..313442edc37351eb6d65b6009f0a709204e9fb91:/src/printFn.sml diff --git a/src/printFn.sml b/src/printFn.sml index 42282aa..9b3c4ee 100644 --- a/src/printFn.sml +++ b/src/printFn.sml @@ -155,6 +155,12 @@ fun p_decl d = ident name, space 1, punct ":", space 1, p_typ t]) + | DEnv (name, NONE, _) => string "Unannotated env declaration!" + | DEnv (name, SOME t, _) => anchor ("D_" ^ name, + dBox [keyword "var", space 1, + ident name, space 1, + punct ":", space 1, + p_typ t]) | DContext name => anchor ("C_" ^ name, dBox [keyword "context", space 1, ident name]) @@ -176,6 +182,12 @@ fun p_decl_fref d = space 1, punct ":", space 1, p_typ t] + | DEnv (name, NONE, _) => string "Unannotated var declaration!" + | DEnv (name, SOME t, _) => dBox [keyword "var", space 1, + link ("#D_" ^ name, ident name), + space 1, + punct ":", space 1, + p_typ t] | DContext name => dBox [keyword "context", space 1, link ("#C_" ^ name, ident name)]