ref: efd6df04602a973f146e93797ffd057ae277f175
parent: 762e7638bf6344ef81bdf95b5b9687542ed23f72
author: Ori Bernstein <[email protected]>
date: Tue Oct 7 15:01:36 EDT 2014
Remove leftover grammar junk.
--- a/parse/gram.y
+++ b/parse/gram.y
@@ -151,7 +151,7 @@
%type <nodelist> arglist argdefs params matches
%type <nodelist> structbody structelts arrayelts
%type <nodelist> tupbody tuprest
-%type <nodelist> decl pkgdecl decllist
+%type <nodelist> decl decllist
%type <nodelist> traitbody implbody
%type <strlist> attrs
@@ -315,9 +315,6 @@
| /* empty */
;
-pkgdecl : decl {$$ = $1;}
- ;
-
pkgtydef: attrs tydef {
size_t i;
$$ = $2;
@@ -328,7 +325,6 @@
fatal($$.line, "invalid type attribute '%s'", $1.str[i]);
}
}
- | tydef {$$ = $1;}
;
declbody: declcore Tasn expr {$$ = $1; $1->decl.init = $3;}