export load_thy -- no backpatching;
authorwenzelm
Thu, 10 Apr 2008 14:53:27 +0200
changeset 26611 03455add4801
parent 26610 df8c1ffdb8cc
child 26612 f9c3c2110b03
export load_thy -- no backpatching;
src/Pure/Isar/outer_syntax.ML
--- a/src/Pure/Isar/outer_syntax.ML	Thu Apr 10 14:53:26 2008 +0200
+++ b/src/Pure/Isar/outer_syntax.ML	Thu Apr 10 14:53:27 2008 +0200
@@ -29,6 +29,7 @@
   val process_file: Path.T -> theory -> theory
   type isar
   val isar: bool -> isar
+  val load_thy: Path.T -> string -> Position.T -> string list -> bool -> unit
 end;
 
 structure OuterSyntax: OUTER_SYNTAX =
@@ -275,9 +276,7 @@
 fun check_text s state = (ThyOutput.eval_antiquote (#1 (get_lexicons ())) state s; ());
 
 
-(* load_thy (backpatching) *)
-
-local
+(* load_thy *)
 
 fun load_thy dir name pos text time =
   let
@@ -301,9 +300,5 @@
     val _ = if time then writeln ("**** Finished theory " ^ quote name ^ " ****\n") else ();
   in () end;
 
-in val _ = ThyLoad.load_thy_fn := load_thy end;
-
 end;
 
-structure ThyLoad: THY_LOAD = ThyLoad;
-