Debian Codegraph @

plugins/ltac/pltac.ml

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
13 (* Main entry for extensions *)
14 let simple_tactic = Entry.make "simple_tactic"
15
16 (* Typically for tactic user extensions *)
17 let open_constr =
18 Entry.make "open_constr"
19 let constr_with_bindings =
20 Entry.make "constr_with_bindings"
21 let bindings =
22 Entry.make "bindings"
23 let hypident = Entry.make "hypident"
24 let constr_eval = Entry.make "constr_eval"
25 let uconstr =
26 Entry.make "uconstr"
27 let quantified_hypothesis =
28 Entry.make "quantified_hypothesis"
29 let destruction_arg = Entry.make "destruction_arg"
30 let nat_or_var = G_redexpr.nat_or_var
31 let intropattern =
32 Entry.make "intropattern"
33 let simple_intropattern =
34 Entry.make "simple_intropattern"
35 let in_clause = Entry.make "in_clause"
36 let clause_dft_concl =
37 Entry.make "clause"
38
39
40 (* Main entries for ltac *)
41 let tactic_value = Entry.make "tactic_value"
42 let ltac_expr = Entry.make "ltac_expr"
43
44 let tactic = Entry.make "tactic"
45
46 (* Main entry for quotations *)
47 let tactic_eoi = eoi_entry tactic
48
49 let () =
50 let open Stdarg in
51 let open Tacarg in
52 let open G_redexpr in
53 register_grammar wit_int_or_var (int_or_var);
54 register_grammar wit_nat_or_var (nat_or_var);
55 register_grammar wit_intropattern (intropattern);
56 register_grammar wit_simple_intropattern (simple_intropattern);
57 register_grammar wit_quant_hyp (quantified_hypothesis);
58 register_grammar wit_uconstr (uconstr);
59 register_grammar wit_open_constr (open_constr);
60 register_grammar wit_constr_with_bindings (constr_with_bindings);
61 register_grammar wit_bindings (bindings);
62 register_grammar wit_tactic (tactic);
63 register_grammar wit_ltac (tactic);
64 register_grammar wit_clause_dft_concl (clause_dft_concl);
65 register_grammar wit_destruction_arg (destruction_arg);
66 ()