src/HOL/Import/import_rule.ML
changeset 59936 b8ffc3dc9e24
parent 59621 291934bac95e
child 60367 e201bd8973db
equal deleted inserted replaced
59935:343905de27b1 59936:b8ffc3dc9e24
   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