src/Pure/Isar/outer_syntax.ML
changeset 27439 7d5c4e73c89e
parent 27353 71c4dd53d4cb
child 27575 e540ad3fb50a
equal deleted inserted replaced
27438:9b2427cc234e 27439:7d5c4e73c89e
   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 *)