| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
open Vernacexpr |
| 14 |
open Tacexpr |
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
val register_ltac : Attributes.vernac_flags -> Tacexpr.tacdef_body list -> unit |
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
type 'a grammar_tactic_prod_item_expr = 'a Pptactic.grammar_tactic_prod_item_expr = |
| 24 |
| TacTerm of string |
| 25 |
| TacNonTerm of ('a * Names.Id.t option) Loc.located |
| 26 |
|
| 27 |
type tactic_grammar_obj |
| 28 |
|
| 29 |
type raw_argument = string * string option |
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
type argument = Genarg.ArgT.any Extend.user_symbol |
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
val add_tactic_notation : |
| 39 |
?deprecation:Deprecation.t -> tactic_grammar_obj -> |
| 40 |
raw_tactic_expr -> unit |
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
val add_tactic_notation_syntax : |
| 46 |
locality_flag -> int -> ?deprecation:Deprecation.t -> raw_argument |
| 47 |
grammar_tactic_prod_item_expr list -> |
| 48 |
tactic_grammar_obj |
| 49 |
|
| 50 |
val register_tactic_notation_entry : string -> ('a, 'b, 'c) Genarg.genarg_type -> unit |
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
val create_ltac_quotation : plugin:string -> string -> |
| 60 |
('grm Loc.located -> raw_tactic_arg) -> ('grm Procq.Entry.t * int option) -> unit |
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
val print_ltacs : unit -> unit |
| 68 |
|
| 69 |
|
| 70 |
val print_located_tactic : Libnames.qualid -> unit |
| 71 |
|
| 72 |
|
| 73 |
val print_ltac : Libnames.qualid -> Pp.t |
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
type (_, 'a) ml_ty_sig = |
| 79 |
| MLTyNil : ('a, 'a) ml_ty_sig |
| 80 |
| MLTyArg : ('r, 'a) ml_ty_sig -> (Geninterp.Val.t -> 'r, 'a) ml_ty_sig |
| 81 |
|
| 82 |
val ml_tactic_extend : plugin:string -> name:string -> local:locality_flag -> |
| 83 |
?deprecation:Deprecation.t -> ('r, unit Proofview.tactic) ml_ty_sig -> 'r -> unit |
| 84 |
|
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
val ml_val_tactic_extend : plugin:string -> name:string -> local:locality_flag -> |
| 91 |
?deprecation:Deprecation.t -> ('r, Geninterp.Val.t Ftactic.t) ml_ty_sig -> 'r -> unit |
| 92 |
|
| 93 |
|
| 94 |
|
| 95 |
|
| 96 |
|
| 97 |
type _ ty_sig = |
| 98 |
| TyNil : (Geninterp.interp_sign -> unit Proofview.tactic) ty_sig |
| 99 |
| TyIdent : string * 'r ty_sig -> 'r ty_sig |
| 100 |
| TyArg : ('a, 'b, 'c) Extend.ty_user_symbol * 'r ty_sig -> ('c -> 'r) ty_sig |
| 101 |
|
| 102 |
type ty_ml = TyML : 'r ty_sig * 'r -> ty_ml |
| 103 |
|
| 104 |
val tactic_extend : string -> string -> level:Int.t -> |
| 105 |
?deprecation:Deprecation.t -> ty_ml list -> unit |
| 106 |
|
| 107 |
val eval_of_ty_ml : |
| 108 |
ty_ml -> |
| 109 |
Geninterp.Val.t list -> |
| 110 |
Geninterp.interp_sign -> |
| 111 |
unit Proofview.tactic |
| 112 |
|
| 113 |
|
| 114 |
val clause_of_ty_ml : |
| 115 |
ty_ml -> |
| 116 |
Genarg.ArgT.any Extend.user_symbol grammar_tactic_prod_item_expr list |
| 117 |
|
| 118 |
|
| 119 |
|
| 120 |
|
| 121 |
|
| 122 |
|
| 123 |
|
| 124 |
|
| 125 |
|
| 126 |
|
| 127 |
|
| 128 |
|
| 129 |
|
| 130 |
|
| 131 |
|
| 132 |
|
| 133 |
|
| 134 |
|
| 135 |
|
| 136 |
|
| 137 |
|
| 138 |
|
| 139 |
|
| 140 |
|
| 141 |
|
| 142 |
|
| 143 |
type ('a, 'b, 'c) argument_printer = |
| 144 |
'a Pptactic.raw_extra_genarg_printer * |
| 145 |
'b Pptactic.glob_extra_genarg_printer * |
| 146 |
'c Pptactic.extra_genarg_printer |
| 147 |
|
| 148 |
type ('a, 'b) argument_intern = |
| 149 |
| ArgInternFun : ('a, 'b) Genintern.intern_fun -> ('a, 'b) argument_intern |
| 150 |
| ArgInternWit : ('a, 'b, 'c) Genarg.genarg_type -> ('a, 'b) argument_intern |
| 151 |
|
| 152 |
type 'b argument_subst = |
| 153 |
| ArgSubstFun : 'b Gensubst.subst_fun -> 'b argument_subst |
| 154 |
| ArgSubstWit : ('a, 'b, 'c) Genarg.genarg_type -> 'b argument_subst |
| 155 |
|
| 156 |
type ('b, 'c) argument_interp = |
| 157 |
| ArgInterpRet : ('c, 'c) argument_interp |
| 158 |
| ArgInterpFun : ('b, Geninterp.Val.t) Geninterp.interp_fun -> ('b, 'c) argument_interp |
| 159 |
| ArgInterpWit : ('a, 'b, 'r) Genarg.genarg_type -> ('b, 'c) argument_interp |
| 160 |
| ArgInterpSimple : |
| 161 |
(Geninterp.interp_sign -> Environ.env -> Evd.evar_map -> 'b -> 'c) -> ('b, 'c) argument_interp |
| 162 |
|
| 163 |
type ('a, 'b, 'c) tactic_argument = { |
| 164 |
arg_parsing : 'a Vernacextend.argument_rule; |
| 165 |
arg_tag : 'c Geninterp.Val.tag option; |
| 166 |
arg_intern : ('a, 'b) argument_intern; |
| 167 |
arg_subst : 'b argument_subst; |
| 168 |
arg_interp : ('b, 'c) argument_interp; |
| 169 |
arg_printer : ('a, 'b, 'c) argument_printer; |
| 170 |
} |
| 171 |
|
| 172 |
val argument_extend : plugin:string -> name:string -> ignore_kw:bool -> |
| 173 |
('a, 'b, 'c) tactic_argument -> |
| 174 |
('a, 'b, 'c) Genarg.genarg_type * 'a Procq.Entry.t |