]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
removed unnecessary grammar rules
authorBVK Chaitanya <bvk.groups@gmail.com>
Thu, 22 Jul 2010 17:20:04 +0000 (22:50 +0530)
committerBVK Chaitanya <bvk.groups@gmail.com>
Thu, 22 Jul 2010 17:20:04 +0000 (22:50 +0530)
script/parser.y

index 4f57ea4ffc9472526cf6aeef481ee4b92d39759f..ce97ab17439fc56f7abfe08265984fcafa357328 100644 (file)
@@ -81,7 +81,7 @@
 %token <arg> GRUB_PARSER_TOKEN_WORD      "word"
 
 %type <arg> block block0
-%type <arglist> word argument parameters0 parameters1 arguments0 arguments1
+%type <arglist> word argument arguments0 arguments1
 
 %type <cmd> script_init script
 %type <cmd> grubcmd ifclause ifcmd forcmd whilecmd untilcmd
@@ -236,22 +236,7 @@ arguments1: argument arguments0
             }
 ;
 
-parameters1: argument parameters0
-             {
-               if ($1 && $2)
-                 {
-                   $1->next = $2;
-                   $1->argcount += $2->argcount;
-                   $2->argcount = 0;
-                 }
-               $$ = $1;
-             }
-;
-parameters0: /* Empty */ { $$ = 0; }
-           | parameters1 { $$ = $1; }
-;
-
-grubcmd: word parameters0 block0
+grubcmd: word arguments0 block0
          {
           struct grub_script_arglist *x = $2;