| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
open Names |
| 12 |
open Genarg |
| 13 |
|
| 14 |
module Store : Store.S |
| 15 |
|
| 16 |
type ntnvar_status = { |
| 17 |
|
| 18 |
mutable ntnvar_used : bool list; |
| 19 |
mutable ntnvar_used_as_binder : bool; |
| 20 |
mutable ntnvar_scopes : Notation_term.subscopes option; |
| 21 |
mutable ntnvar_binding_ids : Notation_term.notation_var_binders option; |
| 22 |
ntnvar_typ : Notation_term.notation_var_internalization_type; |
| 23 |
} |
| 24 |
|
| 25 |
type intern_variable_status = { |
| 26 |
intern_ids : Id.Set.t; |
| 27 |
notation_variable_status : ntnvar_status Id.Map.t; |
| 28 |
} |
| 29 |
|
| 30 |
type glob_sign = { |
| 31 |
ltacvars : Id.Set.t; |
| 32 |
genv : Environ.env; |
| 33 |
extra : Store.t; |
| 34 |
intern_sign : intern_variable_status; |
| 35 |
strict_check : bool; |
| 36 |
} |
| 37 |
|
| 38 |
val empty_glob_sign : strict:bool -> Environ.env -> glob_sign |
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
type glob_constr_and_expr = Glob_term.glob_constr * Constrexpr.constr_expr option |
| 44 |
type glob_constr_pattern_and_expr = Id.Set.t * glob_constr_and_expr * Pattern.uninstantiated_pattern |
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
type ('raw, 'glb) intern_fun = glob_sign -> 'raw -> glob_sign * 'glb |
| 49 |
|
| 50 |
|
| 51 |
val intern : ('raw, 'glb, 'top) genarg_type -> ('raw, 'glb) intern_fun |
| 52 |
|
| 53 |
val generic_intern : (raw_generic_argument, glob_generic_argument) intern_fun |
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
type ('raw,'glb) intern_pat_fun = ?loc:Loc.t -> ('raw,'glb) intern_fun |
| 58 |
|
| 59 |
val intern_pat : ('raw, 'glb, 'top) genarg_type -> ('raw, 'glb) intern_pat_fun |
| 60 |
|
| 61 |
val generic_intern_pat : (raw_generic_argument, glob_generic_argument) intern_pat_fun |
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
type 'glb ntn_subst_fun = ntnvar_status Id.Map.t -> (Id.t -> Glob_term.glob_constr option) -> 'glb -> 'glb |
| 69 |
|
| 70 |
val substitute_notation : ('raw, 'glb, 'top) genarg_type -> 'glb ntn_subst_fun |
| 71 |
|
| 72 |
val generic_substitute_notation : glob_generic_argument ntn_subst_fun |
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
val register_intern0 : ('raw, 'glb, 'top) genarg_type -> |
| 77 |
('raw, 'glb) intern_fun -> unit |
| 78 |
|
| 79 |
val register_intern_pat : ('raw, 'glb, 'top) genarg_type -> |
| 80 |
('raw, 'glb) intern_pat_fun -> unit |
| 81 |
|
| 82 |
val register_ntn_subst0 : ('raw, 'glb, 'top) genarg_type -> |
| 83 |
'glb ntn_subst_fun -> unit |
| 84 |
|
| 85 |
|
| 86 |
val with_used_ntnvars : ntnvar_status Id.Map.t -> (unit -> 'a) -> Id.Set.t * 'a |