Debian Codegraph @

plugins/ltac/tacarg.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 (** Generic arguments based on Ltac. *)
12
13 open Genarg
14 open Geninterp
15 open Tacexpr
16
17 let make0 ?dyn name =
18 let wit = Genarg.make0 name in
19 let () = Geninterp.register_val0 wit dyn in
20 wit
21
22 let wit_intropattern = make0 "intropattern" (* To keep after deprecation phase but it will get a different parsing semantics (Tactic Notation and TACTIC EXTEND) in pltac.ml *)
23 let wit_simple_intropattern = make0 ~dyn:(val_tag (topwit wit_intropattern)) "simple_intropattern"
24 let wit_quant_hyp = make0 "quant_hyp"
25 let wit_constr_with_bindings = make0 "constr_with_bindings"
26 let wit_open_constr_with_bindings = make0 "open_constr_with_bindings"
27 let wit_bindings = make0 "bindings"
28 let wit_quantified_hypothesis = wit_quant_hyp
29
30 let wit_tactic : (raw_tactic_expr, glob_tactic_expr, Val.t) genarg_type =
31 make0 "tactic"
32
33 let wit_ltac_in_term = make0 "ltac_in_term"
34
35 let wit_ltac = make0 ~dyn:(val_tag (topwit Stdarg.wit_unit)) "ltac"
36
37 let wit_destruction_arg =
38 make0 "destruction_arg"