src/Pure/Thy/thy_load.ML
changeset 44186 806f0ec1a43d
parent 44113 0baa8bbd355a
child 44352 176e0fb6906b
equal deleted inserted replaced
44185:05641edb5d30 44186:806f0ec1a43d
   165   let
   165   let
   166     val (lexs, outer_syntax) = Outer_Syntax.get_syntax ();
   166     val (lexs, outer_syntax) = Outer_Syntax.get_syntax ();
   167     val time = ! Toplevel.timing;
   167     val time = ! Toplevel.timing;
   168 
   168 
   169     val _ = Present.init_theory name;
   169     val _ = Present.init_theory name;
   170     fun init _ =
   170     fun init () =
   171       begin_theory dir name imports uses parents
   171       begin_theory dir name imports uses parents
   172       |> Present.begin_theory update_time dir uses;
   172       |> Present.begin_theory update_time dir uses;
   173 
   173 
   174     val toks = Source.exhausted (Thy_Syntax.token_source lexs pos (Source.of_string text));
   174     val toks = Source.exhausted (Thy_Syntax.token_source lexs pos (Source.of_string text));
   175     val spans = Source.exhaust (Thy_Syntax.span_source toks);
   175     val spans = Source.exhaust (Thy_Syntax.span_source toks);