summaryrefslogtreecommitdiffstats
path: root/filter/config.Y
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2000-05-15 14:27:45 +0200
committerPavel Machek <pavel@ucw.cz>2000-05-15 14:27:45 +0200
commitc5a06f65ee20328b8d0f2276287e223e4fd4a595 (patch)
tree2b6aa28cd22fe7e54481d1cd5727564bc34fd204 /filter/config.Y
parentf4ab23174688920e44bb4cae6e8b4f280a066e28 (diff)
downloadbird-c5a06f65ee20328b8d0f2276287e223e4fd4a595.tar
bird-c5a06f65ee20328b8d0f2276287e223e4fd4a595.zip
Allow other operations than +.
Diffstat (limited to 'filter/config.Y')
-rw-r--r--filter/config.Y3
1 files changed, 3 insertions, 0 deletions
diff --git a/filter/config.Y b/filter/config.Y
index 0d1d716..a99e4a5 100644
--- a/filter/config.Y
+++ b/filter/config.Y
@@ -334,6 +334,9 @@ function_call:
term:
'(' term ')' { $$ = $2; }
| 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 '/' 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; }