aboutsummaryrefslogtreecommitdiff
path: root/proofs/macros.mli
diff options
context:
space:
mode:
authorfilliatr1999-10-22 14:22:54 +0000
committerfilliatr1999-10-22 14:22:54 +0000
commitf463fd3ddade82b402777352b03a2d500c854ccb (patch)
treee0cac64124419b762ab68301d78e7f3fcde9a9d2 /proofs/macros.mli
parentf4475577124d04b106c50bbbb8e1c3319e8c1631 (diff)
module Macros et Tacinterp
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@115 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'proofs/macros.mli')
-rw-r--r--proofs/macros.mli22
1 files changed, 22 insertions, 0 deletions
diff --git a/proofs/macros.mli b/proofs/macros.mli
new file mode 100644
index 0000000000..c62f13c76c
--- /dev/null
+++ b/proofs/macros.mli
@@ -0,0 +1,22 @@
+
+(* $Id$ *)
+
+(*i*)
+open Names
+open Tacmach
+open Proof_trees
+(*i*)
+
+(* This file contains the table of macro tactics. The body of the
+ defined tactics is stored as an ast with variables, which are
+ substituted by the real arguments at calling time.
+ User defined tactics are stored in a separate table so that they
+ are sensible to the Reset and Require commands. *)
+
+type macro_data = {
+ mac_args : string list;
+ mac_body : Ast.act }
+
+val add_macro_hint : string -> string list * Ast.act -> unit
+val lookup : string -> macro_data
+val macro_expand : Coqast.loc -> string -> tactic_arg list -> Coqast.t