HCoop
/
hcoop
/
domtool2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Permission revocation
[hcoop/domtool2.git]
/
src
/
print.sml
diff --git
a/src/print.sml
b/src/print.sml
index
89a640c
..
7e38bb5
100644
(file)
--- a/
src/print.sml
+++ b/
src/print.sml
@@
-99,6
+99,9
@@
fun p_exp (e, _) =
string ":", space 1,
dBox [string "(", p_typ t, string ")"],
space 1, string "->", space 1, p_exp e, string ")"]
string ":", space 1,
dBox [string "(", p_typ t, string ")"],
space 1, string "->", space 1, p_exp e, string ")"]
+ | EALam (x, c, e) => dBox [string "(\\\\", space 1, string x, space 1,
+ string ":", space 1, p_pred c,
+ space 1, string "->", space 1, p_exp e, string ")"]
| EVar x => string x
| EApp (e1, e2) => dBox [string "(", p_exp e1, break {nsp = 1, offset = 0}, p_exp e2, string ")"]
| EVar x => string x
| EApp (e1, e2) => dBox [string "(", p_exp e1, break {nsp = 1, offset = 0}, p_exp e2, string ")"]
@@
-109,7
+112,7
@@
fun p_exp (e, _) =
space 1, string x2, string ";", space 1],
p_exp e]
| ESeq es => dBox (valOf (foldr (fn (e, NONE) => SOME [p_exp e]
space 1, string x2, string ";", space 1],
p_exp e]
| ESeq es => dBox (valOf (foldr (fn (e, NONE) => SOME [p_exp e]
- | (e, SOME ds) => SOME (dBox [p_exp e, string ";",
space 1
] :: ds))
+ | (e, SOME ds) => SOME (dBox [p_exp e, string ";",
newline
] :: ds))
NONE es))
| ELocal (e1, e2) => dBox [string "let", space 1,
p_exp e1, space 1,
NONE es))
| ELocal (e1, e2) => dBox [string "let", space 1,
p_exp e1, space 1,