equal
deleted
inserted
replaced
72 (* prompts *) |
72 (* prompts *) |
73 |
73 |
74 fun ml_prompts p1 p2 = (PolyML.Compiler.prompt1 := p1; PolyML.Compiler.prompt2 := p2); |
74 fun ml_prompts p1 p2 = (PolyML.Compiler.prompt1 := p1; PolyML.Compiler.prompt2 := p2); |
75 |
75 |
76 |
76 |
77 (* toplevel pretty printing (see also Pure/pure_setup.ML) *) |
77 (* print depth *) |
78 |
78 |
79 fun make_pp _ pprint (str, blk, brk, en) _ _ obj = |
|
80 pprint obj (str, fn ind => blk (ind, false), fn wd => brk (wd, 0), |
|
81 fn () => brk (99999, 0), en); |
|
82 |
|
83 (*print depth*) |
|
84 local |
79 local |
85 val depth = ref 10; |
80 val depth = ref 10; |
86 in |
81 in |
87 fun get_print_depth () = ! depth; |
82 fun get_print_depth () = ! depth; |
88 fun print_depth n = (depth := n; PolyML.print_depth n); |
83 fun print_depth n = (depth := n; PolyML.print_depth n); |