aboutsummaryrefslogtreecommitdiff
path: root/parsing/pcoq.ml
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2019-08-19 01:51:32 +0200
committerEmilio Jesus Gallego Arias2019-08-19 01:51:32 +0200
commit306f862507c278f6865b82e5443f9d47742b2bc5 (patch)
treee38f28859529d5c3543b57c0ad86fcf22f135545 /parsing/pcoq.ml
parent354ac6a0c59f77d8a7d63c84144c044fe958fa3c (diff)
[parsing] Move pcoq-specific parts in extend to pcoq.
Diffstat (limited to 'parsing/pcoq.ml')
-rw-r--r--parsing/pcoq.ml12
1 files changed, 12 insertions, 0 deletions
diff --git a/parsing/pcoq.ml b/parsing/pcoq.ml
index 3aaba27579..fa837c484c 100644
--- a/parsing/pcoq.ml
+++ b/parsing/pcoq.ml
@@ -215,6 +215,18 @@ let fix_extend_statement (pos, st) =
(** Type of reinitialization data *)
type gram_reinit = Gramlib.Gramext.g_assoc * Gramlib.Gramext.position
+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
+
type extend_rule =
| ExtendRule : 'a G.Entry.e * gram_reinit option * 'a extend_statement -> extend_rule