From: Stefano Zacchiroli Date: Fri, 30 Apr 2004 14:00:15 +0000 (+0000) Subject: added Abort and Check commands X-Git-Tag: V_0_0_9~61 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=9e2b452ac3b4b5ba72834fd6e51e104e4faa032c;p=helm.git added Abort and Check commands --- diff --git a/helm/ocaml/cic_transformations/tacticAst.ml b/helm/ocaml/cic_transformations/tacticAst.ml index f0dad83e2..3a74b3863 100644 --- a/helm/ocaml/cic_transformations/tacticAst.ml +++ b/helm/ocaml/cic_transformations/tacticAst.ml @@ -75,7 +75,14 @@ type thm_flavour = ] type 'term command = + | Abort + | Check of 'term | Proof + | Qed of string option + (* name. + * Name is needed when theorem was started without providing a name + *) + | Quit | Theorem of thm_flavour * string option * 'term * 'term option (* flavour, name, type, body * - name is absent when an unnamed theorem is being proved, tipically in @@ -83,11 +90,6 @@ type 'term command = * - body is present when its given along with the command, otherwise it * will be given in proof editing mode using the tactical language *) - | Qed of string option - (* name. - * Name is needed when theorem was started without providing a name - *) - | Quit type ('term, 'ident) tactical = | LocatedTactical of CicAst.location * ('term, 'ident) tactical diff --git a/helm/ocaml/cic_transformations/tacticAstPp.ml b/helm/ocaml/cic_transformations/tacticAstPp.ml index 4380dd5df..9a544234d 100644 --- a/helm/ocaml/cic_transformations/tacticAstPp.ml +++ b/helm/ocaml/cic_transformations/tacticAstPp.ml @@ -86,7 +86,12 @@ let pp_flavour = function | `Theorem -> "Theorem" let pp_command = function + | 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." (pp_flavour flavour) @@ -95,9 +100,6 @@ let pp_command = function (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