Debian Codegraph @

parsing/notation_gram.mli

raw symbols SCIP
1 (************************************************************************)
2 (* * The Rocq Prover / The Rocq Development Team *)
3 (* v * Copyright INRIA, CNRS and contributors *)
4 (* <O___,, * (see version control and CREDITS file for authors & dates) *)
5 (* \VV/ **************************************************************)
6 (* // * This file is distributed under the terms of the *)
7 (* * GNU Lesser General Public License Version 2.1 *)
8 (* * (see LICENSE file for the text of the license) *)
9 (************************************************************************)
10
11 open Names
12
13 type grammar_constr_prod_item =
14 | GramConstrTerminal of bool (* true = in keyword position *) * string
15 | GramConstrNonTerminal of Extend.constr_prod_entry_key * Id.t option
16 | GramConstrListMark of int * bool * int
17 (* tells action rule to make a list of the n previous parsed items;
18 concat with last parsed list when true; additionally release
19 the p last items as if they were parsed autonomously *)
20
21 (** Grammar rules for a notation *)
22
23 type one_notation_grammar = {
24 notgram_level : Notationextern.level;
25 notgram_assoc : Gramlib.Gramext.g_assoc option;
26 notgram_notation : Constrexpr.notation;
27 notgram_prods : grammar_constr_prod_item list list;
28 notgram_typs : Extend.constr_entry_key list;
29 }
30
31 type notation_grammar = one_notation_grammar list