package rocq-runtime
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=a45280ab4fbaac7540b136a6b073b4a6db15739ec1e149bded43fa6f4fc25f20
doc/rocq-runtime.interp/Abbreviation/index.html
Module AbbreviationSource
Abbreviations
Representation of the data associated to an abbreviation.
interp a gives the interpretation of abbreviation a.
full_path a gives the full path of abbreviation a.
only_parsing a indicates whether the abbreviation a is only used for parsing, and not for printing.
fold f acc folds function f over the current abbreviation map, using acc as the initial accumulator value.
find_opt k gives the abbreviation associated with the key k in the abbreviation map, if there is one.
find_interp k gives the interpretation of the abbreviation associated with the key k in the abbreviation map. The Not_found exception is raised if k is not mapped.
toggle ~on ~use key actives (if on) or deactivates (if not on) the abbreviation with the given key. An abbreviation associated with key should exist, otherwise Not_found is raised.
val toggle_if :
on:bool ->
use:Notationextern.notation_use ->
(Globnames.abbreviation -> data -> bool) ->
unittoggle_if ~on ~use pred is equivalent to running toggle ~on ~use on all abbreviations satisfying the given predicate pred.
val declare :
local:Libobject.locality ->
Globnames.extended_global_reference UserWarn.with_qf option ->
Names.Id.t ->
onlyparsing:bool ->
Notation_term.interpretation ->
unit