src/Pure/Isar/outer_syntax.ML
changeset 37907 f18c4bc8b028
parent 37902 4e7864f3643d
child 37953 ddc3b72f9a42
equal deleted inserted replaced
37906:4195727a1f6c 37907:f18c4bc8b028
   277 
   277 
   278     val toks = Source.exhausted (Thy_Syntax.token_source lexs pos (Source.of_string text));
   278     val toks = Source.exhausted (Thy_Syntax.token_source lexs pos (Source.of_string text));
   279     val spans = Source.exhaust (Thy_Syntax.span_source toks);
   279     val spans = Source.exhaust (Thy_Syntax.span_source toks);
   280     val _ = List.app Thy_Syntax.report_span spans;
   280     val _ = List.app Thy_Syntax.report_span spans;
   281     val units = Source.exhaust (Thy_Syntax.unit_source (Source.of_list spans))
   281     val units = Source.exhaust (Thy_Syntax.unit_source (Source.of_list spans))
   282       |> maps (prepare_unit commands);
   282       |> Par_List.map (prepare_unit commands) |> flat;
   283 
   283 
   284     val _ = Present.theory_source name
   284     val _ = Present.theory_source name
   285       (fn () => HTML.html_mode (implode o map Thy_Syntax.present_span) spans);
   285       (fn () => HTML.html_mode (implode o map Thy_Syntax.present_span) spans);
   286 
   286 
   287     val _ = if time then writeln ("\n**** Starting theory " ^ quote name ^ " ****") else ();
   287     val _ = if time then writeln ("\n**** Starting theory " ^ quote name ^ " ****") else ();