diff options
author | Pavel Machek <pavel@ucw.cz> | 2000-06-01 10:43:29 +0200 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 2000-06-01 10:43:29 +0200 |
commit | 5f4aee76a2e26a6947f47273d510edc524716a45 (patch) | |
tree | 9004972bd0c1fd4de12e9cfdfdfee67babb50066 /filter/config.Y | |
parent | 1877dab21715eb23addb3391afbd8dbf571f833d (diff) | |
download | bird-5f4aee76a2e26a6947f47273d510edc524716a45.tar bird-5f4aee76a2e26a6947f47273d510edc524716a45.zip |
Added && and ||.
Diffstat (limited to 'filter/config.Y')
-rw-r--r-- | filter/config.Y | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/filter/config.Y b/filter/config.Y index 1ab4305..545b5e3 100644 --- a/filter/config.Y +++ b/filter/config.Y @@ -343,6 +343,8 @@ term: | term '-' term { $$ = f_new_inst(); $$->code = '-'; $$->a1.p = $1; $$->a2.p = $3; } | term '*' term { $$ = f_new_inst(); $$->code = '*'; $$->a1.p = $1; $$->a2.p = $3; } | term '/' term { $$ = f_new_inst(); $$->code = '/'; $$->a1.p = $1; $$->a2.p = $3; } + | term AND term { $$ = f_new_inst(); $$->code = '&'; $$->a1.p = $1; $$->a2.p = $3; } + | term OR term { $$ = f_new_inst(); $$->code = '|'; $$->a1.p = $1; $$->a2.p = $3; } | term '=' term { $$ = f_new_inst(); $$->code = P('=','='); $$->a1.p = $1; $$->a2.p = $3; } | term NEQ term { $$ = f_new_inst(); $$->code = P('!','='); $$->a1.p = $1; $$->a2.p = $3; } | term '<' term { $$ = f_new_inst(); $$->code = '<'; $$->a1.p = $1; $$->a2.p = $3; } |