Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
labs
BIRD Internet Routing Daemon
Commits
292099d5
Commit
292099d5
authored
Feb 03, 1999
by
Pavel Machek
Browse files
Few fixes in parsing of filters
parent
294c182e
Changes
1
Hide whitespace changes
Inline
Side-by-side
filter/config.Y
View file @
292099d5
...
...
@@ -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" );
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment