src/Pure/Isar/outer_syntax.ML
changeset 26881 bb68f50644a9
parent 26700 493db7848904
child 26990 a91f7741967a
equal deleted inserted replaced
26880:ebcd5c23dd96 26881:bb68f50644a9
   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