aboutsummaryrefslogtreecommitdiff
path: root/doc/tools/docgram/common.edit_mlg
diff options
context:
space:
mode:
authorJim Fehrle2020-06-15 20:08:39 -0700
committerJim Fehrle2020-07-08 11:36:26 -0700
commitb291704713f762cf93e5fda012f297ddd895b5fd (patch)
tree472ba25e6e5cd213040b99741d727abbdc9f93e3 /doc/tools/docgram/common.edit_mlg
parent769823c425f1b3ffc87141ede814976f6cf44128 (diff)
Make local nonterminal definitions unique when necessary
Diffstat (limited to 'doc/tools/docgram/common.edit_mlg')
-rw-r--r--doc/tools/docgram/common.edit_mlg57
1 files changed, 42 insertions, 15 deletions
diff --git a/doc/tools/docgram/common.edit_mlg b/doc/tools/docgram/common.edit_mlg
index 80f825358f..5cfde2cf2f 100644
--- a/doc/tools/docgram/common.edit_mlg
+++ b/doc/tools/docgram/common.edit_mlg
@@ -12,19 +12,59 @@
DOC_GRAMMAR
+(* first, fixup symbols duplicated across files *)
+lglob: [
+| lconstr
+| DELETE EXTRAARGS_lconstr
+]
+
+hint: [
+| "Extern" natural OPT constr_pattern "=>" tactic
+]
+
+(* todo: does ARGUMENT EXTEND make the symbol global? It is in both extraargs and extratactics *)
+strategy_level_or_var: [
+| DELETE EXTRAARGS_strategy_level
+| strategy_level
+]
+
+operconstr0: [
+| "ltac" ":" "(" tactic_expr5 ")"
+]
+
+EXTRAARGS_natural: [ | DELETENT ]
+EXTRAARGS_lconstr: [ | DELETENT ]
+EXTRAARGS_strategy_level: [ | DELETENT ]
+G_LTAC_hint: [ | DELETENT ]
+G_LTAC_operconstr0: [ | DELETENT ]
+
+G_REWRITE_binders: [
+| DELETE Pcoq.Constr.binders
+| binders
+]
+
+G_TACTIC_in_clause: [
+| in_clause
+| MOVEALLBUT in_clause
+| in_clause
+]
+
+SPLICE: [
+| G_REWRITE_binders
+| G_TACTIC_in_clause
+]
+
(* renames to eliminate qualified names
put other renames at the end *)
RENAME: [
(* map missing names for rhs *)
| Constr.constr term
-| Constr.constr_pattern constr_pattern
| Constr.global global
| Constr.lconstr lconstr
| Constr.lconstr_pattern cpattern
| G_vernac.query_command query_command
| G_vernac.section_subset_expr section_subset_expr
| Pltac.tactic tactic
-| Pltac.tactic_expr tactic_expr5
| Prim.ident ident
| Prim.reference reference
| Pvernac.Vernac_.main_entry vernac_control
@@ -155,15 +195,6 @@ dirpath: [
| WITH LIST0 ( ident "." ) ident
]
-binders: [
-| DELETE Pcoq.Constr.binders (* todo: not sure why there are 2 "binders:" *)
-]
-
-lconstr: [
-| DELETE l_constr
-]
-
-
let_type_cstr: [
| DELETE OPT [ ":" lconstr ]
| type_cstr
@@ -2069,7 +2100,3 @@ NOTINRSTS: [
REACHABLE: [
| NOTINRSTS
]
-
-strategy_level: [
-| DELETE strategy_level0
-]