equal
deleted
inserted
replaced
276 val text_src = Source.of_list text; |
276 val text_src = Source.of_list text; |
277 fun present_text () = Source.exhaust (Symbol.source false text_src); |
277 fun present_text () = Source.exhaust (Symbol.source false text_src); |
278 in |
278 in |
279 Present.init_theory name; |
279 Present.init_theory name; |
280 Present.verbatim_source name present_text; |
280 Present.verbatim_source name present_text; |
281 if ThyHeader.is_old (text_src, pos) then (ThySyn.load_thy name text; |
281 if ThyHeader.is_old (text_src, pos) then |
|
282 (warning ("Non-Isar file format for theory " ^ quote name ^ " -- deprecated!"); |
|
283 ThySyn.load_thy name text; |
282 Present.old_symbol_source name present_text) (*note: text presented twice*) |
284 Present.old_symbol_source name present_text) (*note: text presented twice*) |
283 else |
285 else |
284 let |
286 let |
285 val tok_src = text_src |
287 val tok_src = text_src |
286 |> Symbol.source false |
288 |> Symbol.source false |