aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--parsing/g_vernac.ml411
1 files changed, 6 insertions, 5 deletions
diff --git a/parsing/g_vernac.ml4 b/parsing/g_vernac.ml4
index baf61c5c2d..68e6fe858d 100644
--- a/parsing/g_vernac.ml4
+++ b/parsing/g_vernac.ml4
@@ -213,10 +213,10 @@ GEXTEND Gram
(id,c,lc) ] ]
;
oneind:
- [ [ id = base_ident; indpar = indpar; ":"; c = constr; ":=";
+ [ [ id = base_ident; indpar = simple_binders_list; ":"; c = constr; ":=";
lc = constructor_list -> (id,indpar,c,lc) ] ]
;
- indpar:
+ simple_binders_list:
[ [ bl = ne_simple_binders_list -> bl
| -> [] ] ]
;
@@ -297,7 +297,8 @@ GEXTEND Gram
indl = block_old_style ->
let indl' = List.map (fun (id,ar,c) -> (id,bl,ar,c)) indl in
VernacInductive (f,indl')
- | record_token; oc = opt_coercion; name = base_ident; ps = indpar; ":";
+ | record_token; oc = opt_coercion; name = base_ident;
+ ps = simple_binders_list; ":";
s = constr; ":="; c = rec_constructor; "{"; fs = fields; "}" ->
VernacRecord ((oc,name),ps,s,c,fs)
] ]
@@ -310,8 +311,8 @@ GEXTEND Gram
| "Fixpoint"; recs = specifrec -> VernacFixpoint recs
| "CoFixpoint"; corecs = specifcorec -> VernacCoFixpoint corecs
| IDENT "Scheme"; l = schemes -> VernacScheme l
- | f = finite_token; s = csort; id = base_ident; indpar = indpar; ":=";
- lc = constructor_list ->
+ | f = finite_token; s = csort; id = base_ident;
+ indpar = simple_binders_list; ":="; lc = constructor_list ->
VernacInductive (f,[id,indpar,s,lc]) ] ]
;
csort: