src/Pure/Thy/thy_load.ML
changeset 26455 1757a6e049f4
parent 24189 1fa9852643a3
child 26616 b5fd3ad271ec
equal deleted inserted replaced
26454:57923fdab83b 26455:1757a6e049f4
   117 (* load files *)
   117 (* load files *)
   118 
   118 
   119 fun load_ml dir raw_path =
   119 fun load_ml dir raw_path =
   120   (case check_ml dir raw_path of
   120   (case check_ml dir raw_path of
   121     NONE => error ("Could not find ML file " ^ quote (Path.implode raw_path))
   121     NONE => error ("Could not find ML file " ^ quote (Path.implode raw_path))
   122   | SOME (path, id) => (ML_Context.use path; (path, id)));
   122   | SOME (path, id) => (ML_Context.eval_file path; (path, id)));
   123 
   123 
   124 (*dependent on outer syntax*)
   124 (*dependent on outer syntax*)
   125 val load_thy_fn =
   125 val load_thy_fn =
   126   ref (undefined: Path.T -> string -> Position.T -> string list -> bool -> unit);
   126   ref (undefined: Path.T -> string -> Position.T -> string list -> bool -> unit);
   127 fun load_thy dir name pos text time = ! load_thy_fn dir name pos text time;
   127 fun load_thy dir name pos text time = ! load_thy_fn dir name pos text time;