summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2000-03-09 14:21:40 +0100
committerPavel Machek <pavel@ucw.cz>2000-03-09 14:21:40 +0100
commite4a73dbfcbb24a6a01ca960b641ce29d5045b3ba (patch)
tree03bd3db6bd3bd0b7f44345cb70577a4d29aae4da
parent30147b89ff3a389ad40096505f3d1a5ba1705736 (diff)
downloadbird-e4a73dbfcbb24a6a01ca960b641ce29d5045b3ba.tar
bird-e4a73dbfcbb24a6a01ca960b641ce29d5045b3ba.zip
CONST() is now gone
-rw-r--r--filter/config.Y7
1 files changed, 4 insertions, 3 deletions
diff --git a/filter/config.Y b/filter/config.Y
index 0859ead..1e3a195 100644
--- a/filter/config.Y
+++ b/filter/config.Y
@@ -26,7 +26,7 @@ CF_HDR
CF_DECLS
-CF_KEYWORDS(FUNCTION, PRINT, PRINTN, CONST, UNSET, RETURN,
+CF_KEYWORDS(FUNCTION, PRINT, PRINTN, UNSET, RETURN,
ACCEPT, REJECT, ERROR, QUITBIRD,
INT, BOOL, IP, PREFIX, PAIR, SET, STRING,
IF, THEN, ELSE, CASE,
@@ -250,9 +250,10 @@ switch_body: /* EMPTY */ { $$ = NULL; }
}
;
+/* CONST '(' expr ')' { $$ = f_new_inst(); $$->code = 'c'; $$->aux = T_INT; $$->a2.i = $3; } */
+
constant:
- CONST '(' expr ')' { $$ = f_new_inst(); $$->code = 'c'; $$->aux = T_INT; $$->a2.i = $3; }
- | NUM { $$ = f_new_inst(); $$->code = 'c'; $$->aux = T_INT; $$->a2.i = $1; }
+ NUM { $$ = f_new_inst(); $$->code = 'c'; $$->aux = T_INT; $$->a2.i = $1; }
| TRUE { $$ = f_new_inst(); $$->code = 'c'; $$->aux = T_BOOL; $$->a2.i = 1; }
| FALSE { $$ = f_new_inst(); $$->code = 'c'; $$->aux = T_BOOL; $$->a2.i = 0; }
| TEXT { $$ = f_new_inst(); $$->code = 'c'; $$->aux = T_STRING; $$->a2.p = $1; }