(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) (* v * Copyright INRIA, CNRS and contributors *) (* notation_grammar_map := NotationMap.add ntn rule !notation_grammar_map let grammar_of_notation ntn = NotationMap.find ntn !notation_grammar_map let notation_subentries_map = Summary.ref ~name:"notation_subentries_map" NotationMap.empty let declare_notation_subentries ntn entries = try let _ = NotationMap.find ntn !notation_grammar_map in anomaly (str "Notation " ++ pr_notation ntn ++ str " is already assigned a grammar.") with Not_found -> notation_subentries_map := NotationMap.add ntn entries !notation_subentries_map let subentries_of_notation ntn = NotationMap.find ntn !notation_subentries_map let get_defined_notations () = NotationSet.elements @@ NotationMap.domain !notation_grammar_map