Commit 4def9757 authored by Francis Dupont's avatar Francis Dupont
Browse files

[5363] Updated syntax

parent b9c80fb8
......@@ -196,6 +196,7 @@ addr6 [0-9a-fA-F]*\:[0-9a-fA-F]*\:[0-9a-fA-F:.]*
"substring" return isc::eval::EvalParser::make_SUBSTRING(loc);
"all" return isc::eval::EvalParser::make_ALL(loc);
"concat" return isc::eval::EvalParser::make_CONCAT(loc);
"ifelse" return isc::eval::EvalParser::make_IFELSE(loc);
"not" return isc::eval::EvalParser::make_NOT(loc);
"and" return isc::eval::EvalParser::make_AND(loc);
"or" return isc::eval::EvalParser::make_OR(loc);
......
......@@ -72,6 +72,7 @@ using namespace isc::eval;
ALL "all"
COMA ","
CONCAT "concat"
IFELSE "ifelse"
PKT6 "pkt6"
MSGTYPE "msgtype"
TRANSID "transid"
......@@ -327,6 +328,11 @@ string_expr : STRING
TokenPtr conc(new TokenConcat());
ctx.expression.push_back(conc);
}
| IFELSE "(" bool_expr "," string_expr "," string_expr ")"
{
TokenPtr cond(new TokenIfElse());
ctx.expression.push_back(cond);
}
| VENDOR "." ENTERPRISE
{
// expression: vendor.enterprise
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment