equal
deleted
inserted
replaced
87 (* pretty_ast *) |
87 (* pretty_ast *) |
88 |
88 |
89 fun pretty_ast (Constant a) = Pretty.str (quote a) |
89 fun pretty_ast (Constant a) = Pretty.str (quote a) |
90 | pretty_ast (Variable x) = Pretty.str x |
90 | pretty_ast (Variable x) = Pretty.str x |
91 | pretty_ast (Appl asts) = |
91 | pretty_ast (Appl asts) = |
92 Pretty.parents "(" ")" (Pretty.breaks (map pretty_ast asts)); |
92 Pretty.enclose "(" ")" (Pretty.breaks (map pretty_ast asts)); |
93 |
93 |
94 |
94 |
95 (* pprint_ast *) |
95 (* pprint_ast *) |
96 |
96 |
97 val pprint_ast = Pretty.pprint o pretty_ast; |
97 val pprint_ast = Pretty.pprint o pretty_ast; |