equal
deleted
inserted
replaced
58 |
58 |
59 fun print_exception_trace (_: exn -> string) (_: string -> unit) = PolyML.exception_trace; |
59 fun print_exception_trace (_: exn -> string) (_: string -> unit) = PolyML.exception_trace; |
60 |
60 |
61 if ML_System.name = "polyml-5.5.1" |
61 if ML_System.name = "polyml-5.5.1" |
62 orelse ML_System.name = "polyml-5.5.2" |
62 orelse ML_System.name = "polyml-5.5.2" |
63 orelse ML_System.name = "polyml-5.5.3" |
|
64 orelse ML_System.name = "polyml-5.6" |
63 orelse ML_System.name = "polyml-5.6" |
65 then use "ML-Systems/exn_trace_polyml-5.5.1.ML" |
64 then use "ML-Systems/exn_trace_polyml-5.5.1.ML" |
66 else (); |
65 else (); |
67 |
66 |
68 |
67 |
76 |
75 |
77 open Thread; |
76 open Thread; |
78 use "ML-Systems/multithreading.ML"; |
77 use "ML-Systems/multithreading.ML"; |
79 use "ML-Systems/multithreading_polyml.ML"; |
78 use "ML-Systems/multithreading_polyml.ML"; |
80 |
79 |
81 if ML_System.name = "polyml-5.5.3" |
80 if ML_System.name = "polyml-5.6" |
82 orelse ML_System.name = "polyml-5.6" |
81 then use "ML-Systems/ml_stack_polyml-5.6.ML" |
83 then use "ML-Systems/ml_stack_polyml-5.5.3.ML" |
|
84 else use "ML-Systems/ml_stack_dummy.ML"; |
82 else use "ML-Systems/ml_stack_dummy.ML"; |
85 |
83 |
86 use "ML-Systems/unsynchronized.ML"; |
84 use "ML-Systems/unsynchronized.ML"; |
87 val _ = PolyML.Compiler.forgetValue "ref"; |
85 val _ = PolyML.Compiler.forgetValue "ref"; |
88 val _ = PolyML.Compiler.forgetType "ref"; |
86 val _ = PolyML.Compiler.forgetType "ref"; |
174 open ML_Name_Space; |
172 open ML_Name_Space; |
175 val display_val = pretty_ml o displayVal; |
173 val display_val = pretty_ml o displayVal; |
176 end; |
174 end; |
177 |
175 |
178 use "ML-Systems/ml_compiler_parameters.ML"; |
176 use "ML-Systems/ml_compiler_parameters.ML"; |
179 if ML_System.name = "polyml-5.5.3" |
177 if ML_System.name = "polyml-5.6" |
180 orelse ML_System.name = "polyml-5.6" |
178 then use "ML-Systems/ml_compiler_parameters_polyml-5.6.ML" else (); |
181 then use "ML-Systems/ml_compiler_parameters_polyml-5.5.3.ML" else (); |
|
182 |
179 |
183 use "ML-Systems/use_context.ML"; |
180 use "ML-Systems/use_context.ML"; |
184 use "ML-Systems/ml_positions.ML"; |
181 use "ML-Systems/ml_positions.ML"; |
185 use "ML-Systems/compiler_polyml.ML"; |
182 use "ML-Systems/compiler_polyml.ML"; |
186 |
183 |
189 PolyML.Compiler.maxInlineSize := 80; |
186 PolyML.Compiler.maxInlineSize := 80; |
190 |
187 |
191 fun ml_prompts p1 p2 = (PolyML.Compiler.prompt1 := p1; PolyML.Compiler.prompt2 := p2); |
188 fun ml_prompts p1 p2 = (PolyML.Compiler.prompt1 := p1; PolyML.Compiler.prompt2 := p2); |
192 |
189 |
193 use "ML-Systems/ml_parse_tree.ML"; |
190 use "ML-Systems/ml_parse_tree.ML"; |
194 if ML_System.name = "polyml-5.5.3" |
191 if ML_System.name = "polyml-5.6" |
195 orelse ML_System.name = "polyml-5.6" |
192 then use "ML-Systems/ml_parse_tree_polyml-5.6.ML" else (); |
196 then use "ML-Systems/ml_parse_tree_polyml-5.5.3.ML" else (); |
|
197 |
193 |
198 fun toplevel_pp context (_: string list) pp = |
194 fun toplevel_pp context (_: string list) pp = |
199 use_text context {line = 1, file = "pp", verbose = false, debug = false} |
195 use_text context {line = 1, file = "pp", verbose = false, debug = false} |
200 ("PolyML.addPrettyPrinter (fn _ => fn _ => ml_pretty o Pretty.to_ML o (" ^ pp ^ "))"); |
196 ("PolyML.addPrettyPrinter (fn _ => fn _ => ml_pretty o Pretty.to_ML o (" ^ pp ^ "))"); |
201 |
197 |
204 struct_name ^ ".ML_print_depth ())))))"; |
200 struct_name ^ ".ML_print_depth ())))))"; |
205 |
201 |
206 |
202 |
207 (* ML debugger *) |
203 (* ML debugger *) |
208 |
204 |
209 if ML_System.name = "polyml-5.5.3" |
205 if ML_System.name = "polyml-5.6" |
210 orelse ML_System.name = "polyml-5.6" |
206 then use "ML-Systems/ml_debugger_polyml-5.6.ML" |
211 then use "ML-Systems/ml_debugger_polyml-5.5.3.ML" |
|
212 else use "ML-Systems/ml_debugger.ML"; |
207 else use "ML-Systems/ml_debugger.ML"; |