--- a/src/Pure/IsaMakefile Sun May 31 14:51:21 2009 +0200
+++ b/src/Pure/IsaMakefile Sun May 31 15:03:34 2009 +0200
@@ -27,7 +27,7 @@
ML-Systems/overloading_smlnj.ML ML-Systems/polyml-5.0.ML \
ML-Systems/polyml-5.1.ML ML-Systems/polyml-experimental.ML \
ML-Systems/polyml.ML ML-Systems/polyml_common.ML \
- ML-Systems/polyml_pp.ML ML-Systems/proper_int.ML ML-Systems/smlnj.ML \
+ ML-Systems/pp_polyml.ML ML-Systems/proper_int.ML ML-Systems/smlnj.ML \
ML-Systems/system_shell.ML ML-Systems/thread_dummy.ML \
ML-Systems/time_limit.ML ML-Systems/universal.ML
--- a/src/Pure/ML-Systems/polyml-5.0.ML Sun May 31 14:51:21 2009 +0200
+++ b/src/Pure/ML-Systems/polyml-5.0.ML Sun May 31 15:03:34 2009 +0200
@@ -8,7 +8,7 @@
use "ML-Systems/ml_name_space.ML";
use "ML-Systems/polyml_common.ML";
use "ML-Systems/compiler_polyml-5.0.ML";
-use "ML-Systems/polyml_pp.ML";
+use "ML-Systems/pp_polyml.ML";
val pointer_eq = PolyML.pointerEq;
--- a/src/Pure/ML-Systems/polyml-5.1.ML Sun May 31 14:51:21 2009 +0200
+++ b/src/Pure/ML-Systems/polyml-5.1.ML Sun May 31 15:03:34 2009 +0200
@@ -7,7 +7,7 @@
use "ML-Systems/ml_name_space.ML";
use "ML-Systems/polyml_common.ML";
use "ML-Systems/compiler_polyml-5.0.ML";
-use "ML-Systems/polyml_pp.ML";
+use "ML-Systems/pp_polyml.ML";
val pointer_eq = PolyML.pointerEq;
--- a/src/Pure/ML-Systems/polyml.ML Sun May 31 14:51:21 2009 +0200
+++ b/src/Pure/ML-Systems/polyml.ML Sun May 31 15:03:34 2009 +0200
@@ -23,5 +23,5 @@
fun share_common_data () = PolyML.shareCommonData PolyML.rootFunction;
use "ML-Systems/compiler_polyml-5.2.ML";
-use "ML-Systems/polyml_pp.ML";
+use "ML-Systems/pp_polyml.ML";
--- a/src/Pure/ML-Systems/polyml_pp.ML Sun May 31 14:51:21 2009 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,20 +0,0 @@
-(* Title: Pure/ML-Systems/polyml_pp.ML
-
-Toplevel pretty printing for Poly/ML before 5.3.
-*)
-
-fun ml_pprint (print, begin_blk, brk, end_blk) =
- let
- fun str "" = ()
- | str s = print s;
- fun pprint (ML_Pretty.Block ((bg, en), prts, ind)) =
- (str bg; begin_blk (ind, false); List.app pprint prts; end_blk (); str en)
- | pprint (ML_Pretty.String (s, _)) = str s
- | pprint (ML_Pretty.Break (false, wd)) = brk (wd, 0)
- | pprint (ML_Pretty.Break (true, _)) = brk (99999, 0);
- in pprint end;
-
-fun toplevel_pp context (_: string list) pp =
- use_text context (1, "pp") false
- ("install_pp (fn args => fn _ => fn _ => ml_pprint args o Pretty.to_ML o (" ^ pp ^ "))");
-
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/Pure/ML-Systems/pp_polyml.ML Sun May 31 15:03:34 2009 +0200
@@ -0,0 +1,20 @@
+(* Title: Pure/ML-Systems/pp_polyml.ML
+
+Toplevel pretty printing for Poly/ML before 5.3.
+*)
+
+fun ml_pprint (print, begin_blk, brk, end_blk) =
+ let
+ fun str "" = ()
+ | str s = print s;
+ fun pprint (ML_Pretty.Block ((bg, en), prts, ind)) =
+ (str bg; begin_blk (ind, false); List.app pprint prts; end_blk (); str en)
+ | pprint (ML_Pretty.String (s, _)) = str s
+ | pprint (ML_Pretty.Break (false, wd)) = brk (wd, 0)
+ | pprint (ML_Pretty.Break (true, _)) = brk (99999, 0);
+ in pprint end;
+
+fun toplevel_pp context (_: string list) pp =
+ use_text context (1, "pp") false
+ ("PolyML.install_pp (fn args => fn _ => fn _ => ml_pprint args o Pretty.to_ML o (" ^ pp ^ "))");
+