Few fixes in parsing of filters
This commit is contained in:
parent
294c182eb1
commit
292099d55f
1 changed files with 1 additions and 8 deletions
|
@ -25,13 +25,6 @@ CF_KEYWORDS(FUNCTION, FILTER, PRINTDEBUG, INT, PRINT)
|
||||||
|
|
||||||
CF_GRAMMAR
|
CF_GRAMMAR
|
||||||
|
|
||||||
config:
|
|
||||||
program {
|
|
||||||
printf( "Wow, we have full program\n" );
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
;
|
|
||||||
|
|
||||||
program: /* EMPTY */
|
program: /* EMPTY */
|
||||||
| program function
|
| program function
|
||||||
;
|
;
|
||||||
|
@ -68,7 +61,7 @@ term: /* EMPTY */ { $$ = NULL; }
|
||||||
$$->arg1 = $1;
|
$$->arg1 = $1;
|
||||||
$$->arg2 = $3;
|
$$->arg2 = $3;
|
||||||
}
|
}
|
||||||
| INT SYM ';' {
|
| INT SYM {
|
||||||
if ($2->class != SYM_VOID) cf_error("Symbol already defined, can not use as variable\n" );
|
if ($2->class != SYM_VOID) cf_error("Symbol already defined, can not use as variable\n" );
|
||||||
$2->class = SYM_VARIABLE_INT;
|
$2->class = SYM_VARIABLE_INT;
|
||||||
printf( "New variable\n" );
|
printf( "New variable\n" );
|
||||||
|
|
Loading…
Reference in a new issue