src/Pure/Thy/thy_load.ML
changeset 54455 1d977436c1bf
parent 54454 044faa8a8080
child 54456 f4b1440d9880
equal deleted inserted replaced
54454:044faa8a8080 54455:1d977436c1bf
   169     val {name = (name, _), ...} = header;
   169     val {name = (name, _), ...} = header;
   170     val _ = Thy_Header.define_keywords header;
   170     val _ = Thy_Header.define_keywords header;
   171     val _ = Present.init_theory name;
   171     val _ = Present.init_theory name;
   172     fun init () =
   172     fun init () =
   173       begin_theory master_dir header parents
   173       begin_theory master_dir header parents
   174       |> Present.begin_theory update_time master_dir;
   174       |> Present.begin_theory update_time;
   175 
   175 
   176     val lexs = Keyword.get_lexicons ();
   176     val lexs = Keyword.get_lexicons ();
   177 
   177 
   178     val toks = Thy_Syntax.parse_tokens lexs text_pos text;
   178     val toks = Thy_Syntax.parse_tokens lexs text_pos text;
   179     val spans = map (Thy_Syntax.resolve_files (read_files master_dir)) (Thy_Syntax.parse_spans toks);
   179     val spans = map (Thy_Syntax.resolve_files (read_files master_dir)) (Thy_Syntax.parse_spans toks);