Commit 292099d5 authored by Pavel Machek's avatar Pavel Machek
Browse files

Few fixes in parsing of filters

parent 294c182e
......@@ -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" );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment