equal
deleted
inserted
replaced
200 |
200 |
201 fun process_file path thy = |
201 fun process_file path thy = |
202 let |
202 let |
203 val result = ref thy; |
203 val result = ref thy; |
204 val trs = parse (Path.position path) (File.read path); |
204 val trs = parse (Path.position path) (File.read path); |
205 val init = Toplevel.init_theory (K thy) (fn thy' => result := thy') (K ()); |
205 val init = Toplevel.init_theory "" (K thy) (fn thy' => result := thy') (K ()); |
206 val _ = Toplevel.excursion (init Toplevel.empty :: trs @ [Toplevel.exit Toplevel.empty]); |
206 val _ = Toplevel.excursion (init Toplevel.empty :: trs @ [Toplevel.exit Toplevel.empty]); |
207 in ! result end; |
207 in ! result end; |
208 |
208 |
209 |
209 |
210 (* interactive source of toplevel transformers *) |
210 (* interactive source of toplevel transformers *) |