(************************************************************************) (* * The Rocq Prover / The Rocq Development Team *) (* v * Copyright INRIA, CNRS and contributors *) (* notation_grammar -> unit val grammar_of_notation : notation -> notation_grammar (** raise [Not_found] if not declared *) val declare_notation_non_terminals : notation -> Extend.constr_entry_key list -> unit val non_terminals_of_notation : notation -> Extend.constr_entry_key list (** [longest_common_prefix ntn] looks among notations [ntn'] already registered with [declare_notation_non_terminals ntn'] for the one that shares the longest common prefix with [ntn], if any returns [Some (ntn', k)] where [k] is the number of nonterminal symbols in the common prefix between [ntn] and [ntn']. *) val longest_common_prefix : notation -> (notation * int) option (** Returns notations with defined parsing/printing rules *) val get_defined_notations : unit -> notation list