equal
deleted
inserted
replaced
442 end |
442 end |
443 |
443 |
444 fun process_file path thy = |
444 fun process_file path thy = |
445 (thy, init_state) |> File.fold_lines process_line path |> fst |
445 (thy, init_state) |> File.fold_lines process_line path |> fst |
446 |
446 |
447 val _ = Outer_Syntax.command @{command_spec "import_file"} |
447 val _ = Outer_Syntax.command @{command_keyword import_file} |
448 "import a recorded proof file" |
448 "import a recorded proof file" |
449 (Parse.path >> (fn name => Toplevel.theory (fn thy => process_file (Path.explode name) thy))) |
449 (Parse.path >> (fn name => Toplevel.theory (fn thy => process_file (Path.explode name) thy))) |
450 |
450 |
451 |
451 |
452 end |
452 end |