rearranged some modules;
authorwenzelm
Wed, 12 May 1999 16:54:31 +0200
changeset 6641 254ab03bd082
parent 6640 d2e8342bf5c3
child 6642 732af87c0650
rearranged some modules;
src/Pure/Isar/outer_syntax.ML
src/Pure/Isar/session.ML
src/Pure/Thy/thy_load.ML
src/Pure/Thy/thy_syn.ML
--- a/src/Pure/Isar/outer_syntax.ML	Wed May 12 16:52:28 1999 +0200
+++ b/src/Pure/Isar/outer_syntax.ML	Wed May 12 16:54:31 1999 +0200
@@ -198,7 +198,7 @@
 
 fun deps_thy name ml path =
   let
-    val src = Source.of_file path;
+    val src = File.source path;
     val is_old = warn_theory_style path (is_old_theory src);
     val (name', parents, files) =
       (*Note: old style headers dynamically depend on the current lexicon :-( *)
@@ -248,7 +248,7 @@
   end;
 
 fun run_thy name path =
-  let val (src, pos) = Source.of_file path in
+  let val (src, pos) = File.source path in
     Present.theory_source name src;
     if is_old_theory (src, pos) then ThySyn.load_thy name (Source.exhaust src)
     else (Toplevel.excursion (parse_thy (src, pos))
--- a/src/Pure/Isar/session.ML	Wed May 12 16:52:28 1999 +0200
+++ b/src/Pure/Isar/session.ML	Wed May 12 16:54:31 1999 +0200
@@ -61,7 +61,7 @@
 fun use_dir reset info parent name =
   (init reset parent name;
     Present.init info (path ()) name;
-    Symbol.use root_file;
+    File.symbol_use root_file;
     finish ()) handle exn => (writeln (Toplevel.exn_message exn); exit 1);
 
 
--- a/src/Pure/Thy/thy_load.ML	Wed May 12 16:52:28 1999 +0200
+++ b/src/Pure/Thy/thy_load.ML	Wed May 12 16:54:31 1999 +0200
@@ -75,7 +75,7 @@
 fun load_file raw_path =
   (case check_file raw_path of
     None => error ("Could not find ML file " ^ quote (Path.pack raw_path))
-  | Some (path, info) => (Symbol.use path; (path, info)));
+  | Some (path, info) => (File.symbol_use path; (path, info)));
 
 
 (* check_thy *)
--- a/src/Pure/Thy/thy_syn.ML	Wed May 12 16:52:28 1999 +0200
+++ b/src/Pure/Thy/thy_syn.ML	Wed May 12 16:54:31 1999 +0200
@@ -55,7 +55,7 @@
     val txt_out = ThyParse.parse_thy (! syntax) chs;
   in
     File.write tmp_path txt_out;
-    Symbol.use tmp_path;
+    File.symbol_use tmp_path;
     if ! delete_tmpfiles then File.rm tmp_path else ()
   end;