aboutsummaryrefslogtreecommitdiffhomepage
path: root/API
diff options
context:
space:
mode:
authorGravatar Emilio Jesus Gallego Arias <e+git@x80.org>2017-11-20 16:19:41 +0100
committerGravatar Emilio Jesus Gallego Arias <e+git@x80.org>2017-11-27 19:44:28 +0100
commit4aba7c162905c61b3bb1a9f8d5c325de38b5847a (patch)
treed65724fb8941c208f86047b62fbef1229f9c5964 /API
parent437f20f0a1c2717cd7baae52e2ab20750dd9d4fb (diff)
[vernac] Start to uniformize type of vernac interpretation.
In particular, we put all the context in the atts structure, and generalize the type of the parameters of a vernac. I hope this helps people working on "attributes", my motivation is indeed having a more robust interpretation.
Diffstat (limited to 'API')
-rw-r--r--API/API.mli9
1 files changed, 4 insertions, 5 deletions
diff --git a/API/API.mli b/API/API.mli
index 7ec3cbee3..85cd644b0 100644
--- a/API/API.mli
+++ b/API/API.mli
@@ -6114,12 +6114,11 @@ sig
locality : bool option;
}
- type vernac_command =
- Genarg.raw_generic_argument list ->
- atts:atts -> st:Vernacstate.t ->
- Vernacstate.t
+ type 'a vernac_command = 'a -> atts:atts -> st:Vernacstate.t -> Vernacstate.t
- val vinterp_add : deprecation -> Vernacexpr.extend_name -> vernac_command -> unit
+ type plugin_args = Genarg.raw_generic_argument list
+
+ val vinterp_add : deprecation -> Vernacexpr.extend_name -> plugin_args vernac_command -> unit
end