Notation_term
notation_constr
notation_constr
is the subtype of glob_constr
allowed in syntactic extensions (i.e. notations). No location since intended to be substituted at any place of a text. Complex expressions such as fixpoints and cofixpoints are excluded, as well as non global expressions such as existential variables.
type notation_constr =
Note concerning NList: first constr is iterator, second is terminator; first id is where each argument of the list has to be substituted in iterator and snd id is alternative name just for printing; boolean is associativity
Types concerning notations
type tmp_scope_name = scope_name
type subscopes = tmp_scope_name list * scope_name list
type extended_subscopes = Constrexpr.notation_entry_level * subscopes
Type of the meta-variables of an notation_constr: in a recursive pattern x..y, x carries the sequence of objects bound to the list x..y
type notation_binder_source =
| NtnParsedAsPattern of bool |
| NtnParsedAsIdent |
| NtnParsedAsName |
| NtnBinderParsedAsConstr of constr_as_binder_kind |
| NtnParsedAsBinder |
type notation_var_instance_type =
| NtnTypeConstr |
| NtnTypeBinder of notation_binder_source |
| NtnTypeConstrList |
| NtnTypeBinderList |
type notation_var_internalization_type =
| NtnInternTypeAny of scope_name option |
| NtnInternTypeOnlyBinder |
Type of variables when interpreting a constr_expr as a notation_constr: in a recursive pattern x..y, both x and y carry the individual type of each element of the list x..y
type interpretation = (Names.Id.t * (extended_subscopes * notation_var_instance_type)) list * notation_constr
This characterizes to what a notation is interpreted to
type notation_interp_env = {
ninterp_var_type : notation_var_internalization_type Names.Id.Map.t; |
ninterp_rec_vars : Names.Id.t Names.Id.Map.t; |
}