]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_transformations/tacticAstPp.ml
added Undo/Redo commands
[helm.git] / helm / ocaml / cic_transformations / tacticAstPp.ml
index 5c96b64d3fa602a4a71c0438397b33183f8ecfff..089f8b896073a256682a0b6428e94295ae9f385d 100644 (file)
@@ -92,6 +92,8 @@ let pp_command = function
   | Qed name ->
       (match name with None -> "Qed" | Some name -> sprintf "Save %s" name)
   | Quit -> "Quit"
+  | Redo None -> "Redo"
+  | Redo (Some n) -> sprintf "Redo %d" n
   | Theorem (flavour, name, typ, body) ->
       sprintf "%s %s: %s %s"
         (pp_flavour flavour)
@@ -100,6 +102,8 @@ let pp_command = function
         (match body with
         | None -> ""
         | Some body -> "\\def " ^ CicAstPp.pp_term body)
+  | Undo None -> "Undo"
+  | Undo (Some n) -> sprintf "Undo %d" n
 
 let rec pp_tactical = function
   | LocatedTactical (loc, tac) -> pp_tactical tac