summaryrefslogtreecommitdiffstats
path: root/filter/config.Y
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2000-06-01 10:43:29 +0200
committerPavel Machek <pavel@ucw.cz>2000-06-01 10:43:29 +0200
commit5f4aee76a2e26a6947f47273d510edc524716a45 (patch)
tree9004972bd0c1fd4de12e9cfdfdfee67babb50066 /filter/config.Y
parent1877dab21715eb23addb3391afbd8dbf571f833d (diff)
downloadbird-5f4aee76a2e26a6947f47273d510edc524716a45.tar
bird-5f4aee76a2e26a6947f47273d510edc524716a45.zip
Added && and ||.
Diffstat (limited to 'filter/config.Y')
-rw-r--r--filter/config.Y2
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; }