diff options
Diffstat (limited to 'src/core_print.sml')
-rw-r--r-- | src/core_print.sml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/core_print.sml b/src/core_print.sml index 6e32dde3..0d470d39 100644 --- a/src/core_print.sml +++ b/src/core_print.sml @@ -283,6 +283,32 @@ fun p_exp' par env (e, _) = box [p_exp' true env e, string ".", p_con' true env c] + | EWith (e1, c, e2, {field, rest}) => + parenIf par (if !debug then + box [p_exp env e1, + space, + string "with", + space, + p_con' true env c, + space, + string "=", + p_exp' true env e2, + space, + string "[", + p_con env field, + space, + string " in ", + space, + p_con env rest, + string "]"] + else + box [p_exp env e1, + space, + string "with", + space, + p_con' true env c, + space, + p_exp' true env e2]) | ECut (e, c, {field, rest}) => parenIf par (if !debug then box [p_exp' true env e, |