equal
deleted
inserted
replaced
29 val deps_thy: Path.T -> string -> |
29 val deps_thy: Path.T -> string -> |
30 {master: Path.T * File.ident, text: string list, imports: string list, uses: Path.T list} |
30 {master: Path.T * File.ident, text: string list, imports: string list, uses: Path.T list} |
31 val load_ml: Path.T -> Path.T -> Path.T * File.ident |
31 val load_ml: Path.T -> Path.T -> Path.T * File.ident |
32 end; |
32 end; |
33 |
33 |
34 structure ThyLoad: THY_LOAD = |
34 structure Thy_Load: THY_LOAD = |
35 struct |
35 struct |
36 |
|
37 |
36 |
38 (* maintain load path *) |
37 (* maintain load path *) |
39 |
38 |
40 local val load_path = Unsynchronized.ref [Path.current] in |
39 local val load_path = Unsynchronized.ref [Path.current] in |
41 |
40 |
130 NONE => error ("Could not find ML file " ^ quote (Path.implode raw_path)) |
129 NONE => error ("Could not find ML file " ^ quote (Path.implode raw_path)) |
131 | SOME (path, id) => (ML_Context.eval_file path; (path, id))); |
130 | SOME (path, id) => (ML_Context.eval_file path; (path, id))); |
132 |
131 |
133 end; |
132 end; |
134 |
133 |
135 structure Basic_Thy_Load: BASIC_THY_LOAD = ThyLoad; |
134 structure Basic_Thy_Load: BASIC_THY_LOAD = Thy_Load; |
136 open Basic_Thy_Load; |
135 open Basic_Thy_Load; |