ref: f1b64c623980598b81414f35c2d95c8d8ff7425a
parent: dc8e174e08b7ec8ee9a09bb02c70123a12b595be
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;}