X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_transformations%2FtacticAstPp.ml;h=5c96b64d3fa602a4a71c0438397b33183f8ecfff;hb=fd648e40eb2c9c5b29cfa4408459511a74898d1d;hp=4380dd5df9ede56e7efc7c277943812c8a71dede;hpb=511f0c1672e0db4cf577afc9b79f12dea39469ad;p=helm.git diff --git a/helm/ocaml/cic_transformations/tacticAstPp.ml b/helm/ocaml/cic_transformations/tacticAstPp.ml index 4380dd5df..5c96b64d3 100644 --- a/helm/ocaml/cic_transformations/tacticAstPp.ml +++ b/helm/ocaml/cic_transformations/tacticAstPp.ml @@ -86,18 +86,20 @@ let pp_flavour = function | `Theorem -> "Theorem" let pp_command = function - | Proof -> "Proof." + | Abort -> "Abort" + | Check term -> sprintf "Check %s" (CicAstPp.pp_term term) + | Proof -> "Proof" + | Qed name -> + (match name with None -> "Qed" | Some name -> sprintf "Save %s" name) + | Quit -> "Quit" | Theorem (flavour, name, typ, body) -> - sprintf "%s %s: %s %s." + sprintf "%s %s: %s %s" (pp_flavour flavour) (match name with None -> "" | Some name -> name) (CicAstPp.pp_term typ) (match body with | None -> "" | Some body -> "\\def " ^ CicAstPp.pp_term body) - | Qed name -> - (match name with None -> "Qed." | Some name -> sprintf "Save %s." name) - | Quit -> "Quit." let rec pp_tactical = function | LocatedTactical (loc, tac) -> pp_tactical tac