Revision 1c20608e filter/config.Y

View differences:

filter/config.Y
1 1
/*
2 2
 *	BIRD - filters
3 3
 *
4
 *	Copyright 1998,1999 Pavel Machek
4
 *	Copyright 1998--2000 Pavel Machek
5 5
 *
6 6
 *	Can be freely distributed and used under the terms of the GNU GPL.
7 7
 *
......
33 33
	ADD, DELETE, CONTAINS, RESET,
34 34
	PREPEND, MATCH,
35 35
	EMPTY,
36
	FILTER, WHERE)
36
	FILTER, WHERE, EVAL)
37 37

  
38 38
%nonassoc THEN
39 39
%nonassoc ELSE
......
59 59
   }
60 60
 ;
61 61

  
62
CF_ADDTO(conf, filter_eval)
63
filter_eval:
64
   EVAL term { f_eval_int($2); }
65
 ;
66

  
62 67
type:
63 68
   INT { $$ = T_INT; }
64 69
 | BOOL { $$ = T_BOOL; }
......
164 169

  
165 170
CF_ADDTO(conf, function_def)
166 171
function_def:
167
   FUNCTION SYM { DBG( "Begining of function %s\n", $2->name ); cf_push_scope($2); } function_params function_body {
172
   FUNCTION SYM { DBG( "Beginning of function %s\n", $2->name ); cf_push_scope($2); } function_params function_body {
168 173
     extern struct f_inst *startup_func, *test1_func, *test2_func;
169 174
     cf_define_symbol($2, SYM_FUNCTION, $5);
170 175
     if (!strcasecmp($2->name, "__startup"))

Also available in: Unified diff