summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>1999-02-03 13:28:16 +0100
committerPavel Machek <pavel@ucw.cz>1999-02-03 13:28:16 +0100
commit292099d55f1131d75efec647d3780e7a1a665fdf (patch)
treec77e12b650d7c9df8d484676fec18bec30e5877d
parent294c182eb1dd02d0ae8658acb4a21db5d2977f3c (diff)
downloadbird-292099d55f1131d75efec647d3780e7a1a665fdf.tar
bird-292099d55f1131d75efec647d3780e7a1a665fdf.zip
Few fixes in parsing of filters
-rw-r--r--filter/config.Y9
1 files changed, 1 insertions, 8 deletions
diff --git a/filter/config.Y b/filter/config.Y
index 17f687a..45f65b5 100644
--- a/filter/config.Y
+++ b/filter/config.Y
@@ -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" );