equal
deleted
inserted
replaced
232 (* process file *) |
232 (* process file *) |
233 |
233 |
234 fun process_file path thy = |
234 fun process_file path thy = |
235 let |
235 let |
236 val result = ref thy; |
236 val result = ref thy; |
237 val trs = parse (Position.path path) (File.read path); |
237 val trs = parse (Path.position path) (File.read path); |
238 val init = Toplevel.init_theory (K thy) (fn thy' => result := thy') (K ()); |
238 val init = Toplevel.init_theory (K thy) (fn thy' => result := thy') (K ()); |
239 val _ = Toplevel.excursion (init Toplevel.empty :: trs @ [Toplevel.exit Toplevel.empty]); |
239 val _ = Toplevel.excursion (init Toplevel.empty :: trs @ [Toplevel.exit Toplevel.empty]); |
240 in ! result end; |
240 in ! result end; |
241 |
241 |
242 |
242 |