equal
deleted
inserted
replaced
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); |