Debian Codegraph @

vernac/pvernac.mli

raw symbols SCIP
1 (************************************************************************)
2 (* * The Rocq Prover / The Rocq Development Team *)
3 (* v * Copyright INRIA, CNRS and contributors *)
4 (* <O___,, * (see version control and CREDITS file for authors & dates) *)
5 (* \VV/ **************************************************************)
6 (* // * This file is distributed under the terms of the *)
7 (* * GNU Lesser General Public License Version 2.1 *)
8 (* * (see LICENSE file for the text of the license) *)
9 (************************************************************************)
10
11 open Procq
12 open Redexpr
13 open Vernacexpr
14
15 type proof_mode
16
17 module Vernac_ :
18 sig
19 val gallina : synpure_vernac_expr Entry.t
20 val gallina_ext : vernac_expr Entry.t
21 val command : vernac_expr Entry.t
22 val syntax : vernac_expr Entry.t
23 val vernac_control : vernac_control Entry.t
24 val inductive_or_record_definition : (inductive_expr * notation_declaration list) Entry.t
25 val fix_definition : fixpoint_expr Entry.t
26 val noedit_mode : vernac_expr Entry.t
27 val command_entry : vernac_expr Entry.t
28 val generic_tactic : Gentactic.raw_generic_tactic Entry.t
29 val main_entry : vernac_control option Entry.t
30 val red_expr : raw_red_expr Entry.t
31 val hint_info : hint_info_expr Entry.t
32 end
33
34 (* To be removed when the parser is made functional wrt the tactic
35 * non terminal *)
36 module Unsafe : sig
37 (* To let third party grammar entries reuse Vernac_ and
38 * do something with the proof mode *)
39 val set_tactic_entry : proof_mode option -> unit
40 end
41
42 (** The main entry: reads an optional vernac command *)
43 val main_entry : proof_mode option -> vernac_control option Entry.t
44
45 (** Grammar entry for tactics: proof mode(s).
46 By default Coq's grammar has an empty entry (non-terminal) for
47 tactics. A plugin can register its non-terminal by providing a name
48 and a grammar entry.
49
50 For example the Ltac plugin register the "Classic" grammar
51 entry for parsing its tactics.
52 *)
53
54 type proof_mode_entry = ProofMode : {
55 command_entry : Vernacexpr.vernac_expr Entry.t;
56 wit_tactic_expr : ('raw,_,unit) Genarg.genarg_type;
57 tactic_expr_entry : 'raw Entry.t;
58 } -> proof_mode_entry
59
60 val register_proof_mode : string -> proof_mode_entry -> proof_mode
61 val lookup_proof_mode : string -> proof_mode option
62 val proof_mode_to_string : proof_mode -> string
63 val list_proof_modes : unit -> proof_mode_entry CString.Map.t
64
65 val get_default_proof_mode : unit -> proof_mode
66
67 val proof_mode_opt_name : string list