0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-08 12:18:42 +00:00

Few fixes in parsing of filters

This commit is contained in:
Pavel Machek 1999-02-03 12:28:16 +00:00
parent 294c182eb1
commit 292099d55f

View 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" );