aboutsummaryrefslogtreecommitdiff
path: root/vernac/vernacextend.mli
diff options
context:
space:
mode:
authorGaƫtan Gilbert2019-05-21 23:06:40 +0200
committerEnrico Tassi2019-06-04 13:58:43 +0200
commit3b7509b96273f4e412b747e0c55dd193f38fd418 (patch)
treea77d952a62174ded2042cb15ee40abf44c328ca2 /vernac/vernacextend.mli
parent96231a23a9b76b17541572defb6089e23e80c474 (diff)
VernacExtend produces vernac_interp_phase ADT (old name functional_vernac)
+ hide interp_functional_vernac in vernacentries
Diffstat (limited to 'vernac/vernacextend.mli')
-rw-r--r--vernac/vernacextend.mli11
1 files changed, 10 insertions, 1 deletions
diff --git a/vernac/vernacextend.mli b/vernac/vernacextend.mli
index 46cee30a1e..4d885a3afc 100644
--- a/vernac/vernacextend.mli
+++ b/vernac/vernacextend.mli
@@ -71,7 +71,16 @@ type vernac_classification = vernac_type * vernac_when
(** Interpretation of extended vernac phrases. *)
-type vernac_command = atts:Attributes.vernac_flags -> pstate:Proof_global.stack option -> Proof_global.stack option
+type vernac_interp_phase =
+ | VtDefault of (unit -> unit)
+ | VtCloseProof of (pstate:Proof_global.t -> unit)
+ | VtMaybeOpenProof of (unit -> Proof_global.t option)
+ | VtOpenProof of (unit -> Proof_global.t)
+ | VtModifyProof of (pstate:Proof_global.t -> Proof_global.t)
+ | VtReadProofOpt of (pstate:Proof_global.t option -> unit)
+ | VtReadProof of (pstate:Proof_global.t -> unit)
+
+type vernac_command = atts:Attributes.vernac_flags -> vernac_interp_phase
type plugin_args = Genarg.raw_generic_argument list