(************************************************************************) (* v * The Coq Proof Assistant / The Coq Development Team *) (* user_symbol | Ulist1sep : user_symbol * string -> user_symbol | Ulist0 : user_symbol -> user_symbol | Ulist0sep : user_symbol * string -> user_symbol | Uopt : user_symbol -> user_symbol | Umodifiers : user_symbol -> user_symbol | Uentry : string -> user_symbol | Uentryl : string * int -> user_symbol (** {5 Type-safe grammar extension} *) type ('self, 'a) symbol = | Atoken : Tok.t -> ('self, string) symbol | Alist1 : ('self, 'a) symbol -> ('self, 'a list) symbol | Alist1sep : ('self, 'a) symbol * string -> ('self, 'a list) symbol | Alist0 : ('self, 'a) symbol -> ('self, 'a list) symbol | Alist0sep : ('self, 'a) symbol * string -> ('self, 'a list) symbol | Aopt : ('self, 'a) symbol -> ('self, 'a option) symbol | Amodifiers : ('self, 'a) symbol -> ('self, 'a list) symbol | Aself : ('self, 'self) symbol | Anext : ('self, 'self) symbol | Aentry : 'a Entry.t -> ('self, 'a) symbol | Aentryl : 'a Entry.t * int -> ('self, 'a) symbol type ('self, _, 'r) rule = | Stop : ('self, 'r, 'r) rule | Next : ('self, 'a, 'r) rule * ('self, 'b) symbol -> ('self, 'b -> 'a, 'r) rule type 'a production_rule = | Rule : ('a, 'act, Loc.t -> 'a) rule * 'act -> 'a production_rule type 'a single_extend_statment = string option * (** Level *) gram_assoc option * (** Associativity *) 'a production_rule list (** Symbol list with the interpretation function *) type 'a extend_statment = gram_position option * 'a single_extend_statment list