]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Few fixes in parsing of filters
authorPavel Machek <pavel@ucw.cz>
Wed, 3 Feb 1999 12:28:16 +0000 (12:28 +0000)
committerPavel Machek <pavel@ucw.cz>
Wed, 3 Feb 1999 12:28:16 +0000 (12:28 +0000)
filter/config.Y

index 17f687a271f927cfec4bf5ee01282e0679ad479f..45f65b5099503123f3507f283f408caa51a06970 100644 (file)
@@ -25,13 +25,6 @@ CF_KEYWORDS(FUNCTION, FILTER, PRINTDEBUG, INT, PRINT)
 
 CF_GRAMMAR
 
-config:
-   program { 
-     printf( "Wow, we have full program\n" );
-     return 0;
-   }
- ;
-
 program: /* EMPTY */
  | program function
  ;
@@ -68,7 +61,7 @@ term: /* EMPTY */ { $$ = NULL; }
      $$->arg1 = $1;
      $$->arg2 = $3;
    }
- | INT SYM ';' {
+ | INT SYM {
      if ($2->class != SYM_VOID) cf_error("Symbol already defined, can not use as variable\n" );
      $2->class = SYM_VARIABLE_INT;
      printf( "New variable\n" );