diff options
| author | Emilio Jesus Gallego Arias | 2019-08-19 01:51:32 +0200 |
|---|---|---|
| committer | Emilio Jesus Gallego Arias | 2019-08-19 01:51:32 +0200 |
| commit | 306f862507c278f6865b82e5443f9d47742b2bc5 (patch) | |
| tree | e38f28859529d5c3543b57c0ad86fcf22f135545 /parsing/pcoq.mli | |
| parent | 354ac6a0c59f77d8a7d63c84144c044fe958fa3c (diff) | |
[parsing] Move pcoq-specific parts in extend to pcoq.
Diffstat (limited to 'parsing/pcoq.mli')
| -rw-r--r-- | parsing/pcoq.mli | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/parsing/pcoq.mli b/parsing/pcoq.mli index 7efeab6ba0..10f78a5a72 100644 --- a/parsing/pcoq.mli +++ b/parsing/pcoq.mli @@ -212,8 +212,19 @@ val epsilon_value : ('a -> 'self) -> ('self, _, 'a) Extend.symbol -> 'self optio type gram_reinit = Gramlib.Gramext.g_assoc * Gramlib.Gramext.position (** Type of reinitialization data *) -val grammar_extend : 'a Entry.t -> gram_reinit option -> - 'a Extend.extend_statement -> unit +type 'a single_extend_statement = + string option * + (* Level *) + Gramlib.Gramext.g_assoc option * + (* Associativity *) + 'a production_rule list + (* Symbol list with the interpretation function *) + +type 'a extend_statement = + Gramlib.Gramext.position option * + 'a single_extend_statement list + +val grammar_extend : 'a Entry.t -> gram_reinit option -> 'a extend_statement -> unit (** Extend the grammar of Coq, without synchronizing it with the backtracking mechanism. This means that grammar extensions defined this way will survive an undo. *) |
