aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Herbelin2019-11-19 21:01:41 +0100
committerHugo Herbelin2019-11-19 21:03:25 +0100
commit3a3d361e1fa3ce9a074789405f46ed4c1fc67b2f (patch)
tree3d811a363d71632d2100601217e0cfadd2bcb5c6
parent4e367eabea7387b5f90c947d75c626336d52d91c (diff)
G_constr: Renaming record_fields_instance -> fields_def.
This is in accordance with PR #10614 and to avoid a confusion with the fields of a record type in g_vernac.ml. Removing a useless line at the same time in G_vernac.
-rw-r--r--parsing/g_constr.mlg10
-rw-r--r--vernac/g_vernac.mlg1
2 files changed, 5 insertions, 6 deletions
diff --git a/parsing/g_constr.mlg b/parsing/g_constr.mlg
index 3202cd3222..1cd36d2135 100644
--- a/parsing/g_constr.mlg
+++ b/parsing/g_constr.mlg
@@ -210,14 +210,14 @@ GRAMMAR EXTEND Gram
{ CAst.make ~loc @@ CGeneralization (Explicit, None, c) } ] ]
;
record_declaration:
- [ [ fs = record_fields_instance -> { CAst.make ~loc @@ CRecord fs } ] ]
+ [ [ fs = fields_def -> { CAst.make ~loc @@ CRecord fs } ] ]
;
- record_fields_instance:
- [ [ f = record_field_instance; ";"; fs = record_fields_instance -> { f :: fs }
- | f = record_field_instance -> { [f] }
+ fields_def:
+ [ [ f = field_def; ";"; fs = fields_def -> { f :: fs }
+ | f = field_def -> { [f] }
| -> { [] } ] ]
;
- record_field_instance:
+ field_def:
[ [ id = global; bl = binders; ":="; c = lconstr ->
{ (id, mkLambdaCN ~loc bl c) } ] ]
;
diff --git a/vernac/g_vernac.mlg b/vernac/g_vernac.mlg
index d534c107f1..61de1bfd26 100644
--- a/vernac/g_vernac.mlg
+++ b/vernac/g_vernac.mlg
@@ -488,7 +488,6 @@ GRAMMAR EXTEND Gram
;
record_fields:
[ [ f = record_field; ";"; fs = record_fields -> { f :: fs }
- | f = record_field; ";" -> { [f] }
| f = record_field -> { [f] }
| -> { [] }
] ]