summaryrefslogtreecommitdiffstats
path: root/filter
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2000-05-16 16:24:33 +0200
committerPavel Machek <pavel@ucw.cz>2000-05-16 16:24:33 +0200
commit60de3356ab9b1996a84e3ba2865176a078b6d0ca (patch)
tree75334091f707d3ad949150b427e741aa0735f3f9 /filter
parente2f4f275646d21de363c32ff3c8fb4f492f07c04 (diff)
downloadbird-60de3356ab9b1996a84e3ba2865176a078b6d0ca.tar
bird-60de3356ab9b1996a84e3ba2865176a078b6d0ca.zip
Resolved shift/reduce conflict
Diffstat (limited to 'filter')
-rw-r--r--filter/config.Y4
-rw-r--r--filter/test.conf2
2 files changed, 3 insertions, 3 deletions
diff --git a/filter/config.Y b/filter/config.Y
index a99e4a5..accf318 100644
--- a/filter/config.Y
+++ b/filter/config.Y
@@ -211,7 +211,7 @@ pair:
* Complex types, their bison value is struct f_val
*/
fprefix_s:
- IPA '/' NUM {
+ IPA '/' NUM %prec '/' {
if (!ip_is_prefix($1, $3)) cf_error("Invalid network prefix: %I/%d", $1, $3);
$$.type = T_PREFIX; $$.val.px.ip = $1; $$.val.px.len = $3;
}
@@ -225,7 +225,7 @@ fprefix:
;
fipa:
- IPA { $$.type = T_IP; $$.val.px.ip = $1; }
+ IPA %prec PREFIX_DUMMY { $$.type = T_IP; $$.val.px.ip = $1; }
;
set_atom:
diff --git a/filter/test.conf b/filter/test.conf
index bce8cfe..c7fe415 100644
--- a/filter/test.conf
+++ b/filter/test.conf
@@ -6,7 +6,7 @@
router id 62.168.0.1;
-#define xyzzy = 120+10;
+define xyzzy = (120+10);
function callme(int arg1; int arg2)
int local1;