package coq-core
Install
Dune Dependency
Authors
Maintainers
Sources
md5=66e57ea55275903bef74d5bf36fbe0f1
sha512=1a7eac6e2f58724a3f9d68bbb321e4cfe963ba1a5551b9b011db4b3f559c79be433d810ff262593d753770ee41ea68fbd6a60daa1e2319ea00dff64c8851d70b
doc/coq-core.vernac/Metasyntax/index.html
Module Metasyntax
Source
This data type packages all the necessary information to declare a notation interpretation, once the syntax is declared or recovered from a previous declaration.
val add_notation_syntax :
local:bool ->
infix:bool ->
UserWarn.t option ->
Vernacexpr.notation_declaration ->
notation_interpretation_decl
Add syntax rules for a (constr) notation in the environment
val add_notation_interpretation :
local:bool ->
Environ.env ->
notation_interpretation_decl ->
unit
Declare the interpretation of a notation
Declaring scopes, delimiter keys and default scopes
val add_class_scope :
Vernacexpr.locality_flag ->
Notation_term.scope_name ->
Notation.add_scope_where option ->
Notation.scope_class list ->
unit
Scope opening
val open_close_scope :
Vernacexpr.locality_flag ->
to_open:bool ->
Notation_term.scope_name ->
unit
Add a notation interpretation associated to a "where" clause (already has pa/pp rules)
Interpret the modifiers of a where-notation
val set_notation_for_interpretation :
Environ.env ->
Constrintern.internalization_env ->
notation_interpretation_decl ->
unit
Set the interpretation of the where-notation for interpreting a mutual block
Add only the parsing/printing rule of a notation
val add_reserved_notation :
local:bool ->
infix:bool ->
(Names.lstring * Vernacexpr.syntax_modifier CAst.t list) ->
unit
Add a syntactic definition (as in "Notation f := ...")
val add_abbreviation :
local:bool ->
UserWarn.t option ->
Environ.env ->
Names.Id.t ->
(Names.Id.t list * Constrexpr.constr_expr) ->
Vernacexpr.syntax_modifier CAst.t list ->
unit
Print the Camlp5 state of a grammar
val declare_notation_toggle :
Vernacexpr.locality_flag ->
on:bool ->
all:bool ->
Notation.notation_query_pattern ->
unit
Declare given string as a custom grammar entry
Check that the given string is a valid custom entry that has been declared
val pr_level :
Constrexpr.notation ->
Notationextern.level ->
Extend.constr_entry_key list ->
Pp.t
Pretty print level information of a notation and all of its arguments