equal
deleted
inserted
replaced
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; |