12345678910111213141516171819202122232425262728293031(************************************************************************)(* * The Coq Proof Assistant / The Coq Development Team *)(* v * Copyright INRIA, CNRS and contributors *)(* <O___,, * (see version control and CREDITS file for authors & dates) *)(* \VV/ **************************************************************)(* // * This file is distributed under the terms of the *)(* * GNU Lesser General Public License Version 2.1 *)(* * (see LICENSE file for the text of the license) *)(************************************************************************)openNamestypegrammar_constr_prod_item=|GramConstrTerminalofstringTok.p|GramConstrNonTerminalofExtend.constr_prod_entry_key*Id.toption|GramConstrListMarkofint*bool*int(* tells action rule to make a list of the n previous parsed items;
concat with last parsed list when true; additionally release
the p last items as if they were parsed autonomously *)(** Grammar rules for a notation *)typeone_notation_grammar={notgram_level:Notation.level;notgram_assoc:Gramlib.Gramext.g_assocoption;notgram_notation:Constrexpr.notation;notgram_prods:grammar_constr_prod_itemlistlist;notgram_typs:Extend.constr_entry_keylist;}typenotation_grammar=one_notation_grammarlist