]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Changes right recursion to left in the grammar of the case expression.
authorOndrej Zajicek <santiago@crfreenet.org>
Wed, 17 Feb 2010 10:29:48 +0000 (11:29 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Wed, 17 Feb 2010 10:29:48 +0000 (11:29 +0100)
filter/config.Y

index f8674e5c2b33827d8d473c96688904d7c9c53e70..fcbee7140d6788b9e61d2d386b862cf8e028c988 100644 (file)
@@ -273,16 +273,17 @@ fprefix_set:
  ;
 
 switch_body: /* EMPTY */ { $$ = NULL; }
- | set_item ':' cmds switch_body {
-     $$ = $1;
-     $$->data = $3;
-     $$->left = $4;
+ | switch_body set_item ':' cmds  {
+     $$ = $2;
+     $$->data = $4;
+     $$->left = $1;
    }
- | ELSE ':' cmds {
+ | switch_body ELSE ':' cmds {
      $$ = f_new_tree(); 
      $$->from.type = T_VOID; 
      $$->to.type = T_VOID;
-     $$->data = $3;
+     $$->data = $4;
+     $$->left = $1;
    }
  ;