aboutsummaryrefslogtreecommitdiff
path: root/parsing
diff options
context:
space:
mode:
authorHugo Herbelin2020-03-15 14:53:28 +0100
committerHugo Herbelin2020-03-17 09:28:53 +0100
commit6737fd111d1f6a348bc9401e53fe378783b5dc93 (patch)
tree2005b02ed3bbe90e5770f6332d19a1ad4aacd824 /parsing
parent901cbfab468efa868e3838c2009ac09978ee661a (diff)
Dead code in g_prim.mlg
Diffstat (limited to 'parsing')
-rw-r--r--parsing/g_prim.mlg13
1 files changed, 4 insertions, 9 deletions
diff --git a/parsing/g_prim.mlg b/parsing/g_prim.mlg
index 7e0360af72..389d3f581f 100644
--- a/parsing/g_prim.mlg
+++ b/parsing/g_prim.mlg
@@ -82,11 +82,6 @@ GRAMMAR EXTEND Gram
| id = ident -> { CAst.make ~loc [id] }
] ]
;
- basequalid:
- [ [ id = ident; f=fields -> { let (l,id') = f in local_make_qualid loc (l@[id]) id' }
- | id = ident -> { qualid_of_ident ~loc id }
- ] ]
- ;
name:
[ [ IDENT "_" -> { CAst.make ~loc Anonymous }
| id = ident -> { CAst.make ~loc @@ Name id } ] ]
@@ -95,9 +90,12 @@ GRAMMAR EXTEND Gram
[ [ id = ident; f = fields -> {
let (l,id') = f in
local_make_qualid loc (l@[id]) id' }
- | id = ident -> { local_make_qualid loc [] id }
+ | id = ident -> { qualid_of_ident ~loc id }
] ]
;
+ qualid: (* Synonymous to reference *)
+ [ [ qid = reference -> { qid } ] ]
+ ;
by_notation:
[ [ s = ne_string; sc = OPT ["%"; key = IDENT -> { key } ] -> { (s, sc) } ] ]
;
@@ -105,9 +103,6 @@ GRAMMAR EXTEND Gram
[ [ c = reference -> { CAst.make ~loc @@ Constrexpr.AN c }
| ntn = by_notation -> { CAst.make ~loc @@ Constrexpr.ByNotation ntn } ] ]
;
- qualid:
- [ [ qid = basequalid -> { qid } ] ]
- ;
ne_string:
[ [ s = STRING ->
{ if s="" then CErrors.user_err ~loc (Pp.str"Empty string."); s }