summaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2009-03-14 12:43:10 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2009-03-14 12:43:10 +0100
commitcf1860349182503523975fb8084d514407a75fb4 (patch)
tree24fbf737c0204f763ae0a29705706d4786308c3d /conf
parentf16ad72ed76c398f081b97b09d56f4b199822464 (diff)
downloadbird-cf1860349182503523975fb8084d514407a75fb4.tar
bird-cf1860349182503523975fb8084d514407a75fb4.zip
New syntax for bgp_path
Diffstat (limited to 'conf')
-rw-r--r--conf/cf-lex.l3
-rw-r--r--conf/confbase.Y3
2 files changed, 5 insertions, 1 deletions
diff --git a/conf/cf-lex.l b/conf/cf-lex.l
index edca7a2..c68a42e 100644
--- a/conf/cf-lex.l
+++ b/conf/cf-lex.l
@@ -200,6 +200,9 @@ WHITE [ \t]
\&\& return AND;
\|\| return OR;
+\[\= return PO;
+\=\] return PC;
+
%%
static int
diff --git a/conf/confbase.Y b/conf/confbase.Y
index fa178d8..e6401f4 100644
--- a/conf/confbase.Y
+++ b/conf/confbase.Y
@@ -45,6 +45,7 @@ CF_DECLS
%token END CLI_MARKER INVALID_TOKEN
%token GEQ LEQ NEQ AND OR
+%token PO PC
%token <i> NUM ENUM
%token <i32> RTRID
%token <a> IPA
@@ -57,7 +58,7 @@ CF_DECLS
%type <px> prefix prefix_or_ipa
%nonassoc PREFIX_DUMMY
-%nonassoc '=' '<' '>' '~' '.' GEQ LEQ NEQ AND OR
+%nonassoc '=' '<' '>' '~' '.' GEQ LEQ NEQ AND OR PO PC
%left '+' '-'
%left '*' '/' '%'
%left '!'