aboutsummaryrefslogtreecommitdiffhomepage
path: root/vernac/vernacinterp.mli
blob: 1c66b1c045618e5efa0429e1edd21c8750dd06bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
(************************************************************************)
(*  v      *   The Coq Proof Assistant  /  The Coq Development Team     *)
(* <O___,, *   INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2017     *)
(*   \VV/  **************************************************************)
(*    //   *      This file is distributed under the terms of the       *)
(*         *       GNU Lesser General Public License Version 2.1        *)
(************************************************************************)

(** Interpretation of extended vernac phrases. *)

type deprecation = bool

type vernac_command = Genarg.raw_generic_argument list -> Loc.t option ->
  Vernacstate.t -> Vernacstate.t

val vinterp_add : deprecation -> Vernacexpr.extend_name -> vernac_command -> unit

val overwriting_vinterp_add : Vernacexpr.extend_name -> vernac_command -> unit

val vinterp_init : unit -> unit

val call : ?locality:bool -> ?loc:Loc.t ->
  Vernacexpr.extend_name * Genarg.raw_generic_argument list ->
  Vernacstate.t -> Vernacstate.t