diff --git a/src/bin/dhcp4/dhcp4_lexer.cc b/src/bin/dhcp4/dhcp4_lexer.cc
index 86a330d645..0cbf09dd7d 100644
--- a/src/bin/dhcp4/dhcp4_lexer.cc
+++ b/src/bin/dhcp4/dhcp4_lexer.cc
@@ -1,6 +1,6 @@
-#line 2 "dhcp4_lexer.cc"
+#line 1 "dhcp4_lexer.cc"
-#line 4 "dhcp4_lexer.cc"
+#line 3 "dhcp4_lexer.cc"
#define YY_INT_ALIGNED short int
@@ -2057,7 +2057,7 @@ using namespace isc::dhcp;
/* To avoid the call to exit... oops! */
#define YY_FATAL_ERROR(msg) isc::dhcp::Parser4Context::fatal(msg)
-#line 2061 "dhcp4_lexer.cc"
+#line 2060 "dhcp4_lexer.cc"
/* noyywrap disables automatic rewinding for the next file to parse. Since we
always parse only a single string, there's no need to do any wraps. And
using yywrap requires linking with -lfl, which provides the default yywrap
@@ -2083,8 +2083,8 @@ using namespace isc::dhcp;
by moving it ahead by yyleng bytes. yyleng specifies the length of the
currently matched token. */
#define YY_USER_ACTION driver.loc_.columns(yyleng);
+#line 2086 "dhcp4_lexer.cc"
#line 2087 "dhcp4_lexer.cc"
-#line 2088 "dhcp4_lexer.cc"
#define INITIAL 0
#define COMMENT 1
@@ -2412,7 +2412,7 @@ YY_DECL
}
-#line 2416 "dhcp4_lexer.cc"
+#line 2415 "dhcp4_lexer.cc"
while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */
{
@@ -5243,7 +5243,7 @@ YY_RULE_SETUP
#line 2248 "dhcp4_lexer.ll"
ECHO;
YY_BREAK
-#line 5247 "dhcp4_lexer.cc"
+#line 5246 "dhcp4_lexer.cc"
case YY_END_OF_BUFFER:
{
diff --git a/src/bin/dhcp4/dhcp4_parser.cc b/src/bin/dhcp4/dhcp4_parser.cc
index 21c8174aad..ba82178fb9 100644
--- a/src/bin/dhcp4/dhcp4_parser.cc
+++ b/src/bin/dhcp4/dhcp4_parser.cc
@@ -1,8 +1,8 @@
-// A Bison parser, made by GNU Bison 3.5.1.
+// A Bison parser, made by GNU Bison 3.8.2.
// Skeleton implementation for Bison LALR(1) parsers in C++
-// Copyright (C) 2002-2015, 2018-2020 Free Software Foundation, Inc.
+// Copyright (C) 2002-2015, 2018-2021 Free Software Foundation, Inc.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -15,7 +15,7 @@
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
-// along with this program. If not, see .
+// along with this program. If not, see .
// As a special exception, you may create a larger work that contains
// part or all of the Bison parser skeleton and distribute that work
@@ -30,8 +30,9 @@
// This special exception was added by the Free Software Foundation in
// version 2.2 of Bison.
-// Undocumented macros, especially those whose name start with YY_,
-// are private implementation details. Do not rely on them.
+// DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
+// especially those whose name start with YY_ or yy_. They are
+// private implementation details that can be changed or removed.
// Take the name prefix into account.
@@ -47,7 +48,7 @@
#include
-#line 51 "dhcp4_parser.cc"
+#line 52 "dhcp4_parser.cc"
#ifndef YY_
@@ -62,6 +63,7 @@
# endif
#endif
+
// Whether we are compiled with exception support.
#ifndef YY_EXCEPTIONS
# if defined __GNUC__ && !defined __EXCEPTIONS
@@ -117,13 +119,13 @@
# define YY_STACK_PRINT() \
do { \
if (yydebug_) \
- yystack_print_ (); \
+ yy_stack_print_ (); \
} while (false)
#else // !PARSER4_DEBUG
# define YYCDEBUG if (false) std::cerr
-# define YY_SYMBOL_PRINT(Title, Symbol) YYUSE (Symbol)
+# define YY_SYMBOL_PRINT(Title, Symbol) YY_USE (Symbol)
# define YY_REDUCE_PRINT(Rule) static_cast (0)
# define YY_STACK_PRINT() static_cast (0)
@@ -139,49 +141,7 @@
#line 14 "dhcp4_parser.yy"
namespace isc { namespace dhcp {
-#line 143 "dhcp4_parser.cc"
-
-
- /* Return YYSTR after stripping away unnecessary quotes and
- backslashes, so that it's suitable for yyerror. The heuristic is
- that double-quoting is unnecessary unless the string contains an
- apostrophe, a comma, or backslash (other than backslash-backslash).
- YYSTR is taken from yytname. */
- std::string
- Dhcp4Parser::yytnamerr_ (const char *yystr)
- {
- if (*yystr == '"')
- {
- std::string yyr;
- char const *yyp = yystr;
-
- for (;;)
- switch (*++yyp)
- {
- case '\'':
- case ',':
- goto do_not_strip_quotes;
-
- case '\\':
- if (*++yyp != '\\')
- goto do_not_strip_quotes;
- else
- goto append;
-
- append:
- default:
- yyr += *yyp;
- break;
-
- case '"':
- return yyr;
- }
- do_not_strip_quotes: ;
- }
-
- return yystr;
- }
-
+#line 145 "dhcp4_parser.cc"
/// Build a parser object.
Dhcp4Parser::Dhcp4Parser (isc::dhcp::Parser4Context& ctx_yyarg)
@@ -200,9 +160,9 @@ namespace isc { namespace dhcp {
Dhcp4Parser::syntax_error::~syntax_error () YY_NOEXCEPT YY_NOTHROW
{}
- /*---------------.
- | Symbol types. |
- `---------------*/
+ /*---------.
+ | symbol. |
+ `---------*/
@@ -232,13 +192,13 @@ namespace isc { namespace dhcp {
: state (s)
{}
- Dhcp4Parser::symbol_number_type
- Dhcp4Parser::by_state::type_get () const YY_NOEXCEPT
+ Dhcp4Parser::symbol_kind_type
+ Dhcp4Parser::by_state::kind () const YY_NOEXCEPT
{
if (state == empty_state)
- return empty_symbol;
+ return symbol_kind::S_YYEMPTY;
else
- return yystos_[+state];
+ return YY_CAST (symbol_kind_type, yystos_[+state]);
}
Dhcp4Parser::stack_symbol_type::stack_symbol_type ()
@@ -247,33 +207,33 @@ namespace isc { namespace dhcp {
Dhcp4Parser::stack_symbol_type::stack_symbol_type (YY_RVREF (stack_symbol_type) that)
: super_type (YY_MOVE (that.state), YY_MOVE (that.location))
{
- switch (that.type_get ())
+ switch (that.kind ())
{
- case 218: // value
- case 222: // map_value
- case 265: // ddns_replace_client_name_value
- case 292: // socket_type
- case 295: // outbound_interface_value
- case 317: // db_type
- case 335: // on_fail_mode
- case 414: // hr_mode
- case 569: // ncr_protocol_value
+ case symbol_kind::S_value: // value
+ case symbol_kind::S_map_value: // map_value
+ case symbol_kind::S_ddns_replace_client_name_value: // ddns_replace_client_name_value
+ case symbol_kind::S_socket_type: // socket_type
+ case symbol_kind::S_outbound_interface_value: // outbound_interface_value
+ case symbol_kind::S_db_type: // db_type
+ case symbol_kind::S_on_fail_mode: // on_fail_mode
+ case symbol_kind::S_hr_mode: // hr_mode
+ case symbol_kind::S_ncr_protocol_value: // ncr_protocol_value
value.YY_MOVE_OR_COPY< ElementPtr > (YY_MOVE (that.value));
break;
- case 202: // "boolean"
+ case symbol_kind::S_BOOLEAN: // "boolean"
value.YY_MOVE_OR_COPY< bool > (YY_MOVE (that.value));
break;
- case 201: // "floating point"
+ case symbol_kind::S_FLOAT: // "floating point"
value.YY_MOVE_OR_COPY< double > (YY_MOVE (that.value));
break;
- case 200: // "integer"
+ case symbol_kind::S_INTEGER: // "integer"
value.YY_MOVE_OR_COPY< int64_t > (YY_MOVE (that.value));
break;
- case 199: // "constant string"
+ case symbol_kind::S_STRING: // "constant string"
value.YY_MOVE_OR_COPY< std::string > (YY_MOVE (that.value));
break;
@@ -290,33 +250,33 @@ namespace isc { namespace dhcp {
Dhcp4Parser::stack_symbol_type::stack_symbol_type (state_type s, YY_MOVE_REF (symbol_type) that)
: super_type (s, YY_MOVE (that.location))
{
- switch (that.type_get ())
+ switch (that.kind ())
{
- case 218: // value
- case 222: // map_value
- case 265: // ddns_replace_client_name_value
- case 292: // socket_type
- case 295: // outbound_interface_value
- case 317: // db_type
- case 335: // on_fail_mode
- case 414: // hr_mode
- case 569: // ncr_protocol_value
+ case symbol_kind::S_value: // value
+ case symbol_kind::S_map_value: // map_value
+ case symbol_kind::S_ddns_replace_client_name_value: // ddns_replace_client_name_value
+ case symbol_kind::S_socket_type: // socket_type
+ case symbol_kind::S_outbound_interface_value: // outbound_interface_value
+ case symbol_kind::S_db_type: // db_type
+ case symbol_kind::S_on_fail_mode: // on_fail_mode
+ case symbol_kind::S_hr_mode: // hr_mode
+ case symbol_kind::S_ncr_protocol_value: // ncr_protocol_value
value.move< ElementPtr > (YY_MOVE (that.value));
break;
- case 202: // "boolean"
+ case symbol_kind::S_BOOLEAN: // "boolean"
value.move< bool > (YY_MOVE (that.value));
break;
- case 201: // "floating point"
+ case symbol_kind::S_FLOAT: // "floating point"
value.move< double > (YY_MOVE (that.value));
break;
- case 200: // "integer"
+ case symbol_kind::S_INTEGER: // "integer"
value.move< int64_t > (YY_MOVE (that.value));
break;
- case 199: // "constant string"
+ case symbol_kind::S_STRING: // "constant string"
value.move< std::string > (YY_MOVE (that.value));
break;
@@ -325,7 +285,7 @@ namespace isc { namespace dhcp {
}
// that is emptied.
- that.type = empty_symbol;
+ that.kind_ = symbol_kind::S_YYEMPTY;
}
#if YY_CPLUSPLUS < 201103L
@@ -333,33 +293,33 @@ namespace isc { namespace dhcp {
Dhcp4Parser::stack_symbol_type::operator= (const stack_symbol_type& that)
{
state = that.state;
- switch (that.type_get ())
+ switch (that.kind ())
{
- case 218: // value
- case 222: // map_value
- case 265: // ddns_replace_client_name_value
- case 292: // socket_type
- case 295: // outbound_interface_value
- case 317: // db_type
- case 335: // on_fail_mode
- case 414: // hr_mode
- case 569: // ncr_protocol_value
+ case symbol_kind::S_value: // value
+ case symbol_kind::S_map_value: // map_value
+ case symbol_kind::S_ddns_replace_client_name_value: // ddns_replace_client_name_value
+ case symbol_kind::S_socket_type: // socket_type
+ case symbol_kind::S_outbound_interface_value: // outbound_interface_value
+ case symbol_kind::S_db_type: // db_type
+ case symbol_kind::S_on_fail_mode: // on_fail_mode
+ case symbol_kind::S_hr_mode: // hr_mode
+ case symbol_kind::S_ncr_protocol_value: // ncr_protocol_value
value.copy< ElementPtr > (that.value);
break;
- case 202: // "boolean"
+ case symbol_kind::S_BOOLEAN: // "boolean"
value.copy< bool > (that.value);
break;
- case 201: // "floating point"
+ case symbol_kind::S_FLOAT: // "floating point"
value.copy< double > (that.value);
break;
- case 200: // "integer"
+ case symbol_kind::S_INTEGER: // "integer"
value.copy< int64_t > (that.value);
break;
- case 199: // "constant string"
+ case symbol_kind::S_STRING: // "constant string"
value.copy< std::string > (that.value);
break;
@@ -375,33 +335,33 @@ namespace isc { namespace dhcp {
Dhcp4Parser::stack_symbol_type::operator= (stack_symbol_type& that)
{
state = that.state;
- switch (that.type_get ())
+ switch (that.kind ())
{
- case 218: // value
- case 222: // map_value
- case 265: // ddns_replace_client_name_value
- case 292: // socket_type
- case 295: // outbound_interface_value
- case 317: // db_type
- case 335: // on_fail_mode
- case 414: // hr_mode
- case 569: // ncr_protocol_value
+ case symbol_kind::S_value: // value
+ case symbol_kind::S_map_value: // map_value
+ case symbol_kind::S_ddns_replace_client_name_value: // ddns_replace_client_name_value
+ case symbol_kind::S_socket_type: // socket_type
+ case symbol_kind::S_outbound_interface_value: // outbound_interface_value
+ case symbol_kind::S_db_type: // db_type
+ case symbol_kind::S_on_fail_mode: // on_fail_mode
+ case symbol_kind::S_hr_mode: // hr_mode
+ case symbol_kind::S_ncr_protocol_value: // ncr_protocol_value
value.move< ElementPtr > (that.value);
break;
- case 202: // "boolean"
+ case symbol_kind::S_BOOLEAN: // "boolean"
value.move< bool > (that.value);
break;
- case 201: // "floating point"
+ case symbol_kind::S_FLOAT: // "floating point"
value.move< double > (that.value);
break;
- case 200: // "integer"
+ case symbol_kind::S_INTEGER: // "integer"
value.move< int64_t > (that.value);
break;
- case 199: // "constant string"
+ case symbol_kind::S_STRING: // "constant string"
value.move< std::string > (that.value);
break;
@@ -427,105 +387,103 @@ namespace isc { namespace dhcp {
#if PARSER4_DEBUG
template
void
- Dhcp4Parser::yy_print_ (std::ostream& yyo,
- const basic_symbol& yysym) const
+ Dhcp4Parser::yy_print_ (std::ostream& yyo, const basic_symbol& yysym) const
{
std::ostream& yyoutput = yyo;
- YYUSE (yyoutput);
- symbol_number_type yytype = yysym.type_get ();
-#if defined __GNUC__ && ! defined __clang__ && ! defined __ICC && __GNUC__ * 100 + __GNUC_MINOR__ <= 408
- // Avoid a (spurious) G++ 4.8 warning about "array subscript is
- // below array bounds".
+ YY_USE (yyoutput);
if (yysym.empty ())
- std::abort ();
-#endif
- yyo << (yytype < yyntokens_ ? "token" : "nterm")
- << ' ' << yytname_[yytype] << " ("
- << yysym.location << ": ";
- switch (yytype)
+ yyo << "empty symbol";
+ else
+ {
+ symbol_kind_type yykind = yysym.kind ();
+ yyo << (yykind < YYNTOKENS ? "token" : "nterm")
+ << ' ' << yysym.name () << " ("
+ << yysym.location << ": ";
+ switch (yykind)
{
- case 199: // "constant string"
+ case symbol_kind::S_STRING: // "constant string"
#line 283 "dhcp4_parser.yy"
{ yyoutput << yysym.value.template as < std::string > (); }
-#line 451 "dhcp4_parser.cc"
+#line 408 "dhcp4_parser.cc"
break;
- case 200: // "integer"
+ case symbol_kind::S_INTEGER: // "integer"
#line 283 "dhcp4_parser.yy"
{ yyoutput << yysym.value.template as < int64_t > (); }
-#line 457 "dhcp4_parser.cc"
+#line 414 "dhcp4_parser.cc"
break;
- case 201: // "floating point"
+ case symbol_kind::S_FLOAT: // "floating point"
#line 283 "dhcp4_parser.yy"
{ yyoutput << yysym.value.template as < double > (); }
-#line 463 "dhcp4_parser.cc"
+#line 420 "dhcp4_parser.cc"
break;
- case 202: // "boolean"
+ case symbol_kind::S_BOOLEAN: // "boolean"
#line 283 "dhcp4_parser.yy"
{ yyoutput << yysym.value.template as < bool > (); }
-#line 469 "dhcp4_parser.cc"
+#line 426 "dhcp4_parser.cc"
break;
- case 218: // value
+ case symbol_kind::S_value: // value
#line 283 "dhcp4_parser.yy"
{ yyoutput << yysym.value.template as < ElementPtr > (); }
-#line 475 "dhcp4_parser.cc"
+#line 432 "dhcp4_parser.cc"
break;
- case 222: // map_value
+ case symbol_kind::S_map_value: // map_value
#line 283 "dhcp4_parser.yy"
{ yyoutput << yysym.value.template as < ElementPtr > (); }
-#line 481 "dhcp4_parser.cc"
+#line 438 "dhcp4_parser.cc"
break;
- case 265: // ddns_replace_client_name_value
+ case symbol_kind::S_ddns_replace_client_name_value: // ddns_replace_client_name_value
#line 283 "dhcp4_parser.yy"
{ yyoutput << yysym.value.template as < ElementPtr > (); }
-#line 487 "dhcp4_parser.cc"
+#line 444 "dhcp4_parser.cc"
break;
- case 292: // socket_type
+ case symbol_kind::S_socket_type: // socket_type
#line 283 "dhcp4_parser.yy"
{ yyoutput << yysym.value.template as < ElementPtr > (); }
-#line 493 "dhcp4_parser.cc"
+#line 450 "dhcp4_parser.cc"
break;
- case 295: // outbound_interface_value
+ case symbol_kind::S_outbound_interface_value: // outbound_interface_value
#line 283 "dhcp4_parser.yy"
{ yyoutput << yysym.value.template as < ElementPtr > (); }
-#line 499 "dhcp4_parser.cc"
+#line 456 "dhcp4_parser.cc"
break;
- case 317: // db_type
+ case symbol_kind::S_db_type: // db_type
#line 283 "dhcp4_parser.yy"
{ yyoutput << yysym.value.template as < ElementPtr > (); }
-#line 505 "dhcp4_parser.cc"
+#line 462 "dhcp4_parser.cc"
break;
- case 335: // on_fail_mode
+ case symbol_kind::S_on_fail_mode: // on_fail_mode
#line 283 "dhcp4_parser.yy"
{ yyoutput << yysym.value.template as < ElementPtr > (); }
-#line 511 "dhcp4_parser.cc"
+#line 468 "dhcp4_parser.cc"
break;
- case 414: // hr_mode
+ case symbol_kind::S_hr_mode: // hr_mode
#line 283 "dhcp4_parser.yy"
{ yyoutput << yysym.value.template as < ElementPtr > (); }
-#line 517 "dhcp4_parser.cc"
+#line 474 "dhcp4_parser.cc"
break;
- case 569: // ncr_protocol_value
+ case symbol_kind::S_ncr_protocol_value: // ncr_protocol_value
#line 283 "dhcp4_parser.yy"
{ yyoutput << yysym.value.template as < ElementPtr > (); }
-#line 523 "dhcp4_parser.cc"
+#line 480 "dhcp4_parser.cc"
break;
default:
break;
}
- yyo << ')';
+ yyo << ')';
+ }
}
#endif
@@ -549,7 +507,7 @@ namespace isc { namespace dhcp {
}
void
- Dhcp4Parser::yypop_ (int n)
+ Dhcp4Parser::yypop_ (int n) YY_NOEXCEPT
{
yystack_.pop (n);
}
@@ -584,21 +542,21 @@ namespace isc { namespace dhcp {
Dhcp4Parser::state_type
Dhcp4Parser::yy_lr_goto_state_ (state_type yystate, int yysym)
{
- int yyr = yypgoto_[yysym - yyntokens_] + yystate;
+ int yyr = yypgoto_[yysym - YYNTOKENS] + yystate;
if (0 <= yyr && yyr <= yylast_ && yycheck_[yyr] == yystate)
return yytable_[yyr];
else
- return yydefgoto_[yysym - yyntokens_];
+ return yydefgoto_[yysym - YYNTOKENS];
}
bool
- Dhcp4Parser::yy_pact_value_is_default_ (int yyvalue)
+ Dhcp4Parser::yy_pact_value_is_default_ (int yyvalue) YY_NOEXCEPT
{
return yyvalue == yypact_ninf_;
}
bool
- Dhcp4Parser::yy_table_value_is_error_ (int yyvalue)
+ Dhcp4Parser::yy_table_value_is_error_ (int yyvalue) YY_NOEXCEPT
{
return yyvalue == yytable_ninf_;
}
@@ -648,6 +606,7 @@ namespace isc { namespace dhcp {
`-----------------------------------------------*/
yynewstate:
YYCDEBUG << "Entering state " << int (yystack_[0].state) << '\n';
+ YY_STACK_PRINT ();
// Accept?
if (yystack_[0].state == yyfinal_)
@@ -668,7 +627,7 @@ namespace isc { namespace dhcp {
// Read a lookahead token.
if (yyla.empty ())
{
- YYCDEBUG << "Reading a token: ";
+ YYCDEBUG << "Reading a token\n";
#if YY_EXCEPTIONS
try
#endif // YY_EXCEPTIONS
@@ -687,10 +646,20 @@ namespace isc { namespace dhcp {
}
YY_SYMBOL_PRINT ("Next token is", yyla);
+ if (yyla.kind () == symbol_kind::S_YYerror)
+ {
+ // The scanner already issued an error message, process directly
+ // to error recovery. But do not keep the error token as
+ // lookahead, it is too special and may lead us to an endless
+ // loop in error recovery. */
+ yyla.kind_ = symbol_kind::S_YYUNDEF;
+ goto yyerrlab1;
+ }
+
/* If the proper action on seeing token YYLA.TYPE is to reduce or
to detect an error, take that action. */
- yyn += yyla.type_get ();
- if (yyn < 0 || yylast_ < yyn || yycheck_[yyn] != yyla.type_get ())
+ yyn += yyla.kind ();
+ if (yyn < 0 || yylast_ < yyn || yycheck_[yyn] != yyla.kind ())
{
goto yydefault;
}
@@ -737,31 +706,31 @@ namespace isc { namespace dhcp {
when using variants. */
switch (yyr1_[yyn])
{
- case 218: // value
- case 222: // map_value
- case 265: // ddns_replace_client_name_value
- case 292: // socket_type
- case 295: // outbound_interface_value
- case 317: // db_type
- case 335: // on_fail_mode
- case 414: // hr_mode
- case 569: // ncr_protocol_value
+ case symbol_kind::S_value: // value
+ case symbol_kind::S_map_value: // map_value
+ case symbol_kind::S_ddns_replace_client_name_value: // ddns_replace_client_name_value
+ case symbol_kind::S_socket_type: // socket_type
+ case symbol_kind::S_outbound_interface_value: // outbound_interface_value
+ case symbol_kind::S_db_type: // db_type
+ case symbol_kind::S_on_fail_mode: // on_fail_mode
+ case symbol_kind::S_hr_mode: // hr_mode
+ case symbol_kind::S_ncr_protocol_value: // ncr_protocol_value
yylhs.value.emplace< ElementPtr > ();
break;
- case 202: // "boolean"
+ case symbol_kind::S_BOOLEAN: // "boolean"
yylhs.value.emplace< bool > ();
break;
- case 201: // "floating point"
+ case symbol_kind::S_FLOAT: // "floating point"
yylhs.value.emplace< double > ();
break;
- case 200: // "integer"
+ case symbol_kind::S_INTEGER: // "integer"
yylhs.value.emplace< int64_t > ();
break;
- case 199: // "constant string"
+ case symbol_kind::S_STRING: // "constant string"
yylhs.value.emplace< std::string > ();
break;
@@ -785,136 +754,136 @@ namespace isc { namespace dhcp {
{
switch (yyn)
{
- case 2:
+ case 2: // $@1: %empty
#line 292 "dhcp4_parser.yy"
{ ctx.ctx_ = ctx.NO_KEYWORD; }
-#line 792 "dhcp4_parser.cc"
+#line 761 "dhcp4_parser.cc"
break;
- case 4:
+ case 4: // $@2: %empty
#line 293 "dhcp4_parser.yy"
{ ctx.ctx_ = ctx.CONFIG; }
-#line 798 "dhcp4_parser.cc"
+#line 767 "dhcp4_parser.cc"
break;
- case 6:
+ case 6: // $@3: %empty
#line 294 "dhcp4_parser.yy"
{ ctx.ctx_ = ctx.DHCP4; }
-#line 804 "dhcp4_parser.cc"
+#line 773 "dhcp4_parser.cc"
break;
- case 8:
+ case 8: // $@4: %empty
#line 295 "dhcp4_parser.yy"
{ ctx.ctx_ = ctx.INTERFACES_CONFIG; }
-#line 810 "dhcp4_parser.cc"
+#line 779 "dhcp4_parser.cc"
break;
- case 10:
+ case 10: // $@5: %empty
#line 296 "dhcp4_parser.yy"
{ ctx.ctx_ = ctx.SUBNET4; }
-#line 816 "dhcp4_parser.cc"
+#line 785 "dhcp4_parser.cc"
break;
- case 12:
+ case 12: // $@6: %empty
#line 297 "dhcp4_parser.yy"
{ ctx.ctx_ = ctx.POOLS; }
-#line 822 "dhcp4_parser.cc"
+#line 791 "dhcp4_parser.cc"
break;
- case 14:
+ case 14: // $@7: %empty
#line 298 "dhcp4_parser.yy"
{ ctx.ctx_ = ctx.RESERVATIONS; }
-#line 828 "dhcp4_parser.cc"
+#line 797 "dhcp4_parser.cc"
break;
- case 16:
+ case 16: // $@8: %empty
#line 299 "dhcp4_parser.yy"
{ ctx.ctx_ = ctx.DHCP4; }
-#line 834 "dhcp4_parser.cc"
+#line 803 "dhcp4_parser.cc"
break;
- case 18:
+ case 18: // $@9: %empty
#line 300 "dhcp4_parser.yy"
{ ctx.ctx_ = ctx.OPTION_DEF; }
-#line 840 "dhcp4_parser.cc"
+#line 809 "dhcp4_parser.cc"
break;
- case 20:
+ case 20: // $@10: %empty
#line 301 "dhcp4_parser.yy"
{ ctx.ctx_ = ctx.OPTION_DATA; }
-#line 846 "dhcp4_parser.cc"
+#line 815 "dhcp4_parser.cc"
break;
- case 22:
+ case 22: // $@11: %empty
#line 302 "dhcp4_parser.yy"
{ ctx.ctx_ = ctx.HOOKS_LIBRARIES; }
-#line 852 "dhcp4_parser.cc"
+#line 821 "dhcp4_parser.cc"
break;
- case 24:
+ case 24: // $@12: %empty
#line 303 "dhcp4_parser.yy"
{ ctx.ctx_ = ctx.DHCP_DDNS; }
-#line 858 "dhcp4_parser.cc"
+#line 827 "dhcp4_parser.cc"
break;
- case 26:
+ case 26: // $@13: %empty
#line 304 "dhcp4_parser.yy"
{ ctx.ctx_ = ctx.CONFIG_CONTROL; }
-#line 864 "dhcp4_parser.cc"
+#line 833 "dhcp4_parser.cc"
break;
- case 28:
+ case 28: // value: "integer"
#line 312 "dhcp4_parser.yy"
{ yylhs.value.as < ElementPtr > () = ElementPtr(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); }
-#line 870 "dhcp4_parser.cc"
+#line 839 "dhcp4_parser.cc"
break;
- case 29:
+ case 29: // value: "floating point"
#line 313 "dhcp4_parser.yy"
{ yylhs.value.as < ElementPtr > () = ElementPtr(new DoubleElement(yystack_[0].value.as < double > (), ctx.loc2pos(yystack_[0].location))); }
-#line 876 "dhcp4_parser.cc"
+#line 845 "dhcp4_parser.cc"
break;
- case 30:
+ case 30: // value: "boolean"
#line 314 "dhcp4_parser.yy"
{ yylhs.value.as < ElementPtr > () = ElementPtr(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location))); }
-#line 882 "dhcp4_parser.cc"
+#line 851 "dhcp4_parser.cc"
break;
- case 31:
+ case 31: // value: "constant string"
#line 315 "dhcp4_parser.yy"
{ yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); }
-#line 888 "dhcp4_parser.cc"
+#line 857 "dhcp4_parser.cc"
break;
- case 32:
+ case 32: // value: "null"
#line 316 "dhcp4_parser.yy"
{ yylhs.value.as < ElementPtr > () = ElementPtr(new NullElement(ctx.loc2pos(yystack_[0].location))); }
-#line 894 "dhcp4_parser.cc"
+#line 863 "dhcp4_parser.cc"
break;
- case 33:
+ case 33: // value: map2
#line 317 "dhcp4_parser.yy"
{ yylhs.value.as < ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); }
-#line 900 "dhcp4_parser.cc"
+#line 869 "dhcp4_parser.cc"
break;
- case 34:
+ case 34: // value: list_generic
#line 318 "dhcp4_parser.yy"
{ yylhs.value.as < ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); }
-#line 906 "dhcp4_parser.cc"
+#line 875 "dhcp4_parser.cc"
break;
- case 35:
+ case 35: // sub_json: value
#line 321 "dhcp4_parser.yy"
{
// Push back the JSON value on the stack
ctx.stack_.push_back(yystack_[0].value.as < ElementPtr > ());
}
-#line 915 "dhcp4_parser.cc"
+#line 884 "dhcp4_parser.cc"
break;
- case 36:
+ case 36: // $@14: %empty
#line 326 "dhcp4_parser.yy"
{
// This code is executed when we're about to start parsing
@@ -922,36 +891,36 @@ namespace isc { namespace dhcp {
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 926 "dhcp4_parser.cc"
+#line 895 "dhcp4_parser.cc"
break;
- case 37:
+ case 37: // map2: "{" $@14 map_content "}"
#line 331 "dhcp4_parser.yy"
{
// map parsing completed. If we ever want to do any wrap up
// (maybe some sanity checking), this would be the best place
// for it.
}
-#line 936 "dhcp4_parser.cc"
+#line 905 "dhcp4_parser.cc"
break;
- case 38:
+ case 38: // map_value: map2
#line 337 "dhcp4_parser.yy"
{ yylhs.value.as < ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); }
-#line 942 "dhcp4_parser.cc"
+#line 911 "dhcp4_parser.cc"
break;
- case 41:
+ case 41: // not_empty_map: "constant string" ":" value
#line 344 "dhcp4_parser.yy"
{
// map containing a single entry
ctx.unique(yystack_[2].value.as < std::string > (), ctx.loc2pos(yystack_[2].location));
ctx.stack_.back()->set(yystack_[2].value.as < std::string > (), yystack_[0].value.as < ElementPtr > ());
}
-#line 952 "dhcp4_parser.cc"
+#line 921 "dhcp4_parser.cc"
break;
- case 42:
+ case 42: // not_empty_map: not_empty_map "," "constant string" ":" value
#line 349 "dhcp4_parser.yy"
{
// map consisting of a shorter map followed by
@@ -959,104 +928,104 @@ namespace isc { namespace dhcp {
ctx.unique(yystack_[2].value.as < std::string > (), ctx.loc2pos(yystack_[2].location));
ctx.stack_.back()->set(yystack_[2].value.as < std::string > (), yystack_[0].value.as < ElementPtr > ());
}
-#line 963 "dhcp4_parser.cc"
+#line 932 "dhcp4_parser.cc"
break;
- case 43:
+ case 43: // not_empty_map: not_empty_map ","
#line 355 "dhcp4_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 971 "dhcp4_parser.cc"
+#line 940 "dhcp4_parser.cc"
break;
- case 44:
+ case 44: // $@15: %empty
#line 360 "dhcp4_parser.yy"
{
ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(l);
}
-#line 980 "dhcp4_parser.cc"
+#line 949 "dhcp4_parser.cc"
break;
- case 45:
+ case 45: // list_generic: "[" $@15 list_content "]"
#line 363 "dhcp4_parser.yy"
{
// list parsing complete. Put any sanity checking here
}
-#line 988 "dhcp4_parser.cc"
+#line 957 "dhcp4_parser.cc"
break;
- case 48:
+ case 48: // not_empty_list: value
#line 371 "dhcp4_parser.yy"
{
// List consisting of a single element.
ctx.stack_.back()->add(yystack_[0].value.as < ElementPtr > ());
}
-#line 997 "dhcp4_parser.cc"
+#line 966 "dhcp4_parser.cc"
break;
- case 49:
+ case 49: // not_empty_list: not_empty_list "," value
#line 375 "dhcp4_parser.yy"
{
// List ending with , and a value.
ctx.stack_.back()->add(yystack_[0].value.as < ElementPtr > ());
}
-#line 1006 "dhcp4_parser.cc"
+#line 975 "dhcp4_parser.cc"
break;
- case 50:
+ case 50: // not_empty_list: not_empty_list ","
#line 379 "dhcp4_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 1014 "dhcp4_parser.cc"
+#line 983 "dhcp4_parser.cc"
break;
- case 51:
+ case 51: // $@16: %empty
#line 385 "dhcp4_parser.yy"
{
// List parsing about to start
}
-#line 1022 "dhcp4_parser.cc"
+#line 991 "dhcp4_parser.cc"
break;
- case 52:
+ case 52: // list_strings: "[" $@16 list_strings_content "]"
#line 387 "dhcp4_parser.yy"
{
// list parsing complete. Put any sanity checking here
//ctx.stack_.pop_back();
}
-#line 1031 "dhcp4_parser.cc"
+#line 1000 "dhcp4_parser.cc"
break;
- case 55:
+ case 55: // not_empty_list_strings: "constant string"
#line 396 "dhcp4_parser.yy"
{
ElementPtr s(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(s);
}
-#line 1040 "dhcp4_parser.cc"
+#line 1009 "dhcp4_parser.cc"
break;
- case 56:
+ case 56: // not_empty_list_strings: not_empty_list_strings "," "constant string"
#line 400 "dhcp4_parser.yy"
{
ElementPtr s(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(s);
}
-#line 1049 "dhcp4_parser.cc"
+#line 1018 "dhcp4_parser.cc"
break;
- case 57:
+ case 57: // not_empty_list_strings: not_empty_list_strings ","
#line 404 "dhcp4_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 1057 "dhcp4_parser.cc"
+#line 1026 "dhcp4_parser.cc"
break;
- case 58:
+ case 58: // unknown_map_entry: "constant string" ":"
#line 414 "dhcp4_parser.yy"
{
const std::string& where = ctx.contextName();
@@ -1064,10 +1033,10 @@ namespace isc { namespace dhcp {
error(yystack_[1].location,
"got unexpected keyword \"" + keyword + "\" in " + where + " map.");
}
-#line 1068 "dhcp4_parser.cc"
+#line 1037 "dhcp4_parser.cc"
break;
- case 59:
+ case 59: // $@17: %empty
#line 423 "dhcp4_parser.yy"
{
// This code is executed when we're about to start parsing
@@ -1075,10 +1044,10 @@ namespace isc { namespace dhcp {
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 1079 "dhcp4_parser.cc"
+#line 1048 "dhcp4_parser.cc"
break;
- case 60:
+ case 60: // syntax_map: "{" $@17 global_object "}"
#line 428 "dhcp4_parser.yy"
{
// map parsing completed. If we ever want to do any wrap up
@@ -1088,10 +1057,10 @@ namespace isc { namespace dhcp {
// Dhcp4 is required
ctx.require("Dhcp4", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location));
}
-#line 1092 "dhcp4_parser.cc"
+#line 1061 "dhcp4_parser.cc"
break;
- case 61:
+ case 61: // $@18: %empty
#line 438 "dhcp4_parser.yy"
{
// This code is executed when we're about to start parsing
@@ -1103,469 +1072,469 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(m);
ctx.enter(ctx.DHCP4);
}
-#line 1107 "dhcp4_parser.cc"
+#line 1076 "dhcp4_parser.cc"
break;
- case 62:
+ case 62: // global_object: "Dhcp4" $@18 ":" "{" global_params "}"
#line 447 "dhcp4_parser.yy"
{
// No global parameter is required
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1117 "dhcp4_parser.cc"
+#line 1086 "dhcp4_parser.cc"
break;
- case 64:
+ case 64: // global_object_comma: global_object ","
#line 455 "dhcp4_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 1125 "dhcp4_parser.cc"
+#line 1094 "dhcp4_parser.cc"
break;
- case 65:
+ case 65: // $@19: %empty
#line 461 "dhcp4_parser.yy"
{
// Parse the Dhcp4 map
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 1135 "dhcp4_parser.cc"
+#line 1104 "dhcp4_parser.cc"
break;
- case 66:
+ case 66: // sub_dhcp4: "{" $@19 global_params "}"
#line 465 "dhcp4_parser.yy"
{
// No global parameter is required
// parsing completed
}
-#line 1144 "dhcp4_parser.cc"
+#line 1113 "dhcp4_parser.cc"
break;
- case 69:
+ case 69: // global_params: global_params ","
#line 472 "dhcp4_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 1152 "dhcp4_parser.cc"
+#line 1121 "dhcp4_parser.cc"
break;
- case 134:
+ case 134: // valid_lifetime: "valid-lifetime" ":" "integer"
#line 545 "dhcp4_parser.yy"
{
ctx.unique("valid-lifetime", ctx.loc2pos(yystack_[2].location));
ElementPtr prf(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("valid-lifetime", prf);
}
-#line 1162 "dhcp4_parser.cc"
+#line 1131 "dhcp4_parser.cc"
break;
- case 135:
+ case 135: // min_valid_lifetime: "min-valid-lifetime" ":" "integer"
#line 551 "dhcp4_parser.yy"
{
ctx.unique("min-valid-lifetime", ctx.loc2pos(yystack_[2].location));
ElementPtr prf(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("min-valid-lifetime", prf);
}
-#line 1172 "dhcp4_parser.cc"
+#line 1141 "dhcp4_parser.cc"
break;
- case 136:
+ case 136: // max_valid_lifetime: "max-valid-lifetime" ":" "integer"
#line 557 "dhcp4_parser.yy"
{
ctx.unique("max-valid-lifetime", ctx.loc2pos(yystack_[2].location));
ElementPtr prf(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("max-valid-lifetime", prf);
}
-#line 1182 "dhcp4_parser.cc"
+#line 1151 "dhcp4_parser.cc"
break;
- case 137:
+ case 137: // renew_timer: "renew-timer" ":" "integer"
#line 563 "dhcp4_parser.yy"
{
ctx.unique("renew-timer", ctx.loc2pos(yystack_[2].location));
ElementPtr prf(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("renew-timer", prf);
}
-#line 1192 "dhcp4_parser.cc"
+#line 1161 "dhcp4_parser.cc"
break;
- case 138:
+ case 138: // rebind_timer: "rebind-timer" ":" "integer"
#line 569 "dhcp4_parser.yy"
{
ctx.unique("rebind-timer", ctx.loc2pos(yystack_[2].location));
ElementPtr prf(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("rebind-timer", prf);
}
-#line 1202 "dhcp4_parser.cc"
+#line 1171 "dhcp4_parser.cc"
break;
- case 139:
+ case 139: // calculate_tee_times: "calculate-tee-times" ":" "boolean"
#line 575 "dhcp4_parser.yy"
{
ctx.unique("calculate-tee-times", ctx.loc2pos(yystack_[2].location));
ElementPtr ctt(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("calculate-tee-times", ctt);
}
-#line 1212 "dhcp4_parser.cc"
+#line 1181 "dhcp4_parser.cc"
break;
- case 140:
+ case 140: // t1_percent: "t1-percent" ":" "floating point"
#line 581 "dhcp4_parser.yy"
{
ctx.unique("t1-percent", ctx.loc2pos(yystack_[2].location));
ElementPtr t1(new DoubleElement(yystack_[0].value.as < double > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("t1-percent", t1);
}
-#line 1222 "dhcp4_parser.cc"
+#line 1191 "dhcp4_parser.cc"
break;
- case 141:
+ case 141: // t2_percent: "t2-percent" ":" "floating point"
#line 587 "dhcp4_parser.yy"
{
ctx.unique("t2-percent", ctx.loc2pos(yystack_[2].location));
ElementPtr t2(new DoubleElement(yystack_[0].value.as < double > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("t2-percent", t2);
}
-#line 1232 "dhcp4_parser.cc"
+#line 1201 "dhcp4_parser.cc"
break;
- case 142:
+ case 142: // cache_threshold: "cache-threshold" ":" "floating point"
#line 593 "dhcp4_parser.yy"
{
ctx.unique("cache-threshold", ctx.loc2pos(yystack_[2].location));
ElementPtr ct(new DoubleElement(yystack_[0].value.as < double > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("cache-threshold", ct);
}
-#line 1242 "dhcp4_parser.cc"
+#line 1211 "dhcp4_parser.cc"
break;
- case 143:
+ case 143: // cache_max_age: "cache-max-age" ":" "integer"
#line 599 "dhcp4_parser.yy"
{
ctx.unique("cache-max-age", ctx.loc2pos(yystack_[2].location));
ElementPtr cm(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("cache-max-age", cm);
}
-#line 1252 "dhcp4_parser.cc"
+#line 1221 "dhcp4_parser.cc"
break;
- case 144:
+ case 144: // decline_probation_period: "decline-probation-period" ":" "integer"
#line 605 "dhcp4_parser.yy"
{
ctx.unique("decline-probation-period", ctx.loc2pos(yystack_[2].location));
ElementPtr dpp(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("decline-probation-period", dpp);
}
-#line 1262 "dhcp4_parser.cc"
+#line 1231 "dhcp4_parser.cc"
break;
- case 145:
+ case 145: // $@20: %empty
#line 611 "dhcp4_parser.yy"
{
ctx.unique("server-tag", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1271 "dhcp4_parser.cc"
+#line 1240 "dhcp4_parser.cc"
break;
- case 146:
+ case 146: // server_tag: "server-tag" $@20 ":" "constant string"
#line 614 "dhcp4_parser.yy"
{
ElementPtr stag(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("server-tag", stag);
ctx.leave();
}
-#line 1281 "dhcp4_parser.cc"
+#line 1250 "dhcp4_parser.cc"
break;
- case 147:
+ case 147: // parked_packet_limit: "parked-packet-limit" ":" "integer"
#line 620 "dhcp4_parser.yy"
{
ctx.unique("parked-packet-limit", ctx.loc2pos(yystack_[2].location));
ElementPtr ppl(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("parked-packet-limit", ppl);
}
-#line 1291 "dhcp4_parser.cc"
+#line 1260 "dhcp4_parser.cc"
break;
- case 148:
+ case 148: // echo_client_id: "echo-client-id" ":" "boolean"
#line 626 "dhcp4_parser.yy"
{
ctx.unique("echo-client-id", ctx.loc2pos(yystack_[2].location));
ElementPtr echo(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("echo-client-id", echo);
}
-#line 1301 "dhcp4_parser.cc"
+#line 1270 "dhcp4_parser.cc"
break;
- case 149:
+ case 149: // match_client_id: "match-client-id" ":" "boolean"
#line 632 "dhcp4_parser.yy"
{
ctx.unique("match-client-id", ctx.loc2pos(yystack_[2].location));
ElementPtr match(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("match-client-id", match);
}
-#line 1311 "dhcp4_parser.cc"
+#line 1280 "dhcp4_parser.cc"
break;
- case 150:
+ case 150: // authoritative: "authoritative" ":" "boolean"
#line 638 "dhcp4_parser.yy"
{
ctx.unique("authoritative", ctx.loc2pos(yystack_[2].location));
ElementPtr prf(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("authoritative", prf);
}
-#line 1321 "dhcp4_parser.cc"
+#line 1290 "dhcp4_parser.cc"
break;
- case 151:
+ case 151: // ddns_send_updates: "ddns-send-updates" ":" "boolean"
#line 644 "dhcp4_parser.yy"
{
ctx.unique("ddns-send-updates", ctx.loc2pos(yystack_[2].location));
ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("ddns-send-updates", b);
}
-#line 1331 "dhcp4_parser.cc"
+#line 1300 "dhcp4_parser.cc"
break;
- case 152:
+ case 152: // ddns_override_no_update: "ddns-override-no-update" ":" "boolean"
#line 650 "dhcp4_parser.yy"
{
ctx.unique("ddns-override-no-update", ctx.loc2pos(yystack_[2].location));
ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("ddns-override-no-update", b);
}
-#line 1341 "dhcp4_parser.cc"
+#line 1310 "dhcp4_parser.cc"
break;
- case 153:
+ case 153: // ddns_override_client_update: "ddns-override-client-update" ":" "boolean"
#line 656 "dhcp4_parser.yy"
{
ctx.unique("ddns-override-client-update", ctx.loc2pos(yystack_[2].location));
ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("ddns-override-client-update", b);
}
-#line 1351 "dhcp4_parser.cc"
+#line 1320 "dhcp4_parser.cc"
break;
- case 154:
+ case 154: // $@21: %empty
#line 662 "dhcp4_parser.yy"
{
ctx.enter(ctx.REPLACE_CLIENT_NAME);
ctx.unique("ddns-replace-client-name", ctx.loc2pos(yystack_[0].location));
}
-#line 1360 "dhcp4_parser.cc"
+#line 1329 "dhcp4_parser.cc"
break;
- case 155:
+ case 155: // ddns_replace_client_name: "ddns-replace-client-name" $@21 ":" ddns_replace_client_name_value
#line 665 "dhcp4_parser.yy"
{
ctx.stack_.back()->set("ddns-replace-client-name", yystack_[0].value.as < ElementPtr > ());
ctx.leave();
}
-#line 1369 "dhcp4_parser.cc"
+#line 1338 "dhcp4_parser.cc"
break;
- case 156:
+ case 156: // ddns_replace_client_name_value: "when-present"
#line 671 "dhcp4_parser.yy"
{
yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("when-present", ctx.loc2pos(yystack_[0].location)));
}
-#line 1377 "dhcp4_parser.cc"
+#line 1346 "dhcp4_parser.cc"
break;
- case 157:
+ case 157: // ddns_replace_client_name_value: "never"
#line 674 "dhcp4_parser.yy"
{
yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("never", ctx.loc2pos(yystack_[0].location)));
}
-#line 1385 "dhcp4_parser.cc"
+#line 1354 "dhcp4_parser.cc"
break;
- case 158:
+ case 158: // ddns_replace_client_name_value: "always"
#line 677 "dhcp4_parser.yy"
{
yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("always", ctx.loc2pos(yystack_[0].location)));
}
-#line 1393 "dhcp4_parser.cc"
+#line 1362 "dhcp4_parser.cc"
break;
- case 159:
+ case 159: // ddns_replace_client_name_value: "when-not-present"
#line 680 "dhcp4_parser.yy"
{
yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("when-not-present", ctx.loc2pos(yystack_[0].location)));
}
-#line 1401 "dhcp4_parser.cc"
+#line 1370 "dhcp4_parser.cc"
break;
- case 160:
+ case 160: // ddns_replace_client_name_value: "boolean"
#line 683 "dhcp4_parser.yy"
{
error(yystack_[0].location, "boolean values for the replace-client-name are "
"no longer supported");
}
-#line 1410 "dhcp4_parser.cc"
+#line 1379 "dhcp4_parser.cc"
break;
- case 161:
+ case 161: // $@22: %empty
#line 689 "dhcp4_parser.yy"
{
ctx.unique("ddns-generated-prefix", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1419 "dhcp4_parser.cc"
+#line 1388 "dhcp4_parser.cc"
break;
- case 162:
+ case 162: // ddns_generated_prefix: "ddns-generated-prefix" $@22 ":" "constant string"
#line 692 "dhcp4_parser.yy"
{
ElementPtr s(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("ddns-generated-prefix", s);
ctx.leave();
}
-#line 1429 "dhcp4_parser.cc"
+#line 1398 "dhcp4_parser.cc"
break;
- case 163:
+ case 163: // $@23: %empty
#line 698 "dhcp4_parser.yy"
{
ctx.unique("ddns-qualifying-suffix", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1438 "dhcp4_parser.cc"
+#line 1407 "dhcp4_parser.cc"
break;
- case 164:
+ case 164: // ddns_qualifying_suffix: "ddns-qualifying-suffix" $@23 ":" "constant string"
#line 701 "dhcp4_parser.yy"
{
ElementPtr s(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("ddns-qualifying-suffix", s);
ctx.leave();
}
-#line 1448 "dhcp4_parser.cc"
+#line 1417 "dhcp4_parser.cc"
break;
- case 165:
+ case 165: // ddns_update_on_renew: "ddns-update-on-renew" ":" "boolean"
#line 707 "dhcp4_parser.yy"
{
ctx.unique("ddns-update-on-renew", ctx.loc2pos(yystack_[2].location));
ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("ddns-update-on-renew", b);
}
-#line 1458 "dhcp4_parser.cc"
+#line 1427 "dhcp4_parser.cc"
break;
- case 166:
+ case 166: // ddns_use_conflict_resolution: "ddns-use-conflict-resolution" ":" "boolean"
#line 713 "dhcp4_parser.yy"
{
ctx.unique("ddns-use-conflict-resolution", ctx.loc2pos(yystack_[2].location));
ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("ddns-use-conflict-resolution", b);
}
-#line 1468 "dhcp4_parser.cc"
+#line 1437 "dhcp4_parser.cc"
break;
- case 167:
+ case 167: // $@24: %empty
#line 719 "dhcp4_parser.yy"
{
ctx.unique("hostname-char-set", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1477 "dhcp4_parser.cc"
+#line 1446 "dhcp4_parser.cc"
break;
- case 168:
+ case 168: // hostname_char_set: "hostname-char-set" $@24 ":" "constant string"
#line 722 "dhcp4_parser.yy"
{
ElementPtr s(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("hostname-char-set", s);
ctx.leave();
}
-#line 1487 "dhcp4_parser.cc"
+#line 1456 "dhcp4_parser.cc"
break;
- case 169:
+ case 169: // $@25: %empty
#line 728 "dhcp4_parser.yy"
{
ctx.unique("hostname-char-replacement", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1496 "dhcp4_parser.cc"
+#line 1465 "dhcp4_parser.cc"
break;
- case 170:
+ case 170: // hostname_char_replacement: "hostname-char-replacement" $@25 ":" "constant string"
#line 731 "dhcp4_parser.yy"
{
ElementPtr s(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("hostname-char-replacement", s);
ctx.leave();
}
-#line 1506 "dhcp4_parser.cc"
+#line 1475 "dhcp4_parser.cc"
break;
- case 171:
+ case 171: // store_extended_info: "store-extended-info" ":" "boolean"
#line 737 "dhcp4_parser.yy"
{
ctx.unique("store-extended-info", ctx.loc2pos(yystack_[2].location));
ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("store-extended-info", b);
}
-#line 1516 "dhcp4_parser.cc"
+#line 1485 "dhcp4_parser.cc"
break;
- case 172:
+ case 172: // statistic_default_sample_count: "statistic-default-sample-count" ":" "integer"
#line 743 "dhcp4_parser.yy"
{
ctx.unique("statistic-default-sample-count", ctx.loc2pos(yystack_[2].location));
ElementPtr count(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("statistic-default-sample-count", count);
}
-#line 1526 "dhcp4_parser.cc"
+#line 1495 "dhcp4_parser.cc"
break;
- case 173:
+ case 173: // statistic_default_sample_age: "statistic-default-sample-age" ":" "integer"
#line 749 "dhcp4_parser.yy"
{
ctx.unique("statistic-default-sample-age", ctx.loc2pos(yystack_[2].location));
ElementPtr age(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("statistic-default-sample-age", age);
}
-#line 1536 "dhcp4_parser.cc"
+#line 1505 "dhcp4_parser.cc"
break;
- case 174:
+ case 174: // early_global_reservations_lookup: "early-global-reservations-lookup" ":" "boolean"
#line 755 "dhcp4_parser.yy"
{
ctx.unique("early-global-reservations-lookup", ctx.loc2pos(yystack_[2].location));
ElementPtr early(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("early-global-reservations-lookup", early);
}
-#line 1546 "dhcp4_parser.cc"
+#line 1515 "dhcp4_parser.cc"
break;
- case 175:
+ case 175: // ip_reservations_unique: "ip-reservations-unique" ":" "boolean"
#line 761 "dhcp4_parser.yy"
{
ctx.unique("ip-reservations-unique", ctx.loc2pos(yystack_[2].location));
ElementPtr unique(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("ip-reservations-unique", unique);
}
-#line 1556 "dhcp4_parser.cc"
+#line 1525 "dhcp4_parser.cc"
break;
- case 176:
+ case 176: // reservations_lookup_first: "reservations-lookup-first" ":" "boolean"
#line 767 "dhcp4_parser.yy"
{
ctx.unique("reservations-lookup-first", ctx.loc2pos(yystack_[2].location));
ElementPtr first(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("reservations-lookup-first", first);
}
-#line 1566 "dhcp4_parser.cc"
+#line 1535 "dhcp4_parser.cc"
break;
- case 177:
+ case 177: // $@26: %empty
#line 773 "dhcp4_parser.yy"
{
ctx.unique("interfaces-config", ctx.loc2pos(yystack_[0].location));
@@ -1574,47 +1543,47 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(i);
ctx.enter(ctx.INTERFACES_CONFIG);
}
-#line 1578 "dhcp4_parser.cc"
+#line 1547 "dhcp4_parser.cc"
break;
- case 178:
+ case 178: // interfaces_config: "interfaces-config" $@26 ":" "{" interfaces_config_params "}"
#line 779 "dhcp4_parser.yy"
{
// No interfaces config param is required
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1588 "dhcp4_parser.cc"
+#line 1557 "dhcp4_parser.cc"
break;
- case 181:
+ case 181: // interfaces_config_params: interfaces_config_params ","
#line 787 "dhcp4_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 1596 "dhcp4_parser.cc"
+#line 1565 "dhcp4_parser.cc"
break;
- case 189:
+ case 189: // $@27: %empty
#line 801 "dhcp4_parser.yy"
{
// Parse the interfaces-config map
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 1606 "dhcp4_parser.cc"
+#line 1575 "dhcp4_parser.cc"
break;
- case 190:
+ case 190: // sub_interfaces4: "{" $@27 interfaces_config_params "}"
#line 805 "dhcp4_parser.yy"
{
// No interfaces config param is required
// parsing completed
}
-#line 1615 "dhcp4_parser.cc"
+#line 1584 "dhcp4_parser.cc"
break;
- case 191:
+ case 191: // $@28: %empty
#line 810 "dhcp4_parser.yy"
{
ctx.unique("interfaces", ctx.loc2pos(yystack_[0].location));
@@ -1623,93 +1592,93 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(l);
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1627 "dhcp4_parser.cc"
+#line 1596 "dhcp4_parser.cc"
break;
- case 192:
+ case 192: // interfaces_list: "interfaces" $@28 ":" list_strings
#line 816 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1636 "dhcp4_parser.cc"
+#line 1605 "dhcp4_parser.cc"
break;
- case 193:
+ case 193: // $@29: %empty
#line 821 "dhcp4_parser.yy"
{
ctx.unique("dhcp-socket-type", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.DHCP_SOCKET_TYPE);
}
-#line 1645 "dhcp4_parser.cc"
+#line 1614 "dhcp4_parser.cc"
break;
- case 194:
+ case 194: // dhcp_socket_type: "dhcp-socket-type" $@29 ":" socket_type
#line 824 "dhcp4_parser.yy"
{
ctx.stack_.back()->set("dhcp-socket-type", yystack_[0].value.as < ElementPtr > ());
ctx.leave();
}
-#line 1654 "dhcp4_parser.cc"
+#line 1623 "dhcp4_parser.cc"
break;
- case 195:
+ case 195: // socket_type: "raw"
#line 829 "dhcp4_parser.yy"
{ yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("raw", ctx.loc2pos(yystack_[0].location))); }
-#line 1660 "dhcp4_parser.cc"
+#line 1629 "dhcp4_parser.cc"
break;
- case 196:
+ case 196: // socket_type: "udp"
#line 830 "dhcp4_parser.yy"
{ yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("udp", ctx.loc2pos(yystack_[0].location))); }
-#line 1666 "dhcp4_parser.cc"
+#line 1635 "dhcp4_parser.cc"
break;
- case 197:
+ case 197: // $@30: %empty
#line 833 "dhcp4_parser.yy"
{
ctx.unique("outbound-interface", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.OUTBOUND_INTERFACE);
}
-#line 1675 "dhcp4_parser.cc"
+#line 1644 "dhcp4_parser.cc"
break;
- case 198:
+ case 198: // outbound_interface: "outbound-interface" $@30 ":" outbound_interface_value
#line 836 "dhcp4_parser.yy"
{
ctx.stack_.back()->set("outbound-interface", yystack_[0].value.as < ElementPtr > ());
ctx.leave();
}
-#line 1684 "dhcp4_parser.cc"
+#line 1653 "dhcp4_parser.cc"
break;
- case 199:
+ case 199: // outbound_interface_value: "same-as-inbound"
#line 841 "dhcp4_parser.yy"
{
yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("same-as-inbound", ctx.loc2pos(yystack_[0].location)));
}
-#line 1692 "dhcp4_parser.cc"
+#line 1661 "dhcp4_parser.cc"
break;
- case 200:
+ case 200: // outbound_interface_value: "use-routing"
#line 843 "dhcp4_parser.yy"
{
yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("use-routing", ctx.loc2pos(yystack_[0].location)));
}
-#line 1700 "dhcp4_parser.cc"
+#line 1669 "dhcp4_parser.cc"
break;
- case 201:
+ case 201: // re_detect: "re-detect" ":" "boolean"
#line 847 "dhcp4_parser.yy"
{
ctx.unique("re-detect", ctx.loc2pos(yystack_[2].location));
ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("re-detect", b);
}
-#line 1710 "dhcp4_parser.cc"
+#line 1679 "dhcp4_parser.cc"
break;
- case 202:
+ case 202: // $@31: %empty
#line 854 "dhcp4_parser.yy"
{
ctx.unique("lease-database", ctx.loc2pos(yystack_[0].location));
@@ -1718,10 +1687,10 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(i);
ctx.enter(ctx.LEASE_DATABASE);
}
-#line 1722 "dhcp4_parser.cc"
+#line 1691 "dhcp4_parser.cc"
break;
- case 203:
+ case 203: // lease_database: "lease-database" $@31 ":" "{" database_map_params "}"
#line 860 "dhcp4_parser.yy"
{
// The type parameter is required
@@ -1729,10 +1698,10 @@ namespace isc { namespace dhcp {
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1733 "dhcp4_parser.cc"
+#line 1702 "dhcp4_parser.cc"
break;
- case 204:
+ case 204: // $@32: %empty
#line 867 "dhcp4_parser.yy"
{
ctx.unique("sanity-checks", ctx.loc2pos(yystack_[0].location));
@@ -1741,36 +1710,36 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(m);
ctx.enter(ctx.SANITY_CHECKS);
}
-#line 1745 "dhcp4_parser.cc"
+#line 1714 "dhcp4_parser.cc"
break;
- case 205:
+ case 205: // sanity_checks: "sanity-checks" $@32 ":" "{" sanity_checks_params "}"
#line 873 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1754 "dhcp4_parser.cc"
+#line 1723 "dhcp4_parser.cc"
break;
- case 208:
+ case 208: // sanity_checks_params: sanity_checks_params ","
#line 880 "dhcp4_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 1762 "dhcp4_parser.cc"
+#line 1731 "dhcp4_parser.cc"
break;
- case 210:
+ case 210: // $@33: %empty
#line 887 "dhcp4_parser.yy"
{
ctx.unique("lease-checks", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1771 "dhcp4_parser.cc"
+#line 1740 "dhcp4_parser.cc"
break;
- case 211:
+ case 211: // lease_checks: "lease-checks" $@33 ":" "constant string"
#line 890 "dhcp4_parser.yy"
{
@@ -1787,10 +1756,10 @@ namespace isc { namespace dhcp {
", supported values are: none, warn, fix, fix-del, del");
}
}
-#line 1791 "dhcp4_parser.cc"
+#line 1760 "dhcp4_parser.cc"
break;
- case 212:
+ case 212: // $@34: %empty
#line 906 "dhcp4_parser.yy"
{
ctx.unique("hosts-database", ctx.loc2pos(yystack_[0].location));
@@ -1799,10 +1768,10 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(i);
ctx.enter(ctx.HOSTS_DATABASE);
}
-#line 1803 "dhcp4_parser.cc"
+#line 1772 "dhcp4_parser.cc"
break;
- case 213:
+ case 213: // hosts_database: "hosts-database" $@34 ":" "{" database_map_params "}"
#line 912 "dhcp4_parser.yy"
{
// The type parameter is required
@@ -1810,10 +1779,10 @@ namespace isc { namespace dhcp {
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1814 "dhcp4_parser.cc"
+#line 1783 "dhcp4_parser.cc"
break;
- case 214:
+ case 214: // $@35: %empty
#line 919 "dhcp4_parser.yy"
{
ctx.unique("hosts-databases", ctx.loc2pos(yystack_[0].location));
@@ -1822,359 +1791,359 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(l);
ctx.enter(ctx.HOSTS_DATABASE);
}
-#line 1826 "dhcp4_parser.cc"
+#line 1795 "dhcp4_parser.cc"
break;
- case 215:
+ case 215: // hosts_databases: "hosts-databases" $@35 ":" "[" database_list "]"
#line 925 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1835 "dhcp4_parser.cc"
+#line 1804 "dhcp4_parser.cc"
break;
- case 220:
+ case 220: // not_empty_database_list: not_empty_database_list ","
#line 936 "dhcp4_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 1843 "dhcp4_parser.cc"
+#line 1812 "dhcp4_parser.cc"
break;
- case 221:
+ case 221: // $@36: %empty
#line 941 "dhcp4_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 1853 "dhcp4_parser.cc"
+#line 1822 "dhcp4_parser.cc"
break;
- case 222:
+ case 222: // database: "{" $@36 database_map_params "}"
#line 945 "dhcp4_parser.yy"
{
// The type parameter is required
ctx.require("type", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location));
ctx.stack_.pop_back();
}
-#line 1863 "dhcp4_parser.cc"
+#line 1832 "dhcp4_parser.cc"
break;
- case 225:
+ case 225: // database_map_params: database_map_params ","
#line 953 "dhcp4_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 1871 "dhcp4_parser.cc"
+#line 1840 "dhcp4_parser.cc"
break;
- case 245:
+ case 245: // $@37: %empty
#line 979 "dhcp4_parser.yy"
{
ctx.unique("type", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.DATABASE_TYPE);
}
-#line 1880 "dhcp4_parser.cc"
+#line 1849 "dhcp4_parser.cc"
break;
- case 246:
+ case 246: // database_type: "type" $@37 ":" db_type
#line 982 "dhcp4_parser.yy"
{
ctx.stack_.back()->set("type", yystack_[0].value.as < ElementPtr > ());
ctx.leave();
}
-#line 1889 "dhcp4_parser.cc"
+#line 1858 "dhcp4_parser.cc"
break;
- case 247:
+ case 247: // db_type: "memfile"
#line 987 "dhcp4_parser.yy"
{ yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("memfile", ctx.loc2pos(yystack_[0].location))); }
-#line 1895 "dhcp4_parser.cc"
+#line 1864 "dhcp4_parser.cc"
break;
- case 248:
+ case 248: // db_type: "mysql"
#line 988 "dhcp4_parser.yy"
{ yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("mysql", ctx.loc2pos(yystack_[0].location))); }
-#line 1901 "dhcp4_parser.cc"
+#line 1870 "dhcp4_parser.cc"
break;
- case 249:
+ case 249: // db_type: "postgresql"
#line 989 "dhcp4_parser.yy"
{ yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("postgresql", ctx.loc2pos(yystack_[0].location))); }
-#line 1907 "dhcp4_parser.cc"
+#line 1876 "dhcp4_parser.cc"
break;
- case 250:
+ case 250: // $@38: %empty
#line 992 "dhcp4_parser.yy"
{
ctx.unique("user", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1916 "dhcp4_parser.cc"
+#line 1885 "dhcp4_parser.cc"
break;
- case 251:
+ case 251: // user: "user" $@38 ":" "constant string"
#line 995 "dhcp4_parser.yy"
{
ElementPtr user(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("user", user);
ctx.leave();
}
-#line 1926 "dhcp4_parser.cc"
+#line 1895 "dhcp4_parser.cc"
break;
- case 252:
+ case 252: // $@39: %empty
#line 1001 "dhcp4_parser.yy"
{
ctx.unique("password", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1935 "dhcp4_parser.cc"
+#line 1904 "dhcp4_parser.cc"
break;
- case 253:
+ case 253: // password: "password" $@39 ":" "constant string"
#line 1004 "dhcp4_parser.yy"
{
ElementPtr pwd(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("password", pwd);
ctx.leave();
}
-#line 1945 "dhcp4_parser.cc"
+#line 1914 "dhcp4_parser.cc"
break;
- case 254:
+ case 254: // $@40: %empty
#line 1010 "dhcp4_parser.yy"
{
ctx.unique("host", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1954 "dhcp4_parser.cc"
+#line 1923 "dhcp4_parser.cc"
break;
- case 255:
+ case 255: // host: "host" $@40 ":" "constant string"
#line 1013 "dhcp4_parser.yy"
{
ElementPtr h(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("host", h);
ctx.leave();
}
-#line 1964 "dhcp4_parser.cc"
+#line 1933 "dhcp4_parser.cc"
break;
- case 256:
+ case 256: // port: "port" ":" "integer"
#line 1019 "dhcp4_parser.yy"
{
ctx.unique("port", ctx.loc2pos(yystack_[2].location));
ElementPtr p(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("port", p);
}
-#line 1974 "dhcp4_parser.cc"
+#line 1943 "dhcp4_parser.cc"
break;
- case 257:
+ case 257: // $@41: %empty
#line 1025 "dhcp4_parser.yy"
{
ctx.unique("name", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1983 "dhcp4_parser.cc"
+#line 1952 "dhcp4_parser.cc"
break;
- case 258:
+ case 258: // name: "name" $@41 ":" "constant string"
#line 1028 "dhcp4_parser.yy"
{
ElementPtr name(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("name", name);
ctx.leave();
}
-#line 1993 "dhcp4_parser.cc"
+#line 1962 "dhcp4_parser.cc"
break;
- case 259:
+ case 259: // persist: "persist" ":" "boolean"
#line 1034 "dhcp4_parser.yy"
{
ctx.unique("persist", ctx.loc2pos(yystack_[2].location));
ElementPtr n(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("persist", n);
}
-#line 2003 "dhcp4_parser.cc"
+#line 1972 "dhcp4_parser.cc"
break;
- case 260:
+ case 260: // lfc_interval: "lfc-interval" ":" "integer"
#line 1040 "dhcp4_parser.yy"
{
ctx.unique("lfc-interval", ctx.loc2pos(yystack_[2].location));
ElementPtr n(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("lfc-interval", n);
}
-#line 2013 "dhcp4_parser.cc"
+#line 1982 "dhcp4_parser.cc"
break;
- case 261:
+ case 261: // readonly: "readonly" ":" "boolean"
#line 1046 "dhcp4_parser.yy"
{
ctx.unique("readonly", ctx.loc2pos(yystack_[2].location));
ElementPtr n(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("readonly", n);
}
-#line 2023 "dhcp4_parser.cc"
+#line 1992 "dhcp4_parser.cc"
break;
- case 262:
+ case 262: // connect_timeout: "connect-timeout" ":" "integer"
#line 1052 "dhcp4_parser.yy"
{
ctx.unique("connect-timeout", ctx.loc2pos(yystack_[2].location));
ElementPtr n(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("connect-timeout", n);
}
-#line 2033 "dhcp4_parser.cc"
+#line 2002 "dhcp4_parser.cc"
break;
- case 263:
+ case 263: // max_reconnect_tries: "max-reconnect-tries" ":" "integer"
#line 1058 "dhcp4_parser.yy"
{
ctx.unique("max-reconnect-tries", ctx.loc2pos(yystack_[2].location));
ElementPtr n(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("max-reconnect-tries", n);
}
-#line 2043 "dhcp4_parser.cc"
+#line 2012 "dhcp4_parser.cc"
break;
- case 264:
+ case 264: // reconnect_wait_time: "reconnect-wait-time" ":" "integer"
#line 1064 "dhcp4_parser.yy"
{
ctx.unique("reconnect-wait-time", ctx.loc2pos(yystack_[2].location));
ElementPtr n(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("reconnect-wait-time", n);
}
-#line 2053 "dhcp4_parser.cc"
+#line 2022 "dhcp4_parser.cc"
break;
- case 265:
+ case 265: // $@42: %empty
#line 1070 "dhcp4_parser.yy"
{
ctx.unique("on-fail", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.DATABASE_ON_FAIL);
}
-#line 2062 "dhcp4_parser.cc"
+#line 2031 "dhcp4_parser.cc"
break;
- case 266:
+ case 266: // on_fail: "on-fail" $@42 ":" on_fail_mode
#line 1073 "dhcp4_parser.yy"
{
ctx.stack_.back()->set("on-fail", yystack_[0].value.as < ElementPtr > ());
ctx.leave();
}
-#line 2071 "dhcp4_parser.cc"
+#line 2040 "dhcp4_parser.cc"
break;
- case 267:
+ case 267: // on_fail_mode: "stop-retry-exit"
#line 1078 "dhcp4_parser.yy"
{ yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("stop-retry-exit", ctx.loc2pos(yystack_[0].location))); }
-#line 2077 "dhcp4_parser.cc"
+#line 2046 "dhcp4_parser.cc"
break;
- case 268:
+ case 268: // on_fail_mode: "serve-retry-exit"
#line 1079 "dhcp4_parser.yy"
{ yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("serve-retry-exit", ctx.loc2pos(yystack_[0].location))); }
-#line 2083 "dhcp4_parser.cc"
+#line 2052 "dhcp4_parser.cc"
break;
- case 269:
+ case 269: // on_fail_mode: "serve-retry-continue"
#line 1080 "dhcp4_parser.yy"
{ yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("serve-retry-continue", ctx.loc2pos(yystack_[0].location))); }
-#line 2089 "dhcp4_parser.cc"
+#line 2058 "dhcp4_parser.cc"
break;
- case 270:
+ case 270: // max_row_errors: "max-row-errors" ":" "integer"
#line 1083 "dhcp4_parser.yy"
{
ctx.unique("max-row-errors", ctx.loc2pos(yystack_[2].location));
ElementPtr n(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("max-row-errors", n);
}
-#line 2099 "dhcp4_parser.cc"
+#line 2068 "dhcp4_parser.cc"
break;
- case 271:
+ case 271: // $@43: %empty
#line 1089 "dhcp4_parser.yy"
{
ctx.unique("trust-anchor", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2108 "dhcp4_parser.cc"
+#line 2077 "dhcp4_parser.cc"
break;
- case 272:
+ case 272: // trust_anchor: "trust-anchor" $@43 ":" "constant string"
#line 1092 "dhcp4_parser.yy"
{
ElementPtr ca(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("trust-anchor", ca);
ctx.leave();
}
-#line 2118 "dhcp4_parser.cc"
+#line 2087 "dhcp4_parser.cc"
break;
- case 273:
+ case 273: // $@44: %empty
#line 1098 "dhcp4_parser.yy"
{
ctx.unique("cert-file", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2127 "dhcp4_parser.cc"
+#line 2096 "dhcp4_parser.cc"
break;
- case 274:
+ case 274: // cert_file: "cert-file" $@44 ":" "constant string"
#line 1101 "dhcp4_parser.yy"
{
ElementPtr cert(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("cert-file", cert);
ctx.leave();
}
-#line 2137 "dhcp4_parser.cc"
+#line 2106 "dhcp4_parser.cc"
break;
- case 275:
+ case 275: // $@45: %empty
#line 1107 "dhcp4_parser.yy"
{
ctx.unique("key-file", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2146 "dhcp4_parser.cc"
+#line 2115 "dhcp4_parser.cc"
break;
- case 276:
+ case 276: // key_file: "key-file" $@45 ":" "constant string"
#line 1110 "dhcp4_parser.yy"
{
ElementPtr key(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("key-file", key);
ctx.leave();
}
-#line 2156 "dhcp4_parser.cc"
+#line 2125 "dhcp4_parser.cc"
break;
- case 277:
+ case 277: // $@46: %empty
#line 1116 "dhcp4_parser.yy"
{
ctx.unique("cipher-list", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2165 "dhcp4_parser.cc"
+#line 2134 "dhcp4_parser.cc"
break;
- case 278:
+ case 278: // cipher_list: "cipher-list" $@46 ":" "constant string"
#line 1119 "dhcp4_parser.yy"
{
ElementPtr cl(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("cipher-list", cl);
ctx.leave();
}
-#line 2175 "dhcp4_parser.cc"
+#line 2144 "dhcp4_parser.cc"
break;
- case 279:
+ case 279: // $@47: %empty
#line 1125 "dhcp4_parser.yy"
{
ctx.unique("host-reservation-identifiers", ctx.loc2pos(yystack_[0].location));
@@ -2183,72 +2152,72 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(l);
ctx.enter(ctx.HOST_RESERVATION_IDENTIFIERS);
}
-#line 2187 "dhcp4_parser.cc"
+#line 2156 "dhcp4_parser.cc"
break;
- case 280:
+ case 280: // host_reservation_identifiers: "host-reservation-identifiers" $@47 ":" "[" host_reservation_identifiers_list "]"
#line 1131 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2196 "dhcp4_parser.cc"
+#line 2165 "dhcp4_parser.cc"
break;
- case 283:
+ case 283: // host_reservation_identifiers_list: host_reservation_identifiers_list ","
#line 1138 "dhcp4_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 2204 "dhcp4_parser.cc"
+#line 2173 "dhcp4_parser.cc"
break;
- case 289:
+ case 289: // duid_id: "duid"
#line 1150 "dhcp4_parser.yy"
{
ElementPtr duid(new StringElement("duid", ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(duid);
}
-#line 2213 "dhcp4_parser.cc"
+#line 2182 "dhcp4_parser.cc"
break;
- case 290:
+ case 290: // hw_address_id: "hw-address"
#line 1155 "dhcp4_parser.yy"
{
ElementPtr hwaddr(new StringElement("hw-address", ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(hwaddr);
}
-#line 2222 "dhcp4_parser.cc"
+#line 2191 "dhcp4_parser.cc"
break;
- case 291:
+ case 291: // circuit_id: "circuit-id"
#line 1160 "dhcp4_parser.yy"
{
ElementPtr circuit(new StringElement("circuit-id", ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(circuit);
}
-#line 2231 "dhcp4_parser.cc"
+#line 2200 "dhcp4_parser.cc"
break;
- case 292:
+ case 292: // client_id: "client-id"
#line 1165 "dhcp4_parser.yy"
{
ElementPtr client(new StringElement("client-id", ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(client);
}
-#line 2240 "dhcp4_parser.cc"
+#line 2209 "dhcp4_parser.cc"
break;
- case 293:
+ case 293: // flex_id: "flex-id"
#line 1170 "dhcp4_parser.yy"
{
ElementPtr flex_id(new StringElement("flex-id", ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(flex_id);
}
-#line 2249 "dhcp4_parser.cc"
+#line 2218 "dhcp4_parser.cc"
break;
- case 294:
+ case 294: // $@48: %empty
#line 1177 "dhcp4_parser.yy"
{
ctx.unique("multi-threading", ctx.loc2pos(yystack_[0].location));
@@ -2257,10 +2226,10 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(mt);
ctx.enter(ctx.DHCP_MULTI_THREADING);
}
-#line 2261 "dhcp4_parser.cc"
+#line 2230 "dhcp4_parser.cc"
break;
- case 295:
+ case 295: // dhcp_multi_threading: "multi-threading" $@48 ":" "{" multi_threading_params "}"
#line 1183 "dhcp4_parser.yy"
{
// The enable parameter is required.
@@ -2268,48 +2237,48 @@ namespace isc { namespace dhcp {
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2272 "dhcp4_parser.cc"
+#line 2241 "dhcp4_parser.cc"
break;
- case 298:
+ case 298: // multi_threading_params: multi_threading_params ","
#line 1192 "dhcp4_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 2280 "dhcp4_parser.cc"
+#line 2249 "dhcp4_parser.cc"
break;
- case 305:
+ case 305: // enable_multi_threading: "enable-multi-threading" ":" "boolean"
#line 1205 "dhcp4_parser.yy"
{
ctx.unique("enable-multi-threading", ctx.loc2pos(yystack_[2].location));
ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("enable-multi-threading", b);
}
-#line 2290 "dhcp4_parser.cc"
+#line 2259 "dhcp4_parser.cc"
break;
- case 306:
+ case 306: // thread_pool_size: "thread-pool-size" ":" "integer"
#line 1211 "dhcp4_parser.yy"
{
ctx.unique("thread-pool-size", ctx.loc2pos(yystack_[2].location));
ElementPtr prf(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("thread-pool-size", prf);
}
-#line 2300 "dhcp4_parser.cc"
+#line 2269 "dhcp4_parser.cc"
break;
- case 307:
+ case 307: // packet_queue_size: "packet-queue-size" ":" "integer"
#line 1217 "dhcp4_parser.yy"
{
ctx.unique("packet-queue-size", ctx.loc2pos(yystack_[2].location));
ElementPtr prf(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("packet-queue-size", prf);
}
-#line 2310 "dhcp4_parser.cc"
+#line 2279 "dhcp4_parser.cc"
break;
- case 308:
+ case 308: // $@49: %empty
#line 1223 "dhcp4_parser.yy"
{
ctx.unique("hooks-libraries", ctx.loc2pos(yystack_[0].location));
@@ -2318,112 +2287,112 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(l);
ctx.enter(ctx.HOOKS_LIBRARIES);
}
-#line 2322 "dhcp4_parser.cc"
+#line 2291 "dhcp4_parser.cc"
break;
- case 309:
+ case 309: // hooks_libraries: "hooks-libraries" $@49 ":" "[" hooks_libraries_list "]"
#line 1229 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2331 "dhcp4_parser.cc"
+#line 2300 "dhcp4_parser.cc"
break;
- case 314:
+ case 314: // not_empty_hooks_libraries_list: not_empty_hooks_libraries_list ","
#line 1240 "dhcp4_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 2339 "dhcp4_parser.cc"
+#line 2308 "dhcp4_parser.cc"
break;
- case 315:
+ case 315: // $@50: %empty
#line 1245 "dhcp4_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 2349 "dhcp4_parser.cc"
+#line 2318 "dhcp4_parser.cc"
break;
- case 316:
+ case 316: // hooks_library: "{" $@50 hooks_params "}"
#line 1249 "dhcp4_parser.yy"
{
// The library hooks parameter is required
ctx.require("library", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location));
ctx.stack_.pop_back();
}
-#line 2359 "dhcp4_parser.cc"
+#line 2328 "dhcp4_parser.cc"
break;
- case 317:
+ case 317: // $@51: %empty
#line 1255 "dhcp4_parser.yy"
{
// Parse the hooks-libraries list entry map
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 2369 "dhcp4_parser.cc"
+#line 2338 "dhcp4_parser.cc"
break;
- case 318:
+ case 318: // sub_hooks_library: "{" $@51 hooks_params "}"
#line 1259 "dhcp4_parser.yy"
{
// The library hooks parameter is required
ctx.require("library", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location));
// parsing completed
}
-#line 2379 "dhcp4_parser.cc"
+#line 2348 "dhcp4_parser.cc"
break;
- case 321:
+ case 321: // hooks_params: hooks_params ","
#line 1267 "dhcp4_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 2387 "dhcp4_parser.cc"
+#line 2356 "dhcp4_parser.cc"
break;
- case 325:
+ case 325: // $@52: %empty
#line 1277 "dhcp4_parser.yy"
{
ctx.unique("library", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2396 "dhcp4_parser.cc"
+#line 2365 "dhcp4_parser.cc"
break;
- case 326:
+ case 326: // library: "library" $@52 ":" "constant string"
#line 1280 "dhcp4_parser.yy"
{
ElementPtr lib(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("library", lib);
ctx.leave();
}
-#line 2406 "dhcp4_parser.cc"
+#line 2375 "dhcp4_parser.cc"
break;
- case 327:
+ case 327: // $@53: %empty
#line 1286 "dhcp4_parser.yy"
{
ctx.unique("parameters", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2415 "dhcp4_parser.cc"
+#line 2384 "dhcp4_parser.cc"
break;
- case 328:
+ case 328: // parameters: "parameters" $@53 ":" map_value
#line 1289 "dhcp4_parser.yy"
{
ctx.stack_.back()->set("parameters", yystack_[0].value.as < ElementPtr > ());
ctx.leave();
}
-#line 2424 "dhcp4_parser.cc"
+#line 2393 "dhcp4_parser.cc"
break;
- case 329:
+ case 329: // $@54: %empty
#line 1295 "dhcp4_parser.yy"
{
ctx.unique("expired-leases-processing", ctx.loc2pos(yystack_[0].location));
@@ -2432,88 +2401,88 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(m);
ctx.enter(ctx.EXPIRED_LEASES_PROCESSING);
}
-#line 2436 "dhcp4_parser.cc"
+#line 2405 "dhcp4_parser.cc"
break;
- case 330:
+ case 330: // expired_leases_processing: "expired-leases-processing" $@54 ":" "{" expired_leases_params "}"
#line 1301 "dhcp4_parser.yy"
{
// No expired lease parameter is required
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2446 "dhcp4_parser.cc"
+#line 2415 "dhcp4_parser.cc"
break;
- case 333:
+ case 333: // expired_leases_params: expired_leases_params ","
#line 1309 "dhcp4_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 2454 "dhcp4_parser.cc"
+#line 2423 "dhcp4_parser.cc"
break;
- case 340:
+ case 340: // reclaim_timer_wait_time: "reclaim-timer-wait-time" ":" "integer"
#line 1322 "dhcp4_parser.yy"
{
ctx.unique("reclaim-timer-wait-time", ctx.loc2pos(yystack_[2].location));
ElementPtr value(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("reclaim-timer-wait-time", value);
}
-#line 2464 "dhcp4_parser.cc"
+#line 2433 "dhcp4_parser.cc"
break;
- case 341:
+ case 341: // flush_reclaimed_timer_wait_time: "flush-reclaimed-timer-wait-time" ":" "integer"
#line 1328 "dhcp4_parser.yy"
{
ctx.unique("flush-reclaimed-timer-wait-time", ctx.loc2pos(yystack_[2].location));
ElementPtr value(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("flush-reclaimed-timer-wait-time", value);
}
-#line 2474 "dhcp4_parser.cc"
+#line 2443 "dhcp4_parser.cc"
break;
- case 342:
+ case 342: // hold_reclaimed_time: "hold-reclaimed-time" ":" "integer"
#line 1334 "dhcp4_parser.yy"
{
ctx.unique("hold-reclaimed-time", ctx.loc2pos(yystack_[2].location));
ElementPtr value(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("hold-reclaimed-time", value);
}
-#line 2484 "dhcp4_parser.cc"
+#line 2453 "dhcp4_parser.cc"
break;
- case 343:
+ case 343: // max_reclaim_leases: "max-reclaim-leases" ":" "integer"
#line 1340 "dhcp4_parser.yy"
{
ctx.unique("max-reclaim-leases", ctx.loc2pos(yystack_[2].location));
ElementPtr value(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("max-reclaim-leases", value);
}
-#line 2494 "dhcp4_parser.cc"
+#line 2463 "dhcp4_parser.cc"
break;
- case 344:
+ case 344: // max_reclaim_time: "max-reclaim-time" ":" "integer"
#line 1346 "dhcp4_parser.yy"
{
ctx.unique("max-reclaim-time", ctx.loc2pos(yystack_[2].location));
ElementPtr value(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("max-reclaim-time", value);
}
-#line 2504 "dhcp4_parser.cc"
+#line 2473 "dhcp4_parser.cc"
break;
- case 345:
+ case 345: // unwarned_reclaim_cycles: "unwarned-reclaim-cycles" ":" "integer"
#line 1352 "dhcp4_parser.yy"
{
ctx.unique("unwarned-reclaim-cycles", ctx.loc2pos(yystack_[2].location));
ElementPtr value(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("unwarned-reclaim-cycles", value);
}
-#line 2514 "dhcp4_parser.cc"
+#line 2483 "dhcp4_parser.cc"
break;
- case 346:
+ case 346: // $@55: %empty
#line 1361 "dhcp4_parser.yy"
{
ctx.unique("subnet4", ctx.loc2pos(yystack_[0].location));
@@ -2522,37 +2491,37 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(l);
ctx.enter(ctx.SUBNET4);
}
-#line 2526 "dhcp4_parser.cc"
+#line 2495 "dhcp4_parser.cc"
break;
- case 347:
+ case 347: // subnet4_list: "subnet4" $@55 ":" "[" subnet4_list_content "]"
#line 1367 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2535 "dhcp4_parser.cc"
+#line 2504 "dhcp4_parser.cc"
break;
- case 352:
+ case 352: // not_empty_subnet4_list: not_empty_subnet4_list ","
#line 1381 "dhcp4_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 2543 "dhcp4_parser.cc"
+#line 2512 "dhcp4_parser.cc"
break;
- case 353:
+ case 353: // $@56: %empty
#line 1390 "dhcp4_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 2553 "dhcp4_parser.cc"
+#line 2522 "dhcp4_parser.cc"
break;
- case 354:
+ case 354: // subnet4: "{" $@56 subnet4_params "}"
#line 1394 "dhcp4_parser.yy"
{
// Once we reached this place, the subnet parsing is now complete.
@@ -2575,152 +2544,152 @@ namespace isc { namespace dhcp {
ctx.require("subnet", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location));
ctx.stack_.pop_back();
}
-#line 2579 "dhcp4_parser.cc"
+#line 2548 "dhcp4_parser.cc"
break;
- case 355:
+ case 355: // $@57: %empty
#line 1416 "dhcp4_parser.yy"
{
// Parse the subnet4 list entry map
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 2589 "dhcp4_parser.cc"
+#line 2558 "dhcp4_parser.cc"
break;
- case 356:
+ case 356: // sub_subnet4: "{" $@57 subnet4_params "}"
#line 1420 "dhcp4_parser.yy"
{
// The subnet subnet4 parameter is required
ctx.require("subnet", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location));
// parsing completed
}
-#line 2599 "dhcp4_parser.cc"
+#line 2568 "dhcp4_parser.cc"
break;
- case 359:
+ case 359: // subnet4_params: subnet4_params ","
#line 1429 "dhcp4_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 2607 "dhcp4_parser.cc"
+#line 2576 "dhcp4_parser.cc"
break;
- case 405:
+ case 405: // $@58: %empty
#line 1482 "dhcp4_parser.yy"
{
ctx.unique("subnet", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2616 "dhcp4_parser.cc"
+#line 2585 "dhcp4_parser.cc"
break;
- case 406:
+ case 406: // subnet: "subnet" $@58 ":" "constant string"
#line 1485 "dhcp4_parser.yy"
{
ElementPtr subnet(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("subnet", subnet);
ctx.leave();
}
-#line 2626 "dhcp4_parser.cc"
+#line 2595 "dhcp4_parser.cc"
break;
- case 407:
+ case 407: // $@59: %empty
#line 1491 "dhcp4_parser.yy"
{
ctx.unique("4o6-interface", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2635 "dhcp4_parser.cc"
+#line 2604 "dhcp4_parser.cc"
break;
- case 408:
+ case 408: // subnet_4o6_interface: "4o6-interface" $@59 ":" "constant string"
#line 1494 "dhcp4_parser.yy"
{
ElementPtr iface(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("4o6-interface", iface);
ctx.leave();
}
-#line 2645 "dhcp4_parser.cc"
+#line 2614 "dhcp4_parser.cc"
break;
- case 409:
+ case 409: // $@60: %empty
#line 1500 "dhcp4_parser.yy"
{
ctx.unique("4o6-interface-id", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2654 "dhcp4_parser.cc"
+#line 2623 "dhcp4_parser.cc"
break;
- case 410:
+ case 410: // subnet_4o6_interface_id: "4o6-interface-id" $@60 ":" "constant string"
#line 1503 "dhcp4_parser.yy"
{
ElementPtr iface(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("4o6-interface-id", iface);
ctx.leave();
}
-#line 2664 "dhcp4_parser.cc"
+#line 2633 "dhcp4_parser.cc"
break;
- case 411:
+ case 411: // $@61: %empty
#line 1509 "dhcp4_parser.yy"
{
ctx.unique("4o6-subnet", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2673 "dhcp4_parser.cc"
+#line 2642 "dhcp4_parser.cc"
break;
- case 412:
+ case 412: // subnet_4o6_subnet: "4o6-subnet" $@61 ":" "constant string"
#line 1512 "dhcp4_parser.yy"
{
ElementPtr iface(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("4o6-subnet", iface);
ctx.leave();
}
-#line 2683 "dhcp4_parser.cc"
+#line 2652 "dhcp4_parser.cc"
break;
- case 413:
+ case 413: // $@62: %empty
#line 1518 "dhcp4_parser.yy"
{
ctx.unique("interface", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2692 "dhcp4_parser.cc"
+#line 2661 "dhcp4_parser.cc"
break;
- case 414:
+ case 414: // interface: "interface" $@62 ":" "constant string"
#line 1521 "dhcp4_parser.yy"
{
ElementPtr iface(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("interface", iface);
ctx.leave();
}
-#line 2702 "dhcp4_parser.cc"
+#line 2671 "dhcp4_parser.cc"
break;
- case 415:
+ case 415: // $@63: %empty
#line 1527 "dhcp4_parser.yy"
{
ctx.unique("client-class", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2711 "dhcp4_parser.cc"
+#line 2680 "dhcp4_parser.cc"
break;
- case 416:
+ case 416: // client_class: "client-class" $@63 ":" "constant string"
#line 1530 "dhcp4_parser.yy"
{
ElementPtr cls(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("client-class", cls);
ctx.leave();
}
-#line 2721 "dhcp4_parser.cc"
+#line 2690 "dhcp4_parser.cc"
break;
- case 417:
+ case 417: // $@64: %empty
#line 1536 "dhcp4_parser.yy"
{
ctx.unique("require-client-classes", ctx.loc2pos(yystack_[0].location));
@@ -2729,101 +2698,101 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(c);
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2733 "dhcp4_parser.cc"
+#line 2702 "dhcp4_parser.cc"
break;
- case 418:
+ case 418: // require_client_classes: "require-client-classes" $@64 ":" list_strings
#line 1542 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2742 "dhcp4_parser.cc"
+#line 2711 "dhcp4_parser.cc"
break;
- case 419:
+ case 419: // reservations_global: "reservations-global" ":" "boolean"
#line 1547 "dhcp4_parser.yy"
{
ctx.unique("reservations-global", ctx.loc2pos(yystack_[2].location));
ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("reservations-global", b);
}
-#line 2752 "dhcp4_parser.cc"
+#line 2721 "dhcp4_parser.cc"
break;
- case 420:
+ case 420: // reservations_in_subnet: "reservations-in-subnet" ":" "boolean"
#line 1553 "dhcp4_parser.yy"
{
ctx.unique("reservations-in-subnet", ctx.loc2pos(yystack_[2].location));
ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("reservations-in-subnet", b);
}
-#line 2762 "dhcp4_parser.cc"
+#line 2731 "dhcp4_parser.cc"
break;
- case 421:
+ case 421: // reservations_out_of_pool: "reservations-out-of-pool" ":" "boolean"
#line 1559 "dhcp4_parser.yy"
{
ctx.unique("reservations-out-of-pool", ctx.loc2pos(yystack_[2].location));
ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("reservations-out-of-pool", b);
}
-#line 2772 "dhcp4_parser.cc"
+#line 2741 "dhcp4_parser.cc"
break;
- case 422:
+ case 422: // $@65: %empty
#line 1565 "dhcp4_parser.yy"
{
ctx.unique("reservation-mode", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.RESERVATION_MODE);
}
-#line 2781 "dhcp4_parser.cc"
+#line 2750 "dhcp4_parser.cc"
break;
- case 423:
+ case 423: // reservation_mode: "reservation-mode" $@65 ":" hr_mode
#line 1568 "dhcp4_parser.yy"
{
ctx.stack_.back()->set("reservation-mode", yystack_[0].value.as < ElementPtr > ());
ctx.leave();
}
-#line 2790 "dhcp4_parser.cc"
+#line 2759 "dhcp4_parser.cc"
break;
- case 424:
+ case 424: // hr_mode: "disabled"
#line 1573 "dhcp4_parser.yy"
{ yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("disabled", ctx.loc2pos(yystack_[0].location))); }
-#line 2796 "dhcp4_parser.cc"
+#line 2765 "dhcp4_parser.cc"
break;
- case 425:
+ case 425: // hr_mode: "out-of-pool"
#line 1574 "dhcp4_parser.yy"
{ yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("out-of-pool", ctx.loc2pos(yystack_[0].location))); }
-#line 2802 "dhcp4_parser.cc"
+#line 2771 "dhcp4_parser.cc"
break;
- case 426:
+ case 426: // hr_mode: "global"
#line 1575 "dhcp4_parser.yy"
{ yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("global", ctx.loc2pos(yystack_[0].location))); }
-#line 2808 "dhcp4_parser.cc"
+#line 2777 "dhcp4_parser.cc"
break;
- case 427:
+ case 427: // hr_mode: "all"
#line 1576 "dhcp4_parser.yy"
{ yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("all", ctx.loc2pos(yystack_[0].location))); }
-#line 2814 "dhcp4_parser.cc"
+#line 2783 "dhcp4_parser.cc"
break;
- case 428:
+ case 428: // id: "id" ":" "integer"
#line 1579 "dhcp4_parser.yy"
{
ctx.unique("id", ctx.loc2pos(yystack_[2].location));
ElementPtr id(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("id", id);
}
-#line 2824 "dhcp4_parser.cc"
+#line 2793 "dhcp4_parser.cc"
break;
- case 429:
+ case 429: // $@66: %empty
#line 1587 "dhcp4_parser.yy"
{
ctx.unique("shared-networks", ctx.loc2pos(yystack_[0].location));
@@ -2832,53 +2801,53 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(l);
ctx.enter(ctx.SHARED_NETWORK);
}
-#line 2836 "dhcp4_parser.cc"
+#line 2805 "dhcp4_parser.cc"
break;
- case 430:
+ case 430: // shared_networks: "shared-networks" $@66 ":" "[" shared_networks_content "]"
#line 1593 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2845 "dhcp4_parser.cc"
+#line 2814 "dhcp4_parser.cc"
break;
- case 435:
+ case 435: // shared_networks_list: shared_networks_list ","
#line 1606 "dhcp4_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 2853 "dhcp4_parser.cc"
+#line 2822 "dhcp4_parser.cc"
break;
- case 436:
+ case 436: // $@67: %empty
#line 1611 "dhcp4_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 2863 "dhcp4_parser.cc"
+#line 2832 "dhcp4_parser.cc"
break;
- case 437:
+ case 437: // shared_network: "{" $@67 shared_network_params "}"
#line 1615 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
}
-#line 2871 "dhcp4_parser.cc"
+#line 2840 "dhcp4_parser.cc"
break;
- case 440:
+ case 440: // shared_network_params: shared_network_params ","
#line 1621 "dhcp4_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 2879 "dhcp4_parser.cc"
+#line 2848 "dhcp4_parser.cc"
break;
- case 481:
+ case 481: // $@68: %empty
#line 1672 "dhcp4_parser.yy"
{
ctx.unique("option-def", ctx.loc2pos(yystack_[0].location));
@@ -2887,54 +2856,54 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(l);
ctx.enter(ctx.OPTION_DEF);
}
-#line 2891 "dhcp4_parser.cc"
+#line 2860 "dhcp4_parser.cc"
break;
- case 482:
+ case 482: // option_def_list: "option-def" $@68 ":" "[" option_def_list_content "]"
#line 1678 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2900 "dhcp4_parser.cc"
+#line 2869 "dhcp4_parser.cc"
break;
- case 483:
+ case 483: // $@69: %empty
#line 1686 "dhcp4_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 2909 "dhcp4_parser.cc"
+#line 2878 "dhcp4_parser.cc"
break;
- case 484:
+ case 484: // sub_option_def_list: "{" $@69 option_def_list "}"
#line 1689 "dhcp4_parser.yy"
{
// parsing completed
}
-#line 2917 "dhcp4_parser.cc"
+#line 2886 "dhcp4_parser.cc"
break;
- case 489:
+ case 489: // not_empty_option_def_list: not_empty_option_def_list ","
#line 1701 "dhcp4_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 2925 "dhcp4_parser.cc"
+#line 2894 "dhcp4_parser.cc"
break;
- case 490:
+ case 490: // $@70: %empty
#line 1708 "dhcp4_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 2935 "dhcp4_parser.cc"
+#line 2904 "dhcp4_parser.cc"
break;
- case 491:
+ case 491: // option_def_entry: "{" $@70 option_def_params "}"
#line 1712 "dhcp4_parser.yy"
{
// The name, code and type option def parameters are required.
@@ -2943,20 +2912,20 @@ namespace isc { namespace dhcp {
ctx.require("type", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location));
ctx.stack_.pop_back();
}
-#line 2947 "dhcp4_parser.cc"
+#line 2916 "dhcp4_parser.cc"
break;
- case 492:
+ case 492: // $@71: %empty
#line 1723 "dhcp4_parser.yy"
{
// Parse the option-def list entry map
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 2957 "dhcp4_parser.cc"
+#line 2926 "dhcp4_parser.cc"
break;
- case 493:
+ case 493: // sub_option_def: "{" $@71 option_def_params "}"
#line 1727 "dhcp4_parser.yy"
{
// The name, code and type option def parameters are required.
@@ -2965,114 +2934,114 @@ namespace isc { namespace dhcp {
ctx.require("type", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location));
// parsing completed
}
-#line 2969 "dhcp4_parser.cc"
+#line 2938 "dhcp4_parser.cc"
break;
- case 498:
+ case 498: // not_empty_option_def_params: not_empty_option_def_params ","
#line 1743 "dhcp4_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 2977 "dhcp4_parser.cc"
+#line 2946 "dhcp4_parser.cc"
break;
- case 510:
+ case 510: // code: "code" ":" "integer"
#line 1762 "dhcp4_parser.yy"
{
ctx.unique("code", ctx.loc2pos(yystack_[2].location));
ElementPtr code(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("code", code);
}
-#line 2987 "dhcp4_parser.cc"
+#line 2956 "dhcp4_parser.cc"
break;
- case 512:
+ case 512: // $@72: %empty
#line 1770 "dhcp4_parser.yy"
{
ctx.unique("type", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2996 "dhcp4_parser.cc"
+#line 2965 "dhcp4_parser.cc"
break;
- case 513:
+ case 513: // option_def_type: "type" $@72 ":" "constant string"
#line 1773 "dhcp4_parser.yy"
{
ElementPtr prf(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("type", prf);
ctx.leave();
}
-#line 3006 "dhcp4_parser.cc"
+#line 2975 "dhcp4_parser.cc"
break;
- case 514:
+ case 514: // $@73: %empty
#line 1779 "dhcp4_parser.yy"
{
ctx.unique("record-types", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3015 "dhcp4_parser.cc"
+#line 2984 "dhcp4_parser.cc"
break;
- case 515:
+ case 515: // option_def_record_types: "record-types" $@73 ":" "constant string"
#line 1782 "dhcp4_parser.yy"
{
ElementPtr rtypes(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("record-types", rtypes);
ctx.leave();
}
-#line 3025 "dhcp4_parser.cc"
+#line 2994 "dhcp4_parser.cc"
break;
- case 516:
+ case 516: // $@74: %empty
#line 1788 "dhcp4_parser.yy"
{
ctx.unique("space", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3034 "dhcp4_parser.cc"
+#line 3003 "dhcp4_parser.cc"
break;
- case 517:
+ case 517: // space: "space" $@74 ":" "constant string"
#line 1791 "dhcp4_parser.yy"
{
ElementPtr space(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("space", space);
ctx.leave();
}
-#line 3044 "dhcp4_parser.cc"
+#line 3013 "dhcp4_parser.cc"
break;
- case 519:
+ case 519: // $@75: %empty
#line 1799 "dhcp4_parser.yy"
{
ctx.unique("encapsulate", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3053 "dhcp4_parser.cc"
+#line 3022 "dhcp4_parser.cc"
break;
- case 520:
+ case 520: // option_def_encapsulate: "encapsulate" $@75 ":" "constant string"
#line 1802 "dhcp4_parser.yy"
{
ElementPtr encap(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("encapsulate", encap);
ctx.leave();
}
-#line 3063 "dhcp4_parser.cc"
+#line 3032 "dhcp4_parser.cc"
break;
- case 521:
+ case 521: // option_def_array: "array" ":" "boolean"
#line 1808 "dhcp4_parser.yy"
{
ctx.unique("array", ctx.loc2pos(yystack_[2].location));
ElementPtr array(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("array", array);
}
-#line 3073 "dhcp4_parser.cc"
+#line 3042 "dhcp4_parser.cc"
break;
- case 522:
+ case 522: // $@76: %empty
#line 1818 "dhcp4_parser.yy"
{
ctx.unique("option-data", ctx.loc2pos(yystack_[0].location));
@@ -3081,112 +3050,112 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(l);
ctx.enter(ctx.OPTION_DATA);
}
-#line 3085 "dhcp4_parser.cc"
+#line 3054 "dhcp4_parser.cc"
break;
- case 523:
+ case 523: // option_data_list: "option-data" $@76 ":" "[" option_data_list_content "]"
#line 1824 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 3094 "dhcp4_parser.cc"
+#line 3063 "dhcp4_parser.cc"
break;
- case 528:
+ case 528: // not_empty_option_data_list: not_empty_option_data_list ","
#line 1839 "dhcp4_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 3102 "dhcp4_parser.cc"
+#line 3071 "dhcp4_parser.cc"
break;
- case 529:
+ case 529: // $@77: %empty
#line 1846 "dhcp4_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 3112 "dhcp4_parser.cc"
+#line 3081 "dhcp4_parser.cc"
break;
- case 530:
+ case 530: // option_data_entry: "{" $@77 option_data_params "}"
#line 1850 "dhcp4_parser.yy"
{
/// @todo: the code or name parameters are required.
ctx.stack_.pop_back();
}
-#line 3121 "dhcp4_parser.cc"
+#line 3090 "dhcp4_parser.cc"
break;
- case 531:
+ case 531: // $@78: %empty
#line 1858 "dhcp4_parser.yy"
{
// Parse the option-data list entry map
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 3131 "dhcp4_parser.cc"
+#line 3100 "dhcp4_parser.cc"
break;
- case 532:
+ case 532: // sub_option_data: "{" $@78 option_data_params "}"
#line 1862 "dhcp4_parser.yy"
{
/// @todo: the code or name parameters are required.
// parsing completed
}
-#line 3140 "dhcp4_parser.cc"
+#line 3109 "dhcp4_parser.cc"
break;
- case 537:
+ case 537: // not_empty_option_data_params: not_empty_option_data_params ","
#line 1878 "dhcp4_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 3148 "dhcp4_parser.cc"
+#line 3117 "dhcp4_parser.cc"
break;
- case 548:
+ case 548: // $@79: %empty
#line 1898 "dhcp4_parser.yy"
{
ctx.unique("data", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3157 "dhcp4_parser.cc"
+#line 3126 "dhcp4_parser.cc"
break;
- case 549:
+ case 549: // option_data_data: "data" $@79 ":" "constant string"
#line 1901 "dhcp4_parser.yy"
{
ElementPtr data(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("data", data);
ctx.leave();
}
-#line 3167 "dhcp4_parser.cc"
+#line 3136 "dhcp4_parser.cc"
break;
- case 552:
+ case 552: // option_data_csv_format: "csv-format" ":" "boolean"
#line 1911 "dhcp4_parser.yy"
{
ctx.unique("csv-format", ctx.loc2pos(yystack_[2].location));
ElementPtr space(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("csv-format", space);
}
-#line 3177 "dhcp4_parser.cc"
+#line 3146 "dhcp4_parser.cc"
break;
- case 553:
+ case 553: // option_data_always_send: "always-send" ":" "boolean"
#line 1917 "dhcp4_parser.yy"
{
ctx.unique("always-send", ctx.loc2pos(yystack_[2].location));
ElementPtr persist(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("always-send", persist);
}
-#line 3187 "dhcp4_parser.cc"
+#line 3156 "dhcp4_parser.cc"
break;
- case 554:
+ case 554: // $@80: %empty
#line 1926 "dhcp4_parser.yy"
{
ctx.unique("pools", ctx.loc2pos(yystack_[0].location));
@@ -3195,102 +3164,102 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(l);
ctx.enter(ctx.POOLS);
}
-#line 3199 "dhcp4_parser.cc"
+#line 3168 "dhcp4_parser.cc"
break;
- case 555:
+ case 555: // pools_list: "pools" $@80 ":" "[" pools_list_content "]"
#line 1932 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 3208 "dhcp4_parser.cc"
+#line 3177 "dhcp4_parser.cc"
break;
- case 560:
+ case 560: // not_empty_pools_list: not_empty_pools_list ","
#line 1945 "dhcp4_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 3216 "dhcp4_parser.cc"
+#line 3185 "dhcp4_parser.cc"
break;
- case 561:
+ case 561: // $@81: %empty
#line 1950 "dhcp4_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 3226 "dhcp4_parser.cc"
+#line 3195 "dhcp4_parser.cc"
break;
- case 562:
+ case 562: // pool_list_entry: "{" $@81 pool_params "}"
#line 1954 "dhcp4_parser.yy"
{
// The pool parameter is required.
ctx.require("pool", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location));
ctx.stack_.pop_back();
}
-#line 3236 "dhcp4_parser.cc"
+#line 3205 "dhcp4_parser.cc"
break;
- case 563:
+ case 563: // $@82: %empty
#line 1960 "dhcp4_parser.yy"
{
// Parse the pool list entry map
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 3246 "dhcp4_parser.cc"
+#line 3215 "dhcp4_parser.cc"
break;
- case 564:
+ case 564: // sub_pool4: "{" $@82 pool_params "}"
#line 1964 "dhcp4_parser.yy"
{
// The pool parameter is required.
ctx.require("pool", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location));
// parsing completed
}
-#line 3256 "dhcp4_parser.cc"
+#line 3225 "dhcp4_parser.cc"
break;
- case 567:
+ case 567: // pool_params: pool_params ","
#line 1972 "dhcp4_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 3264 "dhcp4_parser.cc"
+#line 3233 "dhcp4_parser.cc"
break;
- case 575:
+ case 575: // $@83: %empty
#line 1986 "dhcp4_parser.yy"
{
ctx.unique("pool", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3273 "dhcp4_parser.cc"
+#line 3242 "dhcp4_parser.cc"
break;
- case 576:
+ case 576: // pool_entry: "pool" $@83 ":" "constant string"
#line 1989 "dhcp4_parser.yy"
{
ElementPtr pool(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("pool", pool);
ctx.leave();
}
-#line 3283 "dhcp4_parser.cc"
+#line 3252 "dhcp4_parser.cc"
break;
- case 577:
+ case 577: // $@84: %empty
#line 1995 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3291 "dhcp4_parser.cc"
+#line 3260 "dhcp4_parser.cc"
break;
- case 578:
+ case 578: // user_context: "user-context" $@84 ":" map_value
#line 1997 "dhcp4_parser.yy"
{
ElementPtr parent = ctx.stack_.back();
@@ -3314,18 +3283,18 @@ namespace isc { namespace dhcp {
parent->set("user-context", user_context);
ctx.leave();
}
-#line 3318 "dhcp4_parser.cc"
+#line 3287 "dhcp4_parser.cc"
break;
- case 579:
+ case 579: // $@85: %empty
#line 2020 "dhcp4_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3326 "dhcp4_parser.cc"
+#line 3295 "dhcp4_parser.cc"
break;
- case 580:
+ case 580: // comment: "comment" $@85 ":" "constant string"
#line 2022 "dhcp4_parser.yy"
{
ElementPtr parent = ctx.stack_.back();
@@ -3351,10 +3320,10 @@ namespace isc { namespace dhcp {
parent->set("user-context", user_context);
ctx.leave();
}
-#line 3355 "dhcp4_parser.cc"
+#line 3324 "dhcp4_parser.cc"
break;
- case 581:
+ case 581: // $@86: %empty
#line 2050 "dhcp4_parser.yy"
{
ctx.unique("reservations", ctx.loc2pos(yystack_[0].location));
@@ -3363,149 +3332,149 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(l);
ctx.enter(ctx.RESERVATIONS);
}
-#line 3367 "dhcp4_parser.cc"
+#line 3336 "dhcp4_parser.cc"
break;
- case 582:
+ case 582: // reservations: "reservations" $@86 ":" "[" reservations_list "]"
#line 2056 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 3376 "dhcp4_parser.cc"
+#line 3345 "dhcp4_parser.cc"
break;
- case 587:
+ case 587: // not_empty_reservations_list: not_empty_reservations_list ","
#line 2067 "dhcp4_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 3384 "dhcp4_parser.cc"
+#line 3353 "dhcp4_parser.cc"
break;
- case 588:
+ case 588: // $@87: %empty
#line 2072 "dhcp4_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 3394 "dhcp4_parser.cc"
+#line 3363 "dhcp4_parser.cc"
break;
- case 589:
+ case 589: // reservation: "{" $@87 reservation_params "}"
#line 2076 "dhcp4_parser.yy"
{
/// @todo: an identifier parameter is required.
ctx.stack_.pop_back();
}
-#line 3403 "dhcp4_parser.cc"
+#line 3372 "dhcp4_parser.cc"
break;
- case 590:
+ case 590: // $@88: %empty
#line 2081 "dhcp4_parser.yy"
{
// Parse the reservations list entry map
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 3413 "dhcp4_parser.cc"
+#line 3382 "dhcp4_parser.cc"
break;
- case 591:
+ case 591: // sub_reservation: "{" $@88 reservation_params "}"
#line 2085 "dhcp4_parser.yy"
{
/// @todo: an identifier parameter is required.
// parsing completed
}
-#line 3422 "dhcp4_parser.cc"
+#line 3391 "dhcp4_parser.cc"
break;
- case 596:
+ case 596: // not_empty_reservation_params: not_empty_reservation_params ","
#line 2096 "dhcp4_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 3430 "dhcp4_parser.cc"
+#line 3399 "dhcp4_parser.cc"
break;
- case 612:
+ case 612: // $@89: %empty
#line 2119 "dhcp4_parser.yy"
{
ctx.unique("next-server", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3439 "dhcp4_parser.cc"
+#line 3408 "dhcp4_parser.cc"
break;
- case 613:
+ case 613: // next_server: "next-server" $@89 ":" "constant string"
#line 2122 "dhcp4_parser.yy"
{
ElementPtr next_server(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("next-server", next_server);
ctx.leave();
}
-#line 3449 "dhcp4_parser.cc"
+#line 3418 "dhcp4_parser.cc"
break;
- case 614:
+ case 614: // $@90: %empty
#line 2128 "dhcp4_parser.yy"
{
ctx.unique("server-hostname", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3458 "dhcp4_parser.cc"
+#line 3427 "dhcp4_parser.cc"
break;
- case 615:
+ case 615: // server_hostname: "server-hostname" $@90 ":" "constant string"
#line 2131 "dhcp4_parser.yy"
{
ElementPtr srv(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("server-hostname", srv);
ctx.leave();
}
-#line 3468 "dhcp4_parser.cc"
+#line 3437 "dhcp4_parser.cc"
break;
- case 616:
+ case 616: // $@91: %empty
#line 2137 "dhcp4_parser.yy"
{
ctx.unique("boot-file-name", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3477 "dhcp4_parser.cc"
+#line 3446 "dhcp4_parser.cc"
break;
- case 617:
+ case 617: // boot_file_name: "boot-file-name" $@91 ":" "constant string"
#line 2140 "dhcp4_parser.yy"
{
ElementPtr bootfile(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("boot-file-name", bootfile);
ctx.leave();
}
-#line 3487 "dhcp4_parser.cc"
+#line 3456 "dhcp4_parser.cc"
break;
- case 618:
+ case 618: // $@92: %empty
#line 2146 "dhcp4_parser.yy"
{
ctx.unique("ip-address", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3496 "dhcp4_parser.cc"
+#line 3465 "dhcp4_parser.cc"
break;
- case 619:
+ case 619: // ip_address: "ip-address" $@92 ":" "constant string"
#line 2149 "dhcp4_parser.yy"
{
ElementPtr addr(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("ip-address", addr);
ctx.leave();
}
-#line 3506 "dhcp4_parser.cc"
+#line 3475 "dhcp4_parser.cc"
break;
- case 620:
+ case 620: // $@93: %empty
#line 2155 "dhcp4_parser.yy"
{
ctx.unique("ip-addresses", ctx.loc2pos(yystack_[0].location));
@@ -3514,133 +3483,133 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(l);
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3518 "dhcp4_parser.cc"
+#line 3487 "dhcp4_parser.cc"
break;
- case 621:
+ case 621: // ip_addresses: "ip-addresses" $@93 ":" list_strings
#line 2161 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 3527 "dhcp4_parser.cc"
+#line 3496 "dhcp4_parser.cc"
break;
- case 622:
+ case 622: // $@94: %empty
#line 2166 "dhcp4_parser.yy"
{
ctx.unique("duid", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3536 "dhcp4_parser.cc"
+#line 3505 "dhcp4_parser.cc"
break;
- case 623:
+ case 623: // duid: "duid" $@94 ":" "constant string"
#line 2169 "dhcp4_parser.yy"
{
ElementPtr d(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("duid", d);
ctx.leave();
}
-#line 3546 "dhcp4_parser.cc"
+#line 3515 "dhcp4_parser.cc"
break;
- case 624:
+ case 624: // $@95: %empty
#line 2175 "dhcp4_parser.yy"
{
ctx.unique("hw-address", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3555 "dhcp4_parser.cc"
+#line 3524 "dhcp4_parser.cc"
break;
- case 625:
+ case 625: // hw_address: "hw-address" $@95 ":" "constant string"
#line 2178 "dhcp4_parser.yy"
{
ElementPtr hw(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("hw-address", hw);
ctx.leave();
}
-#line 3565 "dhcp4_parser.cc"
+#line 3534 "dhcp4_parser.cc"
break;
- case 626:
+ case 626: // $@96: %empty
#line 2184 "dhcp4_parser.yy"
{
ctx.unique("client-id", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3574 "dhcp4_parser.cc"
+#line 3543 "dhcp4_parser.cc"
break;
- case 627:
+ case 627: // client_id_value: "client-id" $@96 ":" "constant string"
#line 2187 "dhcp4_parser.yy"
{
ElementPtr hw(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("client-id", hw);
ctx.leave();
}
-#line 3584 "dhcp4_parser.cc"
+#line 3553 "dhcp4_parser.cc"
break;
- case 628:
+ case 628: // $@97: %empty
#line 2193 "dhcp4_parser.yy"
{
ctx.unique("circuit-id", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3593 "dhcp4_parser.cc"
+#line 3562 "dhcp4_parser.cc"
break;
- case 629:
+ case 629: // circuit_id_value: "circuit-id" $@97 ":" "constant string"
#line 2196 "dhcp4_parser.yy"
{
ElementPtr hw(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("circuit-id", hw);
ctx.leave();
}
-#line 3603 "dhcp4_parser.cc"
+#line 3572 "dhcp4_parser.cc"
break;
- case 630:
+ case 630: // $@98: %empty
#line 2202 "dhcp4_parser.yy"
{
ctx.unique("flex-id", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3612 "dhcp4_parser.cc"
+#line 3581 "dhcp4_parser.cc"
break;
- case 631:
+ case 631: // flex_id_value: "flex-id" $@98 ":" "constant string"
#line 2205 "dhcp4_parser.yy"
{
ElementPtr hw(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("flex-id", hw);
ctx.leave();
}
-#line 3622 "dhcp4_parser.cc"
+#line 3591 "dhcp4_parser.cc"
break;
- case 632:
+ case 632: // $@99: %empty
#line 2211 "dhcp4_parser.yy"
{
ctx.unique("hostname", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3631 "dhcp4_parser.cc"
+#line 3600 "dhcp4_parser.cc"
break;
- case 633:
+ case 633: // hostname: "hostname" $@99 ":" "constant string"
#line 2214 "dhcp4_parser.yy"
{
ElementPtr host(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("hostname", host);
ctx.leave();
}
-#line 3641 "dhcp4_parser.cc"
+#line 3610 "dhcp4_parser.cc"
break;
- case 634:
+ case 634: // $@100: %empty
#line 2220 "dhcp4_parser.yy"
{
ctx.unique("client-classes", ctx.loc2pos(yystack_[0].location));
@@ -3649,19 +3618,19 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(c);
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3653 "dhcp4_parser.cc"
+#line 3622 "dhcp4_parser.cc"
break;
- case 635:
+ case 635: // reservation_client_classes: "client-classes" $@100 ":" list_strings
#line 2226 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 3662 "dhcp4_parser.cc"
+#line 3631 "dhcp4_parser.cc"
break;
- case 636:
+ case 636: // $@101: %empty
#line 2234 "dhcp4_parser.yy"
{
ctx.unique("relay", ctx.loc2pos(yystack_[0].location));
@@ -3670,19 +3639,19 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(m);
ctx.enter(ctx.RELAY);
}
-#line 3674 "dhcp4_parser.cc"
+#line 3643 "dhcp4_parser.cc"
break;
- case 637:
+ case 637: // relay: "relay" $@101 ":" "{" relay_map "}"
#line 2240 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 3683 "dhcp4_parser.cc"
+#line 3652 "dhcp4_parser.cc"
break;
- case 640:
+ case 640: // $@102: %empty
#line 2252 "dhcp4_parser.yy"
{
ctx.unique("client-classes", ctx.loc2pos(yystack_[0].location));
@@ -3691,94 +3660,94 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(l);
ctx.enter(ctx.CLIENT_CLASSES);
}
-#line 3695 "dhcp4_parser.cc"
+#line 3664 "dhcp4_parser.cc"
break;
- case 641:
+ case 641: // client_classes: "client-classes" $@102 ":" "[" client_classes_list "]"
#line 2258 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 3704 "dhcp4_parser.cc"
+#line 3673 "dhcp4_parser.cc"
break;
- case 644:
+ case 644: // client_classes_list: client_classes_list ","
#line 2265 "dhcp4_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 3712 "dhcp4_parser.cc"
+#line 3681 "dhcp4_parser.cc"
break;
- case 645:
+ case 645: // $@103: %empty
#line 2270 "dhcp4_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 3722 "dhcp4_parser.cc"
+#line 3691 "dhcp4_parser.cc"
break;
- case 646:
+ case 646: // client_class_entry: "{" $@103 client_class_params "}"
#line 2274 "dhcp4_parser.yy"
{
// The name client class parameter is required.
ctx.require("name", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location));
ctx.stack_.pop_back();
}
-#line 3732 "dhcp4_parser.cc"
+#line 3701 "dhcp4_parser.cc"
break;
- case 651:
+ case 651: // not_empty_client_class_params: not_empty_client_class_params ","
#line 2286 "dhcp4_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 3740 "dhcp4_parser.cc"
+#line 3709 "dhcp4_parser.cc"
break;
- case 667:
+ case 667: // $@104: %empty
#line 2309 "dhcp4_parser.yy"
{
ctx.unique("test", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3749 "dhcp4_parser.cc"
+#line 3718 "dhcp4_parser.cc"
break;
- case 668:
+ case 668: // client_class_test: "test" $@104 ":" "constant string"
#line 2312 "dhcp4_parser.yy"
{
ElementPtr test(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("test", test);
ctx.leave();
}
-#line 3759 "dhcp4_parser.cc"
+#line 3728 "dhcp4_parser.cc"
break;
- case 669:
+ case 669: // only_if_required: "only-if-required" ":" "boolean"
#line 2318 "dhcp4_parser.yy"
{
ctx.unique("only-if-required", ctx.loc2pos(yystack_[2].location));
ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("only-if-required", b);
}
-#line 3769 "dhcp4_parser.cc"
+#line 3738 "dhcp4_parser.cc"
break;
- case 670:
+ case 670: // dhcp4o6_port: "dhcp4o6-port" ":" "integer"
#line 2326 "dhcp4_parser.yy"
{
ctx.unique("dhcp4o6-port", ctx.loc2pos(yystack_[2].location));
ElementPtr time(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("dhcp4o6-port", time);
}
-#line 3779 "dhcp4_parser.cc"
+#line 3748 "dhcp4_parser.cc"
break;
- case 671:
+ case 671: // $@105: %empty
#line 2334 "dhcp4_parser.yy"
{
ctx.unique("control-socket", ctx.loc2pos(yystack_[0].location));
@@ -3787,65 +3756,65 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(m);
ctx.enter(ctx.CONTROL_SOCKET);
}
-#line 3791 "dhcp4_parser.cc"
+#line 3760 "dhcp4_parser.cc"
break;
- case 672:
+ case 672: // control_socket: "control-socket" $@105 ":" "{" control_socket_params "}"
#line 2340 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 3800 "dhcp4_parser.cc"
+#line 3769 "dhcp4_parser.cc"
break;
- case 675:
+ case 675: // control_socket_params: control_socket_params ","
#line 2347 "dhcp4_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 3808 "dhcp4_parser.cc"
+#line 3777 "dhcp4_parser.cc"
break;
- case 681:
+ case 681: // $@106: %empty
#line 2359 "dhcp4_parser.yy"
{
ctx.unique("socket-type", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3817 "dhcp4_parser.cc"
+#line 3786 "dhcp4_parser.cc"
break;
- case 682:
+ case 682: // control_socket_type: "socket-type" $@106 ":" "constant string"
#line 2362 "dhcp4_parser.yy"
{
ElementPtr stype(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("socket-type", stype);
ctx.leave();
}
-#line 3827 "dhcp4_parser.cc"
+#line 3796 "dhcp4_parser.cc"
break;
- case 683:
+ case 683: // $@107: %empty
#line 2368 "dhcp4_parser.yy"
{
ctx.unique("socket-name", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3836 "dhcp4_parser.cc"
+#line 3805 "dhcp4_parser.cc"
break;
- case 684:
+ case 684: // control_socket_name: "socket-name" $@107 ":" "constant string"
#line 2371 "dhcp4_parser.yy"
{
ElementPtr name(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("socket-name", name);
ctx.leave();
}
-#line 3846 "dhcp4_parser.cc"
+#line 3815 "dhcp4_parser.cc"
break;
- case 685:
+ case 685: // $@108: %empty
#line 2380 "dhcp4_parser.yy"
{
ctx.unique("dhcp-queue-control", ctx.loc2pos(yystack_[0].location));
@@ -3854,10 +3823,10 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(qc);
ctx.enter(ctx.DHCP_QUEUE_CONTROL);
}
-#line 3858 "dhcp4_parser.cc"
+#line 3827 "dhcp4_parser.cc"
break;
- case 686:
+ case 686: // dhcp_queue_control: "dhcp-queue-control" $@108 ":" "{" queue_control_params "}"
#line 2386 "dhcp4_parser.yy"
{
// The enable queue parameter is required.
@@ -3865,75 +3834,75 @@ namespace isc { namespace dhcp {
ctx.stack_.pop_back();
ctx.leave();
}
-#line 3869 "dhcp4_parser.cc"
+#line 3838 "dhcp4_parser.cc"
break;
- case 689:
+ case 689: // queue_control_params: queue_control_params ","
#line 2395 "dhcp4_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 3877 "dhcp4_parser.cc"
+#line 3846 "dhcp4_parser.cc"
break;
- case 696:
+ case 696: // enable_queue: "enable-queue" ":" "boolean"
#line 2408 "dhcp4_parser.yy"
{
ctx.unique("enable-queue", ctx.loc2pos(yystack_[2].location));
ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("enable-queue", b);
}
-#line 3887 "dhcp4_parser.cc"
+#line 3856 "dhcp4_parser.cc"
break;
- case 697:
+ case 697: // $@109: %empty
#line 2414 "dhcp4_parser.yy"
{
ctx.unique("queue-type", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3896 "dhcp4_parser.cc"
+#line 3865 "dhcp4_parser.cc"
break;
- case 698:
+ case 698: // queue_type: "queue-type" $@109 ":" "constant string"
#line 2417 "dhcp4_parser.yy"
{
ElementPtr qt(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("queue-type", qt);
ctx.leave();
}
-#line 3906 "dhcp4_parser.cc"
+#line 3875 "dhcp4_parser.cc"
break;
- case 699:
+ case 699: // capacity: "capacity" ":" "integer"
#line 2423 "dhcp4_parser.yy"
{
ctx.unique("capacity", ctx.loc2pos(yystack_[2].location));
ElementPtr c(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("capacity", c);
}
-#line 3916 "dhcp4_parser.cc"
+#line 3885 "dhcp4_parser.cc"
break;
- case 700:
+ case 700: // $@110: %empty
#line 2429 "dhcp4_parser.yy"
{
ctx.unique(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3925 "dhcp4_parser.cc"
+#line 3894 "dhcp4_parser.cc"
break;
- case 701:
+ case 701: // arbitrary_map_entry: "constant string" $@110 ":" value
#line 2432 "dhcp4_parser.yy"
{
ctx.stack_.back()->set(yystack_[3].value.as < std::string > (), yystack_[0].value.as < ElementPtr > ());
ctx.leave();
}
-#line 3934 "dhcp4_parser.cc"
+#line 3903 "dhcp4_parser.cc"
break;
- case 702:
+ case 702: // $@111: %empty
#line 2439 "dhcp4_parser.yy"
{
ctx.unique("dhcp-ddns", ctx.loc2pos(yystack_[0].location));
@@ -3942,10 +3911,10 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(m);
ctx.enter(ctx.DHCP_DDNS);
}
-#line 3946 "dhcp4_parser.cc"
+#line 3915 "dhcp4_parser.cc"
break;
- case 703:
+ case 703: // dhcp_ddns: "dhcp-ddns" $@111 ":" "{" dhcp_ddns_params "}"
#line 2445 "dhcp4_parser.yy"
{
// The enable updates DHCP DDNS parameter is required.
@@ -3953,279 +3922,279 @@ namespace isc { namespace dhcp {
ctx.stack_.pop_back();
ctx.leave();
}
-#line 3957 "dhcp4_parser.cc"
+#line 3926 "dhcp4_parser.cc"
break;
- case 704:
+ case 704: // $@112: %empty
#line 2452 "dhcp4_parser.yy"
{
// Parse the dhcp-ddns map
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 3967 "dhcp4_parser.cc"
+#line 3936 "dhcp4_parser.cc"
break;
- case 705:
+ case 705: // sub_dhcp_ddns: "{" $@112 dhcp_ddns_params "}"
#line 2456 "dhcp4_parser.yy"
{
// The enable updates DHCP DDNS parameter is required.
ctx.require("enable-updates", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location));
// parsing completed
}
-#line 3977 "dhcp4_parser.cc"
+#line 3946 "dhcp4_parser.cc"
break;
- case 708:
+ case 708: // dhcp_ddns_params: dhcp_ddns_params ","
#line 2464 "dhcp4_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 3985 "dhcp4_parser.cc"
+#line 3954 "dhcp4_parser.cc"
break;
- case 727:
+ case 727: // enable_updates: "enable-updates" ":" "boolean"
#line 2489 "dhcp4_parser.yy"
{
ctx.unique("enable-updates", ctx.loc2pos(yystack_[2].location));
ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("enable-updates", b);
}
-#line 3995 "dhcp4_parser.cc"
+#line 3964 "dhcp4_parser.cc"
break;
- case 728:
+ case 728: // $@113: %empty
#line 2495 "dhcp4_parser.yy"
{
ctx.unique("server-ip", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 4004 "dhcp4_parser.cc"
+#line 3973 "dhcp4_parser.cc"
break;
- case 729:
+ case 729: // server_ip: "server-ip" $@113 ":" "constant string"
#line 2498 "dhcp4_parser.yy"
{
ElementPtr s(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("server-ip", s);
ctx.leave();
}
-#line 4014 "dhcp4_parser.cc"
+#line 3983 "dhcp4_parser.cc"
break;
- case 730:
+ case 730: // server_port: "server-port" ":" "integer"
#line 2504 "dhcp4_parser.yy"
{
ctx.unique("server-port", ctx.loc2pos(yystack_[2].location));
ElementPtr i(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("server-port", i);
}
-#line 4024 "dhcp4_parser.cc"
+#line 3993 "dhcp4_parser.cc"
break;
- case 731:
+ case 731: // $@114: %empty
#line 2510 "dhcp4_parser.yy"
{
ctx.unique("sender-ip", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 4033 "dhcp4_parser.cc"
+#line 4002 "dhcp4_parser.cc"
break;
- case 732:
+ case 732: // sender_ip: "sender-ip" $@114 ":" "constant string"
#line 2513 "dhcp4_parser.yy"
{
ElementPtr s(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("sender-ip", s);
ctx.leave();
}
-#line 4043 "dhcp4_parser.cc"
+#line 4012 "dhcp4_parser.cc"
break;
- case 733:
+ case 733: // sender_port: "sender-port" ":" "integer"
#line 2519 "dhcp4_parser.yy"
{
ctx.unique("sender-port", ctx.loc2pos(yystack_[2].location));
ElementPtr i(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("sender-port", i);
}
-#line 4053 "dhcp4_parser.cc"
+#line 4022 "dhcp4_parser.cc"
break;
- case 734:
+ case 734: // max_queue_size: "max-queue-size" ":" "integer"
#line 2525 "dhcp4_parser.yy"
{
ctx.unique("max-queue-size", ctx.loc2pos(yystack_[2].location));
ElementPtr i(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("max-queue-size", i);
}
-#line 4063 "dhcp4_parser.cc"
+#line 4032 "dhcp4_parser.cc"
break;
- case 735:
+ case 735: // $@115: %empty
#line 2531 "dhcp4_parser.yy"
{
ctx.unique("ncr-protocol", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NCR_PROTOCOL);
}
-#line 4072 "dhcp4_parser.cc"
+#line 4041 "dhcp4_parser.cc"
break;
- case 736:
+ case 736: // ncr_protocol: "ncr-protocol" $@115 ":" ncr_protocol_value
#line 2534 "dhcp4_parser.yy"
{
ctx.stack_.back()->set("ncr-protocol", yystack_[0].value.as < ElementPtr > ());
ctx.leave();
}
-#line 4081 "dhcp4_parser.cc"
+#line 4050 "dhcp4_parser.cc"
break;
- case 737:
+ case 737: // ncr_protocol_value: "udp"
#line 2540 "dhcp4_parser.yy"
{ yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("UDP", ctx.loc2pos(yystack_[0].location))); }
-#line 4087 "dhcp4_parser.cc"
+#line 4056 "dhcp4_parser.cc"
break;
- case 738:
+ case 738: // ncr_protocol_value: "tcp"
#line 2541 "dhcp4_parser.yy"
{ yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("TCP", ctx.loc2pos(yystack_[0].location))); }
-#line 4093 "dhcp4_parser.cc"
+#line 4062 "dhcp4_parser.cc"
break;
- case 739:
+ case 739: // $@116: %empty
#line 2544 "dhcp4_parser.yy"
{
ctx.unique("ncr-format", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NCR_FORMAT);
}
-#line 4102 "dhcp4_parser.cc"
+#line 4071 "dhcp4_parser.cc"
break;
- case 740:
+ case 740: // ncr_format: "ncr-format" $@116 ":" "JSON"
#line 2547 "dhcp4_parser.yy"
{
ElementPtr json(new StringElement("JSON", ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("ncr-format", json);
ctx.leave();
}
-#line 4112 "dhcp4_parser.cc"
+#line 4081 "dhcp4_parser.cc"
break;
- case 741:
+ case 741: // $@117: %empty
#line 2554 "dhcp4_parser.yy"
{
ctx.unique("qualifying-suffix", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 4121 "dhcp4_parser.cc"
+#line 4090 "dhcp4_parser.cc"
break;
- case 742:
+ case 742: // dep_qualifying_suffix: "qualifying-suffix" $@117 ":" "constant string"
#line 2557 "dhcp4_parser.yy"
{
ElementPtr s(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("qualifying-suffix", s);
ctx.leave();
}
-#line 4131 "dhcp4_parser.cc"
+#line 4100 "dhcp4_parser.cc"
break;
- case 743:
+ case 743: // dep_override_no_update: "override-no-update" ":" "boolean"
#line 2564 "dhcp4_parser.yy"
{
ctx.unique("override-no-update", ctx.loc2pos(yystack_[2].location));
ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("override-no-update", b);
}
-#line 4141 "dhcp4_parser.cc"
+#line 4110 "dhcp4_parser.cc"
break;
- case 744:
+ case 744: // dep_override_client_update: "override-client-update" ":" "boolean"
#line 2571 "dhcp4_parser.yy"
{
ctx.unique("override-client-update", ctx.loc2pos(yystack_[2].location));
ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("override-client-update", b);
}
-#line 4151 "dhcp4_parser.cc"
+#line 4120 "dhcp4_parser.cc"
break;
- case 745:
+ case 745: // $@118: %empty
#line 2578 "dhcp4_parser.yy"
{
ctx.unique("replace-client-name", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.REPLACE_CLIENT_NAME);
}
-#line 4160 "dhcp4_parser.cc"
+#line 4129 "dhcp4_parser.cc"
break;
- case 746:
+ case 746: // dep_replace_client_name: "replace-client-name" $@118 ":" ddns_replace_client_name_value
#line 2581 "dhcp4_parser.yy"
{
ctx.stack_.back()->set("replace-client-name", yystack_[0].value.as < ElementPtr > ());
ctx.leave();
}
-#line 4169 "dhcp4_parser.cc"
+#line 4138 "dhcp4_parser.cc"
break;
- case 747:
+ case 747: // $@119: %empty
#line 2587 "dhcp4_parser.yy"
{
ctx.unique("generated-prefix", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 4178 "dhcp4_parser.cc"
+#line 4147 "dhcp4_parser.cc"
break;
- case 748:
+ case 748: // dep_generated_prefix: "generated-prefix" $@119 ":" "constant string"
#line 2590 "dhcp4_parser.yy"
{
ElementPtr s(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("generated-prefix", s);
ctx.leave();
}
-#line 4188 "dhcp4_parser.cc"
+#line 4157 "dhcp4_parser.cc"
break;
- case 749:
+ case 749: // $@120: %empty
#line 2597 "dhcp4_parser.yy"
{
ctx.unique("hostname-char-set", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 4197 "dhcp4_parser.cc"
+#line 4166 "dhcp4_parser.cc"
break;
- case 750:
+ case 750: // dep_hostname_char_set: "hostname-char-set" $@120 ":" "constant string"
#line 2600 "dhcp4_parser.yy"
{
ElementPtr s(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("hostname-char-set", s);
ctx.leave();
}
-#line 4207 "dhcp4_parser.cc"
+#line 4176 "dhcp4_parser.cc"
break;
- case 751:
+ case 751: // $@121: %empty
#line 2607 "dhcp4_parser.yy"
{
ctx.unique("hostname-char-replacement", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 4216 "dhcp4_parser.cc"
+#line 4185 "dhcp4_parser.cc"
break;
- case 752:
+ case 752: // dep_hostname_char_replacement: "hostname-char-replacement" $@121 ":" "constant string"
#line 2610 "dhcp4_parser.yy"
{
ElementPtr s(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("hostname-char-replacement", s);
ctx.leave();
}
-#line 4226 "dhcp4_parser.cc"
+#line 4195 "dhcp4_parser.cc"
break;
- case 753:
+ case 753: // $@122: %empty
#line 2619 "dhcp4_parser.yy"
{
ctx.unique("config-control", ctx.loc2pos(yystack_[0].location));
@@ -4234,47 +4203,47 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(i);
ctx.enter(ctx.CONFIG_CONTROL);
}
-#line 4238 "dhcp4_parser.cc"
+#line 4207 "dhcp4_parser.cc"
break;
- case 754:
+ case 754: // config_control: "config-control" $@122 ":" "{" config_control_params "}"
#line 2625 "dhcp4_parser.yy"
{
// No config control params are required
ctx.stack_.pop_back();
ctx.leave();
}
-#line 4248 "dhcp4_parser.cc"
+#line 4217 "dhcp4_parser.cc"
break;
- case 755:
+ case 755: // $@123: %empty
#line 2631 "dhcp4_parser.yy"
{
// Parse the config-control map
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 4258 "dhcp4_parser.cc"
+#line 4227 "dhcp4_parser.cc"
break;
- case 756:
+ case 756: // sub_config_control: "{" $@123 config_control_params "}"
#line 2635 "dhcp4_parser.yy"
{
// No config_control params are required
// parsing completed
}
-#line 4267 "dhcp4_parser.cc"
+#line 4236 "dhcp4_parser.cc"
break;
- case 759:
+ case 759: // config_control_params: config_control_params ","
#line 2643 "dhcp4_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 4275 "dhcp4_parser.cc"
+#line 4244 "dhcp4_parser.cc"
break;
- case 762:
+ case 762: // $@124: %empty
#line 2653 "dhcp4_parser.yy"
{
ctx.unique("config-databases", ctx.loc2pos(yystack_[0].location));
@@ -4283,29 +4252,29 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(l);
ctx.enter(ctx.CONFIG_DATABASE);
}
-#line 4287 "dhcp4_parser.cc"
+#line 4256 "dhcp4_parser.cc"
break;
- case 763:
+ case 763: // config_databases: "config-databases" $@124 ":" "[" database_list "]"
#line 2659 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 4296 "dhcp4_parser.cc"
+#line 4265 "dhcp4_parser.cc"
break;
- case 764:
+ case 764: // config_fetch_wait_time: "config-fetch-wait-time" ":" "integer"
#line 2664 "dhcp4_parser.yy"
{
ctx.unique("config-fetch-wait-time", ctx.loc2pos(yystack_[2].location));
ElementPtr value(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("config-fetch-wait-time", value);
}
-#line 4306 "dhcp4_parser.cc"
+#line 4275 "dhcp4_parser.cc"
break;
- case 765:
+ case 765: // $@125: %empty
#line 2672 "dhcp4_parser.yy"
{
ctx.unique("loggers", ctx.loc2pos(yystack_[0].location));
@@ -4314,82 +4283,82 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(l);
ctx.enter(ctx.LOGGERS);
}
-#line 4318 "dhcp4_parser.cc"
+#line 4287 "dhcp4_parser.cc"
break;
- case 766:
+ case 766: // loggers: "loggers" $@125 ":" "[" loggers_entries "]"
#line 2678 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 4327 "dhcp4_parser.cc"
+#line 4296 "dhcp4_parser.cc"
break;
- case 769:
+ case 769: // loggers_entries: loggers_entries ","
#line 2687 "dhcp4_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 4335 "dhcp4_parser.cc"
+#line 4304 "dhcp4_parser.cc"
break;
- case 770:
+ case 770: // $@126: %empty
#line 2693 "dhcp4_parser.yy"
{
ElementPtr l(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(l);
ctx.stack_.push_back(l);
}
-#line 4345 "dhcp4_parser.cc"
+#line 4314 "dhcp4_parser.cc"
break;
- case 771:
+ case 771: // logger_entry: "{" $@126 logger_params "}"
#line 2697 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
}
-#line 4353 "dhcp4_parser.cc"
+#line 4322 "dhcp4_parser.cc"
break;
- case 774:
+ case 774: // logger_params: logger_params ","
#line 2703 "dhcp4_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 4361 "dhcp4_parser.cc"
+#line 4330 "dhcp4_parser.cc"
break;
- case 782:
+ case 782: // debuglevel: "debuglevel" ":" "integer"
#line 2717 "dhcp4_parser.yy"
{
ctx.unique("debuglevel", ctx.loc2pos(yystack_[2].location));
ElementPtr dl(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("debuglevel", dl);
}
-#line 4371 "dhcp4_parser.cc"
+#line 4340 "dhcp4_parser.cc"
break;
- case 783:
+ case 783: // $@127: %empty
#line 2723 "dhcp4_parser.yy"
{
ctx.unique("severity", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 4380 "dhcp4_parser.cc"
+#line 4349 "dhcp4_parser.cc"
break;
- case 784:
+ case 784: // severity: "severity" $@127 ":" "constant string"
#line 2726 "dhcp4_parser.yy"
{
ElementPtr sev(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("severity", sev);
ctx.leave();
}
-#line 4390 "dhcp4_parser.cc"
+#line 4359 "dhcp4_parser.cc"
break;
- case 785:
+ case 785: // $@128: %empty
#line 2732 "dhcp4_parser.yy"
{
ctx.unique("output_options", ctx.loc2pos(yystack_[0].location));
@@ -4398,121 +4367,121 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(l);
ctx.enter(ctx.OUTPUT_OPTIONS);
}
-#line 4402 "dhcp4_parser.cc"
+#line 4371 "dhcp4_parser.cc"
break;
- case 786:
+ case 786: // output_options_list: "output_options" $@128 ":" "[" output_options_list_content "]"
#line 2738 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 4411 "dhcp4_parser.cc"
+#line 4380 "dhcp4_parser.cc"
break;
- case 789:
+ case 789: // output_options_list_content: output_options_list_content ","
#line 2745 "dhcp4_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 4419 "dhcp4_parser.cc"
+#line 4388 "dhcp4_parser.cc"
break;
- case 790:
+ case 790: // $@129: %empty
#line 2750 "dhcp4_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 4429 "dhcp4_parser.cc"
+#line 4398 "dhcp4_parser.cc"
break;
- case 791:
+ case 791: // output_entry: "{" $@129 output_params_list "}"
#line 2754 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
}
-#line 4437 "dhcp4_parser.cc"
+#line 4406 "dhcp4_parser.cc"
break;
- case 794:
+ case 794: // output_params_list: output_params_list ","
#line 2760 "dhcp4_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 4445 "dhcp4_parser.cc"
+#line 4414 "dhcp4_parser.cc"
break;
- case 800:
+ case 800: // $@130: %empty
#line 2772 "dhcp4_parser.yy"
{
ctx.unique("output", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 4454 "dhcp4_parser.cc"
+#line 4423 "dhcp4_parser.cc"
break;
- case 801:
+ case 801: // output: "output" $@130 ":" "constant string"
#line 2775 "dhcp4_parser.yy"
{
ElementPtr sev(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("output", sev);
ctx.leave();
}
-#line 4464 "dhcp4_parser.cc"
+#line 4433 "dhcp4_parser.cc"
break;
- case 802:
+ case 802: // flush: "flush" ":" "boolean"
#line 2781 "dhcp4_parser.yy"
{
ctx.unique("flush", ctx.loc2pos(yystack_[2].location));
ElementPtr flush(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("flush", flush);
}
-#line 4474 "dhcp4_parser.cc"
+#line 4443 "dhcp4_parser.cc"
break;
- case 803:
+ case 803: // maxsize: "maxsize" ":" "integer"
#line 2787 "dhcp4_parser.yy"
{
ctx.unique("maxsize", ctx.loc2pos(yystack_[2].location));
ElementPtr maxsize(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("maxsize", maxsize);
}
-#line 4484 "dhcp4_parser.cc"
+#line 4453 "dhcp4_parser.cc"
break;
- case 804:
+ case 804: // maxver: "maxver" ":" "integer"
#line 2793 "dhcp4_parser.yy"
{
ctx.unique("maxver", ctx.loc2pos(yystack_[2].location));
ElementPtr maxver(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("maxver", maxver);
}
-#line 4494 "dhcp4_parser.cc"
+#line 4463 "dhcp4_parser.cc"
break;
- case 805:
+ case 805: // $@131: %empty
#line 2799 "dhcp4_parser.yy"
{
ctx.unique("pattern", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 4503 "dhcp4_parser.cc"
+#line 4472 "dhcp4_parser.cc"
break;
- case 806:
+ case 806: // pattern: "pattern" $@131 ":" "constant string"
#line 2802 "dhcp4_parser.yy"
{
ElementPtr sev(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("pattern", sev);
ctx.leave();
}
-#line 4513 "dhcp4_parser.cc"
+#line 4482 "dhcp4_parser.cc"
break;
- case 807:
+ case 807: // $@132: %empty
#line 2808 "dhcp4_parser.yy"
{
ctx.unique("compatibility", ctx.loc2pos(yystack_[0].location));
@@ -4521,38 +4490,38 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(i);
ctx.enter(ctx.COMPATIBILITY);
}
-#line 4525 "dhcp4_parser.cc"
+#line 4494 "dhcp4_parser.cc"
break;
- case 808:
+ case 808: // compatibility: "compatibility" $@132 ":" "{" compatibility_params "}"
#line 2814 "dhcp4_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 4534 "dhcp4_parser.cc"
+#line 4503 "dhcp4_parser.cc"
break;
- case 811:
+ case 811: // compatibility_params: compatibility_params ","
#line 2821 "dhcp4_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 4542 "dhcp4_parser.cc"
+#line 4511 "dhcp4_parser.cc"
break;
- case 814:
+ case 814: // lenient_option_parsing: "lenient-option-parsing" ":" "boolean"
#line 2830 "dhcp4_parser.yy"
{
ctx.unique("lenient-option-parsing", ctx.loc2pos(yystack_[2].location));
ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("lenient-option-parsing", b);
}
-#line 4552 "dhcp4_parser.cc"
+#line 4521 "dhcp4_parser.cc"
break;
-#line 4556 "dhcp4_parser.cc"
+#line 4525 "dhcp4_parser.cc"
default:
break;
@@ -4569,7 +4538,6 @@ namespace isc { namespace dhcp {
YY_SYMBOL_PRINT ("-> $$ =", yylhs);
yypop_ (yylen);
yylen = 0;
- YY_STACK_PRINT ();
// Shift the result of the reduction.
yypush_ (YY_NULLPTR, YY_MOVE (yylhs));
@@ -4585,7 +4553,9 @@ namespace isc { namespace dhcp {
if (!yyerrstatus_)
{
++yynerrs_;
- error (yyla.location, yysyntax_error_ (yystack_[0].state, yyla));
+ context yyctx (*this, yyla);
+ std::string msg = yysyntax_error_ (yyctx);
+ error (yyla.location, YY_MOVE (msg));
}
@@ -4596,7 +4566,7 @@ namespace isc { namespace dhcp {
error, discard it. */
// Return failure if at end of input.
- if (yyla.type_get () == yyeof_)
+ if (yyla.kind () == symbol_kind::S_YYEOF)
YYABORT;
else if (!yyla.empty ())
{
@@ -4622,6 +4592,7 @@ namespace isc { namespace dhcp {
this YYERROR. */
yypop_ (yylen);
yylen = 0;
+ YY_STACK_PRINT ();
goto yyerrlab1;
@@ -4630,31 +4601,33 @@ namespace isc { namespace dhcp {
`-------------------------------------------------------------*/
yyerrlab1:
yyerrstatus_ = 3; // Each real token shifted decrements this.
+ // Pop stack until we find a state that shifts the error token.
+ for (;;)
+ {
+ yyn = yypact_[+yystack_[0].state];
+ if (!yy_pact_value_is_default_ (yyn))
+ {
+ yyn += symbol_kind::S_YYerror;
+ if (0 <= yyn && yyn <= yylast_
+ && yycheck_[yyn] == symbol_kind::S_YYerror)
+ {
+ yyn = yytable_[yyn];
+ if (0 < yyn)
+ break;
+ }
+ }
+
+ // Pop the current state because it cannot handle the error token.
+ if (yystack_.size () == 1)
+ YYABORT;
+
+ yyerror_range[1].location = yystack_[0].location;
+ yy_destroy_ ("Error: popping", yystack_[0]);
+ yypop_ ();
+ YY_STACK_PRINT ();
+ }
{
stack_symbol_type error_token;
- for (;;)
- {
- yyn = yypact_[+yystack_[0].state];
- if (!yy_pact_value_is_default_ (yyn))
- {
- yyn += yy_error_token_;
- if (0 <= yyn && yyn <= yylast_ && yycheck_[yyn] == yy_error_token_)
- {
- yyn = yytable_[yyn];
- if (0 < yyn)
- break;
- }
- }
-
- // Pop the current state because it cannot handle the error token.
- if (yystack_.size () == 1)
- YYABORT;
-
- yyerror_range[1].location = yystack_[0].location;
- yy_destroy_ ("Error: popping", yystack_[0]);
- yypop_ ();
- YY_STACK_PRINT ();
- }
yyerror_range[2].location = yyla.location;
YYLLOC_DEFAULT (error_token.location, yyerror_range, 2);
@@ -4692,6 +4665,7 @@ namespace isc { namespace dhcp {
/* Do not reclaim the symbols of the rule whose action triggered
this YYABORT or YYACCEPT. */
yypop_ (yylen);
+ YY_STACK_PRINT ();
while (1 < yystack_.size ())
{
yy_destroy_ ("Cleanup: popping", yystack_[0]);
@@ -4725,18 +4699,103 @@ namespace isc { namespace dhcp {
error (yyexc.location, yyexc.what ());
}
- // Generate an error message.
+ /* Return YYSTR after stripping away unnecessary quotes and
+ backslashes, so that it's suitable for yyerror. The heuristic is
+ that double-quoting is unnecessary unless the string contains an
+ apostrophe, a comma, or backslash (other than backslash-backslash).
+ YYSTR is taken from yytname. */
std::string
- Dhcp4Parser::yysyntax_error_ (state_type yystate, const symbol_type& yyla) const
+ Dhcp4Parser::yytnamerr_ (const char *yystr)
{
- // Number of reported tokens (one for the "unexpected", one per
- // "expected").
- std::ptrdiff_t yycount = 0;
- // Its maximum.
- enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
- // Arguments of yyformat.
- char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
+ if (*yystr == '"')
+ {
+ std::string yyr;
+ char const *yyp = yystr;
+ for (;;)
+ switch (*++yyp)
+ {
+ case '\'':
+ case ',':
+ goto do_not_strip_quotes;
+
+ case '\\':
+ if (*++yyp != '\\')
+ goto do_not_strip_quotes;
+ else
+ goto append;
+
+ append:
+ default:
+ yyr += *yyp;
+ break;
+
+ case '"':
+ return yyr;
+ }
+ do_not_strip_quotes: ;
+ }
+
+ return yystr;
+ }
+
+ std::string
+ Dhcp4Parser::symbol_name (symbol_kind_type yysymbol)
+ {
+ return yytnamerr_ (yytname_[yysymbol]);
+ }
+
+
+
+ // Dhcp4Parser::context.
+ Dhcp4Parser::context::context (const Dhcp4Parser& yyparser, const symbol_type& yyla)
+ : yyparser_ (yyparser)
+ , yyla_ (yyla)
+ {}
+
+ int
+ Dhcp4Parser::context::expected_tokens (symbol_kind_type yyarg[], int yyargn) const
+ {
+ // Actual number of expected tokens
+ int yycount = 0;
+
+ const int yyn = yypact_[+yyparser_.yystack_[0].state];
+ if (!yy_pact_value_is_default_ (yyn))
+ {
+ /* Start YYX at -YYN if negative to avoid negative indexes in
+ YYCHECK. In other words, skip the first -YYN actions for
+ this state because they are default actions. */
+ const int yyxbegin = yyn < 0 ? -yyn : 0;
+ // Stay within bounds of both yycheck and yytname.
+ const int yychecklim = yylast_ - yyn + 1;
+ const int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
+ for (int yyx = yyxbegin; yyx < yyxend; ++yyx)
+ if (yycheck_[yyx + yyn] == yyx && yyx != symbol_kind::S_YYerror
+ && !yy_table_value_is_error_ (yytable_[yyx + yyn]))
+ {
+ if (!yyarg)
+ ++yycount;
+ else if (yycount == yyargn)
+ return 0;
+ else
+ yyarg[yycount++] = YY_CAST (symbol_kind_type, yyx);
+ }
+ }
+
+ if (yyarg && yycount == 0 && 0 < yyargn)
+ yyarg[0] = symbol_kind::S_YYEMPTY;
+ return yycount;
+ }
+
+
+
+
+
+
+ int
+ Dhcp4Parser::yy_syntax_error_arguments_ (const context& yyctx,
+ symbol_kind_type yyarg[], int yyargn) const
+ {
/* There are many possibilities here to consider:
- If this state is a consistent state with a default action, then
the only way this function was invoked is if the default action
@@ -4761,35 +4820,26 @@ namespace isc { namespace dhcp {
one exception: it will still contain any token that will not be
accepted due to an error action in a later state.
*/
- if (!yyla.empty ())
- {
- symbol_number_type yytoken = yyla.type_get ();
- yyarg[yycount++] = yytname_[yytoken];
- int yyn = yypact_[+yystate];
- if (!yy_pact_value_is_default_ (yyn))
- {
- /* Start YYX at -YYN if negative to avoid negative indexes in
- YYCHECK. In other words, skip the first -YYN actions for
- this state because they are default actions. */
- int yyxbegin = yyn < 0 ? -yyn : 0;
- // Stay within bounds of both yycheck and yytname.
- int yychecklim = yylast_ - yyn + 1;
- int yyxend = yychecklim < yyntokens_ ? yychecklim : yyntokens_;
- for (int yyx = yyxbegin; yyx < yyxend; ++yyx)
- if (yycheck_[yyx + yyn] == yyx && yyx != yy_error_token_
- && !yy_table_value_is_error_ (yytable_[yyx + yyn]))
- {
- if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
- {
- yycount = 1;
- break;
- }
- else
- yyarg[yycount++] = yytname_[yyx];
- }
- }
+ if (!yyctx.lookahead ().empty ())
+ {
+ if (yyarg)
+ yyarg[0] = yyctx.token ();
+ int yyn = yyctx.expected_tokens (yyarg ? yyarg + 1 : yyarg, yyargn - 1);
+ return yyn + 1;
}
+ return 0;
+ }
+
+ // Generate an error message.
+ std::string
+ Dhcp4Parser::yysyntax_error_ (const context& yyctx) const
+ {
+ // Its maximum.
+ enum { YYARGS_MAX = 5 };
+ // Arguments of yyformat.
+ symbol_kind_type yyarg[YYARGS_MAX];
+ int yycount = yy_syntax_error_arguments_ (yyctx, yyarg, YYARGS_MAX);
char const* yyformat = YY_NULLPTR;
switch (yycount)
@@ -4814,7 +4864,7 @@ namespace isc { namespace dhcp {
for (char const* yyp = yyformat; *yyp; ++yyp)
if (yyp[0] == '%' && yyp[1] == 's' && yyi < yycount)
{
- yyres += yytnamerr_ (yyarg[yyi++]);
+ yyres += symbol_name (yyarg[yyi++]);
++yyp;
}
else
@@ -5137,7 +5187,7 @@ namespace isc { namespace dhcp {
const short
Dhcp4Parser::yydefgoto_[] =
{
- -1, 14, 15, 16, 17, 18, 19, 20, 21, 22,
+ 0, 14, 15, 16, 17, 18, 19, 20, 21, 22,
23, 24, 25, 26, 27, 36, 37, 38, 65, 712,
82, 83, 39, 64, 79, 80, 733, 923, 1016, 1017,
803, 41, 66, 85, 418, 86, 43, 67, 152, 153,
@@ -5782,32 +5832,32 @@ namespace isc { namespace dhcp {
};
-
+#if PARSER4_DEBUG || 1
// YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
- // First, the terminals, then, starting at \a yyntokens_, nonterminals.
+ // First, the terminals, then, starting at \a YYNTOKENS, nonterminals.
const char*
const Dhcp4Parser::yytname_[] =
{
- "\"end of file\"", "error", "$undefined", "\",\"", "\":\"", "\"[\"",
- "\"]\"", "\"{\"", "\"}\"", "\"null\"", "\"Dhcp4\"", "\"config-control\"",
- "\"config-databases\"", "\"config-fetch-wait-time\"",
- "\"interfaces-config\"", "\"interfaces\"", "\"dhcp-socket-type\"",
- "\"raw\"", "\"udp\"", "\"outbound-interface\"", "\"same-as-inbound\"",
- "\"use-routing\"", "\"re-detect\"", "\"sanity-checks\"",
- "\"lease-checks\"", "\"echo-client-id\"", "\"match-client-id\"",
- "\"authoritative\"", "\"next-server\"", "\"server-hostname\"",
- "\"boot-file-name\"", "\"lease-database\"", "\"hosts-database\"",
- "\"hosts-databases\"", "\"type\"", "\"memfile\"", "\"mysql\"",
- "\"postgresql\"", "\"user\"", "\"password\"", "\"host\"", "\"port\"",
- "\"persist\"", "\"lfc-interval\"", "\"readonly\"", "\"connect-timeout\"",
- "\"max-reconnect-tries\"", "\"reconnect-wait-time\"", "\"on-fail\"",
- "\"stop-retry-exit\"", "\"serve-retry-exit\"",
- "\"serve-retry-continue\"", "\"max-row-errors\"", "\"trust-anchor\"",
- "\"cert-file\"", "\"key-file\"", "\"cipher-list\"", "\"valid-lifetime\"",
- "\"min-valid-lifetime\"", "\"max-valid-lifetime\"", "\"renew-timer\"",
- "\"rebind-timer\"", "\"calculate-tee-times\"", "\"t1-percent\"",
- "\"t2-percent\"", "\"cache-threshold\"", "\"cache-max-age\"",
- "\"decline-probation-period\"", "\"server-tag\"",
+ "\"end of file\"", "error", "\"invalid token\"", "\",\"", "\":\"",
+ "\"[\"", "\"]\"", "\"{\"", "\"}\"", "\"null\"", "\"Dhcp4\"",
+ "\"config-control\"", "\"config-databases\"",
+ "\"config-fetch-wait-time\"", "\"interfaces-config\"", "\"interfaces\"",
+ "\"dhcp-socket-type\"", "\"raw\"", "\"udp\"", "\"outbound-interface\"",
+ "\"same-as-inbound\"", "\"use-routing\"", "\"re-detect\"",
+ "\"sanity-checks\"", "\"lease-checks\"", "\"echo-client-id\"",
+ "\"match-client-id\"", "\"authoritative\"", "\"next-server\"",
+ "\"server-hostname\"", "\"boot-file-name\"", "\"lease-database\"",
+ "\"hosts-database\"", "\"hosts-databases\"", "\"type\"", "\"memfile\"",
+ "\"mysql\"", "\"postgresql\"", "\"user\"", "\"password\"", "\"host\"",
+ "\"port\"", "\"persist\"", "\"lfc-interval\"", "\"readonly\"",
+ "\"connect-timeout\"", "\"max-reconnect-tries\"",
+ "\"reconnect-wait-time\"", "\"on-fail\"", "\"stop-retry-exit\"",
+ "\"serve-retry-exit\"", "\"serve-retry-continue\"", "\"max-row-errors\"",
+ "\"trust-anchor\"", "\"cert-file\"", "\"key-file\"", "\"cipher-list\"",
+ "\"valid-lifetime\"", "\"min-valid-lifetime\"", "\"max-valid-lifetime\"",
+ "\"renew-timer\"", "\"rebind-timer\"", "\"calculate-tee-times\"",
+ "\"t1-percent\"", "\"t2-percent\"", "\"cache-threshold\"",
+ "\"cache-max-age\"", "\"decline-probation-period\"", "\"server-tag\"",
"\"statistic-default-sample-count\"", "\"statistic-default-sample-age\"",
"\"ddns-send-updates\"", "\"ddns-override-no-update\"",
"\"ddns-override-client-update\"", "\"ddns-replace-client-name\"",
@@ -5957,6 +6007,8 @@ namespace isc { namespace dhcp {
"maxsize", "maxver", "pattern", "$@131", "compatibility", "$@132",
"compatibility_params", "compatibility_param", "lenient_option_parsing", YY_NULLPTR
};
+#endif
+
#if PARSER4_DEBUG
const short
@@ -6046,9 +6098,8 @@ namespace isc { namespace dhcp {
2820, 2821, 2826, 2827, 2830
};
- // Print the state stack on the debug stream.
void
- Dhcp4Parser::yystack_print_ ()
+ Dhcp4Parser::yy_stack_print_ () const
{
*yycdebug_ << "Stack now";
for (stack_type::const_iterator
@@ -6059,9 +6110,8 @@ namespace isc { namespace dhcp {
*yycdebug_ << '\n';
}
- // Report on the debug stream that the rule \a yyrule is going to be reduced.
void
- Dhcp4Parser::yy_reduce_print_ (int yyrule)
+ Dhcp4Parser::yy_reduce_print_ (int yyrule) const
{
int yylno = yyrline_[yyrule];
int yynrhs = yyr2_[yyrule];
@@ -6078,7 +6128,7 @@ namespace isc { namespace dhcp {
#line 14 "dhcp4_parser.yy"
} } // isc::dhcp
-#line 6082 "dhcp4_parser.cc"
+#line 6132 "dhcp4_parser.cc"
#line 2836 "dhcp4_parser.yy"
diff --git a/src/bin/dhcp4/dhcp4_parser.h b/src/bin/dhcp4/dhcp4_parser.h
index 7ea2fb0713..b51bd99873 100644
--- a/src/bin/dhcp4/dhcp4_parser.h
+++ b/src/bin/dhcp4/dhcp4_parser.h
@@ -1,8 +1,8 @@
-// A Bison parser, made by GNU Bison 3.5.1.
+// A Bison parser, made by GNU Bison 3.8.2.
// Skeleton interface for Bison LALR(1) parsers in C++
-// Copyright (C) 2002-2015, 2018-2020 Free Software Foundation, Inc.
+// Copyright (C) 2002-2015, 2018-2021 Free Software Foundation, Inc.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -15,7 +15,7 @@
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
-// along with this program. If not, see .
+// along with this program. If not, see .
// As a special exception, you may create a larger work that contains
// part or all of the Bison parser skeleton and distribute that work
@@ -38,8 +38,9 @@
// C++ LALR(1) parser skeleton written by Akim Demaille.
-// Undocumented macros, especially those whose name start with YY_,
-// are private implementation details. Do not rely on them.
+// DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
+// especially those whose name start with YY_ or yy_. They are
+// private implementation details that can be changed or removed.
#ifndef YY_PARSER4_DHCP4_PARSER_H_INCLUDED
# define YY_PARSER4_DHCP4_PARSER_H_INCLUDED
@@ -56,7 +57,7 @@ using namespace isc::dhcp;
using namespace isc::data;
using namespace std;
-#line 60 "dhcp4_parser.h"
+#line 61 "dhcp4_parser.h"
# include
# include // std::abort
@@ -103,9 +104,9 @@ using namespace std;
#endif
# include "location.hh"
#include
-#ifndef YY_ASSERT
+#ifndef PARSER4__ASSERT
# include
-# define YY_ASSERT assert
+# define PARSER4__ASSERT assert
#endif
@@ -127,17 +128,23 @@ using namespace std;
/* Suppress unused-variable warnings by "using" E. */
#if ! defined lint || defined __GNUC__
-# define YYUSE(E) ((void) (E))
+# define YY_USE(E) ((void) (E))
#else
-# define YYUSE(E) /* empty */
+# define YY_USE(E) /* empty */
#endif
-#if defined __GNUC__ && ! defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
/* Suppress an incorrect diagnostic about yylval being uninitialized. */
-# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
+#if defined __GNUC__ && ! defined __ICC && 406 <= __GNUC__ * 100 + __GNUC_MINOR__
+# if __GNUC__ * 100 + __GNUC_MINOR__ < 407
+# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
+ _Pragma ("GCC diagnostic push") \
+ _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")
+# else
+# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
_Pragma ("GCC diagnostic push") \
_Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") \
_Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
+# endif
# define YY_IGNORE_MAYBE_UNINITIALIZED_END \
_Pragma ("GCC diagnostic pop")
#else
@@ -199,7 +206,7 @@ using namespace std;
#line 14 "dhcp4_parser.yy"
namespace isc { namespace dhcp {
-#line 203 "dhcp4_parser.h"
+#line 210 "dhcp4_parser.h"
@@ -208,37 +215,49 @@ namespace isc { namespace dhcp {
class Dhcp4Parser
{
public:
-#ifndef PARSER4_STYPE
+#ifdef PARSER4_STYPE
+# ifdef __GNUC__
+# pragma GCC message "bison: do not #define PARSER4_STYPE in C++, use %define api.value.type"
+# endif
+ typedef PARSER4_STYPE value_type;
+#else
/// A buffer to store and retrieve objects.
///
/// Sort of a variant, but does not keep track of the nature
/// of the stored data, since that knowledge is available
/// via the current parser state.
- class semantic_type
+ class value_type
{
public:
/// Type of *this.
- typedef semantic_type self_type;
+ typedef value_type self_type;
/// Empty construction.
- semantic_type () YY_NOEXCEPT
- : yybuffer_ ()
+ value_type () YY_NOEXCEPT
+ : yyraw_ ()
, yytypeid_ (YY_NULLPTR)
{}
/// Construct and fill.
template
- semantic_type (YY_RVREF (T) t)
+ value_type (YY_RVREF (T) t)
: yytypeid_ (&typeid (T))
{
- YY_ASSERT (sizeof (T) <= size);
+ PARSER4__ASSERT (sizeof (T) <= size);
new (yyas_ ()) T (YY_MOVE (t));
}
+#if 201103L <= YY_CPLUSPLUS
+ /// Non copyable.
+ value_type (const self_type&) = delete;
+ /// Non copyable.
+ self_type& operator= (const self_type&) = delete;
+#endif
+
/// Destruction, allowed only if empty.
- ~semantic_type () YY_NOEXCEPT
+ ~value_type () YY_NOEXCEPT
{
- YY_ASSERT (!yytypeid_);
+ PARSER4__ASSERT (!yytypeid_);
}
# if 201103L <= YY_CPLUSPLUS
@@ -247,8 +266,8 @@ namespace isc { namespace dhcp {
T&
emplace (U&&... u)
{
- YY_ASSERT (!yytypeid_);
- YY_ASSERT (sizeof (T) <= size);
+ PARSER4__ASSERT (!yytypeid_);
+ PARSER4__ASSERT (sizeof (T) <= size);
yytypeid_ = & typeid (T);
return *new (yyas_ ()) T (std::forward (u)...);
}
@@ -258,8 +277,8 @@ namespace isc { namespace dhcp {
T&
emplace ()
{
- YY_ASSERT (!yytypeid_);
- YY_ASSERT (sizeof (T) <= size);
+ PARSER4__ASSERT (!yytypeid_);
+ PARSER4__ASSERT (sizeof (T) <= size);
yytypeid_ = & typeid (T);
return *new (yyas_ ()) T ();
}
@@ -269,8 +288,8 @@ namespace isc { namespace dhcp {
T&
emplace (const T& t)
{
- YY_ASSERT (!yytypeid_);
- YY_ASSERT (sizeof (T) <= size);
+ PARSER4__ASSERT (!yytypeid_);
+ PARSER4__ASSERT (sizeof (T) <= size);
yytypeid_ = & typeid (T);
return *new (yyas_ ()) T (t);
}
@@ -299,9 +318,9 @@ namespace isc { namespace dhcp {
T&
as () YY_NOEXCEPT
{
- YY_ASSERT (yytypeid_);
- YY_ASSERT (*yytypeid_ == typeid (T));
- YY_ASSERT (sizeof (T) <= size);
+ PARSER4__ASSERT (yytypeid_);
+ PARSER4__ASSERT (*yytypeid_ == typeid (T));
+ PARSER4__ASSERT (sizeof (T) <= size);
return *yyas_ ();
}
@@ -310,9 +329,9 @@ namespace isc { namespace dhcp {
const T&
as () const YY_NOEXCEPT
{
- YY_ASSERT (yytypeid_);
- YY_ASSERT (*yytypeid_ == typeid (T));
- YY_ASSERT (sizeof (T) <= size);
+ PARSER4__ASSERT (yytypeid_);
+ PARSER4__ASSERT (*yytypeid_ == typeid (T));
+ PARSER4__ASSERT (sizeof (T) <= size);
return *yyas_ ();
}
@@ -328,8 +347,8 @@ namespace isc { namespace dhcp {
void
swap (self_type& that) YY_NOEXCEPT
{
- YY_ASSERT (yytypeid_);
- YY_ASSERT (*yytypeid_ == *that.yytypeid_);
+ PARSER4__ASSERT (yytypeid_);
+ PARSER4__ASSERT (*yytypeid_ == *that.yytypeid_);
std::swap (as (), that.as ());
}
@@ -378,16 +397,19 @@ namespace isc { namespace dhcp {
}
private:
- /// Prohibit blind copies.
+#if YY_CPLUSPLUS < 201103L
+ /// Non copyable.
+ value_type (const self_type&);
+ /// Non copyable.
self_type& operator= (const self_type&);
- semantic_type (const self_type&);
+#endif
/// Accessor to raw memory as \a T.
template
T*
yyas_ () YY_NOEXCEPT
{
- void *yyp = yybuffer_.yyraw;
+ void *yyp = yyraw_;
return static_cast (yyp);
}
@@ -396,7 +418,7 @@ namespace isc { namespace dhcp {
const T*
yyas_ () const YY_NOEXCEPT
{
- const void *yyp = yybuffer_.yyraw;
+ const void *yyp = yyraw_;
return static_cast (yyp);
}
@@ -434,18 +456,19 @@ namespace isc { namespace dhcp {
union
{
/// Strongest alignment constraints.
- long double yyalign_me;
+ long double yyalign_me_;
/// A buffer large enough to store any of the semantic values.
- char yyraw[size];
- } yybuffer_;
+ char yyraw_[size];
+ };
/// Whether the content is built: if defined, the name of the stored type.
const std::type_info *yytypeid_;
};
-#else
- typedef PARSER4_STYPE semantic_type;
#endif
+ /// Backward compatibility (Bison 3.8).
+ typedef value_type semantic_type;
+
/// Symbol locations.
typedef location location_type;
@@ -467,231 +490,868 @@ namespace isc { namespace dhcp {
location_type location;
};
- /// Tokens.
+ /// Token kinds.
struct token
{
- enum yytokentype
+ enum token_kind_type
{
- TOKEN_END = 0,
- TOKEN_COMMA = 258,
- TOKEN_COLON = 259,
- TOKEN_LSQUARE_BRACKET = 260,
- TOKEN_RSQUARE_BRACKET = 261,
- TOKEN_LCURLY_BRACKET = 262,
- TOKEN_RCURLY_BRACKET = 263,
- TOKEN_NULL_TYPE = 264,
- TOKEN_DHCP4 = 265,
- TOKEN_CONFIG_CONTROL = 266,
- TOKEN_CONFIG_DATABASES = 267,
- TOKEN_CONFIG_FETCH_WAIT_TIME = 268,
- TOKEN_INTERFACES_CONFIG = 269,
- TOKEN_INTERFACES = 270,
- TOKEN_DHCP_SOCKET_TYPE = 271,
- TOKEN_RAW = 272,
- TOKEN_UDP = 273,
- TOKEN_OUTBOUND_INTERFACE = 274,
- TOKEN_SAME_AS_INBOUND = 275,
- TOKEN_USE_ROUTING = 276,
- TOKEN_RE_DETECT = 277,
- TOKEN_SANITY_CHECKS = 278,
- TOKEN_LEASE_CHECKS = 279,
- TOKEN_ECHO_CLIENT_ID = 280,
- TOKEN_MATCH_CLIENT_ID = 281,
- TOKEN_AUTHORITATIVE = 282,
- TOKEN_NEXT_SERVER = 283,
- TOKEN_SERVER_HOSTNAME = 284,
- TOKEN_BOOT_FILE_NAME = 285,
- TOKEN_LEASE_DATABASE = 286,
- TOKEN_HOSTS_DATABASE = 287,
- TOKEN_HOSTS_DATABASES = 288,
- TOKEN_TYPE = 289,
- TOKEN_MEMFILE = 290,
- TOKEN_MYSQL = 291,
- TOKEN_POSTGRESQL = 292,
- TOKEN_USER = 293,
- TOKEN_PASSWORD = 294,
- TOKEN_HOST = 295,
- TOKEN_PORT = 296,
- TOKEN_PERSIST = 297,
- TOKEN_LFC_INTERVAL = 298,
- TOKEN_READONLY = 299,
- TOKEN_CONNECT_TIMEOUT = 300,
- TOKEN_MAX_RECONNECT_TRIES = 301,
- TOKEN_RECONNECT_WAIT_TIME = 302,
- TOKEN_ON_FAIL = 303,
- TOKEN_STOP_RETRY_EXIT = 304,
- TOKEN_SERVE_RETRY_EXIT = 305,
- TOKEN_SERVE_RETRY_CONTINUE = 306,
- TOKEN_MAX_ROW_ERRORS = 307,
- TOKEN_TRUST_ANCHOR = 308,
- TOKEN_CERT_FILE = 309,
- TOKEN_KEY_FILE = 310,
- TOKEN_CIPHER_LIST = 311,
- TOKEN_VALID_LIFETIME = 312,
- TOKEN_MIN_VALID_LIFETIME = 313,
- TOKEN_MAX_VALID_LIFETIME = 314,
- TOKEN_RENEW_TIMER = 315,
- TOKEN_REBIND_TIMER = 316,
- TOKEN_CALCULATE_TEE_TIMES = 317,
- TOKEN_T1_PERCENT = 318,
- TOKEN_T2_PERCENT = 319,
- TOKEN_CACHE_THRESHOLD = 320,
- TOKEN_CACHE_MAX_AGE = 321,
- TOKEN_DECLINE_PROBATION_PERIOD = 322,
- TOKEN_SERVER_TAG = 323,
- TOKEN_STATISTIC_DEFAULT_SAMPLE_COUNT = 324,
- TOKEN_STATISTIC_DEFAULT_SAMPLE_AGE = 325,
- TOKEN_DDNS_SEND_UPDATES = 326,
- TOKEN_DDNS_OVERRIDE_NO_UPDATE = 327,
- TOKEN_DDNS_OVERRIDE_CLIENT_UPDATE = 328,
- TOKEN_DDNS_REPLACE_CLIENT_NAME = 329,
- TOKEN_DDNS_GENERATED_PREFIX = 330,
- TOKEN_DDNS_QUALIFYING_SUFFIX = 331,
- TOKEN_DDNS_UPDATE_ON_RENEW = 332,
- TOKEN_DDNS_USE_CONFLICT_RESOLUTION = 333,
- TOKEN_STORE_EXTENDED_INFO = 334,
- TOKEN_SUBNET4 = 335,
- TOKEN_SUBNET_4O6_INTERFACE = 336,
- TOKEN_SUBNET_4O6_INTERFACE_ID = 337,
- TOKEN_SUBNET_4O6_SUBNET = 338,
- TOKEN_OPTION_DEF = 339,
- TOKEN_OPTION_DATA = 340,
- TOKEN_NAME = 341,
- TOKEN_DATA = 342,
- TOKEN_CODE = 343,
- TOKEN_SPACE = 344,
- TOKEN_CSV_FORMAT = 345,
- TOKEN_ALWAYS_SEND = 346,
- TOKEN_RECORD_TYPES = 347,
- TOKEN_ENCAPSULATE = 348,
- TOKEN_ARRAY = 349,
- TOKEN_PARKED_PACKET_LIMIT = 350,
- TOKEN_SHARED_NETWORKS = 351,
- TOKEN_POOLS = 352,
- TOKEN_POOL = 353,
- TOKEN_USER_CONTEXT = 354,
- TOKEN_COMMENT = 355,
- TOKEN_SUBNET = 356,
- TOKEN_INTERFACE = 357,
- TOKEN_ID = 358,
- TOKEN_RESERVATION_MODE = 359,
- TOKEN_DISABLED = 360,
- TOKEN_OUT_OF_POOL = 361,
- TOKEN_GLOBAL = 362,
- TOKEN_ALL = 363,
- TOKEN_RESERVATIONS_GLOBAL = 364,
- TOKEN_RESERVATIONS_IN_SUBNET = 365,
- TOKEN_RESERVATIONS_OUT_OF_POOL = 366,
- TOKEN_HOST_RESERVATION_IDENTIFIERS = 367,
- TOKEN_CLIENT_CLASSES = 368,
- TOKEN_REQUIRE_CLIENT_CLASSES = 369,
- TOKEN_TEST = 370,
- TOKEN_ONLY_IF_REQUIRED = 371,
- TOKEN_CLIENT_CLASS = 372,
- TOKEN_RESERVATIONS = 373,
- TOKEN_DUID = 374,
- TOKEN_HW_ADDRESS = 375,
- TOKEN_CIRCUIT_ID = 376,
- TOKEN_CLIENT_ID = 377,
- TOKEN_HOSTNAME = 378,
- TOKEN_FLEX_ID = 379,
- TOKEN_RELAY = 380,
- TOKEN_IP_ADDRESS = 381,
- TOKEN_IP_ADDRESSES = 382,
- TOKEN_HOOKS_LIBRARIES = 383,
- TOKEN_LIBRARY = 384,
- TOKEN_PARAMETERS = 385,
- TOKEN_EXPIRED_LEASES_PROCESSING = 386,
- TOKEN_RECLAIM_TIMER_WAIT_TIME = 387,
- TOKEN_FLUSH_RECLAIMED_TIMER_WAIT_TIME = 388,
- TOKEN_HOLD_RECLAIMED_TIME = 389,
- TOKEN_MAX_RECLAIM_LEASES = 390,
- TOKEN_MAX_RECLAIM_TIME = 391,
- TOKEN_UNWARNED_RECLAIM_CYCLES = 392,
- TOKEN_DHCP4O6_PORT = 393,
- TOKEN_DHCP_MULTI_THREADING = 394,
- TOKEN_ENABLE_MULTI_THREADING = 395,
- TOKEN_THREAD_POOL_SIZE = 396,
- TOKEN_PACKET_QUEUE_SIZE = 397,
- TOKEN_CONTROL_SOCKET = 398,
- TOKEN_SOCKET_TYPE = 399,
- TOKEN_SOCKET_NAME = 400,
- TOKEN_DHCP_QUEUE_CONTROL = 401,
- TOKEN_ENABLE_QUEUE = 402,
- TOKEN_QUEUE_TYPE = 403,
- TOKEN_CAPACITY = 404,
- TOKEN_DHCP_DDNS = 405,
- TOKEN_ENABLE_UPDATES = 406,
- TOKEN_QUALIFYING_SUFFIX = 407,
- TOKEN_SERVER_IP = 408,
- TOKEN_SERVER_PORT = 409,
- TOKEN_SENDER_IP = 410,
- TOKEN_SENDER_PORT = 411,
- TOKEN_MAX_QUEUE_SIZE = 412,
- TOKEN_NCR_PROTOCOL = 413,
- TOKEN_NCR_FORMAT = 414,
- TOKEN_OVERRIDE_NO_UPDATE = 415,
- TOKEN_OVERRIDE_CLIENT_UPDATE = 416,
- TOKEN_REPLACE_CLIENT_NAME = 417,
- TOKEN_GENERATED_PREFIX = 418,
- TOKEN_TCP = 419,
- TOKEN_JSON = 420,
- TOKEN_WHEN_PRESENT = 421,
- TOKEN_NEVER = 422,
- TOKEN_ALWAYS = 423,
- TOKEN_WHEN_NOT_PRESENT = 424,
- TOKEN_HOSTNAME_CHAR_SET = 425,
- TOKEN_HOSTNAME_CHAR_REPLACEMENT = 426,
- TOKEN_EARLY_GLOBAL_RESERVATIONS_LOOKUP = 427,
- TOKEN_IP_RESERVATIONS_UNIQUE = 428,
- TOKEN_RESERVATIONS_LOOKUP_FIRST = 429,
- TOKEN_LOGGERS = 430,
- TOKEN_OUTPUT_OPTIONS = 431,
- TOKEN_OUTPUT = 432,
- TOKEN_DEBUGLEVEL = 433,
- TOKEN_SEVERITY = 434,
- TOKEN_FLUSH = 435,
- TOKEN_MAXSIZE = 436,
- TOKEN_MAXVER = 437,
- TOKEN_PATTERN = 438,
- TOKEN_COMPATIBILITY = 439,
- TOKEN_LENIENT_OPTION_PARSING = 440,
- TOKEN_TOPLEVEL_JSON = 441,
- TOKEN_TOPLEVEL_DHCP4 = 442,
- TOKEN_SUB_DHCP4 = 443,
- TOKEN_SUB_INTERFACES4 = 444,
- TOKEN_SUB_SUBNET4 = 445,
- TOKEN_SUB_POOL4 = 446,
- TOKEN_SUB_RESERVATION = 447,
- TOKEN_SUB_OPTION_DEFS = 448,
- TOKEN_SUB_OPTION_DEF = 449,
- TOKEN_SUB_OPTION_DATA = 450,
- TOKEN_SUB_HOOKS_LIBRARY = 451,
- TOKEN_SUB_DHCP_DDNS = 452,
- TOKEN_SUB_CONFIG_CONTROL = 453,
- TOKEN_STRING = 454,
- TOKEN_INTEGER = 455,
- TOKEN_FLOAT = 456,
- TOKEN_BOOLEAN = 457
+ TOKEN_PARSER4_EMPTY = -2,
+ TOKEN_END = 0, // "end of file"
+ TOKEN_PARSER4_error = 256, // error
+ TOKEN_PARSER4_UNDEF = 257, // "invalid token"
+ TOKEN_COMMA = 258, // ","
+ TOKEN_COLON = 259, // ":"
+ TOKEN_LSQUARE_BRACKET = 260, // "["
+ TOKEN_RSQUARE_BRACKET = 261, // "]"
+ TOKEN_LCURLY_BRACKET = 262, // "{"
+ TOKEN_RCURLY_BRACKET = 263, // "}"
+ TOKEN_NULL_TYPE = 264, // "null"
+ TOKEN_DHCP4 = 265, // "Dhcp4"
+ TOKEN_CONFIG_CONTROL = 266, // "config-control"
+ TOKEN_CONFIG_DATABASES = 267, // "config-databases"
+ TOKEN_CONFIG_FETCH_WAIT_TIME = 268, // "config-fetch-wait-time"
+ TOKEN_INTERFACES_CONFIG = 269, // "interfaces-config"
+ TOKEN_INTERFACES = 270, // "interfaces"
+ TOKEN_DHCP_SOCKET_TYPE = 271, // "dhcp-socket-type"
+ TOKEN_RAW = 272, // "raw"
+ TOKEN_UDP = 273, // "udp"
+ TOKEN_OUTBOUND_INTERFACE = 274, // "outbound-interface"
+ TOKEN_SAME_AS_INBOUND = 275, // "same-as-inbound"
+ TOKEN_USE_ROUTING = 276, // "use-routing"
+ TOKEN_RE_DETECT = 277, // "re-detect"
+ TOKEN_SANITY_CHECKS = 278, // "sanity-checks"
+ TOKEN_LEASE_CHECKS = 279, // "lease-checks"
+ TOKEN_ECHO_CLIENT_ID = 280, // "echo-client-id"
+ TOKEN_MATCH_CLIENT_ID = 281, // "match-client-id"
+ TOKEN_AUTHORITATIVE = 282, // "authoritative"
+ TOKEN_NEXT_SERVER = 283, // "next-server"
+ TOKEN_SERVER_HOSTNAME = 284, // "server-hostname"
+ TOKEN_BOOT_FILE_NAME = 285, // "boot-file-name"
+ TOKEN_LEASE_DATABASE = 286, // "lease-database"
+ TOKEN_HOSTS_DATABASE = 287, // "hosts-database"
+ TOKEN_HOSTS_DATABASES = 288, // "hosts-databases"
+ TOKEN_TYPE = 289, // "type"
+ TOKEN_MEMFILE = 290, // "memfile"
+ TOKEN_MYSQL = 291, // "mysql"
+ TOKEN_POSTGRESQL = 292, // "postgresql"
+ TOKEN_USER = 293, // "user"
+ TOKEN_PASSWORD = 294, // "password"
+ TOKEN_HOST = 295, // "host"
+ TOKEN_PORT = 296, // "port"
+ TOKEN_PERSIST = 297, // "persist"
+ TOKEN_LFC_INTERVAL = 298, // "lfc-interval"
+ TOKEN_READONLY = 299, // "readonly"
+ TOKEN_CONNECT_TIMEOUT = 300, // "connect-timeout"
+ TOKEN_MAX_RECONNECT_TRIES = 301, // "max-reconnect-tries"
+ TOKEN_RECONNECT_WAIT_TIME = 302, // "reconnect-wait-time"
+ TOKEN_ON_FAIL = 303, // "on-fail"
+ TOKEN_STOP_RETRY_EXIT = 304, // "stop-retry-exit"
+ TOKEN_SERVE_RETRY_EXIT = 305, // "serve-retry-exit"
+ TOKEN_SERVE_RETRY_CONTINUE = 306, // "serve-retry-continue"
+ TOKEN_MAX_ROW_ERRORS = 307, // "max-row-errors"
+ TOKEN_TRUST_ANCHOR = 308, // "trust-anchor"
+ TOKEN_CERT_FILE = 309, // "cert-file"
+ TOKEN_KEY_FILE = 310, // "key-file"
+ TOKEN_CIPHER_LIST = 311, // "cipher-list"
+ TOKEN_VALID_LIFETIME = 312, // "valid-lifetime"
+ TOKEN_MIN_VALID_LIFETIME = 313, // "min-valid-lifetime"
+ TOKEN_MAX_VALID_LIFETIME = 314, // "max-valid-lifetime"
+ TOKEN_RENEW_TIMER = 315, // "renew-timer"
+ TOKEN_REBIND_TIMER = 316, // "rebind-timer"
+ TOKEN_CALCULATE_TEE_TIMES = 317, // "calculate-tee-times"
+ TOKEN_T1_PERCENT = 318, // "t1-percent"
+ TOKEN_T2_PERCENT = 319, // "t2-percent"
+ TOKEN_CACHE_THRESHOLD = 320, // "cache-threshold"
+ TOKEN_CACHE_MAX_AGE = 321, // "cache-max-age"
+ TOKEN_DECLINE_PROBATION_PERIOD = 322, // "decline-probation-period"
+ TOKEN_SERVER_TAG = 323, // "server-tag"
+ TOKEN_STATISTIC_DEFAULT_SAMPLE_COUNT = 324, // "statistic-default-sample-count"
+ TOKEN_STATISTIC_DEFAULT_SAMPLE_AGE = 325, // "statistic-default-sample-age"
+ TOKEN_DDNS_SEND_UPDATES = 326, // "ddns-send-updates"
+ TOKEN_DDNS_OVERRIDE_NO_UPDATE = 327, // "ddns-override-no-update"
+ TOKEN_DDNS_OVERRIDE_CLIENT_UPDATE = 328, // "ddns-override-client-update"
+ TOKEN_DDNS_REPLACE_CLIENT_NAME = 329, // "ddns-replace-client-name"
+ TOKEN_DDNS_GENERATED_PREFIX = 330, // "ddns-generated-prefix"
+ TOKEN_DDNS_QUALIFYING_SUFFIX = 331, // "ddns-qualifying-suffix"
+ TOKEN_DDNS_UPDATE_ON_RENEW = 332, // "ddns-update-on-renew"
+ TOKEN_DDNS_USE_CONFLICT_RESOLUTION = 333, // "ddns-use-conflict-resolution"
+ TOKEN_STORE_EXTENDED_INFO = 334, // "store-extended-info"
+ TOKEN_SUBNET4 = 335, // "subnet4"
+ TOKEN_SUBNET_4O6_INTERFACE = 336, // "4o6-interface"
+ TOKEN_SUBNET_4O6_INTERFACE_ID = 337, // "4o6-interface-id"
+ TOKEN_SUBNET_4O6_SUBNET = 338, // "4o6-subnet"
+ TOKEN_OPTION_DEF = 339, // "option-def"
+ TOKEN_OPTION_DATA = 340, // "option-data"
+ TOKEN_NAME = 341, // "name"
+ TOKEN_DATA = 342, // "data"
+ TOKEN_CODE = 343, // "code"
+ TOKEN_SPACE = 344, // "space"
+ TOKEN_CSV_FORMAT = 345, // "csv-format"
+ TOKEN_ALWAYS_SEND = 346, // "always-send"
+ TOKEN_RECORD_TYPES = 347, // "record-types"
+ TOKEN_ENCAPSULATE = 348, // "encapsulate"
+ TOKEN_ARRAY = 349, // "array"
+ TOKEN_PARKED_PACKET_LIMIT = 350, // "parked-packet-limit"
+ TOKEN_SHARED_NETWORKS = 351, // "shared-networks"
+ TOKEN_POOLS = 352, // "pools"
+ TOKEN_POOL = 353, // "pool"
+ TOKEN_USER_CONTEXT = 354, // "user-context"
+ TOKEN_COMMENT = 355, // "comment"
+ TOKEN_SUBNET = 356, // "subnet"
+ TOKEN_INTERFACE = 357, // "interface"
+ TOKEN_ID = 358, // "id"
+ TOKEN_RESERVATION_MODE = 359, // "reservation-mode"
+ TOKEN_DISABLED = 360, // "disabled"
+ TOKEN_OUT_OF_POOL = 361, // "out-of-pool"
+ TOKEN_GLOBAL = 362, // "global"
+ TOKEN_ALL = 363, // "all"
+ TOKEN_RESERVATIONS_GLOBAL = 364, // "reservations-global"
+ TOKEN_RESERVATIONS_IN_SUBNET = 365, // "reservations-in-subnet"
+ TOKEN_RESERVATIONS_OUT_OF_POOL = 366, // "reservations-out-of-pool"
+ TOKEN_HOST_RESERVATION_IDENTIFIERS = 367, // "host-reservation-identifiers"
+ TOKEN_CLIENT_CLASSES = 368, // "client-classes"
+ TOKEN_REQUIRE_CLIENT_CLASSES = 369, // "require-client-classes"
+ TOKEN_TEST = 370, // "test"
+ TOKEN_ONLY_IF_REQUIRED = 371, // "only-if-required"
+ TOKEN_CLIENT_CLASS = 372, // "client-class"
+ TOKEN_RESERVATIONS = 373, // "reservations"
+ TOKEN_DUID = 374, // "duid"
+ TOKEN_HW_ADDRESS = 375, // "hw-address"
+ TOKEN_CIRCUIT_ID = 376, // "circuit-id"
+ TOKEN_CLIENT_ID = 377, // "client-id"
+ TOKEN_HOSTNAME = 378, // "hostname"
+ TOKEN_FLEX_ID = 379, // "flex-id"
+ TOKEN_RELAY = 380, // "relay"
+ TOKEN_IP_ADDRESS = 381, // "ip-address"
+ TOKEN_IP_ADDRESSES = 382, // "ip-addresses"
+ TOKEN_HOOKS_LIBRARIES = 383, // "hooks-libraries"
+ TOKEN_LIBRARY = 384, // "library"
+ TOKEN_PARAMETERS = 385, // "parameters"
+ TOKEN_EXPIRED_LEASES_PROCESSING = 386, // "expired-leases-processing"
+ TOKEN_RECLAIM_TIMER_WAIT_TIME = 387, // "reclaim-timer-wait-time"
+ TOKEN_FLUSH_RECLAIMED_TIMER_WAIT_TIME = 388, // "flush-reclaimed-timer-wait-time"
+ TOKEN_HOLD_RECLAIMED_TIME = 389, // "hold-reclaimed-time"
+ TOKEN_MAX_RECLAIM_LEASES = 390, // "max-reclaim-leases"
+ TOKEN_MAX_RECLAIM_TIME = 391, // "max-reclaim-time"
+ TOKEN_UNWARNED_RECLAIM_CYCLES = 392, // "unwarned-reclaim-cycles"
+ TOKEN_DHCP4O6_PORT = 393, // "dhcp4o6-port"
+ TOKEN_DHCP_MULTI_THREADING = 394, // "multi-threading"
+ TOKEN_ENABLE_MULTI_THREADING = 395, // "enable-multi-threading"
+ TOKEN_THREAD_POOL_SIZE = 396, // "thread-pool-size"
+ TOKEN_PACKET_QUEUE_SIZE = 397, // "packet-queue-size"
+ TOKEN_CONTROL_SOCKET = 398, // "control-socket"
+ TOKEN_SOCKET_TYPE = 399, // "socket-type"
+ TOKEN_SOCKET_NAME = 400, // "socket-name"
+ TOKEN_DHCP_QUEUE_CONTROL = 401, // "dhcp-queue-control"
+ TOKEN_ENABLE_QUEUE = 402, // "enable-queue"
+ TOKEN_QUEUE_TYPE = 403, // "queue-type"
+ TOKEN_CAPACITY = 404, // "capacity"
+ TOKEN_DHCP_DDNS = 405, // "dhcp-ddns"
+ TOKEN_ENABLE_UPDATES = 406, // "enable-updates"
+ TOKEN_QUALIFYING_SUFFIX = 407, // "qualifying-suffix"
+ TOKEN_SERVER_IP = 408, // "server-ip"
+ TOKEN_SERVER_PORT = 409, // "server-port"
+ TOKEN_SENDER_IP = 410, // "sender-ip"
+ TOKEN_SENDER_PORT = 411, // "sender-port"
+ TOKEN_MAX_QUEUE_SIZE = 412, // "max-queue-size"
+ TOKEN_NCR_PROTOCOL = 413, // "ncr-protocol"
+ TOKEN_NCR_FORMAT = 414, // "ncr-format"
+ TOKEN_OVERRIDE_NO_UPDATE = 415, // "override-no-update"
+ TOKEN_OVERRIDE_CLIENT_UPDATE = 416, // "override-client-update"
+ TOKEN_REPLACE_CLIENT_NAME = 417, // "replace-client-name"
+ TOKEN_GENERATED_PREFIX = 418, // "generated-prefix"
+ TOKEN_TCP = 419, // "tcp"
+ TOKEN_JSON = 420, // "JSON"
+ TOKEN_WHEN_PRESENT = 421, // "when-present"
+ TOKEN_NEVER = 422, // "never"
+ TOKEN_ALWAYS = 423, // "always"
+ TOKEN_WHEN_NOT_PRESENT = 424, // "when-not-present"
+ TOKEN_HOSTNAME_CHAR_SET = 425, // "hostname-char-set"
+ TOKEN_HOSTNAME_CHAR_REPLACEMENT = 426, // "hostname-char-replacement"
+ TOKEN_EARLY_GLOBAL_RESERVATIONS_LOOKUP = 427, // "early-global-reservations-lookup"
+ TOKEN_IP_RESERVATIONS_UNIQUE = 428, // "ip-reservations-unique"
+ TOKEN_RESERVATIONS_LOOKUP_FIRST = 429, // "reservations-lookup-first"
+ TOKEN_LOGGERS = 430, // "loggers"
+ TOKEN_OUTPUT_OPTIONS = 431, // "output_options"
+ TOKEN_OUTPUT = 432, // "output"
+ TOKEN_DEBUGLEVEL = 433, // "debuglevel"
+ TOKEN_SEVERITY = 434, // "severity"
+ TOKEN_FLUSH = 435, // "flush"
+ TOKEN_MAXSIZE = 436, // "maxsize"
+ TOKEN_MAXVER = 437, // "maxver"
+ TOKEN_PATTERN = 438, // "pattern"
+ TOKEN_COMPATIBILITY = 439, // "compatibility"
+ TOKEN_LENIENT_OPTION_PARSING = 440, // "lenient-option-parsing"
+ TOKEN_TOPLEVEL_JSON = 441, // TOPLEVEL_JSON
+ TOKEN_TOPLEVEL_DHCP4 = 442, // TOPLEVEL_DHCP4
+ TOKEN_SUB_DHCP4 = 443, // SUB_DHCP4
+ TOKEN_SUB_INTERFACES4 = 444, // SUB_INTERFACES4
+ TOKEN_SUB_SUBNET4 = 445, // SUB_SUBNET4
+ TOKEN_SUB_POOL4 = 446, // SUB_POOL4
+ TOKEN_SUB_RESERVATION = 447, // SUB_RESERVATION
+ TOKEN_SUB_OPTION_DEFS = 448, // SUB_OPTION_DEFS
+ TOKEN_SUB_OPTION_DEF = 449, // SUB_OPTION_DEF
+ TOKEN_SUB_OPTION_DATA = 450, // SUB_OPTION_DATA
+ TOKEN_SUB_HOOKS_LIBRARY = 451, // SUB_HOOKS_LIBRARY
+ TOKEN_SUB_DHCP_DDNS = 452, // SUB_DHCP_DDNS
+ TOKEN_SUB_CONFIG_CONTROL = 453, // SUB_CONFIG_CONTROL
+ TOKEN_STRING = 454, // "constant string"
+ TOKEN_INTEGER = 455, // "integer"
+ TOKEN_FLOAT = 456, // "floating point"
+ TOKEN_BOOLEAN = 457 // "boolean"
+ };
+ /// Backward compatibility alias (Bison 3.6).
+ typedef token_kind_type yytokentype;
+ };
+
+ /// Token kind, as returned by yylex.
+ typedef token::token_kind_type token_kind_type;
+
+ /// Backward compatibility alias (Bison 3.6).
+ typedef token_kind_type token_type;
+
+ /// Symbol kinds.
+ struct symbol_kind
+ {
+ enum symbol_kind_type
+ {
+ YYNTOKENS = 203, ///< Number of tokens.
+ S_YYEMPTY = -2,
+ S_YYEOF = 0, // "end of file"
+ S_YYerror = 1, // error
+ S_YYUNDEF = 2, // "invalid token"
+ S_COMMA = 3, // ","
+ S_COLON = 4, // ":"
+ S_LSQUARE_BRACKET = 5, // "["
+ S_RSQUARE_BRACKET = 6, // "]"
+ S_LCURLY_BRACKET = 7, // "{"
+ S_RCURLY_BRACKET = 8, // "}"
+ S_NULL_TYPE = 9, // "null"
+ S_DHCP4 = 10, // "Dhcp4"
+ S_CONFIG_CONTROL = 11, // "config-control"
+ S_CONFIG_DATABASES = 12, // "config-databases"
+ S_CONFIG_FETCH_WAIT_TIME = 13, // "config-fetch-wait-time"
+ S_INTERFACES_CONFIG = 14, // "interfaces-config"
+ S_INTERFACES = 15, // "interfaces"
+ S_DHCP_SOCKET_TYPE = 16, // "dhcp-socket-type"
+ S_RAW = 17, // "raw"
+ S_UDP = 18, // "udp"
+ S_OUTBOUND_INTERFACE = 19, // "outbound-interface"
+ S_SAME_AS_INBOUND = 20, // "same-as-inbound"
+ S_USE_ROUTING = 21, // "use-routing"
+ S_RE_DETECT = 22, // "re-detect"
+ S_SANITY_CHECKS = 23, // "sanity-checks"
+ S_LEASE_CHECKS = 24, // "lease-checks"
+ S_ECHO_CLIENT_ID = 25, // "echo-client-id"
+ S_MATCH_CLIENT_ID = 26, // "match-client-id"
+ S_AUTHORITATIVE = 27, // "authoritative"
+ S_NEXT_SERVER = 28, // "next-server"
+ S_SERVER_HOSTNAME = 29, // "server-hostname"
+ S_BOOT_FILE_NAME = 30, // "boot-file-name"
+ S_LEASE_DATABASE = 31, // "lease-database"
+ S_HOSTS_DATABASE = 32, // "hosts-database"
+ S_HOSTS_DATABASES = 33, // "hosts-databases"
+ S_TYPE = 34, // "type"
+ S_MEMFILE = 35, // "memfile"
+ S_MYSQL = 36, // "mysql"
+ S_POSTGRESQL = 37, // "postgresql"
+ S_USER = 38, // "user"
+ S_PASSWORD = 39, // "password"
+ S_HOST = 40, // "host"
+ S_PORT = 41, // "port"
+ S_PERSIST = 42, // "persist"
+ S_LFC_INTERVAL = 43, // "lfc-interval"
+ S_READONLY = 44, // "readonly"
+ S_CONNECT_TIMEOUT = 45, // "connect-timeout"
+ S_MAX_RECONNECT_TRIES = 46, // "max-reconnect-tries"
+ S_RECONNECT_WAIT_TIME = 47, // "reconnect-wait-time"
+ S_ON_FAIL = 48, // "on-fail"
+ S_STOP_RETRY_EXIT = 49, // "stop-retry-exit"
+ S_SERVE_RETRY_EXIT = 50, // "serve-retry-exit"
+ S_SERVE_RETRY_CONTINUE = 51, // "serve-retry-continue"
+ S_MAX_ROW_ERRORS = 52, // "max-row-errors"
+ S_TRUST_ANCHOR = 53, // "trust-anchor"
+ S_CERT_FILE = 54, // "cert-file"
+ S_KEY_FILE = 55, // "key-file"
+ S_CIPHER_LIST = 56, // "cipher-list"
+ S_VALID_LIFETIME = 57, // "valid-lifetime"
+ S_MIN_VALID_LIFETIME = 58, // "min-valid-lifetime"
+ S_MAX_VALID_LIFETIME = 59, // "max-valid-lifetime"
+ S_RENEW_TIMER = 60, // "renew-timer"
+ S_REBIND_TIMER = 61, // "rebind-timer"
+ S_CALCULATE_TEE_TIMES = 62, // "calculate-tee-times"
+ S_T1_PERCENT = 63, // "t1-percent"
+ S_T2_PERCENT = 64, // "t2-percent"
+ S_CACHE_THRESHOLD = 65, // "cache-threshold"
+ S_CACHE_MAX_AGE = 66, // "cache-max-age"
+ S_DECLINE_PROBATION_PERIOD = 67, // "decline-probation-period"
+ S_SERVER_TAG = 68, // "server-tag"
+ S_STATISTIC_DEFAULT_SAMPLE_COUNT = 69, // "statistic-default-sample-count"
+ S_STATISTIC_DEFAULT_SAMPLE_AGE = 70, // "statistic-default-sample-age"
+ S_DDNS_SEND_UPDATES = 71, // "ddns-send-updates"
+ S_DDNS_OVERRIDE_NO_UPDATE = 72, // "ddns-override-no-update"
+ S_DDNS_OVERRIDE_CLIENT_UPDATE = 73, // "ddns-override-client-update"
+ S_DDNS_REPLACE_CLIENT_NAME = 74, // "ddns-replace-client-name"
+ S_DDNS_GENERATED_PREFIX = 75, // "ddns-generated-prefix"
+ S_DDNS_QUALIFYING_SUFFIX = 76, // "ddns-qualifying-suffix"
+ S_DDNS_UPDATE_ON_RENEW = 77, // "ddns-update-on-renew"
+ S_DDNS_USE_CONFLICT_RESOLUTION = 78, // "ddns-use-conflict-resolution"
+ S_STORE_EXTENDED_INFO = 79, // "store-extended-info"
+ S_SUBNET4 = 80, // "subnet4"
+ S_SUBNET_4O6_INTERFACE = 81, // "4o6-interface"
+ S_SUBNET_4O6_INTERFACE_ID = 82, // "4o6-interface-id"
+ S_SUBNET_4O6_SUBNET = 83, // "4o6-subnet"
+ S_OPTION_DEF = 84, // "option-def"
+ S_OPTION_DATA = 85, // "option-data"
+ S_NAME = 86, // "name"
+ S_DATA = 87, // "data"
+ S_CODE = 88, // "code"
+ S_SPACE = 89, // "space"
+ S_CSV_FORMAT = 90, // "csv-format"
+ S_ALWAYS_SEND = 91, // "always-send"
+ S_RECORD_TYPES = 92, // "record-types"
+ S_ENCAPSULATE = 93, // "encapsulate"
+ S_ARRAY = 94, // "array"
+ S_PARKED_PACKET_LIMIT = 95, // "parked-packet-limit"
+ S_SHARED_NETWORKS = 96, // "shared-networks"
+ S_POOLS = 97, // "pools"
+ S_POOL = 98, // "pool"
+ S_USER_CONTEXT = 99, // "user-context"
+ S_COMMENT = 100, // "comment"
+ S_SUBNET = 101, // "subnet"
+ S_INTERFACE = 102, // "interface"
+ S_ID = 103, // "id"
+ S_RESERVATION_MODE = 104, // "reservation-mode"
+ S_DISABLED = 105, // "disabled"
+ S_OUT_OF_POOL = 106, // "out-of-pool"
+ S_GLOBAL = 107, // "global"
+ S_ALL = 108, // "all"
+ S_RESERVATIONS_GLOBAL = 109, // "reservations-global"
+ S_RESERVATIONS_IN_SUBNET = 110, // "reservations-in-subnet"
+ S_RESERVATIONS_OUT_OF_POOL = 111, // "reservations-out-of-pool"
+ S_HOST_RESERVATION_IDENTIFIERS = 112, // "host-reservation-identifiers"
+ S_CLIENT_CLASSES = 113, // "client-classes"
+ S_REQUIRE_CLIENT_CLASSES = 114, // "require-client-classes"
+ S_TEST = 115, // "test"
+ S_ONLY_IF_REQUIRED = 116, // "only-if-required"
+ S_CLIENT_CLASS = 117, // "client-class"
+ S_RESERVATIONS = 118, // "reservations"
+ S_DUID = 119, // "duid"
+ S_HW_ADDRESS = 120, // "hw-address"
+ S_CIRCUIT_ID = 121, // "circuit-id"
+ S_CLIENT_ID = 122, // "client-id"
+ S_HOSTNAME = 123, // "hostname"
+ S_FLEX_ID = 124, // "flex-id"
+ S_RELAY = 125, // "relay"
+ S_IP_ADDRESS = 126, // "ip-address"
+ S_IP_ADDRESSES = 127, // "ip-addresses"
+ S_HOOKS_LIBRARIES = 128, // "hooks-libraries"
+ S_LIBRARY = 129, // "library"
+ S_PARAMETERS = 130, // "parameters"
+ S_EXPIRED_LEASES_PROCESSING = 131, // "expired-leases-processing"
+ S_RECLAIM_TIMER_WAIT_TIME = 132, // "reclaim-timer-wait-time"
+ S_FLUSH_RECLAIMED_TIMER_WAIT_TIME = 133, // "flush-reclaimed-timer-wait-time"
+ S_HOLD_RECLAIMED_TIME = 134, // "hold-reclaimed-time"
+ S_MAX_RECLAIM_LEASES = 135, // "max-reclaim-leases"
+ S_MAX_RECLAIM_TIME = 136, // "max-reclaim-time"
+ S_UNWARNED_RECLAIM_CYCLES = 137, // "unwarned-reclaim-cycles"
+ S_DHCP4O6_PORT = 138, // "dhcp4o6-port"
+ S_DHCP_MULTI_THREADING = 139, // "multi-threading"
+ S_ENABLE_MULTI_THREADING = 140, // "enable-multi-threading"
+ S_THREAD_POOL_SIZE = 141, // "thread-pool-size"
+ S_PACKET_QUEUE_SIZE = 142, // "packet-queue-size"
+ S_CONTROL_SOCKET = 143, // "control-socket"
+ S_SOCKET_TYPE = 144, // "socket-type"
+ S_SOCKET_NAME = 145, // "socket-name"
+ S_DHCP_QUEUE_CONTROL = 146, // "dhcp-queue-control"
+ S_ENABLE_QUEUE = 147, // "enable-queue"
+ S_QUEUE_TYPE = 148, // "queue-type"
+ S_CAPACITY = 149, // "capacity"
+ S_DHCP_DDNS = 150, // "dhcp-ddns"
+ S_ENABLE_UPDATES = 151, // "enable-updates"
+ S_QUALIFYING_SUFFIX = 152, // "qualifying-suffix"
+ S_SERVER_IP = 153, // "server-ip"
+ S_SERVER_PORT = 154, // "server-port"
+ S_SENDER_IP = 155, // "sender-ip"
+ S_SENDER_PORT = 156, // "sender-port"
+ S_MAX_QUEUE_SIZE = 157, // "max-queue-size"
+ S_NCR_PROTOCOL = 158, // "ncr-protocol"
+ S_NCR_FORMAT = 159, // "ncr-format"
+ S_OVERRIDE_NO_UPDATE = 160, // "override-no-update"
+ S_OVERRIDE_CLIENT_UPDATE = 161, // "override-client-update"
+ S_REPLACE_CLIENT_NAME = 162, // "replace-client-name"
+ S_GENERATED_PREFIX = 163, // "generated-prefix"
+ S_TCP = 164, // "tcp"
+ S_JSON = 165, // "JSON"
+ S_WHEN_PRESENT = 166, // "when-present"
+ S_NEVER = 167, // "never"
+ S_ALWAYS = 168, // "always"
+ S_WHEN_NOT_PRESENT = 169, // "when-not-present"
+ S_HOSTNAME_CHAR_SET = 170, // "hostname-char-set"
+ S_HOSTNAME_CHAR_REPLACEMENT = 171, // "hostname-char-replacement"
+ S_EARLY_GLOBAL_RESERVATIONS_LOOKUP = 172, // "early-global-reservations-lookup"
+ S_IP_RESERVATIONS_UNIQUE = 173, // "ip-reservations-unique"
+ S_RESERVATIONS_LOOKUP_FIRST = 174, // "reservations-lookup-first"
+ S_LOGGERS = 175, // "loggers"
+ S_OUTPUT_OPTIONS = 176, // "output_options"
+ S_OUTPUT = 177, // "output"
+ S_DEBUGLEVEL = 178, // "debuglevel"
+ S_SEVERITY = 179, // "severity"
+ S_FLUSH = 180, // "flush"
+ S_MAXSIZE = 181, // "maxsize"
+ S_MAXVER = 182, // "maxver"
+ S_PATTERN = 183, // "pattern"
+ S_COMPATIBILITY = 184, // "compatibility"
+ S_LENIENT_OPTION_PARSING = 185, // "lenient-option-parsing"
+ S_TOPLEVEL_JSON = 186, // TOPLEVEL_JSON
+ S_TOPLEVEL_DHCP4 = 187, // TOPLEVEL_DHCP4
+ S_SUB_DHCP4 = 188, // SUB_DHCP4
+ S_SUB_INTERFACES4 = 189, // SUB_INTERFACES4
+ S_SUB_SUBNET4 = 190, // SUB_SUBNET4
+ S_SUB_POOL4 = 191, // SUB_POOL4
+ S_SUB_RESERVATION = 192, // SUB_RESERVATION
+ S_SUB_OPTION_DEFS = 193, // SUB_OPTION_DEFS
+ S_SUB_OPTION_DEF = 194, // SUB_OPTION_DEF
+ S_SUB_OPTION_DATA = 195, // SUB_OPTION_DATA
+ S_SUB_HOOKS_LIBRARY = 196, // SUB_HOOKS_LIBRARY
+ S_SUB_DHCP_DDNS = 197, // SUB_DHCP_DDNS
+ S_SUB_CONFIG_CONTROL = 198, // SUB_CONFIG_CONTROL
+ S_STRING = 199, // "constant string"
+ S_INTEGER = 200, // "integer"
+ S_FLOAT = 201, // "floating point"
+ S_BOOLEAN = 202, // "boolean"
+ S_YYACCEPT = 203, // $accept
+ S_start = 204, // start
+ S_205_1 = 205, // $@1
+ S_206_2 = 206, // $@2
+ S_207_3 = 207, // $@3
+ S_208_4 = 208, // $@4
+ S_209_5 = 209, // $@5
+ S_210_6 = 210, // $@6
+ S_211_7 = 211, // $@7
+ S_212_8 = 212, // $@8
+ S_213_9 = 213, // $@9
+ S_214_10 = 214, // $@10
+ S_215_11 = 215, // $@11
+ S_216_12 = 216, // $@12
+ S_217_13 = 217, // $@13
+ S_value = 218, // value
+ S_sub_json = 219, // sub_json
+ S_map2 = 220, // map2
+ S_221_14 = 221, // $@14
+ S_map_value = 222, // map_value
+ S_map_content = 223, // map_content
+ S_not_empty_map = 224, // not_empty_map
+ S_list_generic = 225, // list_generic
+ S_226_15 = 226, // $@15
+ S_list_content = 227, // list_content
+ S_not_empty_list = 228, // not_empty_list
+ S_list_strings = 229, // list_strings
+ S_230_16 = 230, // $@16
+ S_list_strings_content = 231, // list_strings_content
+ S_not_empty_list_strings = 232, // not_empty_list_strings
+ S_unknown_map_entry = 233, // unknown_map_entry
+ S_syntax_map = 234, // syntax_map
+ S_235_17 = 235, // $@17
+ S_global_object = 236, // global_object
+ S_237_18 = 237, // $@18
+ S_global_object_comma = 238, // global_object_comma
+ S_sub_dhcp4 = 239, // sub_dhcp4
+ S_240_19 = 240, // $@19
+ S_global_params = 241, // global_params
+ S_global_param = 242, // global_param
+ S_valid_lifetime = 243, // valid_lifetime
+ S_min_valid_lifetime = 244, // min_valid_lifetime
+ S_max_valid_lifetime = 245, // max_valid_lifetime
+ S_renew_timer = 246, // renew_timer
+ S_rebind_timer = 247, // rebind_timer
+ S_calculate_tee_times = 248, // calculate_tee_times
+ S_t1_percent = 249, // t1_percent
+ S_t2_percent = 250, // t2_percent
+ S_cache_threshold = 251, // cache_threshold
+ S_cache_max_age = 252, // cache_max_age
+ S_decline_probation_period = 253, // decline_probation_period
+ S_server_tag = 254, // server_tag
+ S_255_20 = 255, // $@20
+ S_parked_packet_limit = 256, // parked_packet_limit
+ S_echo_client_id = 257, // echo_client_id
+ S_match_client_id = 258, // match_client_id
+ S_authoritative = 259, // authoritative
+ S_ddns_send_updates = 260, // ddns_send_updates
+ S_ddns_override_no_update = 261, // ddns_override_no_update
+ S_ddns_override_client_update = 262, // ddns_override_client_update
+ S_ddns_replace_client_name = 263, // ddns_replace_client_name
+ S_264_21 = 264, // $@21
+ S_ddns_replace_client_name_value = 265, // ddns_replace_client_name_value
+ S_ddns_generated_prefix = 266, // ddns_generated_prefix
+ S_267_22 = 267, // $@22
+ S_ddns_qualifying_suffix = 268, // ddns_qualifying_suffix
+ S_269_23 = 269, // $@23
+ S_ddns_update_on_renew = 270, // ddns_update_on_renew
+ S_ddns_use_conflict_resolution = 271, // ddns_use_conflict_resolution
+ S_hostname_char_set = 272, // hostname_char_set
+ S_273_24 = 273, // $@24
+ S_hostname_char_replacement = 274, // hostname_char_replacement
+ S_275_25 = 275, // $@25
+ S_store_extended_info = 276, // store_extended_info
+ S_statistic_default_sample_count = 277, // statistic_default_sample_count
+ S_statistic_default_sample_age = 278, // statistic_default_sample_age
+ S_early_global_reservations_lookup = 279, // early_global_reservations_lookup
+ S_ip_reservations_unique = 280, // ip_reservations_unique
+ S_reservations_lookup_first = 281, // reservations_lookup_first
+ S_interfaces_config = 282, // interfaces_config
+ S_283_26 = 283, // $@26
+ S_interfaces_config_params = 284, // interfaces_config_params
+ S_interfaces_config_param = 285, // interfaces_config_param
+ S_sub_interfaces4 = 286, // sub_interfaces4
+ S_287_27 = 287, // $@27
+ S_interfaces_list = 288, // interfaces_list
+ S_289_28 = 289, // $@28
+ S_dhcp_socket_type = 290, // dhcp_socket_type
+ S_291_29 = 291, // $@29
+ S_socket_type = 292, // socket_type
+ S_outbound_interface = 293, // outbound_interface
+ S_294_30 = 294, // $@30
+ S_outbound_interface_value = 295, // outbound_interface_value
+ S_re_detect = 296, // re_detect
+ S_lease_database = 297, // lease_database
+ S_298_31 = 298, // $@31
+ S_sanity_checks = 299, // sanity_checks
+ S_300_32 = 300, // $@32
+ S_sanity_checks_params = 301, // sanity_checks_params
+ S_sanity_checks_param = 302, // sanity_checks_param
+ S_lease_checks = 303, // lease_checks
+ S_304_33 = 304, // $@33
+ S_hosts_database = 305, // hosts_database
+ S_306_34 = 306, // $@34
+ S_hosts_databases = 307, // hosts_databases
+ S_308_35 = 308, // $@35
+ S_database_list = 309, // database_list
+ S_not_empty_database_list = 310, // not_empty_database_list
+ S_database = 311, // database
+ S_312_36 = 312, // $@36
+ S_database_map_params = 313, // database_map_params
+ S_database_map_param = 314, // database_map_param
+ S_database_type = 315, // database_type
+ S_316_37 = 316, // $@37
+ S_db_type = 317, // db_type
+ S_user = 318, // user
+ S_319_38 = 319, // $@38
+ S_password = 320, // password
+ S_321_39 = 321, // $@39
+ S_host = 322, // host
+ S_323_40 = 323, // $@40
+ S_port = 324, // port
+ S_name = 325, // name
+ S_326_41 = 326, // $@41
+ S_persist = 327, // persist
+ S_lfc_interval = 328, // lfc_interval
+ S_readonly = 329, // readonly
+ S_connect_timeout = 330, // connect_timeout
+ S_max_reconnect_tries = 331, // max_reconnect_tries
+ S_reconnect_wait_time = 332, // reconnect_wait_time
+ S_on_fail = 333, // on_fail
+ S_334_42 = 334, // $@42
+ S_on_fail_mode = 335, // on_fail_mode
+ S_max_row_errors = 336, // max_row_errors
+ S_trust_anchor = 337, // trust_anchor
+ S_338_43 = 338, // $@43
+ S_cert_file = 339, // cert_file
+ S_340_44 = 340, // $@44
+ S_key_file = 341, // key_file
+ S_342_45 = 342, // $@45
+ S_cipher_list = 343, // cipher_list
+ S_344_46 = 344, // $@46
+ S_host_reservation_identifiers = 345, // host_reservation_identifiers
+ S_346_47 = 346, // $@47
+ S_host_reservation_identifiers_list = 347, // host_reservation_identifiers_list
+ S_host_reservation_identifier = 348, // host_reservation_identifier
+ S_duid_id = 349, // duid_id
+ S_hw_address_id = 350, // hw_address_id
+ S_circuit_id = 351, // circuit_id
+ S_client_id = 352, // client_id
+ S_flex_id = 353, // flex_id
+ S_dhcp_multi_threading = 354, // dhcp_multi_threading
+ S_355_48 = 355, // $@48
+ S_multi_threading_params = 356, // multi_threading_params
+ S_multi_threading_param = 357, // multi_threading_param
+ S_enable_multi_threading = 358, // enable_multi_threading
+ S_thread_pool_size = 359, // thread_pool_size
+ S_packet_queue_size = 360, // packet_queue_size
+ S_hooks_libraries = 361, // hooks_libraries
+ S_362_49 = 362, // $@49
+ S_hooks_libraries_list = 363, // hooks_libraries_list
+ S_not_empty_hooks_libraries_list = 364, // not_empty_hooks_libraries_list
+ S_hooks_library = 365, // hooks_library
+ S_366_50 = 366, // $@50
+ S_sub_hooks_library = 367, // sub_hooks_library
+ S_368_51 = 368, // $@51
+ S_hooks_params = 369, // hooks_params
+ S_hooks_param = 370, // hooks_param
+ S_library = 371, // library
+ S_372_52 = 372, // $@52
+ S_parameters = 373, // parameters
+ S_374_53 = 374, // $@53
+ S_expired_leases_processing = 375, // expired_leases_processing
+ S_376_54 = 376, // $@54
+ S_expired_leases_params = 377, // expired_leases_params
+ S_expired_leases_param = 378, // expired_leases_param
+ S_reclaim_timer_wait_time = 379, // reclaim_timer_wait_time
+ S_flush_reclaimed_timer_wait_time = 380, // flush_reclaimed_timer_wait_time
+ S_hold_reclaimed_time = 381, // hold_reclaimed_time
+ S_max_reclaim_leases = 382, // max_reclaim_leases
+ S_max_reclaim_time = 383, // max_reclaim_time
+ S_unwarned_reclaim_cycles = 384, // unwarned_reclaim_cycles
+ S_subnet4_list = 385, // subnet4_list
+ S_386_55 = 386, // $@55
+ S_subnet4_list_content = 387, // subnet4_list_content
+ S_not_empty_subnet4_list = 388, // not_empty_subnet4_list
+ S_subnet4 = 389, // subnet4
+ S_390_56 = 390, // $@56
+ S_sub_subnet4 = 391, // sub_subnet4
+ S_392_57 = 392, // $@57
+ S_subnet4_params = 393, // subnet4_params
+ S_subnet4_param = 394, // subnet4_param
+ S_subnet = 395, // subnet
+ S_396_58 = 396, // $@58
+ S_subnet_4o6_interface = 397, // subnet_4o6_interface
+ S_398_59 = 398, // $@59
+ S_subnet_4o6_interface_id = 399, // subnet_4o6_interface_id
+ S_400_60 = 400, // $@60
+ S_subnet_4o6_subnet = 401, // subnet_4o6_subnet
+ S_402_61 = 402, // $@61
+ S_interface = 403, // interface
+ S_404_62 = 404, // $@62
+ S_client_class = 405, // client_class
+ S_406_63 = 406, // $@63
+ S_require_client_classes = 407, // require_client_classes
+ S_408_64 = 408, // $@64
+ S_reservations_global = 409, // reservations_global
+ S_reservations_in_subnet = 410, // reservations_in_subnet
+ S_reservations_out_of_pool = 411, // reservations_out_of_pool
+ S_reservation_mode = 412, // reservation_mode
+ S_413_65 = 413, // $@65
+ S_hr_mode = 414, // hr_mode
+ S_id = 415, // id
+ S_shared_networks = 416, // shared_networks
+ S_417_66 = 417, // $@66
+ S_shared_networks_content = 418, // shared_networks_content
+ S_shared_networks_list = 419, // shared_networks_list
+ S_shared_network = 420, // shared_network
+ S_421_67 = 421, // $@67
+ S_shared_network_params = 422, // shared_network_params
+ S_shared_network_param = 423, // shared_network_param
+ S_option_def_list = 424, // option_def_list
+ S_425_68 = 425, // $@68
+ S_sub_option_def_list = 426, // sub_option_def_list
+ S_427_69 = 427, // $@69
+ S_option_def_list_content = 428, // option_def_list_content
+ S_not_empty_option_def_list = 429, // not_empty_option_def_list
+ S_option_def_entry = 430, // option_def_entry
+ S_431_70 = 431, // $@70
+ S_sub_option_def = 432, // sub_option_def
+ S_433_71 = 433, // $@71
+ S_option_def_params = 434, // option_def_params
+ S_not_empty_option_def_params = 435, // not_empty_option_def_params
+ S_option_def_param = 436, // option_def_param
+ S_option_def_name = 437, // option_def_name
+ S_code = 438, // code
+ S_option_def_code = 439, // option_def_code
+ S_option_def_type = 440, // option_def_type
+ S_441_72 = 441, // $@72
+ S_option_def_record_types = 442, // option_def_record_types
+ S_443_73 = 443, // $@73
+ S_space = 444, // space
+ S_445_74 = 445, // $@74
+ S_option_def_space = 446, // option_def_space
+ S_option_def_encapsulate = 447, // option_def_encapsulate
+ S_448_75 = 448, // $@75
+ S_option_def_array = 449, // option_def_array
+ S_option_data_list = 450, // option_data_list
+ S_451_76 = 451, // $@76
+ S_option_data_list_content = 452, // option_data_list_content
+ S_not_empty_option_data_list = 453, // not_empty_option_data_list
+ S_option_data_entry = 454, // option_data_entry
+ S_455_77 = 455, // $@77
+ S_sub_option_data = 456, // sub_option_data
+ S_457_78 = 457, // $@78
+ S_option_data_params = 458, // option_data_params
+ S_not_empty_option_data_params = 459, // not_empty_option_data_params
+ S_option_data_param = 460, // option_data_param
+ S_option_data_name = 461, // option_data_name
+ S_option_data_data = 462, // option_data_data
+ S_463_79 = 463, // $@79
+ S_option_data_code = 464, // option_data_code
+ S_option_data_space = 465, // option_data_space
+ S_option_data_csv_format = 466, // option_data_csv_format
+ S_option_data_always_send = 467, // option_data_always_send
+ S_pools_list = 468, // pools_list
+ S_469_80 = 469, // $@80
+ S_pools_list_content = 470, // pools_list_content
+ S_not_empty_pools_list = 471, // not_empty_pools_list
+ S_pool_list_entry = 472, // pool_list_entry
+ S_473_81 = 473, // $@81
+ S_sub_pool4 = 474, // sub_pool4
+ S_475_82 = 475, // $@82
+ S_pool_params = 476, // pool_params
+ S_pool_param = 477, // pool_param
+ S_pool_entry = 478, // pool_entry
+ S_479_83 = 479, // $@83
+ S_user_context = 480, // user_context
+ S_481_84 = 481, // $@84
+ S_comment = 482, // comment
+ S_483_85 = 483, // $@85
+ S_reservations = 484, // reservations
+ S_485_86 = 485, // $@86
+ S_reservations_list = 486, // reservations_list
+ S_not_empty_reservations_list = 487, // not_empty_reservations_list
+ S_reservation = 488, // reservation
+ S_489_87 = 489, // $@87
+ S_sub_reservation = 490, // sub_reservation
+ S_491_88 = 491, // $@88
+ S_reservation_params = 492, // reservation_params
+ S_not_empty_reservation_params = 493, // not_empty_reservation_params
+ S_reservation_param = 494, // reservation_param
+ S_next_server = 495, // next_server
+ S_496_89 = 496, // $@89
+ S_server_hostname = 497, // server_hostname
+ S_498_90 = 498, // $@90
+ S_boot_file_name = 499, // boot_file_name
+ S_500_91 = 500, // $@91
+ S_ip_address = 501, // ip_address
+ S_502_92 = 502, // $@92
+ S_ip_addresses = 503, // ip_addresses
+ S_504_93 = 504, // $@93
+ S_duid = 505, // duid
+ S_506_94 = 506, // $@94
+ S_hw_address = 507, // hw_address
+ S_508_95 = 508, // $@95
+ S_client_id_value = 509, // client_id_value
+ S_510_96 = 510, // $@96
+ S_circuit_id_value = 511, // circuit_id_value
+ S_512_97 = 512, // $@97
+ S_flex_id_value = 513, // flex_id_value
+ S_514_98 = 514, // $@98
+ S_hostname = 515, // hostname
+ S_516_99 = 516, // $@99
+ S_reservation_client_classes = 517, // reservation_client_classes
+ S_518_100 = 518, // $@100
+ S_relay = 519, // relay
+ S_520_101 = 520, // $@101
+ S_relay_map = 521, // relay_map
+ S_client_classes = 522, // client_classes
+ S_523_102 = 523, // $@102
+ S_client_classes_list = 524, // client_classes_list
+ S_client_class_entry = 525, // client_class_entry
+ S_526_103 = 526, // $@103
+ S_client_class_params = 527, // client_class_params
+ S_not_empty_client_class_params = 528, // not_empty_client_class_params
+ S_client_class_param = 529, // client_class_param
+ S_client_class_name = 530, // client_class_name
+ S_client_class_test = 531, // client_class_test
+ S_532_104 = 532, // $@104
+ S_only_if_required = 533, // only_if_required
+ S_dhcp4o6_port = 534, // dhcp4o6_port
+ S_control_socket = 535, // control_socket
+ S_536_105 = 536, // $@105
+ S_control_socket_params = 537, // control_socket_params
+ S_control_socket_param = 538, // control_socket_param
+ S_control_socket_type = 539, // control_socket_type
+ S_540_106 = 540, // $@106
+ S_control_socket_name = 541, // control_socket_name
+ S_542_107 = 542, // $@107
+ S_dhcp_queue_control = 543, // dhcp_queue_control
+ S_544_108 = 544, // $@108
+ S_queue_control_params = 545, // queue_control_params
+ S_queue_control_param = 546, // queue_control_param
+ S_enable_queue = 547, // enable_queue
+ S_queue_type = 548, // queue_type
+ S_549_109 = 549, // $@109
+ S_capacity = 550, // capacity
+ S_arbitrary_map_entry = 551, // arbitrary_map_entry
+ S_552_110 = 552, // $@110
+ S_dhcp_ddns = 553, // dhcp_ddns
+ S_554_111 = 554, // $@111
+ S_sub_dhcp_ddns = 555, // sub_dhcp_ddns
+ S_556_112 = 556, // $@112
+ S_dhcp_ddns_params = 557, // dhcp_ddns_params
+ S_dhcp_ddns_param = 558, // dhcp_ddns_param
+ S_enable_updates = 559, // enable_updates
+ S_server_ip = 560, // server_ip
+ S_561_113 = 561, // $@113
+ S_server_port = 562, // server_port
+ S_sender_ip = 563, // sender_ip
+ S_564_114 = 564, // $@114
+ S_sender_port = 565, // sender_port
+ S_max_queue_size = 566, // max_queue_size
+ S_ncr_protocol = 567, // ncr_protocol
+ S_568_115 = 568, // $@115
+ S_ncr_protocol_value = 569, // ncr_protocol_value
+ S_ncr_format = 570, // ncr_format
+ S_571_116 = 571, // $@116
+ S_dep_qualifying_suffix = 572, // dep_qualifying_suffix
+ S_573_117 = 573, // $@117
+ S_dep_override_no_update = 574, // dep_override_no_update
+ S_dep_override_client_update = 575, // dep_override_client_update
+ S_dep_replace_client_name = 576, // dep_replace_client_name
+ S_577_118 = 577, // $@118
+ S_dep_generated_prefix = 578, // dep_generated_prefix
+ S_579_119 = 579, // $@119
+ S_dep_hostname_char_set = 580, // dep_hostname_char_set
+ S_581_120 = 581, // $@120
+ S_dep_hostname_char_replacement = 582, // dep_hostname_char_replacement
+ S_583_121 = 583, // $@121
+ S_config_control = 584, // config_control
+ S_585_122 = 585, // $@122
+ S_sub_config_control = 586, // sub_config_control
+ S_587_123 = 587, // $@123
+ S_config_control_params = 588, // config_control_params
+ S_config_control_param = 589, // config_control_param
+ S_config_databases = 590, // config_databases
+ S_591_124 = 591, // $@124
+ S_config_fetch_wait_time = 592, // config_fetch_wait_time
+ S_loggers = 593, // loggers
+ S_594_125 = 594, // $@125
+ S_loggers_entries = 595, // loggers_entries
+ S_logger_entry = 596, // logger_entry
+ S_597_126 = 597, // $@126
+ S_logger_params = 598, // logger_params
+ S_logger_param = 599, // logger_param
+ S_debuglevel = 600, // debuglevel
+ S_severity = 601, // severity
+ S_602_127 = 602, // $@127
+ S_output_options_list = 603, // output_options_list
+ S_604_128 = 604, // $@128
+ S_output_options_list_content = 605, // output_options_list_content
+ S_output_entry = 606, // output_entry
+ S_607_129 = 607, // $@129
+ S_output_params_list = 608, // output_params_list
+ S_output_params = 609, // output_params
+ S_output = 610, // output
+ S_611_130 = 611, // $@130
+ S_flush = 612, // flush
+ S_maxsize = 613, // maxsize
+ S_maxver = 614, // maxver
+ S_pattern = 615, // pattern
+ S_616_131 = 616, // $@131
+ S_compatibility = 617, // compatibility
+ S_618_132 = 618, // $@132
+ S_compatibility_params = 619, // compatibility_params
+ S_compatibility_param = 620, // compatibility_param
+ S_lenient_option_parsing = 621 // lenient_option_parsing
};
};
- /// (External) token type, as returned by yylex.
- typedef token::yytokentype token_type;
+ /// (Internal) symbol kind.
+ typedef symbol_kind::symbol_kind_type symbol_kind_type;
- /// Symbol type: an internal symbol number.
- typedef int symbol_number_type;
-
- /// The symbol type number to denote an empty symbol.
- enum { empty_symbol = -2 };
-
- /// Internal symbol number for tokens (subsumed by symbol_number_type).
- typedef unsigned char token_number_type;
+ /// The number of tokens.
+ static const symbol_kind_type YYNTOKENS = symbol_kind::YYNTOKENS;
/// A complete symbol.
///
- /// Expects its Base type to provide access to the symbol type
- /// via type_get ().
+ /// Expects its Base type to provide access to the symbol kind
+ /// via kind ().
///
/// Provide access to semantic value and location.
template
@@ -701,20 +1361,59 @@ namespace isc { namespace dhcp {
typedef Base super_type;
/// Default constructor.
- basic_symbol ()
+ basic_symbol () YY_NOEXCEPT
: value ()
, location ()
{}
#if 201103L <= YY_CPLUSPLUS
/// Move constructor.
- basic_symbol (basic_symbol&& that);
+ basic_symbol (basic_symbol&& that)
+ : Base (std::move (that))
+ , value ()
+ , location (std::move (that.location))
+ {
+ switch (this->kind ())
+ {
+ case symbol_kind::S_value: // value
+ case symbol_kind::S_map_value: // map_value
+ case symbol_kind::S_ddns_replace_client_name_value: // ddns_replace_client_name_value
+ case symbol_kind::S_socket_type: // socket_type
+ case symbol_kind::S_outbound_interface_value: // outbound_interface_value
+ case symbol_kind::S_db_type: // db_type
+ case symbol_kind::S_on_fail_mode: // on_fail_mode
+ case symbol_kind::S_hr_mode: // hr_mode
+ case symbol_kind::S_ncr_protocol_value: // ncr_protocol_value
+ value.move< ElementPtr > (std::move (that.value));
+ break;
+
+ case symbol_kind::S_BOOLEAN: // "boolean"
+ value.move< bool > (std::move (that.value));
+ break;
+
+ case symbol_kind::S_FLOAT: // "floating point"
+ value.move< double > (std::move (that.value));
+ break;
+
+ case symbol_kind::S_INTEGER: // "integer"
+ value.move< int64_t > (std::move (that.value));
+ break;
+
+ case symbol_kind::S_STRING: // "constant string"
+ value.move< std::string > (std::move (that.value));
+ break;
+
+ default:
+ break;
+ }
+
+ }
#endif
/// Copy constructor.
basic_symbol (const basic_symbol& that);
- /// Constructor for valueless symbols, and symbols from each type.
+ /// Constructors for typed symbols.
#if 201103L <= YY_CPLUSPLUS
basic_symbol (typename Base::kind_type t, location_type&& l)
: Base (t)
@@ -726,6 +1425,7 @@ namespace isc { namespace dhcp {
, location (l)
{}
#endif
+
#if 201103L <= YY_CPLUSPLUS
basic_symbol (typename Base::kind_type t, ElementPtr&& v, location_type&& l)
: Base (t)
@@ -739,6 +1439,7 @@ namespace isc { namespace dhcp {
, location (l)
{}
#endif
+
#if 201103L <= YY_CPLUSPLUS
basic_symbol (typename Base::kind_type t, bool&& v, location_type&& l)
: Base (t)
@@ -752,6 +1453,7 @@ namespace isc { namespace dhcp {
, location (l)
{}
#endif
+
#if 201103L <= YY_CPLUSPLUS
basic_symbol (typename Base::kind_type t, double&& v, location_type&& l)
: Base (t)
@@ -765,6 +1467,7 @@ namespace isc { namespace dhcp {
, location (l)
{}
#endif
+
#if 201103L <= YY_CPLUSPLUS
basic_symbol (typename Base::kind_type t, int64_t&& v, location_type&& l)
: Base (t)
@@ -778,6 +1481,7 @@ namespace isc { namespace dhcp {
, location (l)
{}
#endif
+
#if 201103L <= YY_CPLUSPLUS
basic_symbol (typename Base::kind_type t, std::string&& v, location_type&& l)
: Base (t)
@@ -798,47 +1502,49 @@ namespace isc { namespace dhcp {
clear ();
}
+
+
/// Destroy contents, and record that is empty.
- void clear ()
+ void clear () YY_NOEXCEPT
{
// User destructor.
- symbol_number_type yytype = this->type_get ();
+ symbol_kind_type yykind = this->kind ();
basic_symbol& yysym = *this;
(void) yysym;
- switch (yytype)
+ switch (yykind)
{
default:
break;
}
- // Type destructor.
-switch (yytype)
+ // Value type destructor.
+switch (yykind)
{
- case 218: // value
- case 222: // map_value
- case 265: // ddns_replace_client_name_value
- case 292: // socket_type
- case 295: // outbound_interface_value
- case 317: // db_type
- case 335: // on_fail_mode
- case 414: // hr_mode
- case 569: // ncr_protocol_value
+ case symbol_kind::S_value: // value
+ case symbol_kind::S_map_value: // map_value
+ case symbol_kind::S_ddns_replace_client_name_value: // ddns_replace_client_name_value
+ case symbol_kind::S_socket_type: // socket_type
+ case symbol_kind::S_outbound_interface_value: // outbound_interface_value
+ case symbol_kind::S_db_type: // db_type
+ case symbol_kind::S_on_fail_mode: // on_fail_mode
+ case symbol_kind::S_hr_mode: // hr_mode
+ case symbol_kind::S_ncr_protocol_value: // ncr_protocol_value
value.template destroy< ElementPtr > ();
break;
- case 202: // "boolean"
+ case symbol_kind::S_BOOLEAN: // "boolean"
value.template destroy< bool > ();
break;
- case 201: // "floating point"
+ case symbol_kind::S_FLOAT: // "floating point"
value.template destroy< double > ();
break;
- case 200: // "integer"
+ case symbol_kind::S_INTEGER: // "integer"
value.template destroy< int64_t > ();
break;
- case 199: // "constant string"
+ case symbol_kind::S_STRING: // "constant string"
value.template destroy< std::string > ();
break;
@@ -849,6 +1555,15 @@ switch (yytype)
Base::clear ();
}
+ /// The user-facing name of this symbol.
+ std::string name () const YY_NOEXCEPT
+ {
+ return Dhcp4Parser::symbol_name (this->kind ());
+ }
+
+ /// Backward compatibility (Bison 3.6).
+ symbol_kind_type type_get () const YY_NOEXCEPT;
+
/// Whether empty.
bool empty () const YY_NOEXCEPT;
@@ -856,7 +1571,7 @@ switch (yytype)
void move (basic_symbol& s);
/// The semantic value.
- semantic_type value;
+ value_type value;
/// The location.
location_type location;
@@ -869,122 +1584,132 @@ switch (yytype)
};
/// Type access provider for token (enum) based symbols.
- struct by_type
+ struct by_kind
{
+ /// The symbol kind as needed by the constructor.
+ typedef token_kind_type kind_type;
+
/// Default constructor.
- by_type ();
+ by_kind () YY_NOEXCEPT;
#if 201103L <= YY_CPLUSPLUS
/// Move constructor.
- by_type (by_type&& that);
+ by_kind (by_kind&& that) YY_NOEXCEPT;
#endif
/// Copy constructor.
- by_type (const by_type& that);
-
- /// The symbol type as needed by the constructor.
- typedef token_type kind_type;
+ by_kind (const by_kind& that) YY_NOEXCEPT;
/// Constructor from (external) token numbers.
- by_type (kind_type t);
+ by_kind (kind_type t) YY_NOEXCEPT;
+
+
/// Record that this symbol is empty.
- void clear ();
+ void clear () YY_NOEXCEPT;
- /// Steal the symbol type from \a that.
- void move (by_type& that);
+ /// Steal the symbol kind from \a that.
+ void move (by_kind& that);
/// The (internal) type number (corresponding to \a type).
/// \a empty when empty.
- symbol_number_type type_get () const YY_NOEXCEPT;
+ symbol_kind_type kind () const YY_NOEXCEPT;
- /// The symbol type.
- /// \a empty_symbol when empty.
- /// An int, not token_number_type, to be able to store empty_symbol.
- int type;
+ /// Backward compatibility (Bison 3.6).
+ symbol_kind_type type_get () const YY_NOEXCEPT;
+
+ /// The symbol kind.
+ /// \a S_YYEMPTY when empty.
+ symbol_kind_type kind_;
};
+ /// Backward compatibility for a private implementation detail (Bison 3.6).
+ typedef by_kind by_type;
+
/// "External" symbols: returned by the scanner.
- struct symbol_type : basic_symbol
+ struct symbol_type : basic_symbol
{
/// Superclass.
- typedef basic_symbol super_type;
+ typedef basic_symbol super_type;
/// Empty symbol.
- symbol_type () {}
+ symbol_type () YY_NOEXCEPT {}
/// Constructor for valueless symbols, and symbols from each type.
#if 201103L <= YY_CPLUSPLUS
symbol_type (int tok, location_type l)
- : super_type(token_type (tok), std::move (l))
- {
- YY_ASSERT (tok == token::TOKEN_END || tok == token::TOKEN_COMMA || tok == token::TOKEN_COLON || tok == token::TOKEN_LSQUARE_BRACKET || tok == token::TOKEN_RSQUARE_BRACKET || tok == token::TOKEN_LCURLY_BRACKET || tok == token::TOKEN_RCURLY_BRACKET || tok == token::TOKEN_NULL_TYPE || tok == token::TOKEN_DHCP4 || tok == token::TOKEN_CONFIG_CONTROL || tok == token::TOKEN_CONFIG_DATABASES || tok == token::TOKEN_CONFIG_FETCH_WAIT_TIME || tok == token::TOKEN_INTERFACES_CONFIG || tok == token::TOKEN_INTERFACES || tok == token::TOKEN_DHCP_SOCKET_TYPE || tok == token::TOKEN_RAW || tok == token::TOKEN_UDP || tok == token::TOKEN_OUTBOUND_INTERFACE || tok == token::TOKEN_SAME_AS_INBOUND || tok == token::TOKEN_USE_ROUTING || tok == token::TOKEN_RE_DETECT || tok == token::TOKEN_SANITY_CHECKS || tok == token::TOKEN_LEASE_CHECKS || tok == token::TOKEN_ECHO_CLIENT_ID || tok == token::TOKEN_MATCH_CLIENT_ID || tok == token::TOKEN_AUTHORITATIVE || tok == token::TOKEN_NEXT_SERVER || tok == token::TOKEN_SERVER_HOSTNAME || tok == token::TOKEN_BOOT_FILE_NAME || tok == token::TOKEN_LEASE_DATABASE || tok == token::TOKEN_HOSTS_DATABASE || tok == token::TOKEN_HOSTS_DATABASES || tok == token::TOKEN_TYPE || tok == token::TOKEN_MEMFILE || tok == token::TOKEN_MYSQL || tok == token::TOKEN_POSTGRESQL || tok == token::TOKEN_USER || tok == token::TOKEN_PASSWORD || tok == token::TOKEN_HOST || tok == token::TOKEN_PORT || tok == token::TOKEN_PERSIST || tok == token::TOKEN_LFC_INTERVAL || tok == token::TOKEN_READONLY || tok == token::TOKEN_CONNECT_TIMEOUT || tok == token::TOKEN_MAX_RECONNECT_TRIES || tok == token::TOKEN_RECONNECT_WAIT_TIME || tok == token::TOKEN_ON_FAIL || tok == token::TOKEN_STOP_RETRY_EXIT || tok == token::TOKEN_SERVE_RETRY_EXIT || tok == token::TOKEN_SERVE_RETRY_CONTINUE || tok == token::TOKEN_MAX_ROW_ERRORS || tok == token::TOKEN_TRUST_ANCHOR || tok == token::TOKEN_CERT_FILE || tok == token::TOKEN_KEY_FILE || tok == token::TOKEN_CIPHER_LIST || tok == token::TOKEN_VALID_LIFETIME || tok == token::TOKEN_MIN_VALID_LIFETIME || tok == token::TOKEN_MAX_VALID_LIFETIME || tok == token::TOKEN_RENEW_TIMER || tok == token::TOKEN_REBIND_TIMER || tok == token::TOKEN_CALCULATE_TEE_TIMES || tok == token::TOKEN_T1_PERCENT || tok == token::TOKEN_T2_PERCENT || tok == token::TOKEN_CACHE_THRESHOLD || tok == token::TOKEN_CACHE_MAX_AGE || tok == token::TOKEN_DECLINE_PROBATION_PERIOD || tok == token::TOKEN_SERVER_TAG || tok == token::TOKEN_STATISTIC_DEFAULT_SAMPLE_COUNT || tok == token::TOKEN_STATISTIC_DEFAULT_SAMPLE_AGE || tok == token::TOKEN_DDNS_SEND_UPDATES || tok == token::TOKEN_DDNS_OVERRIDE_NO_UPDATE || tok == token::TOKEN_DDNS_OVERRIDE_CLIENT_UPDATE || tok == token::TOKEN_DDNS_REPLACE_CLIENT_NAME || tok == token::TOKEN_DDNS_GENERATED_PREFIX || tok == token::TOKEN_DDNS_QUALIFYING_SUFFIX || tok == token::TOKEN_DDNS_UPDATE_ON_RENEW || tok == token::TOKEN_DDNS_USE_CONFLICT_RESOLUTION || tok == token::TOKEN_STORE_EXTENDED_INFO || tok == token::TOKEN_SUBNET4 || tok == token::TOKEN_SUBNET_4O6_INTERFACE || tok == token::TOKEN_SUBNET_4O6_INTERFACE_ID || tok == token::TOKEN_SUBNET_4O6_SUBNET || tok == token::TOKEN_OPTION_DEF || tok == token::TOKEN_OPTION_DATA || tok == token::TOKEN_NAME || tok == token::TOKEN_DATA || tok == token::TOKEN_CODE || tok == token::TOKEN_SPACE || tok == token::TOKEN_CSV_FORMAT || tok == token::TOKEN_ALWAYS_SEND || tok == token::TOKEN_RECORD_TYPES || tok == token::TOKEN_ENCAPSULATE || tok == token::TOKEN_ARRAY || tok == token::TOKEN_PARKED_PACKET_LIMIT || tok == token::TOKEN_SHARED_NETWORKS || tok == token::TOKEN_POOLS || tok == token::TOKEN_POOL || tok == token::TOKEN_USER_CONTEXT || tok == token::TOKEN_COMMENT || tok == token::TOKEN_SUBNET || tok == token::TOKEN_INTERFACE || tok == token::TOKEN_ID || tok == token::TOKEN_RESERVATION_MODE || tok == token::TOKEN_DISABLED || tok == token::TOKEN_OUT_OF_POOL || tok == token::TOKEN_GLOBAL || tok == token::TOKEN_ALL || tok == token::TOKEN_RESERVATIONS_GLOBAL || tok == token::TOKEN_RESERVATIONS_IN_SUBNET || tok == token::TOKEN_RESERVATIONS_OUT_OF_POOL || tok == token::TOKEN_HOST_RESERVATION_IDENTIFIERS || tok == token::TOKEN_CLIENT_CLASSES || tok == token::TOKEN_REQUIRE_CLIENT_CLASSES || tok == token::TOKEN_TEST || tok == token::TOKEN_ONLY_IF_REQUIRED || tok == token::TOKEN_CLIENT_CLASS || tok == token::TOKEN_RESERVATIONS || tok == token::TOKEN_DUID || tok == token::TOKEN_HW_ADDRESS || tok == token::TOKEN_CIRCUIT_ID || tok == token::TOKEN_CLIENT_ID || tok == token::TOKEN_HOSTNAME || tok == token::TOKEN_FLEX_ID || tok == token::TOKEN_RELAY || tok == token::TOKEN_IP_ADDRESS || tok == token::TOKEN_IP_ADDRESSES || tok == token::TOKEN_HOOKS_LIBRARIES || tok == token::TOKEN_LIBRARY || tok == token::TOKEN_PARAMETERS || tok == token::TOKEN_EXPIRED_LEASES_PROCESSING || tok == token::TOKEN_RECLAIM_TIMER_WAIT_TIME || tok == token::TOKEN_FLUSH_RECLAIMED_TIMER_WAIT_TIME || tok == token::TOKEN_HOLD_RECLAIMED_TIME || tok == token::TOKEN_MAX_RECLAIM_LEASES || tok == token::TOKEN_MAX_RECLAIM_TIME || tok == token::TOKEN_UNWARNED_RECLAIM_CYCLES || tok == token::TOKEN_DHCP4O6_PORT || tok == token::TOKEN_DHCP_MULTI_THREADING || tok == token::TOKEN_ENABLE_MULTI_THREADING || tok == token::TOKEN_THREAD_POOL_SIZE || tok == token::TOKEN_PACKET_QUEUE_SIZE || tok == token::TOKEN_CONTROL_SOCKET || tok == token::TOKEN_SOCKET_TYPE || tok == token::TOKEN_SOCKET_NAME || tok == token::TOKEN_DHCP_QUEUE_CONTROL || tok == token::TOKEN_ENABLE_QUEUE || tok == token::TOKEN_QUEUE_TYPE || tok == token::TOKEN_CAPACITY || tok == token::TOKEN_DHCP_DDNS || tok == token::TOKEN_ENABLE_UPDATES || tok == token::TOKEN_QUALIFYING_SUFFIX || tok == token::TOKEN_SERVER_IP || tok == token::TOKEN_SERVER_PORT || tok == token::TOKEN_SENDER_IP || tok == token::TOKEN_SENDER_PORT || tok == token::TOKEN_MAX_QUEUE_SIZE || tok == token::TOKEN_NCR_PROTOCOL || tok == token::TOKEN_NCR_FORMAT || tok == token::TOKEN_OVERRIDE_NO_UPDATE || tok == token::TOKEN_OVERRIDE_CLIENT_UPDATE || tok == token::TOKEN_REPLACE_CLIENT_NAME || tok == token::TOKEN_GENERATED_PREFIX || tok == token::TOKEN_TCP || tok == token::TOKEN_JSON || tok == token::TOKEN_WHEN_PRESENT || tok == token::TOKEN_NEVER || tok == token::TOKEN_ALWAYS || tok == token::TOKEN_WHEN_NOT_PRESENT || tok == token::TOKEN_HOSTNAME_CHAR_SET || tok == token::TOKEN_HOSTNAME_CHAR_REPLACEMENT || tok == token::TOKEN_EARLY_GLOBAL_RESERVATIONS_LOOKUP || tok == token::TOKEN_IP_RESERVATIONS_UNIQUE || tok == token::TOKEN_RESERVATIONS_LOOKUP_FIRST || tok == token::TOKEN_LOGGERS || tok == token::TOKEN_OUTPUT_OPTIONS || tok == token::TOKEN_OUTPUT || tok == token::TOKEN_DEBUGLEVEL || tok == token::TOKEN_SEVERITY || tok == token::TOKEN_FLUSH || tok == token::TOKEN_MAXSIZE || tok == token::TOKEN_MAXVER || tok == token::TOKEN_PATTERN || tok == token::TOKEN_COMPATIBILITY || tok == token::TOKEN_LENIENT_OPTION_PARSING || tok == token::TOKEN_TOPLEVEL_JSON || tok == token::TOKEN_TOPLEVEL_DHCP4 || tok == token::TOKEN_SUB_DHCP4 || tok == token::TOKEN_SUB_INTERFACES4 || tok == token::TOKEN_SUB_SUBNET4 || tok == token::TOKEN_SUB_POOL4 || tok == token::TOKEN_SUB_RESERVATION || tok == token::TOKEN_SUB_OPTION_DEFS || tok == token::TOKEN_SUB_OPTION_DEF || tok == token::TOKEN_SUB_OPTION_DATA || tok == token::TOKEN_SUB_HOOKS_LIBRARY || tok == token::TOKEN_SUB_DHCP_DDNS || tok == token::TOKEN_SUB_CONFIG_CONTROL);
- }
+ : super_type (token_kind_type (tok), std::move (l))
#else
symbol_type (int tok, const location_type& l)
- : super_type(token_type (tok), l)
- {
- YY_ASSERT (tok == token::TOKEN_END || tok == token::TOKEN_COMMA || tok == token::TOKEN_COLON || tok == token::TOKEN_LSQUARE_BRACKET || tok == token::TOKEN_RSQUARE_BRACKET || tok == token::TOKEN_LCURLY_BRACKET || tok == token::TOKEN_RCURLY_BRACKET || tok == token::TOKEN_NULL_TYPE || tok == token::TOKEN_DHCP4 || tok == token::TOKEN_CONFIG_CONTROL || tok == token::TOKEN_CONFIG_DATABASES || tok == token::TOKEN_CONFIG_FETCH_WAIT_TIME || tok == token::TOKEN_INTERFACES_CONFIG || tok == token::TOKEN_INTERFACES || tok == token::TOKEN_DHCP_SOCKET_TYPE || tok == token::TOKEN_RAW || tok == token::TOKEN_UDP || tok == token::TOKEN_OUTBOUND_INTERFACE || tok == token::TOKEN_SAME_AS_INBOUND || tok == token::TOKEN_USE_ROUTING || tok == token::TOKEN_RE_DETECT || tok == token::TOKEN_SANITY_CHECKS || tok == token::TOKEN_LEASE_CHECKS || tok == token::TOKEN_ECHO_CLIENT_ID || tok == token::TOKEN_MATCH_CLIENT_ID || tok == token::TOKEN_AUTHORITATIVE || tok == token::TOKEN_NEXT_SERVER || tok == token::TOKEN_SERVER_HOSTNAME || tok == token::TOKEN_BOOT_FILE_NAME || tok == token::TOKEN_LEASE_DATABASE || tok == token::TOKEN_HOSTS_DATABASE || tok == token::TOKEN_HOSTS_DATABASES || tok == token::TOKEN_TYPE || tok == token::TOKEN_MEMFILE || tok == token::TOKEN_MYSQL || tok == token::TOKEN_POSTGRESQL || tok == token::TOKEN_USER || tok == token::TOKEN_PASSWORD || tok == token::TOKEN_HOST || tok == token::TOKEN_PORT || tok == token::TOKEN_PERSIST || tok == token::TOKEN_LFC_INTERVAL || tok == token::TOKEN_READONLY || tok == token::TOKEN_CONNECT_TIMEOUT || tok == token::TOKEN_MAX_RECONNECT_TRIES || tok == token::TOKEN_RECONNECT_WAIT_TIME || tok == token::TOKEN_ON_FAIL || tok == token::TOKEN_STOP_RETRY_EXIT || tok == token::TOKEN_SERVE_RETRY_EXIT || tok == token::TOKEN_SERVE_RETRY_CONTINUE || tok == token::TOKEN_MAX_ROW_ERRORS || tok == token::TOKEN_TRUST_ANCHOR || tok == token::TOKEN_CERT_FILE || tok == token::TOKEN_KEY_FILE || tok == token::TOKEN_CIPHER_LIST || tok == token::TOKEN_VALID_LIFETIME || tok == token::TOKEN_MIN_VALID_LIFETIME || tok == token::TOKEN_MAX_VALID_LIFETIME || tok == token::TOKEN_RENEW_TIMER || tok == token::TOKEN_REBIND_TIMER || tok == token::TOKEN_CALCULATE_TEE_TIMES || tok == token::TOKEN_T1_PERCENT || tok == token::TOKEN_T2_PERCENT || tok == token::TOKEN_CACHE_THRESHOLD || tok == token::TOKEN_CACHE_MAX_AGE || tok == token::TOKEN_DECLINE_PROBATION_PERIOD || tok == token::TOKEN_SERVER_TAG || tok == token::TOKEN_STATISTIC_DEFAULT_SAMPLE_COUNT || tok == token::TOKEN_STATISTIC_DEFAULT_SAMPLE_AGE || tok == token::TOKEN_DDNS_SEND_UPDATES || tok == token::TOKEN_DDNS_OVERRIDE_NO_UPDATE || tok == token::TOKEN_DDNS_OVERRIDE_CLIENT_UPDATE || tok == token::TOKEN_DDNS_REPLACE_CLIENT_NAME || tok == token::TOKEN_DDNS_GENERATED_PREFIX || tok == token::TOKEN_DDNS_QUALIFYING_SUFFIX || tok == token::TOKEN_DDNS_UPDATE_ON_RENEW || tok == token::TOKEN_DDNS_USE_CONFLICT_RESOLUTION || tok == token::TOKEN_STORE_EXTENDED_INFO || tok == token::TOKEN_SUBNET4 || tok == token::TOKEN_SUBNET_4O6_INTERFACE || tok == token::TOKEN_SUBNET_4O6_INTERFACE_ID || tok == token::TOKEN_SUBNET_4O6_SUBNET || tok == token::TOKEN_OPTION_DEF || tok == token::TOKEN_OPTION_DATA || tok == token::TOKEN_NAME || tok == token::TOKEN_DATA || tok == token::TOKEN_CODE || tok == token::TOKEN_SPACE || tok == token::TOKEN_CSV_FORMAT || tok == token::TOKEN_ALWAYS_SEND || tok == token::TOKEN_RECORD_TYPES || tok == token::TOKEN_ENCAPSULATE || tok == token::TOKEN_ARRAY || tok == token::TOKEN_PARKED_PACKET_LIMIT || tok == token::TOKEN_SHARED_NETWORKS || tok == token::TOKEN_POOLS || tok == token::TOKEN_POOL || tok == token::TOKEN_USER_CONTEXT || tok == token::TOKEN_COMMENT || tok == token::TOKEN_SUBNET || tok == token::TOKEN_INTERFACE || tok == token::TOKEN_ID || tok == token::TOKEN_RESERVATION_MODE || tok == token::TOKEN_DISABLED || tok == token::TOKEN_OUT_OF_POOL || tok == token::TOKEN_GLOBAL || tok == token::TOKEN_ALL || tok == token::TOKEN_RESERVATIONS_GLOBAL || tok == token::TOKEN_RESERVATIONS_IN_SUBNET || tok == token::TOKEN_RESERVATIONS_OUT_OF_POOL || tok == token::TOKEN_HOST_RESERVATION_IDENTIFIERS || tok == token::TOKEN_CLIENT_CLASSES || tok == token::TOKEN_REQUIRE_CLIENT_CLASSES || tok == token::TOKEN_TEST || tok == token::TOKEN_ONLY_IF_REQUIRED || tok == token::TOKEN_CLIENT_CLASS || tok == token::TOKEN_RESERVATIONS || tok == token::TOKEN_DUID || tok == token::TOKEN_HW_ADDRESS || tok == token::TOKEN_CIRCUIT_ID || tok == token::TOKEN_CLIENT_ID || tok == token::TOKEN_HOSTNAME || tok == token::TOKEN_FLEX_ID || tok == token::TOKEN_RELAY || tok == token::TOKEN_IP_ADDRESS || tok == token::TOKEN_IP_ADDRESSES || tok == token::TOKEN_HOOKS_LIBRARIES || tok == token::TOKEN_LIBRARY || tok == token::TOKEN_PARAMETERS || tok == token::TOKEN_EXPIRED_LEASES_PROCESSING || tok == token::TOKEN_RECLAIM_TIMER_WAIT_TIME || tok == token::TOKEN_FLUSH_RECLAIMED_TIMER_WAIT_TIME || tok == token::TOKEN_HOLD_RECLAIMED_TIME || tok == token::TOKEN_MAX_RECLAIM_LEASES || tok == token::TOKEN_MAX_RECLAIM_TIME || tok == token::TOKEN_UNWARNED_RECLAIM_CYCLES || tok == token::TOKEN_DHCP4O6_PORT || tok == token::TOKEN_DHCP_MULTI_THREADING || tok == token::TOKEN_ENABLE_MULTI_THREADING || tok == token::TOKEN_THREAD_POOL_SIZE || tok == token::TOKEN_PACKET_QUEUE_SIZE || tok == token::TOKEN_CONTROL_SOCKET || tok == token::TOKEN_SOCKET_TYPE || tok == token::TOKEN_SOCKET_NAME || tok == token::TOKEN_DHCP_QUEUE_CONTROL || tok == token::TOKEN_ENABLE_QUEUE || tok == token::TOKEN_QUEUE_TYPE || tok == token::TOKEN_CAPACITY || tok == token::TOKEN_DHCP_DDNS || tok == token::TOKEN_ENABLE_UPDATES || tok == token::TOKEN_QUALIFYING_SUFFIX || tok == token::TOKEN_SERVER_IP || tok == token::TOKEN_SERVER_PORT || tok == token::TOKEN_SENDER_IP || tok == token::TOKEN_SENDER_PORT || tok == token::TOKEN_MAX_QUEUE_SIZE || tok == token::TOKEN_NCR_PROTOCOL || tok == token::TOKEN_NCR_FORMAT || tok == token::TOKEN_OVERRIDE_NO_UPDATE || tok == token::TOKEN_OVERRIDE_CLIENT_UPDATE || tok == token::TOKEN_REPLACE_CLIENT_NAME || tok == token::TOKEN_GENERATED_PREFIX || tok == token::TOKEN_TCP || tok == token::TOKEN_JSON || tok == token::TOKEN_WHEN_PRESENT || tok == token::TOKEN_NEVER || tok == token::TOKEN_ALWAYS || tok == token::TOKEN_WHEN_NOT_PRESENT || tok == token::TOKEN_HOSTNAME_CHAR_SET || tok == token::TOKEN_HOSTNAME_CHAR_REPLACEMENT || tok == token::TOKEN_EARLY_GLOBAL_RESERVATIONS_LOOKUP || tok == token::TOKEN_IP_RESERVATIONS_UNIQUE || tok == token::TOKEN_RESERVATIONS_LOOKUP_FIRST || tok == token::TOKEN_LOGGERS || tok == token::TOKEN_OUTPUT_OPTIONS || tok == token::TOKEN_OUTPUT || tok == token::TOKEN_DEBUGLEVEL || tok == token::TOKEN_SEVERITY || tok == token::TOKEN_FLUSH || tok == token::TOKEN_MAXSIZE || tok == token::TOKEN_MAXVER || tok == token::TOKEN_PATTERN || tok == token::TOKEN_COMPATIBILITY || tok == token::TOKEN_LENIENT_OPTION_PARSING || tok == token::TOKEN_TOPLEVEL_JSON || tok == token::TOKEN_TOPLEVEL_DHCP4 || tok == token::TOKEN_SUB_DHCP4 || tok == token::TOKEN_SUB_INTERFACES4 || tok == token::TOKEN_SUB_SUBNET4 || tok == token::TOKEN_SUB_POOL4 || tok == token::TOKEN_SUB_RESERVATION || tok == token::TOKEN_SUB_OPTION_DEFS || tok == token::TOKEN_SUB_OPTION_DEF || tok == token::TOKEN_SUB_OPTION_DATA || tok == token::TOKEN_SUB_HOOKS_LIBRARY || tok == token::TOKEN_SUB_DHCP_DDNS || tok == token::TOKEN_SUB_CONFIG_CONTROL);
- }
+ : super_type (token_kind_type (tok), l)
#endif
+ {
+#if !defined _MSC_VER || defined __clang__
+ PARSER4__ASSERT (tok == token::TOKEN_END
+ || (token::TOKEN_PARSER4_error <= tok && tok <= token::TOKEN_SUB_CONFIG_CONTROL));
+#endif
+ }
#if 201103L <= YY_CPLUSPLUS
symbol_type (int tok, bool v, location_type l)
- : super_type(token_type (tok), std::move (v), std::move (l))
- {
- YY_ASSERT (tok == token::TOKEN_BOOLEAN);
- }
+ : super_type (token_kind_type (tok), std::move (v), std::move (l))
#else
symbol_type (int tok, const bool& v, const location_type& l)
- : super_type(token_type (tok), v, l)
- {
- YY_ASSERT (tok == token::TOKEN_BOOLEAN);
- }
+ : super_type (token_kind_type (tok), v, l)
#endif
+ {
+#if !defined _MSC_VER || defined __clang__
+ PARSER4__ASSERT (tok == token::TOKEN_BOOLEAN);
+#endif
+ }
#if 201103L <= YY_CPLUSPLUS
symbol_type (int tok, double v, location_type l)
- : super_type(token_type (tok), std::move (v), std::move (l))
- {
- YY_ASSERT (tok == token::TOKEN_FLOAT);
- }
+ : super_type (token_kind_type (tok), std::move (v), std::move (l))
#else
symbol_type (int tok, const double& v, const location_type& l)
- : super_type(token_type (tok), v, l)
- {
- YY_ASSERT (tok == token::TOKEN_FLOAT);
- }
+ : super_type (token_kind_type (tok), v, l)
#endif
+ {
+#if !defined _MSC_VER || defined __clang__
+ PARSER4__ASSERT (tok == token::TOKEN_FLOAT);
+#endif
+ }
#if 201103L <= YY_CPLUSPLUS
symbol_type (int tok, int64_t v, location_type l)
- : super_type(token_type (tok), std::move (v), std::move (l))
- {
- YY_ASSERT (tok == token::TOKEN_INTEGER);
- }
+ : super_type (token_kind_type (tok), std::move (v), std::move (l))
#else
symbol_type (int tok, const int64_t& v, const location_type& l)
- : super_type(token_type (tok), v, l)
- {
- YY_ASSERT (tok == token::TOKEN_INTEGER);
- }
+ : super_type (token_kind_type (tok), v, l)
#endif
+ {
+#if !defined _MSC_VER || defined __clang__
+ PARSER4__ASSERT (tok == token::TOKEN_INTEGER);
+#endif
+ }
#if 201103L <= YY_CPLUSPLUS
symbol_type (int tok, std::string v, location_type l)
- : super_type(token_type (tok), std::move (v), std::move (l))
- {
- YY_ASSERT (tok == token::TOKEN_STRING);
- }
+ : super_type (token_kind_type (tok), std::move (v), std::move (l))
#else
symbol_type (int tok, const std::string& v, const location_type& l)
- : super_type(token_type (tok), v, l)
- {
- YY_ASSERT (tok == token::TOKEN_STRING);
- }
+ : super_type (token_kind_type (tok), v, l)
#endif
+ {
+#if !defined _MSC_VER || defined __clang__
+ PARSER4__ASSERT (tok == token::TOKEN_STRING);
+#endif
+ }
};
/// Build a parser object.
Dhcp4Parser (isc::dhcp::Parser4Context& ctx_yyarg);
virtual ~Dhcp4Parser ();
+#if 201103L <= YY_CPLUSPLUS
+ /// Non copyable.
+ Dhcp4Parser (const Dhcp4Parser&) = delete;
+ /// Non copyable.
+ Dhcp4Parser& operator= (const Dhcp4Parser&) = delete;
+#endif
+
/// Parse. An alias for parse ().
/// \returns 0 iff parsing succeeded.
int operator() ();
@@ -1015,7 +1740,11 @@ switch (yytype)
/// Report a syntax error.
void error (const syntax_error& err);
- // Implementation of make_symbol for each symbol type.
+ /// The user-facing name of the symbol whose (internal) number is
+ /// YYSYMBOL. No bounds checking.
+ static std::string symbol_name (symbol_kind_type yysymbol);
+
+ // Implementation of make_symbol for each token kind.
#if 201103L <= YY_CPLUSPLUS
static
symbol_type
@@ -1031,6 +1760,36 @@ switch (yytype)
return symbol_type (token::TOKEN_END, l);
}
#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_PARSER4_error (location_type l)
+ {
+ return symbol_type (token::TOKEN_PARSER4_error, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_PARSER4_error (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_PARSER4_error, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_PARSER4_UNDEF (location_type l)
+ {
+ return symbol_type (token::TOKEN_PARSER4_UNDEF, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_PARSER4_UNDEF (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_PARSER4_UNDEF, l);
+ }
+#endif
#if 201103L <= YY_CPLUSPLUS
static
symbol_type
@@ -4033,20 +4792,43 @@ switch (yytype)
#endif
+ class context
+ {
+ public:
+ context (const Dhcp4Parser& yyparser, const symbol_type& yyla);
+ const symbol_type& lookahead () const YY_NOEXCEPT { return yyla_; }
+ symbol_kind_type token () const YY_NOEXCEPT { return yyla_.kind (); }
+ const location_type& location () const YY_NOEXCEPT { return yyla_.location; }
+
+ /// Put in YYARG at most YYARGN of the expected tokens, and return the
+ /// number of tokens stored in YYARG. If YYARG is null, return the
+ /// number of expected tokens (guaranteed to be less than YYNTOKENS).
+ int expected_tokens (symbol_kind_type yyarg[], int yyargn) const;
+
+ private:
+ const Dhcp4Parser& yyparser_;
+ const symbol_type& yyla_;
+ };
+
private:
- /// This class is not copyable.
+#if YY_CPLUSPLUS < 201103L
+ /// Non copyable.
Dhcp4Parser (const Dhcp4Parser&);
+ /// Non copyable.
Dhcp4Parser& operator= (const Dhcp4Parser&);
+#endif
+
/// Stored state numbers (used for stacks).
typedef short state_type;
- /// Generate an error message.
- /// \param yystate the state where the error occurred.
- /// \param yyla the lookahead token.
- virtual std::string yysyntax_error_ (state_type yystate,
- const symbol_type& yyla) const;
+ /// The arguments of the error message.
+ int yy_syntax_error_arguments_ (const context& yyctx,
+ symbol_kind_type yyarg[], int yyargn) const;
+ /// Generate an error message.
+ /// \param yyctx the context in which the error occurred.
+ virtual std::string yysyntax_error_ (const context& yyctx) const;
/// Compute post-reduction state.
/// \param yystate the current state
/// \param yysym the nonterminal to push on the stack
@@ -4054,19 +4836,26 @@ switch (yytype)
/// Whether the given \c yypact_ value indicates a defaulted state.
/// \param yyvalue the value to check
- static bool yy_pact_value_is_default_ (int yyvalue);
+ static bool yy_pact_value_is_default_ (int yyvalue) YY_NOEXCEPT;
/// Whether the given \c yytable_ value indicates a syntax error.
/// \param yyvalue the value to check
- static bool yy_table_value_is_error_ (int yyvalue);
+ static bool yy_table_value_is_error_ (int yyvalue) YY_NOEXCEPT;
static const short yypact_ninf_;
static const signed char yytable_ninf_;
- /// Convert a scanner token number \a t to a symbol number.
- /// In theory \a t should be a token_type, but character literals
- /// are valid, yet not members of the token_type enum.
- static token_number_type yytranslate_ (int t);
+ /// Convert a scanner token kind \a t to a symbol kind.
+ /// In theory \a t should be a token_kind_type, but character literals
+ /// are valid, yet not members of the token_kind_type enum.
+ static symbol_kind_type yytranslate_ (int t) YY_NOEXCEPT;
+
+ /// Convert the symbol name \a n to a form suitable for a diagnostic.
+ static std::string yytnamerr_ (const char *yystr);
+
+ /// For a symbol, its name in clear.
+ static const char* const yytname_[];
+
// Tables.
// YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
@@ -4091,37 +4880,31 @@ switch (yytype)
static const short yycheck_[];
- // YYSTOS[STATE-NUM] -- The (internal number of the) accessing
- // symbol of state STATE-NUM.
+ // YYSTOS[STATE-NUM] -- The symbol kind of the accessing symbol of
+ // state STATE-NUM.
static const short yystos_[];
- // YYR1[YYN] -- Symbol number of symbol that rule YYN derives.
+ // YYR1[RULE-NUM] -- Symbol kind of the left-hand side of rule RULE-NUM.
static const short yyr1_[];
- // YYR2[YYN] -- Number of symbols on the right hand side of rule YYN.
+ // YYR2[RULE-NUM] -- Number of symbols on the right-hand side of rule RULE-NUM.
static const signed char yyr2_[];
- /// Convert the symbol name \a n to a form suitable for a diagnostic.
- static std::string yytnamerr_ (const char *n);
-
-
- /// For a symbol, its name in clear.
- static const char* const yytname_[];
#if PARSER4_DEBUG
// YYRLINE[YYN] -- Source line where rule number YYN was defined.
static const short yyrline_[];
/// Report on the debug stream that the rule \a r is going to be reduced.
- virtual void yy_reduce_print_ (int r);
+ virtual void yy_reduce_print_ (int r) const;
/// Print the state stack on the debug stream.
- virtual void yystack_print_ ();
+ virtual void yy_stack_print_ () const;
/// Debugging level.
int yydebug_;
/// Debug stream.
std::ostream* yycdebug_;
- /// \brief Display a symbol type, value and location.
+ /// \brief Display a symbol kind, value and location.
/// \param yyo The output stream.
/// \param yysym The symbol.
template
@@ -4142,7 +4925,7 @@ switch (yytype)
/// Default constructor.
by_state () YY_NOEXCEPT;
- /// The symbol type as needed by the constructor.
+ /// The symbol kind as needed by the constructor.
typedef state_type kind_type;
/// Constructor.
@@ -4154,12 +4937,12 @@ switch (yytype)
/// Record that this symbol is empty.
void clear () YY_NOEXCEPT;
- /// Steal the symbol type from \a that.
+ /// Steal the symbol kind from \a that.
void move (by_state& that);
- /// The (internal) type number (corresponding to \a state).
- /// \a empty_symbol when empty.
- symbol_number_type type_get () const YY_NOEXCEPT;
+ /// The symbol kind (corresponding to \a state).
+ /// \a symbol_kind::S_YYEMPTY when empty.
+ symbol_kind_type kind () const YY_NOEXCEPT;
/// The state number used to denote an empty symbol.
/// We use the initial state, as it does not have a value.
@@ -4198,15 +4981,22 @@ switch (yytype)
{
public:
// Hide our reversed order.
- typedef typename S::reverse_iterator iterator;
- typedef typename S::const_reverse_iterator const_iterator;
+ typedef typename S::iterator iterator;
+ typedef typename S::const_iterator const_iterator;
typedef typename S::size_type size_type;
typedef typename std::ptrdiff_t index_type;
- stack (size_type n = 200)
+ stack (size_type n = 200) YY_NOEXCEPT
: seq_ (n)
{}
+#if 201103L <= YY_CPLUSPLUS
+ /// Non copyable.
+ stack (const stack&) = delete;
+ /// Non copyable.
+ stack& operator= (const stack&) = delete;
+#endif
+
/// Random access.
///
/// Index 0 returns the topmost element.
@@ -4257,31 +5047,25 @@ switch (yytype)
return index_type (seq_.size ());
}
- std::ptrdiff_t
- ssize () const YY_NOEXCEPT
- {
- return std::ptrdiff_t (size ());
- }
-
/// Iterator on top of the stack (going downwards).
const_iterator
begin () const YY_NOEXCEPT
{
- return seq_.rbegin ();
+ return seq_.begin ();
}
/// Bottom of the stack.
const_iterator
end () const YY_NOEXCEPT
{
- return seq_.rend ();
+ return seq_.end ();
}
/// Present a slice of the top of a stack.
class slice
{
public:
- slice (const stack& stack, index_type range)
+ slice (const stack& stack, index_type range) YY_NOEXCEPT
: stack_ (stack)
, range_ (range)
{}
@@ -4298,8 +5082,12 @@ switch (yytype)
};
private:
+#if YY_CPLUSPLUS < 201103L
+ /// Non copyable.
stack (const stack&);
+ /// Non copyable.
stack& operator= (const stack&);
+#endif
/// The wrapped container.
S seq_;
};
@@ -4327,35 +5115,30 @@ switch (yytype)
void yypush_ (const char* m, state_type s, YY_MOVE_REF (symbol_type) sym);
/// Pop \a n symbols from the stack.
- void yypop_ (int n = 1);
-
- /// Some specific tokens.
- static const token_number_type yy_error_token_ = 1;
- static const token_number_type yy_undef_token_ = 2;
+ void yypop_ (int n = 1) YY_NOEXCEPT;
/// Constants.
enum
{
- yyeof_ = 0,
yylast_ = 1424, ///< Last index in yytable_.
yynnts_ = 419, ///< Number of nonterminal symbols.
- yyfinal_ = 28, ///< Termination state number.
- yyntokens_ = 203 ///< Number of tokens.
+ yyfinal_ = 28 ///< Termination state number.
};
// User arguments.
isc::dhcp::Parser4Context& ctx;
+
};
inline
- Dhcp4Parser::token_number_type
- Dhcp4Parser::yytranslate_ (int t)
+ Dhcp4Parser::symbol_kind_type
+ Dhcp4Parser::yytranslate_ (int t) YY_NOEXCEPT
{
// YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to
// TOKEN-NUM as returned by yylex.
static
- const token_number_type
+ const unsigned char
translate_table[] =
{
0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
@@ -4405,94 +5188,51 @@ switch (yytype)
185, 186, 187, 188, 189, 190, 191, 192, 193, 194,
195, 196, 197, 198, 199, 200, 201, 202
};
- const int user_token_number_max_ = 457;
+ // Last valid token kind.
+ const int code_max = 457;
if (t <= 0)
- return yyeof_;
- else if (t <= user_token_number_max_)
- return translate_table[t];
+ return symbol_kind::S_YYEOF;
+ else if (t <= code_max)
+ return static_cast (translate_table[t]);
else
- return yy_undef_token_;
+ return symbol_kind::S_YYUNDEF;
}
// basic_symbol.
-#if 201103L <= YY_CPLUSPLUS
- template
- Dhcp4Parser::basic_symbol::basic_symbol (basic_symbol&& that)
- : Base (std::move (that))
- , value ()
- , location (std::move (that.location))
- {
- switch (this->type_get ())
- {
- case 218: // value
- case 222: // map_value
- case 265: // ddns_replace_client_name_value
- case 292: // socket_type
- case 295: // outbound_interface_value
- case 317: // db_type
- case 335: // on_fail_mode
- case 414: // hr_mode
- case 569: // ncr_protocol_value
- value.move< ElementPtr > (std::move (that.value));
- break;
-
- case 202: // "boolean"
- value.move< bool > (std::move (that.value));
- break;
-
- case 201: // "floating point"
- value.move< double > (std::move (that.value));
- break;
-
- case 200: // "integer"
- value.move< int64_t > (std::move (that.value));
- break;
-
- case 199: // "constant string"
- value.move< std::string > (std::move (that.value));
- break;
-
- default:
- break;
- }
-
- }
-#endif
-
template
Dhcp4Parser::basic_symbol::basic_symbol (const basic_symbol& that)
: Base (that)
, value ()
, location (that.location)
{
- switch (this->type_get ())
+ switch (this->kind ())
{
- case 218: // value
- case 222: // map_value
- case 265: // ddns_replace_client_name_value
- case 292: // socket_type
- case 295: // outbound_interface_value
- case 317: // db_type
- case 335: // on_fail_mode
- case 414: // hr_mode
- case 569: // ncr_protocol_value
+ case symbol_kind::S_value: // value
+ case symbol_kind::S_map_value: // map_value
+ case symbol_kind::S_ddns_replace_client_name_value: // ddns_replace_client_name_value
+ case symbol_kind::S_socket_type: // socket_type
+ case symbol_kind::S_outbound_interface_value: // outbound_interface_value
+ case symbol_kind::S_db_type: // db_type
+ case symbol_kind::S_on_fail_mode: // on_fail_mode
+ case symbol_kind::S_hr_mode: // hr_mode
+ case symbol_kind::S_ncr_protocol_value: // ncr_protocol_value
value.copy< ElementPtr > (YY_MOVE (that.value));
break;
- case 202: // "boolean"
+ case symbol_kind::S_BOOLEAN: // "boolean"
value.copy< bool > (YY_MOVE (that.value));
break;
- case 201: // "floating point"
+ case symbol_kind::S_FLOAT: // "floating point"
value.copy< double > (YY_MOVE (that.value));
break;
- case 200: // "integer"
+ case symbol_kind::S_INTEGER: // "integer"
value.copy< int64_t > (YY_MOVE (that.value));
break;
- case 199: // "constant string"
+ case symbol_kind::S_STRING: // "constant string"
value.copy< std::string > (YY_MOVE (that.value));
break;
@@ -4504,11 +5244,20 @@ switch (yytype)
+
+ template
+ Dhcp4Parser::symbol_kind_type
+ Dhcp4Parser::basic_symbol::type_get () const YY_NOEXCEPT
+ {
+ return this->kind ();
+ }
+
+
template
bool
Dhcp4Parser::basic_symbol::empty () const YY_NOEXCEPT
{
- return Base::type_get () == empty_symbol;
+ return this->kind () == symbol_kind::S_YYEMPTY;
}
template
@@ -4516,33 +5265,33 @@ switch (yytype)
Dhcp4Parser::basic_symbol::move (basic_symbol& s)
{
super_type::move (s);
- switch (this->type_get ())
+ switch (this->kind ())
{
- case 218: // value
- case 222: // map_value
- case 265: // ddns_replace_client_name_value
- case 292: // socket_type
- case 295: // outbound_interface_value
- case 317: // db_type
- case 335: // on_fail_mode
- case 414: // hr_mode
- case 569: // ncr_protocol_value
+ case symbol_kind::S_value: // value
+ case symbol_kind::S_map_value: // map_value
+ case symbol_kind::S_ddns_replace_client_name_value: // ddns_replace_client_name_value
+ case symbol_kind::S_socket_type: // socket_type
+ case symbol_kind::S_outbound_interface_value: // outbound_interface_value
+ case symbol_kind::S_db_type: // db_type
+ case symbol_kind::S_on_fail_mode: // on_fail_mode
+ case symbol_kind::S_hr_mode: // hr_mode
+ case symbol_kind::S_ncr_protocol_value: // ncr_protocol_value
value.move< ElementPtr > (YY_MOVE (s.value));
break;
- case 202: // "boolean"
+ case symbol_kind::S_BOOLEAN: // "boolean"
value.move< bool > (YY_MOVE (s.value));
break;
- case 201: // "floating point"
+ case symbol_kind::S_FLOAT: // "floating point"
value.move< double > (YY_MOVE (s.value));
break;
- case 200: // "integer"
+ case symbol_kind::S_INTEGER: // "integer"
value.move< int64_t > (YY_MOVE (s.value));
break;
- case 199: // "constant string"
+ case symbol_kind::S_STRING: // "constant string"
value.move< std::string > (YY_MOVE (s.value));
break;
@@ -4553,57 +5302,67 @@ switch (yytype)
location = YY_MOVE (s.location);
}
- // by_type.
+ // by_kind.
inline
- Dhcp4Parser::by_type::by_type ()
- : type (empty_symbol)
+ Dhcp4Parser::by_kind::by_kind () YY_NOEXCEPT
+ : kind_ (symbol_kind::S_YYEMPTY)
{}
#if 201103L <= YY_CPLUSPLUS
inline
- Dhcp4Parser::by_type::by_type (by_type&& that)
- : type (that.type)
+ Dhcp4Parser::by_kind::by_kind (by_kind&& that) YY_NOEXCEPT
+ : kind_ (that.kind_)
{
that.clear ();
}
#endif
inline
- Dhcp4Parser::by_type::by_type (const by_type& that)
- : type (that.type)
+ Dhcp4Parser::by_kind::by_kind (const by_kind& that) YY_NOEXCEPT
+ : kind_ (that.kind_)
{}
inline
- Dhcp4Parser::by_type::by_type (token_type t)
- : type (yytranslate_ (t))
+ Dhcp4Parser::by_kind::by_kind (token_kind_type t) YY_NOEXCEPT
+ : kind_ (yytranslate_ (t))
{}
+
+
inline
void
- Dhcp4Parser::by_type::clear ()
+ Dhcp4Parser::by_kind::clear () YY_NOEXCEPT
{
- type = empty_symbol;
+ kind_ = symbol_kind::S_YYEMPTY;
}
inline
void
- Dhcp4Parser::by_type::move (by_type& that)
+ Dhcp4Parser::by_kind::move (by_kind& that)
{
- type = that.type;
+ kind_ = that.kind_;
that.clear ();
}
inline
- int
- Dhcp4Parser::by_type::type_get () const YY_NOEXCEPT
+ Dhcp4Parser::symbol_kind_type
+ Dhcp4Parser::by_kind::kind () const YY_NOEXCEPT
{
- return type;
+ return kind_;
}
+
+ inline
+ Dhcp4Parser::symbol_kind_type
+ Dhcp4Parser::by_kind::type_get () const YY_NOEXCEPT
+ {
+ return this->kind ();
+ }
+
+
#line 14 "dhcp4_parser.yy"
} } // isc::dhcp
-#line 4606 "dhcp4_parser.h"
-
+#line 5366 "dhcp4_parser.h"
diff --git a/src/bin/dhcp4/location.hh b/src/bin/dhcp4/location.hh
index 72951b2f6d..efbe89b72e 100644
--- a/src/bin/dhcp4/location.hh
+++ b/src/bin/dhcp4/location.hh
@@ -1,8 +1,9 @@
-// A Bison parser, made by GNU Bison 3.5.1.
+// Generated 202203302203
+// A Bison parser, made by GNU Bison 3.8.2.
// Locations for Bison parsers in C++
-// Copyright (C) 2002-2015, 2018-2020 Free Software Foundation, Inc.
+// Copyright (C) 2002-2015, 2018-2021 Free Software Foundation, Inc.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -15,7 +16,7 @@
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
-// along with this program. If not, see .
+// along with this program. If not, see .
// As a special exception, you may create a larger work that contains
// part or all of the Bison parser skeleton and distribute that work
@@ -61,11 +62,13 @@ namespace isc { namespace dhcp {
class position
{
public:
+ /// Type for file name.
+ typedef const std::string filename_type;
/// Type for line and column numbers.
typedef int counter_type;
/// Construct a position.
- explicit position (std::string* f = YY_NULLPTR,
+ explicit position (filename_type* f = YY_NULLPTR,
counter_type l = 1,
counter_type c = 1)
: filename (f)
@@ -75,7 +78,7 @@ namespace isc { namespace dhcp {
/// Initialization.
- void initialize (std::string* fn = YY_NULLPTR,
+ void initialize (filename_type* fn = YY_NULLPTR,
counter_type l = 1,
counter_type c = 1)
{
@@ -104,7 +107,7 @@ namespace isc { namespace dhcp {
/** \} */
/// File name to which this position refers.
- std::string* filename;
+ filename_type* filename;
/// Current line number.
counter_type line;
/// Current column number.
@@ -147,24 +150,6 @@ namespace isc { namespace dhcp {
return res -= width;
}
- /// Compare two position objects.
- inline bool
- operator== (const position& pos1, const position& pos2)
- {
- return (pos1.line == pos2.line
- && pos1.column == pos2.column
- && (pos1.filename == pos2.filename
- || (pos1.filename && pos2.filename
- && *pos1.filename == *pos2.filename)));
- }
-
- /// Compare two position objects.
- inline bool
- operator!= (const position& pos1, const position& pos2)
- {
- return !(pos1 == pos2);
- }
-
/** \brief Intercept output stream redirection.
** \param ostr the destination output stream
** \param pos a reference to the position to redirect
@@ -182,6 +167,8 @@ namespace isc { namespace dhcp {
class location
{
public:
+ /// Type for file name.
+ typedef position::filename_type filename_type;
/// Type for line and column numbers.
typedef position::counter_type counter_type;
@@ -198,7 +185,7 @@ namespace isc { namespace dhcp {
{}
/// Construct a 0-width location in \a f, \a l, \a c.
- explicit location (std::string* f,
+ explicit location (filename_type* f,
counter_type l = 1,
counter_type c = 1)
: begin (f, l, c)
@@ -207,7 +194,7 @@ namespace isc { namespace dhcp {
/// Initialization.
- void initialize (std::string* f = YY_NULLPTR,
+ void initialize (filename_type* f = YY_NULLPTR,
counter_type l = 1,
counter_type c = 1)
{
@@ -289,20 +276,6 @@ namespace isc { namespace dhcp {
return res -= width;
}
- /// Compare two location objects.
- inline bool
- operator== (const location& loc1, const location& loc2)
- {
- return loc1.begin == loc2.begin && loc1.end == loc2.end;
- }
-
- /// Compare two location objects.
- inline bool
- operator!= (const location& loc1, const location& loc2)
- {
- return !(loc1 == loc2);
- }
-
/** \brief Intercept output stream redirection.
** \param ostr the destination output stream
** \param loc a reference to the location to redirect
@@ -329,6 +302,6 @@ namespace isc { namespace dhcp {
#line 14 "dhcp4_parser.yy"
} } // isc::dhcp
-#line 333 "location.hh"
+#line 305 "location.hh"
#endif // !YY_PARSER4_LOCATION_HH_INCLUDED
diff --git a/src/bin/dhcp6/dhcp6_lexer.cc b/src/bin/dhcp6/dhcp6_lexer.cc
index c9938dff34..fea582abb2 100644
--- a/src/bin/dhcp6/dhcp6_lexer.cc
+++ b/src/bin/dhcp6/dhcp6_lexer.cc
@@ -1,6 +1,6 @@
-#line 2 "dhcp6_lexer.cc"
+#line 1 "dhcp6_lexer.cc"
-#line 4 "dhcp6_lexer.cc"
+#line 3 "dhcp6_lexer.cc"
#define YY_INT_ALIGNED short int
@@ -2078,7 +2078,7 @@ using namespace isc::dhcp;
/* To avoid the call to exit... oops! */
#define YY_FATAL_ERROR(msg) isc::dhcp::Parser6Context::fatal(msg)
-#line 2082 "dhcp6_lexer.cc"
+#line 2081 "dhcp6_lexer.cc"
/* noyywrap disables automatic rewinding for the next file to parse. Since we
always parse only a single string, there's no need to do any wraps. And
using yywrap requires linking with -lfl, which provides the default yywrap
@@ -2104,8 +2104,8 @@ using namespace isc::dhcp;
by moving it ahead by yyleng bytes. yyleng specifies the length of the
currently matched token. */
#define YY_USER_ACTION driver.loc_.columns(yyleng);
+#line 2107 "dhcp6_lexer.cc"
#line 2108 "dhcp6_lexer.cc"
-#line 2109 "dhcp6_lexer.cc"
#define INITIAL 0
#define COMMENT 1
@@ -2435,7 +2435,7 @@ YY_DECL
}
-#line 2439 "dhcp6_lexer.cc"
+#line 2438 "dhcp6_lexer.cc"
while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */
{
@@ -5351,7 +5351,7 @@ YY_RULE_SETUP
#line 2313 "dhcp6_lexer.ll"
ECHO;
YY_BREAK
-#line 5355 "dhcp6_lexer.cc"
+#line 5354 "dhcp6_lexer.cc"
case YY_END_OF_BUFFER:
{
diff --git a/src/bin/dhcp6/dhcp6_parser.cc b/src/bin/dhcp6/dhcp6_parser.cc
index 0efc54445f..6e081c61b3 100644
--- a/src/bin/dhcp6/dhcp6_parser.cc
+++ b/src/bin/dhcp6/dhcp6_parser.cc
@@ -1,8 +1,8 @@
-// A Bison parser, made by GNU Bison 3.5.1.
+// A Bison parser, made by GNU Bison 3.8.2.
// Skeleton implementation for Bison LALR(1) parsers in C++
-// Copyright (C) 2002-2015, 2018-2020 Free Software Foundation, Inc.
+// Copyright (C) 2002-2015, 2018-2021 Free Software Foundation, Inc.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -15,7 +15,7 @@
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
-// along with this program. If not, see .
+// along with this program. If not, see .
// As a special exception, you may create a larger work that contains
// part or all of the Bison parser skeleton and distribute that work
@@ -30,8 +30,9 @@
// This special exception was added by the Free Software Foundation in
// version 2.2 of Bison.
-// Undocumented macros, especially those whose name start with YY_,
-// are private implementation details. Do not rely on them.
+// DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
+// especially those whose name start with YY_ or yy_. They are
+// private implementation details that can be changed or removed.
// Take the name prefix into account.
@@ -47,7 +48,7 @@
#include
-#line 51 "dhcp6_parser.cc"
+#line 52 "dhcp6_parser.cc"
#ifndef YY_
@@ -62,6 +63,7 @@
# endif
#endif
+
// Whether we are compiled with exception support.
#ifndef YY_EXCEPTIONS
# if defined __GNUC__ && !defined __EXCEPTIONS
@@ -117,13 +119,13 @@
# define YY_STACK_PRINT() \
do { \
if (yydebug_) \
- yystack_print_ (); \
+ yy_stack_print_ (); \
} while (false)
#else // !PARSER6_DEBUG
# define YYCDEBUG if (false) std::cerr
-# define YY_SYMBOL_PRINT(Title, Symbol) YYUSE (Symbol)
+# define YY_SYMBOL_PRINT(Title, Symbol) YY_USE (Symbol)
# define YY_REDUCE_PRINT(Rule) static_cast (0)
# define YY_STACK_PRINT() static_cast (0)
@@ -139,49 +141,7 @@
#line 14 "dhcp6_parser.yy"
namespace isc { namespace dhcp {
-#line 143 "dhcp6_parser.cc"
-
-
- /* Return YYSTR after stripping away unnecessary quotes and
- backslashes, so that it's suitable for yyerror. The heuristic is
- that double-quoting is unnecessary unless the string contains an
- apostrophe, a comma, or backslash (other than backslash-backslash).
- YYSTR is taken from yytname. */
- std::string
- Dhcp6Parser::yytnamerr_ (const char *yystr)
- {
- if (*yystr == '"')
- {
- std::string yyr;
- char const *yyp = yystr;
-
- for (;;)
- switch (*++yyp)
- {
- case '\'':
- case ',':
- goto do_not_strip_quotes;
-
- case '\\':
- if (*++yyp != '\\')
- goto do_not_strip_quotes;
- else
- goto append;
-
- append:
- default:
- yyr += *yyp;
- break;
-
- case '"':
- return yyr;
- }
- do_not_strip_quotes: ;
- }
-
- return yystr;
- }
-
+#line 145 "dhcp6_parser.cc"
/// Build a parser object.
Dhcp6Parser::Dhcp6Parser (isc::dhcp::Parser6Context& ctx_yyarg)
@@ -200,9 +160,9 @@ namespace isc { namespace dhcp {
Dhcp6Parser::syntax_error::~syntax_error () YY_NOEXCEPT YY_NOTHROW
{}
- /*---------------.
- | Symbol types. |
- `---------------*/
+ /*---------.
+ | symbol. |
+ `---------*/
@@ -232,13 +192,13 @@ namespace isc { namespace dhcp {
: state (s)
{}
- Dhcp6Parser::symbol_number_type
- Dhcp6Parser::by_state::type_get () const YY_NOEXCEPT
+ Dhcp6Parser::symbol_kind_type
+ Dhcp6Parser::by_state::kind () const YY_NOEXCEPT
{
if (state == empty_state)
- return empty_symbol;
+ return symbol_kind::S_YYEMPTY;
else
- return yystos_[+state];
+ return YY_CAST (symbol_kind_type, yystos_[+state]);
}
Dhcp6Parser::stack_symbol_type::stack_symbol_type ()
@@ -247,32 +207,32 @@ namespace isc { namespace dhcp {
Dhcp6Parser::stack_symbol_type::stack_symbol_type (YY_RVREF (stack_symbol_type) that)
: super_type (YY_MOVE (that.state), YY_MOVE (that.location))
{
- switch (that.type_get ())
+ switch (that.kind ())
{
- case 227: // value
- case 231: // map_value
- case 273: // ddns_replace_client_name_value
- case 316: // db_type
- case 333: // on_fail_mode
- case 420: // hr_mode
- case 556: // duid_type
- case 599: // ncr_protocol_value
+ case symbol_kind::S_value: // value
+ case symbol_kind::S_map_value: // map_value
+ case symbol_kind::S_ddns_replace_client_name_value: // ddns_replace_client_name_value
+ case symbol_kind::S_db_type: // db_type
+ case symbol_kind::S_on_fail_mode: // on_fail_mode
+ case symbol_kind::S_hr_mode: // hr_mode
+ case symbol_kind::S_duid_type: // duid_type
+ case symbol_kind::S_ncr_protocol_value: // ncr_protocol_value
value.YY_MOVE_OR_COPY< ElementPtr > (YY_MOVE (that.value));
break;
- case 210: // "boolean"
+ case symbol_kind::S_BOOLEAN: // "boolean"
value.YY_MOVE_OR_COPY< bool > (YY_MOVE (that.value));
break;
- case 209: // "floating point"
+ case symbol_kind::S_FLOAT: // "floating point"
value.YY_MOVE_OR_COPY< double > (YY_MOVE (that.value));
break;
- case 208: // "integer"
+ case symbol_kind::S_INTEGER: // "integer"
value.YY_MOVE_OR_COPY< int64_t > (YY_MOVE (that.value));
break;
- case 207: // "constant string"
+ case symbol_kind::S_STRING: // "constant string"
value.YY_MOVE_OR_COPY< std::string > (YY_MOVE (that.value));
break;
@@ -289,32 +249,32 @@ namespace isc { namespace dhcp {
Dhcp6Parser::stack_symbol_type::stack_symbol_type (state_type s, YY_MOVE_REF (symbol_type) that)
: super_type (s, YY_MOVE (that.location))
{
- switch (that.type_get ())
+ switch (that.kind ())
{
- case 227: // value
- case 231: // map_value
- case 273: // ddns_replace_client_name_value
- case 316: // db_type
- case 333: // on_fail_mode
- case 420: // hr_mode
- case 556: // duid_type
- case 599: // ncr_protocol_value
+ case symbol_kind::S_value: // value
+ case symbol_kind::S_map_value: // map_value
+ case symbol_kind::S_ddns_replace_client_name_value: // ddns_replace_client_name_value
+ case symbol_kind::S_db_type: // db_type
+ case symbol_kind::S_on_fail_mode: // on_fail_mode
+ case symbol_kind::S_hr_mode: // hr_mode
+ case symbol_kind::S_duid_type: // duid_type
+ case symbol_kind::S_ncr_protocol_value: // ncr_protocol_value
value.move< ElementPtr > (YY_MOVE (that.value));
break;
- case 210: // "boolean"
+ case symbol_kind::S_BOOLEAN: // "boolean"
value.move< bool > (YY_MOVE (that.value));
break;
- case 209: // "floating point"
+ case symbol_kind::S_FLOAT: // "floating point"
value.move< double > (YY_MOVE (that.value));
break;
- case 208: // "integer"
+ case symbol_kind::S_INTEGER: // "integer"
value.move< int64_t > (YY_MOVE (that.value));
break;
- case 207: // "constant string"
+ case symbol_kind::S_STRING: // "constant string"
value.move< std::string > (YY_MOVE (that.value));
break;
@@ -323,7 +283,7 @@ namespace isc { namespace dhcp {
}
// that is emptied.
- that.type = empty_symbol;
+ that.kind_ = symbol_kind::S_YYEMPTY;
}
#if YY_CPLUSPLUS < 201103L
@@ -331,32 +291,32 @@ namespace isc { namespace dhcp {
Dhcp6Parser::stack_symbol_type::operator= (const stack_symbol_type& that)
{
state = that.state;
- switch (that.type_get ())
+ switch (that.kind ())
{
- case 227: // value
- case 231: // map_value
- case 273: // ddns_replace_client_name_value
- case 316: // db_type
- case 333: // on_fail_mode
- case 420: // hr_mode
- case 556: // duid_type
- case 599: // ncr_protocol_value
+ case symbol_kind::S_value: // value
+ case symbol_kind::S_map_value: // map_value
+ case symbol_kind::S_ddns_replace_client_name_value: // ddns_replace_client_name_value
+ case symbol_kind::S_db_type: // db_type
+ case symbol_kind::S_on_fail_mode: // on_fail_mode
+ case symbol_kind::S_hr_mode: // hr_mode
+ case symbol_kind::S_duid_type: // duid_type
+ case symbol_kind::S_ncr_protocol_value: // ncr_protocol_value
value.copy< ElementPtr > (that.value);
break;
- case 210: // "boolean"
+ case symbol_kind::S_BOOLEAN: // "boolean"
value.copy< bool > (that.value);
break;
- case 209: // "floating point"
+ case symbol_kind::S_FLOAT: // "floating point"
value.copy< double > (that.value);
break;
- case 208: // "integer"
+ case symbol_kind::S_INTEGER: // "integer"
value.copy< int64_t > (that.value);
break;
- case 207: // "constant string"
+ case symbol_kind::S_STRING: // "constant string"
value.copy< std::string > (that.value);
break;
@@ -372,32 +332,32 @@ namespace isc { namespace dhcp {
Dhcp6Parser::stack_symbol_type::operator= (stack_symbol_type& that)
{
state = that.state;
- switch (that.type_get ())
+ switch (that.kind ())
{
- case 227: // value
- case 231: // map_value
- case 273: // ddns_replace_client_name_value
- case 316: // db_type
- case 333: // on_fail_mode
- case 420: // hr_mode
- case 556: // duid_type
- case 599: // ncr_protocol_value
+ case symbol_kind::S_value: // value
+ case symbol_kind::S_map_value: // map_value
+ case symbol_kind::S_ddns_replace_client_name_value: // ddns_replace_client_name_value
+ case symbol_kind::S_db_type: // db_type
+ case symbol_kind::S_on_fail_mode: // on_fail_mode
+ case symbol_kind::S_hr_mode: // hr_mode
+ case symbol_kind::S_duid_type: // duid_type
+ case symbol_kind::S_ncr_protocol_value: // ncr_protocol_value
value.move< ElementPtr > (that.value);
break;
- case 210: // "boolean"
+ case symbol_kind::S_BOOLEAN: // "boolean"
value.move< bool > (that.value);
break;
- case 209: // "floating point"
+ case symbol_kind::S_FLOAT: // "floating point"
value.move< double > (that.value);
break;
- case 208: // "integer"
+ case symbol_kind::S_INTEGER: // "integer"
value.move< int64_t > (that.value);
break;
- case 207: // "constant string"
+ case symbol_kind::S_STRING: // "constant string"
value.move< std::string > (that.value);
break;
@@ -423,99 +383,97 @@ namespace isc { namespace dhcp {
#if PARSER6_DEBUG
template
void
- Dhcp6Parser::yy_print_ (std::ostream& yyo,
- const basic_symbol& yysym) const
+ Dhcp6Parser::yy_print_ (std::ostream& yyo, const basic_symbol& yysym) const
{
std::ostream& yyoutput = yyo;
- YYUSE (yyoutput);
- symbol_number_type yytype = yysym.type_get ();
-#if defined __GNUC__ && ! defined __clang__ && ! defined __ICC && __GNUC__ * 100 + __GNUC_MINOR__ <= 408
- // Avoid a (spurious) G++ 4.8 warning about "array subscript is
- // below array bounds".
+ YY_USE (yyoutput);
if (yysym.empty ())
- std::abort ();
-#endif
- yyo << (yytype < yyntokens_ ? "token" : "nterm")
- << ' ' << yytname_[yytype] << " ("
- << yysym.location << ": ";
- switch (yytype)
+ yyo << "empty symbol";
+ else
+ {
+ symbol_kind_type yykind = yysym.kind ();
+ yyo << (yykind < YYNTOKENS ? "token" : "nterm")
+ << ' ' << yysym.name () << " ("
+ << yysym.location << ": ";
+ switch (yykind)
{
- case 207: // "constant string"
+ case symbol_kind::S_STRING: // "constant string"
#line 290 "dhcp6_parser.yy"
{ yyoutput << yysym.value.template as < std::string > (); }
-#line 447 "dhcp6_parser.cc"
+#line 404 "dhcp6_parser.cc"
break;
- case 208: // "integer"
+ case symbol_kind::S_INTEGER: // "integer"
#line 290 "dhcp6_parser.yy"
{ yyoutput << yysym.value.template as < int64_t > (); }
-#line 453 "dhcp6_parser.cc"
+#line 410 "dhcp6_parser.cc"
break;
- case 209: // "floating point"
+ case symbol_kind::S_FLOAT: // "floating point"
#line 290 "dhcp6_parser.yy"
{ yyoutput << yysym.value.template as < double > (); }
-#line 459 "dhcp6_parser.cc"
+#line 416 "dhcp6_parser.cc"
break;
- case 210: // "boolean"
+ case symbol_kind::S_BOOLEAN: // "boolean"
#line 290 "dhcp6_parser.yy"
{ yyoutput << yysym.value.template as < bool > (); }
-#line 465 "dhcp6_parser.cc"
+#line 422 "dhcp6_parser.cc"
break;
- case 227: // value
+ case symbol_kind::S_value: // value
#line 290 "dhcp6_parser.yy"
{ yyoutput << yysym.value.template as < ElementPtr > (); }
-#line 471 "dhcp6_parser.cc"
+#line 428 "dhcp6_parser.cc"
break;
- case 231: // map_value
+ case symbol_kind::S_map_value: // map_value
#line 290 "dhcp6_parser.yy"
{ yyoutput << yysym.value.template as < ElementPtr > (); }
-#line 477 "dhcp6_parser.cc"
+#line 434 "dhcp6_parser.cc"
break;
- case 273: // ddns_replace_client_name_value
+ case symbol_kind::S_ddns_replace_client_name_value: // ddns_replace_client_name_value
#line 290 "dhcp6_parser.yy"
{ yyoutput << yysym.value.template as < ElementPtr > (); }
-#line 483 "dhcp6_parser.cc"
+#line 440 "dhcp6_parser.cc"
break;
- case 316: // db_type
+ case symbol_kind::S_db_type: // db_type
#line 290 "dhcp6_parser.yy"
{ yyoutput << yysym.value.template as < ElementPtr > (); }
-#line 489 "dhcp6_parser.cc"
+#line 446 "dhcp6_parser.cc"
break;
- case 333: // on_fail_mode
+ case symbol_kind::S_on_fail_mode: // on_fail_mode
#line 290 "dhcp6_parser.yy"
{ yyoutput << yysym.value.template as < ElementPtr > (); }
-#line 495 "dhcp6_parser.cc"
+#line 452 "dhcp6_parser.cc"
break;
- case 420: // hr_mode
+ case symbol_kind::S_hr_mode: // hr_mode
#line 290 "dhcp6_parser.yy"
{ yyoutput << yysym.value.template as < ElementPtr > (); }
-#line 501 "dhcp6_parser.cc"
+#line 458 "dhcp6_parser.cc"
break;
- case 556: // duid_type
+ case symbol_kind::S_duid_type: // duid_type
#line 290 "dhcp6_parser.yy"
{ yyoutput << yysym.value.template as < ElementPtr > (); }
-#line 507 "dhcp6_parser.cc"
+#line 464 "dhcp6_parser.cc"
break;
- case 599: // ncr_protocol_value
+ case symbol_kind::S_ncr_protocol_value: // ncr_protocol_value
#line 290 "dhcp6_parser.yy"
{ yyoutput << yysym.value.template as < ElementPtr > (); }
-#line 513 "dhcp6_parser.cc"
+#line 470 "dhcp6_parser.cc"
break;
default:
break;
}
- yyo << ')';
+ yyo << ')';
+ }
}
#endif
@@ -539,7 +497,7 @@ namespace isc { namespace dhcp {
}
void
- Dhcp6Parser::yypop_ (int n)
+ Dhcp6Parser::yypop_ (int n) YY_NOEXCEPT
{
yystack_.pop (n);
}
@@ -574,21 +532,21 @@ namespace isc { namespace dhcp {
Dhcp6Parser::state_type
Dhcp6Parser::yy_lr_goto_state_ (state_type yystate, int yysym)
{
- int yyr = yypgoto_[yysym - yyntokens_] + yystate;
+ int yyr = yypgoto_[yysym - YYNTOKENS] + yystate;
if (0 <= yyr && yyr <= yylast_ && yycheck_[yyr] == yystate)
return yytable_[yyr];
else
- return yydefgoto_[yysym - yyntokens_];
+ return yydefgoto_[yysym - YYNTOKENS];
}
bool
- Dhcp6Parser::yy_pact_value_is_default_ (int yyvalue)
+ Dhcp6Parser::yy_pact_value_is_default_ (int yyvalue) YY_NOEXCEPT
{
return yyvalue == yypact_ninf_;
}
bool
- Dhcp6Parser::yy_table_value_is_error_ (int yyvalue)
+ Dhcp6Parser::yy_table_value_is_error_ (int yyvalue) YY_NOEXCEPT
{
return yyvalue == yytable_ninf_;
}
@@ -638,6 +596,7 @@ namespace isc { namespace dhcp {
`-----------------------------------------------*/
yynewstate:
YYCDEBUG << "Entering state " << int (yystack_[0].state) << '\n';
+ YY_STACK_PRINT ();
// Accept?
if (yystack_[0].state == yyfinal_)
@@ -658,7 +617,7 @@ namespace isc { namespace dhcp {
// Read a lookahead token.
if (yyla.empty ())
{
- YYCDEBUG << "Reading a token: ";
+ YYCDEBUG << "Reading a token\n";
#if YY_EXCEPTIONS
try
#endif // YY_EXCEPTIONS
@@ -677,10 +636,20 @@ namespace isc { namespace dhcp {
}
YY_SYMBOL_PRINT ("Next token is", yyla);
+ if (yyla.kind () == symbol_kind::S_YYerror)
+ {
+ // The scanner already issued an error message, process directly
+ // to error recovery. But do not keep the error token as
+ // lookahead, it is too special and may lead us to an endless
+ // loop in error recovery. */
+ yyla.kind_ = symbol_kind::S_YYUNDEF;
+ goto yyerrlab1;
+ }
+
/* If the proper action on seeing token YYLA.TYPE is to reduce or
to detect an error, take that action. */
- yyn += yyla.type_get ();
- if (yyn < 0 || yylast_ < yyn || yycheck_[yyn] != yyla.type_get ())
+ yyn += yyla.kind ();
+ if (yyn < 0 || yylast_ < yyn || yycheck_[yyn] != yyla.kind ())
{
goto yydefault;
}
@@ -727,30 +696,30 @@ namespace isc { namespace dhcp {
when using variants. */
switch (yyr1_[yyn])
{
- case 227: // value
- case 231: // map_value
- case 273: // ddns_replace_client_name_value
- case 316: // db_type
- case 333: // on_fail_mode
- case 420: // hr_mode
- case 556: // duid_type
- case 599: // ncr_protocol_value
+ case symbol_kind::S_value: // value
+ case symbol_kind::S_map_value: // map_value
+ case symbol_kind::S_ddns_replace_client_name_value: // ddns_replace_client_name_value
+ case symbol_kind::S_db_type: // db_type
+ case symbol_kind::S_on_fail_mode: // on_fail_mode
+ case symbol_kind::S_hr_mode: // hr_mode
+ case symbol_kind::S_duid_type: // duid_type
+ case symbol_kind::S_ncr_protocol_value: // ncr_protocol_value
yylhs.value.emplace< ElementPtr > ();
break;
- case 210: // "boolean"
+ case symbol_kind::S_BOOLEAN: // "boolean"
yylhs.value.emplace< bool > ();
break;
- case 209: // "floating point"
+ case symbol_kind::S_FLOAT: // "floating point"
yylhs.value.emplace< double > ();
break;
- case 208: // "integer"
+ case symbol_kind::S_INTEGER: // "integer"
yylhs.value.emplace< int64_t > ();
break;
- case 207: // "constant string"
+ case symbol_kind::S_STRING: // "constant string"
yylhs.value.emplace< std::string > ();
break;
@@ -774,142 +743,142 @@ namespace isc { namespace dhcp {
{
switch (yyn)
{
- case 2:
+ case 2: // $@1: %empty
#line 299 "dhcp6_parser.yy"
{ ctx.ctx_ = ctx.NO_KEYWORD; }
-#line 781 "dhcp6_parser.cc"
+#line 750 "dhcp6_parser.cc"
break;
- case 4:
+ case 4: // $@2: %empty
#line 300 "dhcp6_parser.yy"
{ ctx.ctx_ = ctx.CONFIG; }
-#line 787 "dhcp6_parser.cc"
+#line 756 "dhcp6_parser.cc"
break;
- case 6:
+ case 6: // $@3: %empty
#line 301 "dhcp6_parser.yy"
{ ctx.ctx_ = ctx.DHCP6; }
-#line 793 "dhcp6_parser.cc"
+#line 762 "dhcp6_parser.cc"
break;
- case 8:
+ case 8: // $@4: %empty
#line 302 "dhcp6_parser.yy"
{ ctx.ctx_ = ctx.INTERFACES_CONFIG; }
-#line 799 "dhcp6_parser.cc"
+#line 768 "dhcp6_parser.cc"
break;
- case 10:
+ case 10: // $@5: %empty
#line 303 "dhcp6_parser.yy"
{ ctx.ctx_ = ctx.SUBNET6; }
-#line 805 "dhcp6_parser.cc"
+#line 774 "dhcp6_parser.cc"
break;
- case 12:
+ case 12: // $@6: %empty
#line 304 "dhcp6_parser.yy"
{ ctx.ctx_ = ctx.POOLS; }
-#line 811 "dhcp6_parser.cc"
+#line 780 "dhcp6_parser.cc"
break;
- case 14:
+ case 14: // $@7: %empty
#line 305 "dhcp6_parser.yy"
{ ctx.ctx_ = ctx.PD_POOLS; }
-#line 817 "dhcp6_parser.cc"
+#line 786 "dhcp6_parser.cc"
break;
- case 16:
+ case 16: // $@8: %empty
#line 306 "dhcp6_parser.yy"
{ ctx.ctx_ = ctx.RESERVATIONS; }
-#line 823 "dhcp6_parser.cc"
+#line 792 "dhcp6_parser.cc"
break;
- case 18:
+ case 18: // $@9: %empty
#line 307 "dhcp6_parser.yy"
{ ctx.ctx_ = ctx.DHCP6; }
-#line 829 "dhcp6_parser.cc"
+#line 798 "dhcp6_parser.cc"
break;
- case 20:
+ case 20: // $@10: %empty
#line 308 "dhcp6_parser.yy"
{ ctx.ctx_ = ctx.OPTION_DEF; }
-#line 835 "dhcp6_parser.cc"
+#line 804 "dhcp6_parser.cc"
break;
- case 22:
+ case 22: // $@11: %empty
#line 309 "dhcp6_parser.yy"
{ ctx.ctx_ = ctx.OPTION_DATA; }
-#line 841 "dhcp6_parser.cc"
+#line 810 "dhcp6_parser.cc"
break;
- case 24:
+ case 24: // $@12: %empty
#line 310 "dhcp6_parser.yy"
{ ctx.ctx_ = ctx.HOOKS_LIBRARIES; }
-#line 847 "dhcp6_parser.cc"
+#line 816 "dhcp6_parser.cc"
break;
- case 26:
+ case 26: // $@13: %empty
#line 311 "dhcp6_parser.yy"
{ ctx.ctx_ = ctx.DHCP_DDNS; }
-#line 853 "dhcp6_parser.cc"
+#line 822 "dhcp6_parser.cc"
break;
- case 28:
+ case 28: // $@14: %empty
#line 312 "dhcp6_parser.yy"
{ ctx.ctx_ = ctx.CONFIG_CONTROL; }
-#line 859 "dhcp6_parser.cc"
+#line 828 "dhcp6_parser.cc"
break;
- case 30:
+ case 30: // value: "integer"
#line 320 "dhcp6_parser.yy"
{ yylhs.value.as < ElementPtr > () = ElementPtr(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location))); }
-#line 865 "dhcp6_parser.cc"
+#line 834 "dhcp6_parser.cc"
break;
- case 31:
+ case 31: // value: "floating point"
#line 321 "dhcp6_parser.yy"
{ yylhs.value.as < ElementPtr > () = ElementPtr(new DoubleElement(yystack_[0].value.as < double > (), ctx.loc2pos(yystack_[0].location))); }
-#line 871 "dhcp6_parser.cc"
+#line 840 "dhcp6_parser.cc"
break;
- case 32:
+ case 32: // value: "boolean"
#line 322 "dhcp6_parser.yy"
{ yylhs.value.as < ElementPtr > () = ElementPtr(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location))); }
-#line 877 "dhcp6_parser.cc"
+#line 846 "dhcp6_parser.cc"
break;
- case 33:
+ case 33: // value: "constant string"
#line 323 "dhcp6_parser.yy"
{ yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location))); }
-#line 883 "dhcp6_parser.cc"
+#line 852 "dhcp6_parser.cc"
break;
- case 34:
+ case 34: // value: "null"
#line 324 "dhcp6_parser.yy"
{ yylhs.value.as < ElementPtr > () = ElementPtr(new NullElement(ctx.loc2pos(yystack_[0].location))); }
-#line 889 "dhcp6_parser.cc"
+#line 858 "dhcp6_parser.cc"
break;
- case 35:
+ case 35: // value: map2
#line 325 "dhcp6_parser.yy"
{ yylhs.value.as < ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); }
-#line 895 "dhcp6_parser.cc"
+#line 864 "dhcp6_parser.cc"
break;
- case 36:
+ case 36: // value: list_generic
#line 326 "dhcp6_parser.yy"
{ yylhs.value.as < ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); }
-#line 901 "dhcp6_parser.cc"
+#line 870 "dhcp6_parser.cc"
break;
- case 37:
+ case 37: // sub_json: value
#line 329 "dhcp6_parser.yy"
{
// Push back the JSON value on the stack
ctx.stack_.push_back(yystack_[0].value.as < ElementPtr > ());
}
-#line 910 "dhcp6_parser.cc"
+#line 879 "dhcp6_parser.cc"
break;
- case 38:
+ case 38: // $@15: %empty
#line 334 "dhcp6_parser.yy"
{
// This code is executed when we're about to start parsing
@@ -917,36 +886,36 @@ namespace isc { namespace dhcp {
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 921 "dhcp6_parser.cc"
+#line 890 "dhcp6_parser.cc"
break;
- case 39:
+ case 39: // map2: "{" $@15 map_content "}"
#line 339 "dhcp6_parser.yy"
{
// map parsing completed. If we ever want to do any wrap up
// (maybe some sanity checking), this would be the best place
// for it.
}
-#line 931 "dhcp6_parser.cc"
+#line 900 "dhcp6_parser.cc"
break;
- case 40:
+ case 40: // map_value: map2
#line 345 "dhcp6_parser.yy"
{ yylhs.value.as < ElementPtr > () = ctx.stack_.back(); ctx.stack_.pop_back(); }
-#line 937 "dhcp6_parser.cc"
+#line 906 "dhcp6_parser.cc"
break;
- case 43:
+ case 43: // not_empty_map: "constant string" ":" value
#line 352 "dhcp6_parser.yy"
{
// map containing a single entry
ctx.unique(yystack_[2].value.as < std::string > (), ctx.loc2pos(yystack_[2].location));
ctx.stack_.back()->set(yystack_[2].value.as < std::string > (), yystack_[0].value.as < ElementPtr > ());
}
-#line 947 "dhcp6_parser.cc"
+#line 916 "dhcp6_parser.cc"
break;
- case 44:
+ case 44: // not_empty_map: not_empty_map "," "constant string" ":" value
#line 357 "dhcp6_parser.yy"
{
// map consisting of a shorter map followed by
@@ -954,104 +923,104 @@ namespace isc { namespace dhcp {
ctx.unique(yystack_[2].value.as < std::string > (), ctx.loc2pos(yystack_[2].location));
ctx.stack_.back()->set(yystack_[2].value.as < std::string > (), yystack_[0].value.as < ElementPtr > ());
}
-#line 958 "dhcp6_parser.cc"
+#line 927 "dhcp6_parser.cc"
break;
- case 45:
+ case 45: // not_empty_map: not_empty_map ","
#line 363 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 966 "dhcp6_parser.cc"
+#line 935 "dhcp6_parser.cc"
break;
- case 46:
+ case 46: // $@16: %empty
#line 368 "dhcp6_parser.yy"
{
ElementPtr l(new ListElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(l);
}
-#line 975 "dhcp6_parser.cc"
+#line 944 "dhcp6_parser.cc"
break;
- case 47:
+ case 47: // list_generic: "[" $@16 list_content "]"
#line 371 "dhcp6_parser.yy"
{
// list parsing complete. Put any sanity checking here
}
-#line 983 "dhcp6_parser.cc"
+#line 952 "dhcp6_parser.cc"
break;
- case 50:
+ case 50: // not_empty_list: value
#line 379 "dhcp6_parser.yy"
{
// List consisting of a single element.
ctx.stack_.back()->add(yystack_[0].value.as < ElementPtr > ());
}
-#line 992 "dhcp6_parser.cc"
+#line 961 "dhcp6_parser.cc"
break;
- case 51:
+ case 51: // not_empty_list: not_empty_list "," value
#line 383 "dhcp6_parser.yy"
{
// List ending with , and a value.
ctx.stack_.back()->add(yystack_[0].value.as < ElementPtr > ());
}
-#line 1001 "dhcp6_parser.cc"
+#line 970 "dhcp6_parser.cc"
break;
- case 52:
+ case 52: // not_empty_list: not_empty_list ","
#line 387 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 1009 "dhcp6_parser.cc"
+#line 978 "dhcp6_parser.cc"
break;
- case 53:
+ case 53: // $@17: %empty
#line 393 "dhcp6_parser.yy"
{
// List parsing about to start
}
-#line 1017 "dhcp6_parser.cc"
+#line 986 "dhcp6_parser.cc"
break;
- case 54:
+ case 54: // list_strings: "[" $@17 list_strings_content "]"
#line 395 "dhcp6_parser.yy"
{
// list parsing complete. Put any sanity checking here
//ctx.stack_.pop_back();
}
-#line 1026 "dhcp6_parser.cc"
+#line 995 "dhcp6_parser.cc"
break;
- case 57:
+ case 57: // not_empty_list_strings: "constant string"
#line 404 "dhcp6_parser.yy"
{
ElementPtr s(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(s);
}
-#line 1035 "dhcp6_parser.cc"
+#line 1004 "dhcp6_parser.cc"
break;
- case 58:
+ case 58: // not_empty_list_strings: not_empty_list_strings "," "constant string"
#line 408 "dhcp6_parser.yy"
{
ElementPtr s(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(s);
}
-#line 1044 "dhcp6_parser.cc"
+#line 1013 "dhcp6_parser.cc"
break;
- case 59:
+ case 59: // not_empty_list_strings: not_empty_list_strings ","
#line 412 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 1052 "dhcp6_parser.cc"
+#line 1021 "dhcp6_parser.cc"
break;
- case 60:
+ case 60: // unknown_map_entry: "constant string" ":"
#line 422 "dhcp6_parser.yy"
{
const std::string& where = ctx.contextName();
@@ -1059,10 +1028,10 @@ namespace isc { namespace dhcp {
error(yystack_[1].location,
"got unexpected keyword \"" + keyword + "\" in " + where + " map.");
}
-#line 1063 "dhcp6_parser.cc"
+#line 1032 "dhcp6_parser.cc"
break;
- case 61:
+ case 61: // $@18: %empty
#line 431 "dhcp6_parser.yy"
{
// This code is executed when we're about to start parsing
@@ -1070,10 +1039,10 @@ namespace isc { namespace dhcp {
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 1074 "dhcp6_parser.cc"
+#line 1043 "dhcp6_parser.cc"
break;
- case 62:
+ case 62: // syntax_map: "{" $@18 global_object "}"
#line 436 "dhcp6_parser.yy"
{
// map parsing completed. If we ever want to do any wrap up
@@ -1083,10 +1052,10 @@ namespace isc { namespace dhcp {
// Dhcp6 is required
ctx.require("Dhcp6", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location));
}
-#line 1087 "dhcp6_parser.cc"
+#line 1056 "dhcp6_parser.cc"
break;
- case 63:
+ case 63: // $@19: %empty
#line 446 "dhcp6_parser.yy"
{
// This code is executed when we're about to start parsing
@@ -1098,488 +1067,488 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(m);
ctx.enter(ctx.DHCP6);
}
-#line 1102 "dhcp6_parser.cc"
+#line 1071 "dhcp6_parser.cc"
break;
- case 64:
+ case 64: // global_object: "Dhcp6" $@19 ":" "{" global_params "}"
#line 455 "dhcp6_parser.yy"
{
// No global parameter is required
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1112 "dhcp6_parser.cc"
+#line 1081 "dhcp6_parser.cc"
break;
- case 66:
+ case 66: // global_object_comma: global_object ","
#line 463 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 1120 "dhcp6_parser.cc"
+#line 1089 "dhcp6_parser.cc"
break;
- case 67:
+ case 67: // $@20: %empty
#line 469 "dhcp6_parser.yy"
{
// Parse the Dhcp6 map
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 1130 "dhcp6_parser.cc"
+#line 1099 "dhcp6_parser.cc"
break;
- case 68:
+ case 68: // sub_dhcp6: "{" $@20 global_params "}"
#line 473 "dhcp6_parser.yy"
{
// No global parameter is required
// parsing completed
}
-#line 1139 "dhcp6_parser.cc"
+#line 1108 "dhcp6_parser.cc"
break;
- case 71:
+ case 71: // global_params: global_params ","
#line 480 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 1147 "dhcp6_parser.cc"
+#line 1116 "dhcp6_parser.cc"
break;
- case 137:
+ case 137: // $@21: %empty
#line 554 "dhcp6_parser.yy"
{
ctx.unique("data-directory", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1156 "dhcp6_parser.cc"
+#line 1125 "dhcp6_parser.cc"
break;
- case 138:
+ case 138: // data_directory: "data-directory" $@21 ":" "constant string"
#line 557 "dhcp6_parser.yy"
{
ElementPtr datadir(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("data-directory", datadir);
ctx.leave();
}
-#line 1166 "dhcp6_parser.cc"
+#line 1135 "dhcp6_parser.cc"
break;
- case 139:
+ case 139: // preferred_lifetime: "preferred-lifetime" ":" "integer"
#line 563 "dhcp6_parser.yy"
{
ctx.unique("preferred-lifetime", ctx.loc2pos(yystack_[2].location));
ElementPtr prf(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("preferred-lifetime", prf);
}
-#line 1176 "dhcp6_parser.cc"
+#line 1145 "dhcp6_parser.cc"
break;
- case 140:
+ case 140: // min_preferred_lifetime: "min-preferred-lifetime" ":" "integer"
#line 569 "dhcp6_parser.yy"
{
ctx.unique("min-preferred-lifetime", ctx.loc2pos(yystack_[2].location));
ElementPtr prf(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("min-preferred-lifetime", prf);
}
-#line 1186 "dhcp6_parser.cc"
+#line 1155 "dhcp6_parser.cc"
break;
- case 141:
+ case 141: // max_preferred_lifetime: "max-preferred-lifetime" ":" "integer"
#line 575 "dhcp6_parser.yy"
{
ctx.unique("max-preferred-lifetime", ctx.loc2pos(yystack_[2].location));
ElementPtr prf(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("max-preferred-lifetime", prf);
}
-#line 1196 "dhcp6_parser.cc"
+#line 1165 "dhcp6_parser.cc"
break;
- case 142:
+ case 142: // valid_lifetime: "valid-lifetime" ":" "integer"
#line 581 "dhcp6_parser.yy"
{
ctx.unique("valid-lifetime", ctx.loc2pos(yystack_[2].location));
ElementPtr prf(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("valid-lifetime", prf);
}
-#line 1206 "dhcp6_parser.cc"
+#line 1175 "dhcp6_parser.cc"
break;
- case 143:
+ case 143: // min_valid_lifetime: "min-valid-lifetime" ":" "integer"
#line 587 "dhcp6_parser.yy"
{
ctx.unique("min-valid-lifetime", ctx.loc2pos(yystack_[2].location));
ElementPtr prf(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("min-valid-lifetime", prf);
}
-#line 1216 "dhcp6_parser.cc"
+#line 1185 "dhcp6_parser.cc"
break;
- case 144:
+ case 144: // max_valid_lifetime: "max-valid-lifetime" ":" "integer"
#line 593 "dhcp6_parser.yy"
{
ctx.unique("max-valid-lifetime", ctx.loc2pos(yystack_[2].location));
ElementPtr prf(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("max-valid-lifetime", prf);
}
-#line 1226 "dhcp6_parser.cc"
+#line 1195 "dhcp6_parser.cc"
break;
- case 145:
+ case 145: // renew_timer: "renew-timer" ":" "integer"
#line 599 "dhcp6_parser.yy"
{
ctx.unique("renew-timer", ctx.loc2pos(yystack_[2].location));
ElementPtr prf(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("renew-timer", prf);
}
-#line 1236 "dhcp6_parser.cc"
+#line 1205 "dhcp6_parser.cc"
break;
- case 146:
+ case 146: // rebind_timer: "rebind-timer" ":" "integer"
#line 605 "dhcp6_parser.yy"
{
ctx.unique("rebind-timer", ctx.loc2pos(yystack_[2].location));
ElementPtr prf(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("rebind-timer", prf);
}
-#line 1246 "dhcp6_parser.cc"
+#line 1215 "dhcp6_parser.cc"
break;
- case 147:
+ case 147: // calculate_tee_times: "calculate-tee-times" ":" "boolean"
#line 611 "dhcp6_parser.yy"
{
ctx.unique("calculate-tee-times", ctx.loc2pos(yystack_[2].location));
ElementPtr ctt(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("calculate-tee-times", ctt);
}
-#line 1256 "dhcp6_parser.cc"
+#line 1225 "dhcp6_parser.cc"
break;
- case 148:
+ case 148: // t1_percent: "t1-percent" ":" "floating point"
#line 617 "dhcp6_parser.yy"
{
ctx.unique("t1-percent", ctx.loc2pos(yystack_[2].location));
ElementPtr t1(new DoubleElement(yystack_[0].value.as < double > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("t1-percent", t1);
}
-#line 1266 "dhcp6_parser.cc"
+#line 1235 "dhcp6_parser.cc"
break;
- case 149:
+ case 149: // t2_percent: "t2-percent" ":" "floating point"
#line 623 "dhcp6_parser.yy"
{
ctx.unique("t2-percent", ctx.loc2pos(yystack_[2].location));
ElementPtr t2(new DoubleElement(yystack_[0].value.as < double > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("t2-percent", t2);
}
-#line 1276 "dhcp6_parser.cc"
+#line 1245 "dhcp6_parser.cc"
break;
- case 150:
+ case 150: // cache_threshold: "cache-threshold" ":" "floating point"
#line 629 "dhcp6_parser.yy"
{
ctx.unique("cache-threshold", ctx.loc2pos(yystack_[2].location));
ElementPtr ct(new DoubleElement(yystack_[0].value.as < double > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("cache-threshold", ct);
}
-#line 1286 "dhcp6_parser.cc"
+#line 1255 "dhcp6_parser.cc"
break;
- case 151:
+ case 151: // cache_max_age: "cache-max-age" ":" "integer"
#line 635 "dhcp6_parser.yy"
{
ctx.unique("cache-max-age", ctx.loc2pos(yystack_[2].location));
ElementPtr cm(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("cache-max-age", cm);
}
-#line 1296 "dhcp6_parser.cc"
+#line 1265 "dhcp6_parser.cc"
break;
- case 152:
+ case 152: // decline_probation_period: "decline-probation-period" ":" "integer"
#line 641 "dhcp6_parser.yy"
{
ctx.unique("decline-probation-period", ctx.loc2pos(yystack_[2].location));
ElementPtr dpp(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("decline-probation-period", dpp);
}
-#line 1306 "dhcp6_parser.cc"
+#line 1275 "dhcp6_parser.cc"
break;
- case 153:
+ case 153: // ddns_send_updates: "ddns-send-updates" ":" "boolean"
#line 647 "dhcp6_parser.yy"
{
ctx.unique("ddns-send-updates", ctx.loc2pos(yystack_[2].location));
ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("ddns-send-updates", b);
}
-#line 1316 "dhcp6_parser.cc"
+#line 1285 "dhcp6_parser.cc"
break;
- case 154:
+ case 154: // ddns_override_no_update: "ddns-override-no-update" ":" "boolean"
#line 653 "dhcp6_parser.yy"
{
ctx.unique("ddns-override-no-update", ctx.loc2pos(yystack_[2].location));
ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("ddns-override-no-update", b);
}
-#line 1326 "dhcp6_parser.cc"
+#line 1295 "dhcp6_parser.cc"
break;
- case 155:
+ case 155: // ddns_override_client_update: "ddns-override-client-update" ":" "boolean"
#line 659 "dhcp6_parser.yy"
{
ctx.unique("ddns-override-client-update", ctx.loc2pos(yystack_[2].location));
ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("ddns-override-client-update", b);
}
-#line 1336 "dhcp6_parser.cc"
+#line 1305 "dhcp6_parser.cc"
break;
- case 156:
+ case 156: // $@22: %empty
#line 665 "dhcp6_parser.yy"
{
ctx.unique("ddns-replace-client-name", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.REPLACE_CLIENT_NAME);
}
-#line 1345 "dhcp6_parser.cc"
+#line 1314 "dhcp6_parser.cc"
break;
- case 157:
+ case 157: // ddns_replace_client_name: "ddns-replace-client-name" $@22 ":" ddns_replace_client_name_value
#line 668 "dhcp6_parser.yy"
{
ctx.stack_.back()->set("ddns-replace-client-name", yystack_[0].value.as < ElementPtr > ());
ctx.leave();
}
-#line 1354 "dhcp6_parser.cc"
+#line 1323 "dhcp6_parser.cc"
break;
- case 158:
+ case 158: // ddns_replace_client_name_value: "when-present"
#line 674 "dhcp6_parser.yy"
{
yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("when-present", ctx.loc2pos(yystack_[0].location)));
}
-#line 1362 "dhcp6_parser.cc"
+#line 1331 "dhcp6_parser.cc"
break;
- case 159:
+ case 159: // ddns_replace_client_name_value: "never"
#line 677 "dhcp6_parser.yy"
{
yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("never", ctx.loc2pos(yystack_[0].location)));
}
-#line 1370 "dhcp6_parser.cc"
+#line 1339 "dhcp6_parser.cc"
break;
- case 160:
+ case 160: // ddns_replace_client_name_value: "always"
#line 680 "dhcp6_parser.yy"
{
yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("always", ctx.loc2pos(yystack_[0].location)));
}
-#line 1378 "dhcp6_parser.cc"
+#line 1347 "dhcp6_parser.cc"
break;
- case 161:
+ case 161: // ddns_replace_client_name_value: "when-not-present"
#line 683 "dhcp6_parser.yy"
{
yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("when-not-present", ctx.loc2pos(yystack_[0].location)));
}
-#line 1386 "dhcp6_parser.cc"
+#line 1355 "dhcp6_parser.cc"
break;
- case 162:
+ case 162: // ddns_replace_client_name_value: "boolean"
#line 686 "dhcp6_parser.yy"
{
error(yystack_[0].location, "boolean values for the replace-client-name are "
"no longer supported");
}
-#line 1395 "dhcp6_parser.cc"
+#line 1364 "dhcp6_parser.cc"
break;
- case 163:
+ case 163: // $@23: %empty
#line 692 "dhcp6_parser.yy"
{
ctx.unique("ddns-generated-prefix", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1404 "dhcp6_parser.cc"
+#line 1373 "dhcp6_parser.cc"
break;
- case 164:
+ case 164: // ddns_generated_prefix: "ddns-generated-prefix" $@23 ":" "constant string"
#line 695 "dhcp6_parser.yy"
{
ElementPtr s(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("ddns-generated-prefix", s);
ctx.leave();
}
-#line 1414 "dhcp6_parser.cc"
+#line 1383 "dhcp6_parser.cc"
break;
- case 165:
+ case 165: // $@24: %empty
#line 701 "dhcp6_parser.yy"
{
ctx.unique("ddns-qualifying-suffix", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1423 "dhcp6_parser.cc"
+#line 1392 "dhcp6_parser.cc"
break;
- case 166:
+ case 166: // ddns_qualifying_suffix: "ddns-qualifying-suffix" $@24 ":" "constant string"
#line 704 "dhcp6_parser.yy"
{
ElementPtr s(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("ddns-qualifying-suffix", s);
ctx.leave();
}
-#line 1433 "dhcp6_parser.cc"
+#line 1402 "dhcp6_parser.cc"
break;
- case 167:
+ case 167: // ddns_update_on_renew: "ddns-update-on-renew" ":" "boolean"
#line 710 "dhcp6_parser.yy"
{
ctx.unique("ddns-update-on-renew", ctx.loc2pos(yystack_[2].location));
ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("ddns-update-on-renew", b);
}
-#line 1443 "dhcp6_parser.cc"
+#line 1412 "dhcp6_parser.cc"
break;
- case 168:
+ case 168: // ddns_use_conflict_resolution: "ddns-use-conflict-resolution" ":" "boolean"
#line 716 "dhcp6_parser.yy"
{
ctx.unique("ddns-use-conflict-resolution", ctx.loc2pos(yystack_[2].location));
ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("ddns-use-conflict-resolution", b);
}
-#line 1453 "dhcp6_parser.cc"
+#line 1422 "dhcp6_parser.cc"
break;
- case 169:
+ case 169: // $@25: %empty
#line 722 "dhcp6_parser.yy"
{
ctx.unique("hostname-char-set", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1462 "dhcp6_parser.cc"
+#line 1431 "dhcp6_parser.cc"
break;
- case 170:
+ case 170: // hostname_char_set: "hostname-char-set" $@25 ":" "constant string"
#line 725 "dhcp6_parser.yy"
{
ElementPtr s(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("hostname-char-set", s);
ctx.leave();
}
-#line 1472 "dhcp6_parser.cc"
+#line 1441 "dhcp6_parser.cc"
break;
- case 171:
+ case 171: // $@26: %empty
#line 731 "dhcp6_parser.yy"
{
ctx.unique("hostname-char-replacement", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1481 "dhcp6_parser.cc"
+#line 1450 "dhcp6_parser.cc"
break;
- case 172:
+ case 172: // hostname_char_replacement: "hostname-char-replacement" $@26 ":" "constant string"
#line 734 "dhcp6_parser.yy"
{
ElementPtr s(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("hostname-char-replacement", s);
ctx.leave();
}
-#line 1491 "dhcp6_parser.cc"
+#line 1460 "dhcp6_parser.cc"
break;
- case 173:
+ case 173: // store_extended_info: "store-extended-info" ":" "boolean"
#line 740 "dhcp6_parser.yy"
{
ctx.unique("store-extended-info", ctx.loc2pos(yystack_[2].location));
ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("store-extended-info", b);
}
-#line 1501 "dhcp6_parser.cc"
+#line 1470 "dhcp6_parser.cc"
break;
- case 174:
+ case 174: // statistic_default_sample_count: "statistic-default-sample-count" ":" "integer"
#line 746 "dhcp6_parser.yy"
{
ctx.unique("statistic-default-sample-count", ctx.loc2pos(yystack_[2].location));
ElementPtr count(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("statistic-default-sample-count", count);
}
-#line 1511 "dhcp6_parser.cc"
+#line 1480 "dhcp6_parser.cc"
break;
- case 175:
+ case 175: // statistic_default_sample_age: "statistic-default-sample-age" ":" "integer"
#line 752 "dhcp6_parser.yy"
{
ctx.unique("statistic-default-sample-age", ctx.loc2pos(yystack_[2].location));
ElementPtr age(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("statistic-default-sample-age", age);
}
-#line 1521 "dhcp6_parser.cc"
+#line 1490 "dhcp6_parser.cc"
break;
- case 176:
+ case 176: // $@27: %empty
#line 758 "dhcp6_parser.yy"
{
ctx.unique("server-tag", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1530 "dhcp6_parser.cc"
+#line 1499 "dhcp6_parser.cc"
break;
- case 177:
+ case 177: // server_tag: "server-tag" $@27 ":" "constant string"
#line 761 "dhcp6_parser.yy"
{
ElementPtr stag(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("server-tag", stag);
ctx.leave();
}
-#line 1540 "dhcp6_parser.cc"
+#line 1509 "dhcp6_parser.cc"
break;
- case 178:
+ case 178: // parked_packet_limit: "parked-packet-limit" ":" "integer"
#line 767 "dhcp6_parser.yy"
{
ctx.unique("parked-packet-limit", ctx.loc2pos(yystack_[2].location));
ElementPtr ppl(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("parked-packet-limit", ppl);
}
-#line 1550 "dhcp6_parser.cc"
+#line 1519 "dhcp6_parser.cc"
break;
- case 179:
+ case 179: // early_global_reservations_lookup: "early-global-reservations-lookup" ":" "boolean"
#line 773 "dhcp6_parser.yy"
{
ctx.unique("early-global-reservations-lookup", ctx.loc2pos(yystack_[2].location));
ElementPtr early(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("early-global-reservations-lookup", early);
}
-#line 1560 "dhcp6_parser.cc"
+#line 1529 "dhcp6_parser.cc"
break;
- case 180:
+ case 180: // ip_reservations_unique: "ip-reservations-unique" ":" "boolean"
#line 779 "dhcp6_parser.yy"
{
ctx.unique("ip-reservations-unique", ctx.loc2pos(yystack_[2].location));
ElementPtr unique(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("ip-reservations-unique", unique);
}
-#line 1570 "dhcp6_parser.cc"
+#line 1539 "dhcp6_parser.cc"
break;
- case 181:
+ case 181: // reservations_lookup_first: "reservations-lookup-first" ":" "boolean"
#line 785 "dhcp6_parser.yy"
{
ctx.unique("reservations-lookup-first", ctx.loc2pos(yystack_[2].location));
ElementPtr first(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("reservations-lookup-first", first);
}
-#line 1580 "dhcp6_parser.cc"
+#line 1549 "dhcp6_parser.cc"
break;
- case 182:
+ case 182: // $@28: %empty
#line 791 "dhcp6_parser.yy"
{
ctx.unique("interfaces-config", ctx.loc2pos(yystack_[0].location));
@@ -1588,47 +1557,47 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(i);
ctx.enter(ctx.INTERFACES_CONFIG);
}
-#line 1592 "dhcp6_parser.cc"
+#line 1561 "dhcp6_parser.cc"
break;
- case 183:
+ case 183: // interfaces_config: "interfaces-config" $@28 ":" "{" interfaces_config_params "}"
#line 797 "dhcp6_parser.yy"
{
// No interfaces config param is required
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1602 "dhcp6_parser.cc"
+#line 1571 "dhcp6_parser.cc"
break;
- case 184:
+ case 184: // $@29: %empty
#line 803 "dhcp6_parser.yy"
{
// Parse the interfaces-config map
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 1612 "dhcp6_parser.cc"
+#line 1581 "dhcp6_parser.cc"
break;
- case 185:
+ case 185: // sub_interfaces6: "{" $@29 interfaces_config_params "}"
#line 807 "dhcp6_parser.yy"
{
// No interfaces config param is required
// parsing completed
}
-#line 1621 "dhcp6_parser.cc"
+#line 1590 "dhcp6_parser.cc"
break;
- case 188:
+ case 188: // interfaces_config_params: interfaces_config_params ","
#line 814 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 1629 "dhcp6_parser.cc"
+#line 1598 "dhcp6_parser.cc"
break;
- case 194:
+ case 194: // $@30: %empty
#line 826 "dhcp6_parser.yy"
{
ctx.unique("interfaces", ctx.loc2pos(yystack_[0].location));
@@ -1637,29 +1606,29 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(l);
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1641 "dhcp6_parser.cc"
+#line 1610 "dhcp6_parser.cc"
break;
- case 195:
+ case 195: // interfaces_list: "interfaces" $@30 ":" list_strings
#line 832 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1650 "dhcp6_parser.cc"
+#line 1619 "dhcp6_parser.cc"
break;
- case 196:
+ case 196: // re_detect: "re-detect" ":" "boolean"
#line 837 "dhcp6_parser.yy"
{
ctx.unique("re-detect", ctx.loc2pos(yystack_[2].location));
ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("re-detect", b);
}
-#line 1660 "dhcp6_parser.cc"
+#line 1629 "dhcp6_parser.cc"
break;
- case 197:
+ case 197: // $@31: %empty
#line 843 "dhcp6_parser.yy"
{
ctx.unique("lease-database", ctx.loc2pos(yystack_[0].location));
@@ -1668,10 +1637,10 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(i);
ctx.enter(ctx.LEASE_DATABASE);
}
-#line 1672 "dhcp6_parser.cc"
+#line 1641 "dhcp6_parser.cc"
break;
- case 198:
+ case 198: // lease_database: "lease-database" $@31 ":" "{" database_map_params "}"
#line 849 "dhcp6_parser.yy"
{
// The type parameter is required
@@ -1679,10 +1648,10 @@ namespace isc { namespace dhcp {
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1683 "dhcp6_parser.cc"
+#line 1652 "dhcp6_parser.cc"
break;
- case 199:
+ case 199: // $@32: %empty
#line 856 "dhcp6_parser.yy"
{
ctx.unique("hosts-database", ctx.loc2pos(yystack_[0].location));
@@ -1691,10 +1660,10 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(i);
ctx.enter(ctx.HOSTS_DATABASE);
}
-#line 1695 "dhcp6_parser.cc"
+#line 1664 "dhcp6_parser.cc"
break;
- case 200:
+ case 200: // hosts_database: "hosts-database" $@32 ":" "{" database_map_params "}"
#line 862 "dhcp6_parser.yy"
{
// The type parameter is required
@@ -1702,10 +1671,10 @@ namespace isc { namespace dhcp {
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1706 "dhcp6_parser.cc"
+#line 1675 "dhcp6_parser.cc"
break;
- case 201:
+ case 201: // $@33: %empty
#line 869 "dhcp6_parser.yy"
{
ctx.unique("hosts-databases", ctx.loc2pos(yystack_[0].location));
@@ -1714,359 +1683,359 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(l);
ctx.enter(ctx.HOSTS_DATABASE);
}
-#line 1718 "dhcp6_parser.cc"
+#line 1687 "dhcp6_parser.cc"
break;
- case 202:
+ case 202: // hosts_databases: "hosts-databases" $@33 ":" "[" database_list "]"
#line 875 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 1727 "dhcp6_parser.cc"
+#line 1696 "dhcp6_parser.cc"
break;
- case 207:
+ case 207: // not_empty_database_list: not_empty_database_list ","
#line 886 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 1735 "dhcp6_parser.cc"
+#line 1704 "dhcp6_parser.cc"
break;
- case 208:
+ case 208: // $@34: %empty
#line 891 "dhcp6_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 1745 "dhcp6_parser.cc"
+#line 1714 "dhcp6_parser.cc"
break;
- case 209:
+ case 209: // database: "{" $@34 database_map_params "}"
#line 895 "dhcp6_parser.yy"
{
// The type parameter is required
ctx.require("type", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location));
ctx.stack_.pop_back();
}
-#line 1755 "dhcp6_parser.cc"
+#line 1724 "dhcp6_parser.cc"
break;
- case 212:
+ case 212: // database_map_params: database_map_params ","
#line 903 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 1763 "dhcp6_parser.cc"
+#line 1732 "dhcp6_parser.cc"
break;
- case 232:
+ case 232: // $@35: %empty
#line 929 "dhcp6_parser.yy"
{
ctx.unique("type", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.DATABASE_TYPE);
}
-#line 1772 "dhcp6_parser.cc"
+#line 1741 "dhcp6_parser.cc"
break;
- case 233:
+ case 233: // database_type: "type" $@35 ":" db_type
#line 932 "dhcp6_parser.yy"
{
ctx.stack_.back()->set("type", yystack_[0].value.as < ElementPtr > ());
ctx.leave();
}
-#line 1781 "dhcp6_parser.cc"
+#line 1750 "dhcp6_parser.cc"
break;
- case 234:
+ case 234: // db_type: "memfile"
#line 937 "dhcp6_parser.yy"
{ yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("memfile", ctx.loc2pos(yystack_[0].location))); }
-#line 1787 "dhcp6_parser.cc"
+#line 1756 "dhcp6_parser.cc"
break;
- case 235:
+ case 235: // db_type: "mysql"
#line 938 "dhcp6_parser.yy"
{ yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("mysql", ctx.loc2pos(yystack_[0].location))); }
-#line 1793 "dhcp6_parser.cc"
+#line 1762 "dhcp6_parser.cc"
break;
- case 236:
+ case 236: // db_type: "postgresql"
#line 939 "dhcp6_parser.yy"
{ yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("postgresql", ctx.loc2pos(yystack_[0].location))); }
-#line 1799 "dhcp6_parser.cc"
+#line 1768 "dhcp6_parser.cc"
break;
- case 237:
+ case 237: // $@36: %empty
#line 942 "dhcp6_parser.yy"
{
ctx.unique("user", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1808 "dhcp6_parser.cc"
+#line 1777 "dhcp6_parser.cc"
break;
- case 238:
+ case 238: // user: "user" $@36 ":" "constant string"
#line 945 "dhcp6_parser.yy"
{
ElementPtr user(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("user", user);
ctx.leave();
}
-#line 1818 "dhcp6_parser.cc"
+#line 1787 "dhcp6_parser.cc"
break;
- case 239:
+ case 239: // $@37: %empty
#line 951 "dhcp6_parser.yy"
{
ctx.unique("password", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1827 "dhcp6_parser.cc"
+#line 1796 "dhcp6_parser.cc"
break;
- case 240:
+ case 240: // password: "password" $@37 ":" "constant string"
#line 954 "dhcp6_parser.yy"
{
ElementPtr pwd(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("password", pwd);
ctx.leave();
}
-#line 1837 "dhcp6_parser.cc"
+#line 1806 "dhcp6_parser.cc"
break;
- case 241:
+ case 241: // $@38: %empty
#line 960 "dhcp6_parser.yy"
{
ctx.unique("host", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1846 "dhcp6_parser.cc"
+#line 1815 "dhcp6_parser.cc"
break;
- case 242:
+ case 242: // host: "host" $@38 ":" "constant string"
#line 963 "dhcp6_parser.yy"
{
ElementPtr h(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("host", h);
ctx.leave();
}
-#line 1856 "dhcp6_parser.cc"
+#line 1825 "dhcp6_parser.cc"
break;
- case 243:
+ case 243: // port: "port" ":" "integer"
#line 969 "dhcp6_parser.yy"
{
ctx.unique("port", ctx.loc2pos(yystack_[2].location));
ElementPtr p(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("port", p);
}
-#line 1866 "dhcp6_parser.cc"
+#line 1835 "dhcp6_parser.cc"
break;
- case 244:
+ case 244: // $@39: %empty
#line 975 "dhcp6_parser.yy"
{
ctx.unique("name", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 1875 "dhcp6_parser.cc"
+#line 1844 "dhcp6_parser.cc"
break;
- case 245:
+ case 245: // name: "name" $@39 ":" "constant string"
#line 978 "dhcp6_parser.yy"
{
ElementPtr name(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("name", name);
ctx.leave();
}
-#line 1885 "dhcp6_parser.cc"
+#line 1854 "dhcp6_parser.cc"
break;
- case 246:
+ case 246: // persist: "persist" ":" "boolean"
#line 984 "dhcp6_parser.yy"
{
ctx.unique("persist", ctx.loc2pos(yystack_[2].location));
ElementPtr n(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("persist", n);
}
-#line 1895 "dhcp6_parser.cc"
+#line 1864 "dhcp6_parser.cc"
break;
- case 247:
+ case 247: // lfc_interval: "lfc-interval" ":" "integer"
#line 990 "dhcp6_parser.yy"
{
ctx.unique("lfc-interval", ctx.loc2pos(yystack_[2].location));
ElementPtr n(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("lfc-interval", n);
}
-#line 1905 "dhcp6_parser.cc"
+#line 1874 "dhcp6_parser.cc"
break;
- case 248:
+ case 248: // readonly: "readonly" ":" "boolean"
#line 996 "dhcp6_parser.yy"
{
ctx.unique("readonly", ctx.loc2pos(yystack_[2].location));
ElementPtr n(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("readonly", n);
}
-#line 1915 "dhcp6_parser.cc"
+#line 1884 "dhcp6_parser.cc"
break;
- case 249:
+ case 249: // connect_timeout: "connect-timeout" ":" "integer"
#line 1002 "dhcp6_parser.yy"
{
ctx.unique("connect-timeout", ctx.loc2pos(yystack_[2].location));
ElementPtr n(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("connect-timeout", n);
}
-#line 1925 "dhcp6_parser.cc"
+#line 1894 "dhcp6_parser.cc"
break;
- case 250:
+ case 250: // reconnect_wait_time: "reconnect-wait-time" ":" "integer"
#line 1008 "dhcp6_parser.yy"
{
ctx.unique("reconnect-wait-time", ctx.loc2pos(yystack_[2].location));
ElementPtr n(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("reconnect-wait-time", n);
}
-#line 1935 "dhcp6_parser.cc"
+#line 1904 "dhcp6_parser.cc"
break;
- case 251:
+ case 251: // $@40: %empty
#line 1014 "dhcp6_parser.yy"
{
ctx.unique("on-fail", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.DATABASE_ON_FAIL);
}
-#line 1944 "dhcp6_parser.cc"
+#line 1913 "dhcp6_parser.cc"
break;
- case 252:
+ case 252: // on_fail: "on-fail" $@40 ":" on_fail_mode
#line 1017 "dhcp6_parser.yy"
{
ctx.stack_.back()->set("on-fail", yystack_[0].value.as < ElementPtr > ());
ctx.leave();
}
-#line 1953 "dhcp6_parser.cc"
+#line 1922 "dhcp6_parser.cc"
break;
- case 253:
+ case 253: // on_fail_mode: "stop-retry-exit"
#line 1022 "dhcp6_parser.yy"
{ yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("stop-retry-exit", ctx.loc2pos(yystack_[0].location))); }
-#line 1959 "dhcp6_parser.cc"
+#line 1928 "dhcp6_parser.cc"
break;
- case 254:
+ case 254: // on_fail_mode: "serve-retry-exit"
#line 1023 "dhcp6_parser.yy"
{ yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("serve-retry-exit", ctx.loc2pos(yystack_[0].location))); }
-#line 1965 "dhcp6_parser.cc"
+#line 1934 "dhcp6_parser.cc"
break;
- case 255:
+ case 255: // on_fail_mode: "serve-retry-continue"
#line 1024 "dhcp6_parser.yy"
{ yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("serve-retry-continue", ctx.loc2pos(yystack_[0].location))); }
-#line 1971 "dhcp6_parser.cc"
+#line 1940 "dhcp6_parser.cc"
break;
- case 256:
+ case 256: // max_row_errors: "max-row-errors" ":" "integer"
#line 1027 "dhcp6_parser.yy"
{
ctx.unique("max-row-errors", ctx.loc2pos(yystack_[2].location));
ElementPtr n(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("max-row-errors", n);
}
-#line 1981 "dhcp6_parser.cc"
+#line 1950 "dhcp6_parser.cc"
break;
- case 257:
+ case 257: // max_reconnect_tries: "max-reconnect-tries" ":" "integer"
#line 1033 "dhcp6_parser.yy"
{
ctx.unique("max-reconnect-tries", ctx.loc2pos(yystack_[2].location));
ElementPtr n(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("max-reconnect-tries", n);
}
-#line 1991 "dhcp6_parser.cc"
+#line 1960 "dhcp6_parser.cc"
break;
- case 258:
+ case 258: // $@41: %empty
#line 1039 "dhcp6_parser.yy"
{
ctx.unique("trust-anchor", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2000 "dhcp6_parser.cc"
+#line 1969 "dhcp6_parser.cc"
break;
- case 259:
+ case 259: // trust_anchor: "trust-anchor" $@41 ":" "constant string"
#line 1042 "dhcp6_parser.yy"
{
ElementPtr ca(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("trust-anchor", ca);
ctx.leave();
}
-#line 2010 "dhcp6_parser.cc"
+#line 1979 "dhcp6_parser.cc"
break;
- case 260:
+ case 260: // $@42: %empty
#line 1048 "dhcp6_parser.yy"
{
ctx.unique("cert-file", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2019 "dhcp6_parser.cc"
+#line 1988 "dhcp6_parser.cc"
break;
- case 261:
+ case 261: // cert_file: "cert-file" $@42 ":" "constant string"
#line 1051 "dhcp6_parser.yy"
{
ElementPtr cert(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("cert-file", cert);
ctx.leave();
}
-#line 2029 "dhcp6_parser.cc"
+#line 1998 "dhcp6_parser.cc"
break;
- case 262:
+ case 262: // $@43: %empty
#line 1057 "dhcp6_parser.yy"
{
ctx.unique("key-file", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2038 "dhcp6_parser.cc"
+#line 2007 "dhcp6_parser.cc"
break;
- case 263:
+ case 263: // key_file: "key-file" $@43 ":" "constant string"
#line 1060 "dhcp6_parser.yy"
{
ElementPtr key(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("key-file", key);
ctx.leave();
}
-#line 2048 "dhcp6_parser.cc"
+#line 2017 "dhcp6_parser.cc"
break;
- case 264:
+ case 264: // $@44: %empty
#line 1066 "dhcp6_parser.yy"
{
ctx.unique("cipher-list", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2057 "dhcp6_parser.cc"
+#line 2026 "dhcp6_parser.cc"
break;
- case 265:
+ case 265: // cipher_list: "cipher-list" $@44 ":" "constant string"
#line 1069 "dhcp6_parser.yy"
{
ElementPtr cl(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("cipher-list", cl);
ctx.leave();
}
-#line 2067 "dhcp6_parser.cc"
+#line 2036 "dhcp6_parser.cc"
break;
- case 266:
+ case 266: // $@45: %empty
#line 1075 "dhcp6_parser.yy"
{
ctx.unique("sanity-checks", ctx.loc2pos(yystack_[0].location));
@@ -2075,36 +2044,36 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(m);
ctx.enter(ctx.SANITY_CHECKS);
}
-#line 2079 "dhcp6_parser.cc"
+#line 2048 "dhcp6_parser.cc"
break;
- case 267:
+ case 267: // sanity_checks: "sanity-checks" $@45 ":" "{" sanity_checks_params "}"
#line 1081 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2088 "dhcp6_parser.cc"
+#line 2057 "dhcp6_parser.cc"
break;
- case 270:
+ case 270: // sanity_checks_params: sanity_checks_params ","
#line 1088 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 2096 "dhcp6_parser.cc"
+#line 2065 "dhcp6_parser.cc"
break;
- case 272:
+ case 272: // $@46: %empty
#line 1095 "dhcp6_parser.yy"
{
ctx.unique("lease-checks", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2105 "dhcp6_parser.cc"
+#line 2074 "dhcp6_parser.cc"
break;
- case 273:
+ case 273: // lease_checks: "lease-checks" $@46 ":" "constant string"
#line 1098 "dhcp6_parser.yy"
{
@@ -2121,10 +2090,10 @@ namespace isc { namespace dhcp {
", supported values are: none, warn, fix, fix-del, del");
}
}
-#line 2125 "dhcp6_parser.cc"
+#line 2094 "dhcp6_parser.cc"
break;
- case 274:
+ case 274: // $@47: %empty
#line 1114 "dhcp6_parser.yy"
{
ctx.unique("mac-sources", ctx.loc2pos(yystack_[0].location));
@@ -2133,45 +2102,45 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(l);
ctx.enter(ctx.MAC_SOURCES);
}
-#line 2137 "dhcp6_parser.cc"
+#line 2106 "dhcp6_parser.cc"
break;
- case 275:
+ case 275: // mac_sources: "mac-sources" $@47 ":" "[" mac_sources_list "]"
#line 1120 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2146 "dhcp6_parser.cc"
+#line 2115 "dhcp6_parser.cc"
break;
- case 278:
+ case 278: // mac_sources_list: mac_sources_list ","
#line 1127 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 2154 "dhcp6_parser.cc"
+#line 2123 "dhcp6_parser.cc"
break;
- case 281:
+ case 281: // duid_id: "duid"
#line 1136 "dhcp6_parser.yy"
{
ElementPtr duid(new StringElement("duid", ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(duid);
}
-#line 2163 "dhcp6_parser.cc"
+#line 2132 "dhcp6_parser.cc"
break;
- case 282:
+ case 282: // string_id: "constant string"
#line 1141 "dhcp6_parser.yy"
{
ElementPtr duid(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(duid);
}
-#line 2172 "dhcp6_parser.cc"
+#line 2141 "dhcp6_parser.cc"
break;
- case 283:
+ case 283: // $@48: %empty
#line 1146 "dhcp6_parser.yy"
{
ctx.unique("host-reservation-identifiers", ctx.loc2pos(yystack_[0].location));
@@ -2180,45 +2149,45 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(l);
ctx.enter(ctx.HOST_RESERVATION_IDENTIFIERS);
}
-#line 2184 "dhcp6_parser.cc"
+#line 2153 "dhcp6_parser.cc"
break;
- case 284:
+ case 284: // host_reservation_identifiers: "host-reservation-identifiers" $@48 ":" "[" host_reservation_identifiers_list "]"
#line 1152 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2193 "dhcp6_parser.cc"
+#line 2162 "dhcp6_parser.cc"
break;
- case 287:
+ case 287: // host_reservation_identifiers_list: host_reservation_identifiers_list ","
#line 1159 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 2201 "dhcp6_parser.cc"
+#line 2170 "dhcp6_parser.cc"
break;
- case 291:
+ case 291: // hw_address_id: "hw-address"
#line 1169 "dhcp6_parser.yy"
{
ElementPtr hwaddr(new StringElement("hw-address", ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(hwaddr);
}
-#line 2210 "dhcp6_parser.cc"
+#line 2179 "dhcp6_parser.cc"
break;
- case 292:
+ case 292: // flex_id: "flex-id"
#line 1174 "dhcp6_parser.yy"
{
ElementPtr flex_id(new StringElement("flex-id", ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(flex_id);
}
-#line 2219 "dhcp6_parser.cc"
+#line 2188 "dhcp6_parser.cc"
break;
- case 293:
+ case 293: // $@49: %empty
#line 1181 "dhcp6_parser.yy"
{
ctx.unique("relay-supplied-options", ctx.loc2pos(yystack_[0].location));
@@ -2227,19 +2196,19 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(l);
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2231 "dhcp6_parser.cc"
+#line 2200 "dhcp6_parser.cc"
break;
- case 294:
+ case 294: // relay_supplied_options: "relay-supplied-options" $@49 ":" "[" list_content "]"
#line 1187 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2240 "dhcp6_parser.cc"
+#line 2209 "dhcp6_parser.cc"
break;
- case 295:
+ case 295: // $@50: %empty
#line 1194 "dhcp6_parser.yy"
{
ctx.unique("multi-threading", ctx.loc2pos(yystack_[0].location));
@@ -2248,10 +2217,10 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(mt);
ctx.enter(ctx.DHCP_MULTI_THREADING);
}
-#line 2252 "dhcp6_parser.cc"
+#line 2221 "dhcp6_parser.cc"
break;
- case 296:
+ case 296: // dhcp_multi_threading: "multi-threading" $@50 ":" "{" multi_threading_params "}"
#line 1200 "dhcp6_parser.yy"
{
// The enable parameter is required.
@@ -2259,48 +2228,48 @@ namespace isc { namespace dhcp {
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2263 "dhcp6_parser.cc"
+#line 2232 "dhcp6_parser.cc"
break;
- case 299:
+ case 299: // multi_threading_params: multi_threading_params ","
#line 1209 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 2271 "dhcp6_parser.cc"
+#line 2240 "dhcp6_parser.cc"
break;
- case 306:
+ case 306: // enable_multi_threading: "enable-multi-threading" ":" "boolean"
#line 1222 "dhcp6_parser.yy"
{
ctx.unique("enable-multi-threading", ctx.loc2pos(yystack_[2].location));
ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("enable-multi-threading", b);
}
-#line 2281 "dhcp6_parser.cc"
+#line 2250 "dhcp6_parser.cc"
break;
- case 307:
+ case 307: // thread_pool_size: "thread-pool-size" ":" "integer"
#line 1228 "dhcp6_parser.yy"
{
ctx.unique("thread-pool-size", ctx.loc2pos(yystack_[2].location));
ElementPtr prf(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("thread-pool-size", prf);
}
-#line 2291 "dhcp6_parser.cc"
+#line 2260 "dhcp6_parser.cc"
break;
- case 308:
+ case 308: // packet_queue_size: "packet-queue-size" ":" "integer"
#line 1234 "dhcp6_parser.yy"
{
ctx.unique("packet-queue-size", ctx.loc2pos(yystack_[2].location));
ElementPtr prf(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("packet-queue-size", prf);
}
-#line 2301 "dhcp6_parser.cc"
+#line 2270 "dhcp6_parser.cc"
break;
- case 309:
+ case 309: // $@51: %empty
#line 1240 "dhcp6_parser.yy"
{
ctx.unique("hooks-libraries", ctx.loc2pos(yystack_[0].location));
@@ -2309,112 +2278,112 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(l);
ctx.enter(ctx.HOOKS_LIBRARIES);
}
-#line 2313 "dhcp6_parser.cc"
+#line 2282 "dhcp6_parser.cc"
break;
- case 310:
+ case 310: // hooks_libraries: "hooks-libraries" $@51 ":" "[" hooks_libraries_list "]"
#line 1246 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2322 "dhcp6_parser.cc"
+#line 2291 "dhcp6_parser.cc"
break;
- case 315:
+ case 315: // not_empty_hooks_libraries_list: not_empty_hooks_libraries_list ","
#line 1257 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 2330 "dhcp6_parser.cc"
+#line 2299 "dhcp6_parser.cc"
break;
- case 316:
+ case 316: // $@52: %empty
#line 1262 "dhcp6_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 2340 "dhcp6_parser.cc"
+#line 2309 "dhcp6_parser.cc"
break;
- case 317:
+ case 317: // hooks_library: "{" $@52 hooks_params "}"
#line 1266 "dhcp6_parser.yy"
{
// The library hooks parameter is required
ctx.require("library", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location));
ctx.stack_.pop_back();
}
-#line 2350 "dhcp6_parser.cc"
+#line 2319 "dhcp6_parser.cc"
break;
- case 318:
+ case 318: // $@53: %empty
#line 1272 "dhcp6_parser.yy"
{
// Parse the hooks-libraries list entry map
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 2360 "dhcp6_parser.cc"
+#line 2329 "dhcp6_parser.cc"
break;
- case 319:
+ case 319: // sub_hooks_library: "{" $@53 hooks_params "}"
#line 1276 "dhcp6_parser.yy"
{
// The library hooks parameter is required
ctx.require("library", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location));
// parsing completed
}
-#line 2370 "dhcp6_parser.cc"
+#line 2339 "dhcp6_parser.cc"
break;
- case 322:
+ case 322: // hooks_params: hooks_params ","
#line 1284 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 2378 "dhcp6_parser.cc"
+#line 2347 "dhcp6_parser.cc"
break;
- case 326:
+ case 326: // $@54: %empty
#line 1294 "dhcp6_parser.yy"
{
ctx.unique("library", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2387 "dhcp6_parser.cc"
+#line 2356 "dhcp6_parser.cc"
break;
- case 327:
+ case 327: // library: "library" $@54 ":" "constant string"
#line 1297 "dhcp6_parser.yy"
{
ElementPtr lib(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("library", lib);
ctx.leave();
}
-#line 2397 "dhcp6_parser.cc"
+#line 2366 "dhcp6_parser.cc"
break;
- case 328:
+ case 328: // $@55: %empty
#line 1303 "dhcp6_parser.yy"
{
ctx.unique("parameters", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2406 "dhcp6_parser.cc"
+#line 2375 "dhcp6_parser.cc"
break;
- case 329:
+ case 329: // parameters: "parameters" $@55 ":" map_value
#line 1306 "dhcp6_parser.yy"
{
ctx.stack_.back()->set("parameters", yystack_[0].value.as < ElementPtr > ());
ctx.leave();
}
-#line 2415 "dhcp6_parser.cc"
+#line 2384 "dhcp6_parser.cc"
break;
- case 330:
+ case 330: // $@56: %empty
#line 1312 "dhcp6_parser.yy"
{
ctx.unique("expired-leases-processing", ctx.loc2pos(yystack_[0].location));
@@ -2423,88 +2392,88 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(m);
ctx.enter(ctx.EXPIRED_LEASES_PROCESSING);
}
-#line 2427 "dhcp6_parser.cc"
+#line 2396 "dhcp6_parser.cc"
break;
- case 331:
+ case 331: // expired_leases_processing: "expired-leases-processing" $@56 ":" "{" expired_leases_params "}"
#line 1318 "dhcp6_parser.yy"
{
// No expired lease parameter is required
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2437 "dhcp6_parser.cc"
+#line 2406 "dhcp6_parser.cc"
break;
- case 334:
+ case 334: // expired_leases_params: expired_leases_params ","
#line 1326 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 2445 "dhcp6_parser.cc"
+#line 2414 "dhcp6_parser.cc"
break;
- case 341:
+ case 341: // reclaim_timer_wait_time: "reclaim-timer-wait-time" ":" "integer"
#line 1339 "dhcp6_parser.yy"
{
ctx.unique("reclaim-timer-wait-time", ctx.loc2pos(yystack_[2].location));
ElementPtr value(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("reclaim-timer-wait-time", value);
}
-#line 2455 "dhcp6_parser.cc"
+#line 2424 "dhcp6_parser.cc"
break;
- case 342:
+ case 342: // flush_reclaimed_timer_wait_time: "flush-reclaimed-timer-wait-time" ":" "integer"
#line 1345 "dhcp6_parser.yy"
{
ctx.unique("flush-reclaimed-timer-wait-time", ctx.loc2pos(yystack_[2].location));
ElementPtr value(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("flush-reclaimed-timer-wait-time", value);
}
-#line 2465 "dhcp6_parser.cc"
+#line 2434 "dhcp6_parser.cc"
break;
- case 343:
+ case 343: // hold_reclaimed_time: "hold-reclaimed-time" ":" "integer"
#line 1351 "dhcp6_parser.yy"
{
ctx.unique("hold-reclaimed-time", ctx.loc2pos(yystack_[2].location));
ElementPtr value(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("hold-reclaimed-time", value);
}
-#line 2475 "dhcp6_parser.cc"
+#line 2444 "dhcp6_parser.cc"
break;
- case 344:
+ case 344: // max_reclaim_leases: "max-reclaim-leases" ":" "integer"
#line 1357 "dhcp6_parser.yy"
{
ctx.unique("max-reclaim-leases", ctx.loc2pos(yystack_[2].location));
ElementPtr value(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("max-reclaim-leases", value);
}
-#line 2485 "dhcp6_parser.cc"
+#line 2454 "dhcp6_parser.cc"
break;
- case 345:
+ case 345: // max_reclaim_time: "max-reclaim-time" ":" "integer"
#line 1363 "dhcp6_parser.yy"
{
ctx.unique("max-reclaim-time", ctx.loc2pos(yystack_[2].location));
ElementPtr value(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("max-reclaim-time", value);
}
-#line 2495 "dhcp6_parser.cc"
+#line 2464 "dhcp6_parser.cc"
break;
- case 346:
+ case 346: // unwarned_reclaim_cycles: "unwarned-reclaim-cycles" ":" "integer"
#line 1369 "dhcp6_parser.yy"
{
ctx.unique("unwarned-reclaim-cycles", ctx.loc2pos(yystack_[2].location));
ElementPtr value(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("unwarned-reclaim-cycles", value);
}
-#line 2505 "dhcp6_parser.cc"
+#line 2474 "dhcp6_parser.cc"
break;
- case 347:
+ case 347: // $@57: %empty
#line 1378 "dhcp6_parser.yy"
{
ctx.unique("subnet6", ctx.loc2pos(yystack_[0].location));
@@ -2513,37 +2482,37 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(l);
ctx.enter(ctx.SUBNET6);
}
-#line 2517 "dhcp6_parser.cc"
+#line 2486 "dhcp6_parser.cc"
break;
- case 348:
+ case 348: // subnet6_list: "subnet6" $@57 ":" "[" subnet6_list_content "]"
#line 1384 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2526 "dhcp6_parser.cc"
+#line 2495 "dhcp6_parser.cc"
break;
- case 353:
+ case 353: // not_empty_subnet6_list: not_empty_subnet6_list ","
#line 1398 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 2534 "dhcp6_parser.cc"
+#line 2503 "dhcp6_parser.cc"
break;
- case 354:
+ case 354: // $@58: %empty
#line 1407 "dhcp6_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 2544 "dhcp6_parser.cc"
+#line 2513 "dhcp6_parser.cc"
break;
- case 355:
+ case 355: // subnet6: "{" $@58 subnet6_params "}"
#line 1411 "dhcp6_parser.yy"
{
// Once we reached this place, the subnet parsing is now complete.
@@ -2566,114 +2535,114 @@ namespace isc { namespace dhcp {
ctx.require("subnet", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location));
ctx.stack_.pop_back();
}
-#line 2570 "dhcp6_parser.cc"
+#line 2539 "dhcp6_parser.cc"
break;
- case 356:
+ case 356: // $@59: %empty
#line 1433 "dhcp6_parser.yy"
{
// Parse the subnet6 list entry map
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 2580 "dhcp6_parser.cc"
+#line 2549 "dhcp6_parser.cc"
break;
- case 357:
+ case 357: // sub_subnet6: "{" $@59 subnet6_params "}"
#line 1437 "dhcp6_parser.yy"
{
// The subnet subnet6 parameter is required
ctx.require("subnet", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location));
// parsing completed
}
-#line 2590 "dhcp6_parser.cc"
+#line 2559 "dhcp6_parser.cc"
break;
- case 360:
+ case 360: // subnet6_params: subnet6_params ","
#line 1446 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 2598 "dhcp6_parser.cc"
+#line 2567 "dhcp6_parser.cc"
break;
- case 404:
+ case 404: // $@60: %empty
#line 1497 "dhcp6_parser.yy"
{
ctx.unique("subnet", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2607 "dhcp6_parser.cc"
+#line 2576 "dhcp6_parser.cc"
break;
- case 405:
+ case 405: // subnet: "subnet" $@60 ":" "constant string"
#line 1500 "dhcp6_parser.yy"
{
ElementPtr subnet(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("subnet", subnet);
ctx.leave();
}
-#line 2617 "dhcp6_parser.cc"
+#line 2586 "dhcp6_parser.cc"
break;
- case 406:
+ case 406: // $@61: %empty
#line 1506 "dhcp6_parser.yy"
{
ctx.unique("interface", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2626 "dhcp6_parser.cc"
+#line 2595 "dhcp6_parser.cc"
break;
- case 407:
+ case 407: // interface: "interface" $@61 ":" "constant string"
#line 1509 "dhcp6_parser.yy"
{
ElementPtr iface(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("interface", iface);
ctx.leave();
}
-#line 2636 "dhcp6_parser.cc"
+#line 2605 "dhcp6_parser.cc"
break;
- case 408:
+ case 408: // $@62: %empty
#line 1515 "dhcp6_parser.yy"
{
ctx.unique("interface-id", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2645 "dhcp6_parser.cc"
+#line 2614 "dhcp6_parser.cc"
break;
- case 409:
+ case 409: // interface_id: "interface-id" $@62 ":" "constant string"
#line 1518 "dhcp6_parser.yy"
{
ElementPtr iface(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("interface-id", iface);
ctx.leave();
}
-#line 2655 "dhcp6_parser.cc"
+#line 2624 "dhcp6_parser.cc"
break;
- case 410:
+ case 410: // $@63: %empty
#line 1524 "dhcp6_parser.yy"
{
ctx.unique("client-class", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2664 "dhcp6_parser.cc"
+#line 2633 "dhcp6_parser.cc"
break;
- case 411:
+ case 411: // client_class: "client-class" $@63 ":" "constant string"
#line 1527 "dhcp6_parser.yy"
{
ElementPtr cls(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("client-class", cls);
ctx.leave();
}
-#line 2674 "dhcp6_parser.cc"
+#line 2643 "dhcp6_parser.cc"
break;
- case 412:
+ case 412: // $@64: %empty
#line 1533 "dhcp6_parser.yy"
{
ctx.unique("require-client-classes", ctx.loc2pos(yystack_[0].location));
@@ -2682,111 +2651,111 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(c);
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2686 "dhcp6_parser.cc"
+#line 2655 "dhcp6_parser.cc"
break;
- case 413:
+ case 413: // require_client_classes: "require-client-classes" $@64 ":" list_strings
#line 1539 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2695 "dhcp6_parser.cc"
+#line 2664 "dhcp6_parser.cc"
break;
- case 414:
+ case 414: // reservations_global: "reservations-global" ":" "boolean"
#line 1544 "dhcp6_parser.yy"
{
ctx.unique("reservations-global", ctx.loc2pos(yystack_[2].location));
ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("reservations-global", b);
}
-#line 2705 "dhcp6_parser.cc"
+#line 2674 "dhcp6_parser.cc"
break;
- case 415:
+ case 415: // reservations_in_subnet: "reservations-in-subnet" ":" "boolean"
#line 1550 "dhcp6_parser.yy"
{
ctx.unique("reservations-in-subnet", ctx.loc2pos(yystack_[2].location));
ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("reservations-in-subnet", b);
}
-#line 2715 "dhcp6_parser.cc"
+#line 2684 "dhcp6_parser.cc"
break;
- case 416:
+ case 416: // reservations_out_of_pool: "reservations-out-of-pool" ":" "boolean"
#line 1556 "dhcp6_parser.yy"
{
ctx.unique("reservations-out-of-pool", ctx.loc2pos(yystack_[2].location));
ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("reservations-out-of-pool", b);
}
-#line 2725 "dhcp6_parser.cc"
+#line 2694 "dhcp6_parser.cc"
break;
- case 417:
+ case 417: // $@65: %empty
#line 1562 "dhcp6_parser.yy"
{
ctx.unique("reservation-mode", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.RESERVATION_MODE);
}
-#line 2734 "dhcp6_parser.cc"
+#line 2703 "dhcp6_parser.cc"
break;
- case 418:
+ case 418: // reservation_mode: "reservation-mode" $@65 ":" hr_mode
#line 1565 "dhcp6_parser.yy"
{
ctx.stack_.back()->set("reservation-mode", yystack_[0].value.as < ElementPtr > ());
ctx.leave();
}
-#line 2743 "dhcp6_parser.cc"
+#line 2712 "dhcp6_parser.cc"
break;
- case 419:
+ case 419: // hr_mode: "disabled"
#line 1570 "dhcp6_parser.yy"
{ yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("disabled", ctx.loc2pos(yystack_[0].location))); }
-#line 2749 "dhcp6_parser.cc"
+#line 2718 "dhcp6_parser.cc"
break;
- case 420:
+ case 420: // hr_mode: "out-of-pool"
#line 1571 "dhcp6_parser.yy"
{ yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("out-of-pool", ctx.loc2pos(yystack_[0].location))); }
-#line 2755 "dhcp6_parser.cc"
+#line 2724 "dhcp6_parser.cc"
break;
- case 421:
+ case 421: // hr_mode: "global"
#line 1572 "dhcp6_parser.yy"
{ yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("global", ctx.loc2pos(yystack_[0].location))); }
-#line 2761 "dhcp6_parser.cc"
+#line 2730 "dhcp6_parser.cc"
break;
- case 422:
+ case 422: // hr_mode: "all"
#line 1573 "dhcp6_parser.yy"
{ yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("all", ctx.loc2pos(yystack_[0].location))); }
-#line 2767 "dhcp6_parser.cc"
+#line 2736 "dhcp6_parser.cc"
break;
- case 423:
+ case 423: // id: "id" ":" "integer"
#line 1576 "dhcp6_parser.yy"
{
ctx.unique("id", ctx.loc2pos(yystack_[2].location));
ElementPtr id(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("id", id);
}
-#line 2777 "dhcp6_parser.cc"
+#line 2746 "dhcp6_parser.cc"
break;
- case 424:
+ case 424: // rapid_commit: "rapid-commit" ":" "boolean"
#line 1582 "dhcp6_parser.yy"
{
ctx.unique("rapid-commit", ctx.loc2pos(yystack_[2].location));
ElementPtr rc(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("rapid-commit", rc);
}
-#line 2787 "dhcp6_parser.cc"
+#line 2756 "dhcp6_parser.cc"
break;
- case 425:
+ case 425: // $@66: %empty
#line 1590 "dhcp6_parser.yy"
{
ctx.unique("shared-networks", ctx.loc2pos(yystack_[0].location));
@@ -2795,53 +2764,53 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(l);
ctx.enter(ctx.SHARED_NETWORK);
}
-#line 2799 "dhcp6_parser.cc"
+#line 2768 "dhcp6_parser.cc"
break;
- case 426:
+ case 426: // shared_networks: "shared-networks" $@66 ":" "[" shared_networks_content "]"
#line 1596 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2808 "dhcp6_parser.cc"
+#line 2777 "dhcp6_parser.cc"
break;
- case 431:
+ case 431: // shared_networks_list: shared_networks_list ","
#line 1609 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 2816 "dhcp6_parser.cc"
+#line 2785 "dhcp6_parser.cc"
break;
- case 432:
+ case 432: // $@67: %empty
#line 1614 "dhcp6_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 2826 "dhcp6_parser.cc"
+#line 2795 "dhcp6_parser.cc"
break;
- case 433:
+ case 433: // shared_network: "{" $@67 shared_network_params "}"
#line 1618 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
}
-#line 2834 "dhcp6_parser.cc"
+#line 2803 "dhcp6_parser.cc"
break;
- case 436:
+ case 436: // shared_network_params: shared_network_params ","
#line 1624 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 2842 "dhcp6_parser.cc"
+#line 2811 "dhcp6_parser.cc"
break;
- case 477:
+ case 477: // $@68: %empty
#line 1675 "dhcp6_parser.yy"
{
ctx.unique("option-def", ctx.loc2pos(yystack_[0].location));
@@ -2850,54 +2819,54 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(l);
ctx.enter(ctx.OPTION_DEF);
}
-#line 2854 "dhcp6_parser.cc"
+#line 2823 "dhcp6_parser.cc"
break;
- case 478:
+ case 478: // option_def_list: "option-def" $@68 ":" "[" option_def_list_content "]"
#line 1681 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 2863 "dhcp6_parser.cc"
+#line 2832 "dhcp6_parser.cc"
break;
- case 479:
+ case 479: // $@69: %empty
#line 1689 "dhcp6_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 2872 "dhcp6_parser.cc"
+#line 2841 "dhcp6_parser.cc"
break;
- case 480:
+ case 480: // sub_option_def_list: "{" $@69 option_def_list "}"
#line 1692 "dhcp6_parser.yy"
{
// parsing completed
}
-#line 2880 "dhcp6_parser.cc"
+#line 2849 "dhcp6_parser.cc"
break;
- case 485:
+ case 485: // not_empty_option_def_list: not_empty_option_def_list ","
#line 1704 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 2888 "dhcp6_parser.cc"
+#line 2857 "dhcp6_parser.cc"
break;
- case 486:
+ case 486: // $@70: %empty
#line 1711 "dhcp6_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 2898 "dhcp6_parser.cc"
+#line 2867 "dhcp6_parser.cc"
break;
- case 487:
+ case 487: // option_def_entry: "{" $@70 option_def_params "}"
#line 1715 "dhcp6_parser.yy"
{
// The name, code and type option def parameters are required.
@@ -2906,20 +2875,20 @@ namespace isc { namespace dhcp {
ctx.require("type", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location));
ctx.stack_.pop_back();
}
-#line 2910 "dhcp6_parser.cc"
+#line 2879 "dhcp6_parser.cc"
break;
- case 488:
+ case 488: // $@71: %empty
#line 1726 "dhcp6_parser.yy"
{
// Parse the option-def list entry map
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 2920 "dhcp6_parser.cc"
+#line 2889 "dhcp6_parser.cc"
break;
- case 489:
+ case 489: // sub_option_def: "{" $@71 option_def_params "}"
#line 1730 "dhcp6_parser.yy"
{
// The name, code and type option def parameters are required.
@@ -2928,114 +2897,114 @@ namespace isc { namespace dhcp {
ctx.require("type", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location));
// parsing completed
}
-#line 2932 "dhcp6_parser.cc"
+#line 2901 "dhcp6_parser.cc"
break;
- case 494:
+ case 494: // not_empty_option_def_params: not_empty_option_def_params ","
#line 1746 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 2940 "dhcp6_parser.cc"
+#line 2909 "dhcp6_parser.cc"
break;
- case 506:
+ case 506: // code: "code" ":" "integer"
#line 1765 "dhcp6_parser.yy"
{
ctx.unique("code", ctx.loc2pos(yystack_[2].location));
ElementPtr code(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("code", code);
}
-#line 2950 "dhcp6_parser.cc"
+#line 2919 "dhcp6_parser.cc"
break;
- case 508:
+ case 508: // $@72: %empty
#line 1773 "dhcp6_parser.yy"
{
ctx.unique("type", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2959 "dhcp6_parser.cc"
+#line 2928 "dhcp6_parser.cc"
break;
- case 509:
+ case 509: // option_def_type: "type" $@72 ":" "constant string"
#line 1776 "dhcp6_parser.yy"
{
ElementPtr prf(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("type", prf);
ctx.leave();
}
-#line 2969 "dhcp6_parser.cc"
+#line 2938 "dhcp6_parser.cc"
break;
- case 510:
+ case 510: // $@73: %empty
#line 1782 "dhcp6_parser.yy"
{
ctx.unique("record-types", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2978 "dhcp6_parser.cc"
+#line 2947 "dhcp6_parser.cc"
break;
- case 511:
+ case 511: // option_def_record_types: "record-types" $@73 ":" "constant string"
#line 1785 "dhcp6_parser.yy"
{
ElementPtr rtypes(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("record-types", rtypes);
ctx.leave();
}
-#line 2988 "dhcp6_parser.cc"
+#line 2957 "dhcp6_parser.cc"
break;
- case 512:
+ case 512: // $@74: %empty
#line 1791 "dhcp6_parser.yy"
{
ctx.unique("space", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 2997 "dhcp6_parser.cc"
+#line 2966 "dhcp6_parser.cc"
break;
- case 513:
+ case 513: // space: "space" $@74 ":" "constant string"
#line 1794 "dhcp6_parser.yy"
{
ElementPtr space(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("space", space);
ctx.leave();
}
-#line 3007 "dhcp6_parser.cc"
+#line 2976 "dhcp6_parser.cc"
break;
- case 515:
+ case 515: // $@75: %empty
#line 1802 "dhcp6_parser.yy"
{
ctx.unique("encapsulate", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3016 "dhcp6_parser.cc"
+#line 2985 "dhcp6_parser.cc"
break;
- case 516:
+ case 516: // option_def_encapsulate: "encapsulate" $@75 ":" "constant string"
#line 1805 "dhcp6_parser.yy"
{
ElementPtr encap(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("encapsulate", encap);
ctx.leave();
}
-#line 3026 "dhcp6_parser.cc"
+#line 2995 "dhcp6_parser.cc"
break;
- case 517:
+ case 517: // option_def_array: "array" ":" "boolean"
#line 1811 "dhcp6_parser.yy"
{
ctx.unique("array", ctx.loc2pos(yystack_[2].location));
ElementPtr array(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("array", array);
}
-#line 3036 "dhcp6_parser.cc"
+#line 3005 "dhcp6_parser.cc"
break;
- case 518:
+ case 518: // $@76: %empty
#line 1821 "dhcp6_parser.yy"
{
ctx.unique("option-data", ctx.loc2pos(yystack_[0].location));
@@ -3044,112 +3013,112 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(l);
ctx.enter(ctx.OPTION_DATA);
}
-#line 3048 "dhcp6_parser.cc"
+#line 3017 "dhcp6_parser.cc"
break;
- case 519:
+ case 519: // option_data_list: "option-data" $@76 ":" "[" option_data_list_content "]"
#line 1827 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 3057 "dhcp6_parser.cc"
+#line 3026 "dhcp6_parser.cc"
break;
- case 524:
+ case 524: // not_empty_option_data_list: not_empty_option_data_list ","
#line 1842 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 3065 "dhcp6_parser.cc"
+#line 3034 "dhcp6_parser.cc"
break;
- case 525:
+ case 525: // $@77: %empty
#line 1849 "dhcp6_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 3075 "dhcp6_parser.cc"
+#line 3044 "dhcp6_parser.cc"
break;
- case 526:
+ case 526: // option_data_entry: "{" $@77 option_data_params "}"
#line 1853 "dhcp6_parser.yy"
{
/// @todo: the code or name parameters are required.
ctx.stack_.pop_back();
}
-#line 3084 "dhcp6_parser.cc"
+#line 3053 "dhcp6_parser.cc"
break;
- case 527:
+ case 527: // $@78: %empty
#line 1861 "dhcp6_parser.yy"
{
// Parse the option-data list entry map
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 3094 "dhcp6_parser.cc"
+#line 3063 "dhcp6_parser.cc"
break;
- case 528:
+ case 528: // sub_option_data: "{" $@78 option_data_params "}"
#line 1865 "dhcp6_parser.yy"
{
/// @todo: the code or name parameters are required.
// parsing completed
}
-#line 3103 "dhcp6_parser.cc"
+#line 3072 "dhcp6_parser.cc"
break;
- case 533:
+ case 533: // not_empty_option_data_params: not_empty_option_data_params ","
#line 1881 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 3111 "dhcp6_parser.cc"
+#line 3080 "dhcp6_parser.cc"
break;
- case 544:
+ case 544: // $@79: %empty
#line 1901 "dhcp6_parser.yy"
{
ctx.unique("data", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3120 "dhcp6_parser.cc"
+#line 3089 "dhcp6_parser.cc"
break;
- case 545:
+ case 545: // option_data_data: "data" $@79 ":" "constant string"
#line 1904 "dhcp6_parser.yy"
{
ElementPtr data(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("data", data);
ctx.leave();
}
-#line 3130 "dhcp6_parser.cc"
+#line 3099 "dhcp6_parser.cc"
break;
- case 548:
+ case 548: // option_data_csv_format: "csv-format" ":" "boolean"
#line 1914 "dhcp6_parser.yy"
{
ctx.unique("csv-format", ctx.loc2pos(yystack_[2].location));
ElementPtr space(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("csv-format", space);
}
-#line 3140 "dhcp6_parser.cc"
+#line 3109 "dhcp6_parser.cc"
break;
- case 549:
+ case 549: // option_data_always_send: "always-send" ":" "boolean"
#line 1920 "dhcp6_parser.yy"
{
ctx.unique("always-send", ctx.loc2pos(yystack_[2].location));
ElementPtr persist(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("always-send", persist);
}
-#line 3150 "dhcp6_parser.cc"
+#line 3119 "dhcp6_parser.cc"
break;
- case 550:
+ case 550: // $@80: %empty
#line 1929 "dhcp6_parser.yy"
{
ctx.unique("pools", ctx.loc2pos(yystack_[0].location));
@@ -3158,102 +3127,102 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(l);
ctx.enter(ctx.POOLS);
}
-#line 3162 "dhcp6_parser.cc"
+#line 3131 "dhcp6_parser.cc"
break;
- case 551:
+ case 551: // pools_list: "pools" $@80 ":" "[" pools_list_content "]"
#line 1935 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 3171 "dhcp6_parser.cc"
+#line 3140 "dhcp6_parser.cc"
break;
- case 556:
+ case 556: // not_empty_pools_list: not_empty_pools_list ","
#line 1948 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 3179 "dhcp6_parser.cc"
+#line 3148 "dhcp6_parser.cc"
break;
- case 557:
+ case 557: // $@81: %empty
#line 1953 "dhcp6_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 3189 "dhcp6_parser.cc"
+#line 3158 "dhcp6_parser.cc"
break;
- case 558:
+ case 558: // pool_list_entry: "{" $@81 pool_params "}"
#line 1957 "dhcp6_parser.yy"
{
// The pool parameter is required.
ctx.require("pool", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location));
ctx.stack_.pop_back();
}
-#line 3199 "dhcp6_parser.cc"
+#line 3168 "dhcp6_parser.cc"
break;
- case 559:
+ case 559: // $@82: %empty
#line 1963 "dhcp6_parser.yy"
{
// Parse the pool list entry map
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 3209 "dhcp6_parser.cc"
+#line 3178 "dhcp6_parser.cc"
break;
- case 560:
+ case 560: // sub_pool6: "{" $@82 pool_params "}"
#line 1967 "dhcp6_parser.yy"
{
// The pool parameter is required.
ctx.require("pool", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location));
// parsing completed
}
-#line 3219 "dhcp6_parser.cc"
+#line 3188 "dhcp6_parser.cc"
break;
- case 563:
+ case 563: // pool_params: pool_params ","
#line 1975 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 3227 "dhcp6_parser.cc"
+#line 3196 "dhcp6_parser.cc"
break;
- case 571:
+ case 571: // $@83: %empty
#line 1989 "dhcp6_parser.yy"
{
ctx.unique("pool", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3236 "dhcp6_parser.cc"
+#line 3205 "dhcp6_parser.cc"
break;
- case 572:
+ case 572: // pool_entry: "pool" $@83 ":" "constant string"
#line 1992 "dhcp6_parser.yy"
{
ElementPtr pool(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("pool", pool);
ctx.leave();
}
-#line 3246 "dhcp6_parser.cc"
+#line 3215 "dhcp6_parser.cc"
break;
- case 573:
+ case 573: // $@84: %empty
#line 1998 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3254 "dhcp6_parser.cc"
+#line 3223 "dhcp6_parser.cc"
break;
- case 574:
+ case 574: // user_context: "user-context" $@84 ":" map_value
#line 2000 "dhcp6_parser.yy"
{
ElementPtr parent = ctx.stack_.back();
@@ -3277,18 +3246,18 @@ namespace isc { namespace dhcp {
parent->set("user-context", user_context);
ctx.leave();
}
-#line 3281 "dhcp6_parser.cc"
+#line 3250 "dhcp6_parser.cc"
break;
- case 575:
+ case 575: // $@85: %empty
#line 2023 "dhcp6_parser.yy"
{
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3289 "dhcp6_parser.cc"
+#line 3258 "dhcp6_parser.cc"
break;
- case 576:
+ case 576: // comment: "comment" $@85 ":" "constant string"
#line 2025 "dhcp6_parser.yy"
{
ElementPtr parent = ctx.stack_.back();
@@ -3314,10 +3283,10 @@ namespace isc { namespace dhcp {
parent->set("user-context", user_context);
ctx.leave();
}
-#line 3318 "dhcp6_parser.cc"
+#line 3287 "dhcp6_parser.cc"
break;
- case 577:
+ case 577: // $@86: %empty
#line 2053 "dhcp6_parser.yy"
{
ctx.unique("pd-pools", ctx.loc2pos(yystack_[0].location));
@@ -3326,37 +3295,37 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(l);
ctx.enter(ctx.PD_POOLS);
}
-#line 3330 "dhcp6_parser.cc"
+#line 3299 "dhcp6_parser.cc"
break;
- case 578:
+ case 578: // pd_pools_list: "pd-pools" $@86 ":" "[" pd_pools_list_content "]"
#line 2059 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 3339 "dhcp6_parser.cc"
+#line 3308 "dhcp6_parser.cc"
break;
- case 583:
+ case 583: // not_empty_pd_pools_list: not_empty_pd_pools_list ","
#line 2072 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 3347 "dhcp6_parser.cc"
+#line 3316 "dhcp6_parser.cc"
break;
- case 584:
+ case 584: // $@87: %empty
#line 2077 "dhcp6_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 3357 "dhcp6_parser.cc"
+#line 3326 "dhcp6_parser.cc"
break;
- case 585:
+ case 585: // pd_pool_entry: "{" $@87 pd_pool_params "}"
#line 2081 "dhcp6_parser.yy"
{
// The prefix, prefix len and delegated len parameters are required.
@@ -3365,20 +3334,20 @@ namespace isc { namespace dhcp {
ctx.require("delegated-len", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location));
ctx.stack_.pop_back();
}
-#line 3369 "dhcp6_parser.cc"
+#line 3338 "dhcp6_parser.cc"
break;
- case 586:
+ case 586: // $@88: %empty
#line 2089 "dhcp6_parser.yy"
{
// Parse the pd-pool list entry map
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 3379 "dhcp6_parser.cc"
+#line 3348 "dhcp6_parser.cc"
break;
- case 587:
+ case 587: // sub_pd_pool: "{" $@88 pd_pool_params "}"
#line 2093 "dhcp6_parser.yy"
{
// The prefix, prefix len and delegated len parameters are required.
@@ -3387,86 +3356,86 @@ namespace isc { namespace dhcp {
ctx.require("delegated-len", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location));
// parsing completed
}
-#line 3391 "dhcp6_parser.cc"
+#line 3360 "dhcp6_parser.cc"
break;
- case 590:
+ case 590: // pd_pool_params: pd_pool_params ","
#line 2103 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 3399 "dhcp6_parser.cc"
+#line 3368 "dhcp6_parser.cc"
break;
- case 602:
+ case 602: // $@89: %empty
#line 2121 "dhcp6_parser.yy"
{
ctx.unique("prefix", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3408 "dhcp6_parser.cc"
+#line 3377 "dhcp6_parser.cc"
break;
- case 603:
+ case 603: // pd_prefix: "prefix" $@89 ":" "constant string"
#line 2124 "dhcp6_parser.yy"
{
ElementPtr prf(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("prefix", prf);
ctx.leave();
}
-#line 3418 "dhcp6_parser.cc"
+#line 3387 "dhcp6_parser.cc"
break;
- case 604:
+ case 604: // pd_prefix_len: "prefix-len" ":" "integer"
#line 2130 "dhcp6_parser.yy"
{
ctx.unique("prefix-len", ctx.loc2pos(yystack_[2].location));
ElementPtr prf(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("prefix-len", prf);
}
-#line 3428 "dhcp6_parser.cc"
+#line 3397 "dhcp6_parser.cc"
break;
- case 605:
+ case 605: // $@90: %empty
#line 2136 "dhcp6_parser.yy"
{
ctx.unique("excluded-prefix", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3437 "dhcp6_parser.cc"
+#line 3406 "dhcp6_parser.cc"
break;
- case 606:
+ case 606: // excluded_prefix: "excluded-prefix" $@90 ":" "constant string"
#line 2139 "dhcp6_parser.yy"
{
ElementPtr prf(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("excluded-prefix", prf);
ctx.leave();
}
-#line 3447 "dhcp6_parser.cc"
+#line 3416 "dhcp6_parser.cc"
break;
- case 607:
+ case 607: // excluded_prefix_len: "excluded-prefix-len" ":" "integer"
#line 2145 "dhcp6_parser.yy"
{
ctx.unique("excluded-prefix-len", ctx.loc2pos(yystack_[2].location));
ElementPtr prf(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("excluded-prefix-len", prf);
}
-#line 3457 "dhcp6_parser.cc"
+#line 3426 "dhcp6_parser.cc"
break;
- case 608:
+ case 608: // pd_delegated_len: "delegated-len" ":" "integer"
#line 2151 "dhcp6_parser.yy"
{
ctx.unique("delegated-len", ctx.loc2pos(yystack_[2].location));
ElementPtr deleg(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("delegated-len", deleg);
}
-#line 3467 "dhcp6_parser.cc"
+#line 3436 "dhcp6_parser.cc"
break;
- case 609:
+ case 609: // $@91: %empty
#line 2160 "dhcp6_parser.yy"
{
ctx.unique("reservations", ctx.loc2pos(yystack_[0].location));
@@ -3475,73 +3444,73 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(l);
ctx.enter(ctx.RESERVATIONS);
}
-#line 3479 "dhcp6_parser.cc"
+#line 3448 "dhcp6_parser.cc"
break;
- case 610:
+ case 610: // reservations: "reservations" $@91 ":" "[" reservations_list "]"
#line 2166 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 3488 "dhcp6_parser.cc"
+#line 3457 "dhcp6_parser.cc"
break;
- case 615:
+ case 615: // not_empty_reservations_list: not_empty_reservations_list ","
#line 2177 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 3496 "dhcp6_parser.cc"
+#line 3465 "dhcp6_parser.cc"
break;
- case 616:
+ case 616: // $@92: %empty
#line 2182 "dhcp6_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 3506 "dhcp6_parser.cc"
+#line 3475 "dhcp6_parser.cc"
break;
- case 617:
+ case 617: // reservation: "{" $@92 reservation_params "}"
#line 2186 "dhcp6_parser.yy"
{
/// @todo: an identifier parameter is required.
ctx.stack_.pop_back();
}
-#line 3515 "dhcp6_parser.cc"
+#line 3484 "dhcp6_parser.cc"
break;
- case 618:
+ case 618: // $@93: %empty
#line 2191 "dhcp6_parser.yy"
{
// Parse the reservations list entry map
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 3525 "dhcp6_parser.cc"
+#line 3494 "dhcp6_parser.cc"
break;
- case 619:
+ case 619: // sub_reservation: "{" $@93 reservation_params "}"
#line 2195 "dhcp6_parser.yy"
{
/// @todo: an identifier parameter is required.
// parsing completed
}
-#line 3534 "dhcp6_parser.cc"
+#line 3503 "dhcp6_parser.cc"
break;
- case 624:
+ case 624: // not_empty_reservation_params: not_empty_reservation_params ","
#line 2206 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 3542 "dhcp6_parser.cc"
+#line 3511 "dhcp6_parser.cc"
break;
- case 636:
+ case 636: // $@94: %empty
#line 2225 "dhcp6_parser.yy"
{
ctx.unique("ip-addresses", ctx.loc2pos(yystack_[0].location));
@@ -3550,19 +3519,19 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(l);
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3554 "dhcp6_parser.cc"
+#line 3523 "dhcp6_parser.cc"
break;
- case 637:
+ case 637: // ip_addresses: "ip-addresses" $@94 ":" list_strings
#line 2231 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 3563 "dhcp6_parser.cc"
+#line 3532 "dhcp6_parser.cc"
break;
- case 638:
+ case 638: // $@95: %empty
#line 2236 "dhcp6_parser.yy"
{
ctx.unique("prefixes", ctx.loc2pos(yystack_[0].location));
@@ -3571,95 +3540,95 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(l);
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3575 "dhcp6_parser.cc"
+#line 3544 "dhcp6_parser.cc"
break;
- case 639:
+ case 639: // prefixes: "prefixes" $@95 ":" list_strings
#line 2242 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 3584 "dhcp6_parser.cc"
+#line 3553 "dhcp6_parser.cc"
break;
- case 640:
+ case 640: // $@96: %empty
#line 2247 "dhcp6_parser.yy"
{
ctx.unique("duid", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3593 "dhcp6_parser.cc"
+#line 3562 "dhcp6_parser.cc"
break;
- case 641:
+ case 641: // duid: "duid" $@96 ":" "constant string"
#line 2250 "dhcp6_parser.yy"
{
ElementPtr d(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("duid", d);
ctx.leave();
}
-#line 3603 "dhcp6_parser.cc"
+#line 3572 "dhcp6_parser.cc"
break;
- case 642:
+ case 642: // $@97: %empty
#line 2256 "dhcp6_parser.yy"
{
ctx.unique("hw-address", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3612 "dhcp6_parser.cc"
+#line 3581 "dhcp6_parser.cc"
break;
- case 643:
+ case 643: // hw_address: "hw-address" $@97 ":" "constant string"
#line 2259 "dhcp6_parser.yy"
{
ElementPtr hw(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("hw-address", hw);
ctx.leave();
}
-#line 3622 "dhcp6_parser.cc"
+#line 3591 "dhcp6_parser.cc"
break;
- case 644:
+ case 644: // $@98: %empty
#line 2265 "dhcp6_parser.yy"
{
ctx.unique("hostname", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3631 "dhcp6_parser.cc"
+#line 3600 "dhcp6_parser.cc"
break;
- case 645:
+ case 645: // hostname: "hostname" $@98 ":" "constant string"
#line 2268 "dhcp6_parser.yy"
{
ElementPtr host(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("hostname", host);
ctx.leave();
}
-#line 3641 "dhcp6_parser.cc"
+#line 3610 "dhcp6_parser.cc"
break;
- case 646:
+ case 646: // $@99: %empty
#line 2274 "dhcp6_parser.yy"
{
ctx.unique("flex-id", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3650 "dhcp6_parser.cc"
+#line 3619 "dhcp6_parser.cc"
break;
- case 647:
+ case 647: // flex_id_value: "flex-id" $@99 ":" "constant string"
#line 2277 "dhcp6_parser.yy"
{
ElementPtr hw(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("flex-id", hw);
ctx.leave();
}
-#line 3660 "dhcp6_parser.cc"
+#line 3629 "dhcp6_parser.cc"
break;
- case 648:
+ case 648: // $@100: %empty
#line 2283 "dhcp6_parser.yy"
{
ctx.unique("client-classes", ctx.loc2pos(yystack_[0].location));
@@ -3668,19 +3637,19 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(c);
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3672 "dhcp6_parser.cc"
+#line 3641 "dhcp6_parser.cc"
break;
- case 649:
+ case 649: // reservation_client_classes: "client-classes" $@100 ":" list_strings
#line 2289 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 3681 "dhcp6_parser.cc"
+#line 3650 "dhcp6_parser.cc"
break;
- case 650:
+ case 650: // $@101: %empty
#line 2297 "dhcp6_parser.yy"
{
ctx.unique("relay", ctx.loc2pos(yystack_[0].location));
@@ -3689,38 +3658,38 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(m);
ctx.enter(ctx.RELAY);
}
-#line 3693 "dhcp6_parser.cc"
+#line 3662 "dhcp6_parser.cc"
break;
- case 651:
+ case 651: // relay: "relay" $@101 ":" "{" relay_map "}"
#line 2303 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 3702 "dhcp6_parser.cc"
+#line 3671 "dhcp6_parser.cc"
break;
- case 654:
+ case 654: // $@102: %empty
#line 2312 "dhcp6_parser.yy"
{
ctx.unique("ip-address", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3711 "dhcp6_parser.cc"
+#line 3680 "dhcp6_parser.cc"
break;
- case 655:
+ case 655: // ip_address: "ip-address" $@102 ":" "constant string"
#line 2315 "dhcp6_parser.yy"
{
ElementPtr addr(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("ip-address", addr);
ctx.leave();
}
-#line 3721 "dhcp6_parser.cc"
+#line 3690 "dhcp6_parser.cc"
break;
- case 656:
+ case 656: // $@103: %empty
#line 2324 "dhcp6_parser.yy"
{
ctx.unique("client-classes", ctx.loc2pos(yystack_[0].location));
@@ -3729,84 +3698,84 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(l);
ctx.enter(ctx.CLIENT_CLASSES);
}
-#line 3733 "dhcp6_parser.cc"
+#line 3702 "dhcp6_parser.cc"
break;
- case 657:
+ case 657: // client_classes: "client-classes" $@103 ":" "[" client_classes_list "]"
#line 2330 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 3742 "dhcp6_parser.cc"
+#line 3711 "dhcp6_parser.cc"
break;
- case 660:
+ case 660: // client_classes_list: client_classes_list ","
#line 2337 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 3750 "dhcp6_parser.cc"
+#line 3719 "dhcp6_parser.cc"
break;
- case 661:
+ case 661: // $@104: %empty
#line 2342 "dhcp6_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 3760 "dhcp6_parser.cc"
+#line 3729 "dhcp6_parser.cc"
break;
- case 662:
+ case 662: // client_class_entry: "{" $@104 client_class_params "}"
#line 2346 "dhcp6_parser.yy"
{
// The name client class parameter is required.
ctx.require("name", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location));
ctx.stack_.pop_back();
}
-#line 3770 "dhcp6_parser.cc"
+#line 3739 "dhcp6_parser.cc"
break;
- case 667:
+ case 667: // not_empty_client_class_params: not_empty_client_class_params ","
#line 2358 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 3778 "dhcp6_parser.cc"
+#line 3747 "dhcp6_parser.cc"
break;
- case 682:
+ case 682: // $@105: %empty
#line 2380 "dhcp6_parser.yy"
{
ctx.unique("test", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3787 "dhcp6_parser.cc"
+#line 3756 "dhcp6_parser.cc"
break;
- case 683:
+ case 683: // client_class_test: "test" $@105 ":" "constant string"
#line 2383 "dhcp6_parser.yy"
{
ElementPtr test(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("test", test);
ctx.leave();
}
-#line 3797 "dhcp6_parser.cc"
+#line 3766 "dhcp6_parser.cc"
break;
- case 684:
+ case 684: // only_if_required: "only-if-required" ":" "boolean"
#line 2389 "dhcp6_parser.yy"
{
ctx.unique("only-if-required", ctx.loc2pos(yystack_[2].location));
ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("only-if-required", b);
}
-#line 3807 "dhcp6_parser.cc"
+#line 3776 "dhcp6_parser.cc"
break;
- case 685:
+ case 685: // $@106: %empty
#line 2398 "dhcp6_parser.yy"
{
ctx.unique("server-id", ctx.loc2pos(yystack_[0].location));
@@ -3815,10 +3784,10 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(m);
ctx.enter(ctx.SERVER_ID);
}
-#line 3819 "dhcp6_parser.cc"
+#line 3788 "dhcp6_parser.cc"
break;
- case 686:
+ case 686: // server_id: "server-id" $@106 ":" "{" server_id_params "}"
#line 2404 "dhcp6_parser.yy"
{
// The type parameter is required.
@@ -3826,113 +3795,113 @@ namespace isc { namespace dhcp {
ctx.stack_.pop_back();
ctx.leave();
}
-#line 3830 "dhcp6_parser.cc"
+#line 3799 "dhcp6_parser.cc"
break;
- case 689:
+ case 689: // server_id_params: server_id_params ","
#line 2413 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 3838 "dhcp6_parser.cc"
+#line 3807 "dhcp6_parser.cc"
break;
- case 699:
+ case 699: // $@107: %empty
#line 2429 "dhcp6_parser.yy"
{
ctx.unique("type", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.DUID_TYPE);
}
-#line 3847 "dhcp6_parser.cc"
+#line 3816 "dhcp6_parser.cc"
break;
- case 700:
+ case 700: // server_id_type: "type" $@107 ":" duid_type
#line 2432 "dhcp6_parser.yy"
{
ctx.stack_.back()->set("type", yystack_[0].value.as < ElementPtr > ());
ctx.leave();
}
-#line 3856 "dhcp6_parser.cc"
+#line 3825 "dhcp6_parser.cc"
break;
- case 701:
+ case 701: // duid_type: "LLT"
#line 2437 "dhcp6_parser.yy"
{ yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("LLT", ctx.loc2pos(yystack_[0].location))); }
-#line 3862 "dhcp6_parser.cc"
+#line 3831 "dhcp6_parser.cc"
break;
- case 702:
+ case 702: // duid_type: "EN"
#line 2438 "dhcp6_parser.yy"
{ yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("EN", ctx.loc2pos(yystack_[0].location))); }
-#line 3868 "dhcp6_parser.cc"
+#line 3837 "dhcp6_parser.cc"
break;
- case 703:
+ case 703: // duid_type: "LL"
#line 2439 "dhcp6_parser.yy"
{ yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("LL", ctx.loc2pos(yystack_[0].location))); }
-#line 3874 "dhcp6_parser.cc"
+#line 3843 "dhcp6_parser.cc"
break;
- case 704:
+ case 704: // htype: "htype" ":" "integer"
#line 2442 "dhcp6_parser.yy"
{
ctx.unique("htype", ctx.loc2pos(yystack_[2].location));
ElementPtr htype(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("htype", htype);
}
-#line 3884 "dhcp6_parser.cc"
+#line 3853 "dhcp6_parser.cc"
break;
- case 705:
+ case 705: // $@108: %empty
#line 2448 "dhcp6_parser.yy"
{
ctx.unique("identifier", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3893 "dhcp6_parser.cc"
+#line 3862 "dhcp6_parser.cc"
break;
- case 706:
+ case 706: // identifier: "identifier" $@108 ":" "constant string"
#line 2451 "dhcp6_parser.yy"
{
ElementPtr id(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("identifier", id);
ctx.leave();
}
-#line 3903 "dhcp6_parser.cc"
+#line 3872 "dhcp6_parser.cc"
break;
- case 707:
+ case 707: // time: "time" ":" "integer"
#line 2457 "dhcp6_parser.yy"
{
ctx.unique("time", ctx.loc2pos(yystack_[2].location));
ElementPtr time(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("time", time);
}
-#line 3913 "dhcp6_parser.cc"
+#line 3882 "dhcp6_parser.cc"
break;
- case 708:
+ case 708: // enterprise_id: "enterprise-id" ":" "integer"
#line 2463 "dhcp6_parser.yy"
{
ctx.unique("enterprise-id", ctx.loc2pos(yystack_[2].location));
ElementPtr time(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("enterprise-id", time);
}
-#line 3923 "dhcp6_parser.cc"
+#line 3892 "dhcp6_parser.cc"
break;
- case 709:
+ case 709: // dhcp4o6_port: "dhcp4o6-port" ":" "integer"
#line 2471 "dhcp6_parser.yy"
{
ctx.unique("dhcp4o6-port", ctx.loc2pos(yystack_[2].location));
ElementPtr time(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("dhcp4o6-port", time);
}
-#line 3933 "dhcp6_parser.cc"
+#line 3902 "dhcp6_parser.cc"
break;
- case 710:
+ case 710: // $@109: %empty
#line 2479 "dhcp6_parser.yy"
{
ctx.unique("control-socket", ctx.loc2pos(yystack_[0].location));
@@ -3941,65 +3910,65 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(m);
ctx.enter(ctx.CONTROL_SOCKET);
}
-#line 3945 "dhcp6_parser.cc"
+#line 3914 "dhcp6_parser.cc"
break;
- case 711:
+ case 711: // control_socket: "control-socket" $@109 ":" "{" control_socket_params "}"
#line 2485 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 3954 "dhcp6_parser.cc"
+#line 3923 "dhcp6_parser.cc"
break;
- case 714:
+ case 714: // control_socket_params: control_socket_params ","
#line 2492 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 3962 "dhcp6_parser.cc"
+#line 3931 "dhcp6_parser.cc"
break;
- case 720:
+ case 720: // $@110: %empty
#line 2504 "dhcp6_parser.yy"
{
ctx.unique("socket-type", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3971 "dhcp6_parser.cc"
+#line 3940 "dhcp6_parser.cc"
break;
- case 721:
+ case 721: // socket_type: "socket-type" $@110 ":" "constant string"
#line 2507 "dhcp6_parser.yy"
{
ElementPtr stype(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("socket-type", stype);
ctx.leave();
}
-#line 3981 "dhcp6_parser.cc"
+#line 3950 "dhcp6_parser.cc"
break;
- case 722:
+ case 722: // $@111: %empty
#line 2513 "dhcp6_parser.yy"
{
ctx.unique("socket-name", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 3990 "dhcp6_parser.cc"
+#line 3959 "dhcp6_parser.cc"
break;
- case 723:
+ case 723: // socket_name: "socket-name" $@111 ":" "constant string"
#line 2516 "dhcp6_parser.yy"
{
ElementPtr name(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("socket-name", name);
ctx.leave();
}
-#line 4000 "dhcp6_parser.cc"
+#line 3969 "dhcp6_parser.cc"
break;
- case 724:
+ case 724: // $@112: %empty
#line 2525 "dhcp6_parser.yy"
{
ctx.unique("dhcp-queue-control", ctx.loc2pos(yystack_[0].location));
@@ -4008,10 +3977,10 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(qc);
ctx.enter(ctx.DHCP_QUEUE_CONTROL);
}
-#line 4012 "dhcp6_parser.cc"
+#line 3981 "dhcp6_parser.cc"
break;
- case 725:
+ case 725: // dhcp_queue_control: "dhcp-queue-control" $@112 ":" "{" queue_control_params "}"
#line 2531 "dhcp6_parser.yy"
{
// The enable queue parameter is required.
@@ -4019,75 +3988,75 @@ namespace isc { namespace dhcp {
ctx.stack_.pop_back();
ctx.leave();
}
-#line 4023 "dhcp6_parser.cc"
+#line 3992 "dhcp6_parser.cc"
break;
- case 728:
+ case 728: // queue_control_params: queue_control_params ","
#line 2540 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 4031 "dhcp6_parser.cc"
+#line 4000 "dhcp6_parser.cc"
break;
- case 735:
+ case 735: // enable_queue: "enable-queue" ":" "boolean"
#line 2553 "dhcp6_parser.yy"
{
ctx.unique("enable-queue", ctx.loc2pos(yystack_[2].location));
ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("enable-queue", b);
}
-#line 4041 "dhcp6_parser.cc"
+#line 4010 "dhcp6_parser.cc"
break;
- case 736:
+ case 736: // $@113: %empty
#line 2559 "dhcp6_parser.yy"
{
ctx.unique("queue-type", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 4050 "dhcp6_parser.cc"
+#line 4019 "dhcp6_parser.cc"
break;
- case 737:
+ case 737: // queue_type: "queue-type" $@113 ":" "constant string"
#line 2562 "dhcp6_parser.yy"
{
ElementPtr qt(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("queue-type", qt);
ctx.leave();
}
-#line 4060 "dhcp6_parser.cc"
+#line 4029 "dhcp6_parser.cc"
break;
- case 738:
+ case 738: // capacity: "capacity" ":" "integer"
#line 2568 "dhcp6_parser.yy"
{
ctx.unique("capacity", ctx.loc2pos(yystack_[2].location));
ElementPtr c(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("capacity", c);
}
-#line 4070 "dhcp6_parser.cc"
+#line 4039 "dhcp6_parser.cc"
break;
- case 739:
+ case 739: // $@114: %empty
#line 2574 "dhcp6_parser.yy"
{
ctx.unique(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 4079 "dhcp6_parser.cc"
+#line 4048 "dhcp6_parser.cc"
break;
- case 740:
+ case 740: // arbitrary_map_entry: "constant string" $@114 ":" value
#line 2577 "dhcp6_parser.yy"
{
ctx.stack_.back()->set(yystack_[3].value.as < std::string > (), yystack_[0].value.as < ElementPtr > ());
ctx.leave();
}
-#line 4088 "dhcp6_parser.cc"
+#line 4057 "dhcp6_parser.cc"
break;
- case 741:
+ case 741: // $@115: %empty
#line 2584 "dhcp6_parser.yy"
{
ctx.unique("dhcp-ddns", ctx.loc2pos(yystack_[0].location));
@@ -4096,10 +4065,10 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(m);
ctx.enter(ctx.DHCP_DDNS);
}
-#line 4100 "dhcp6_parser.cc"
+#line 4069 "dhcp6_parser.cc"
break;
- case 742:
+ case 742: // dhcp_ddns: "dhcp-ddns" $@115 ":" "{" dhcp_ddns_params "}"
#line 2590 "dhcp6_parser.yy"
{
// The enable updates DHCP DDNS parameter is required.
@@ -4107,279 +4076,279 @@ namespace isc { namespace dhcp {
ctx.stack_.pop_back();
ctx.leave();
}
-#line 4111 "dhcp6_parser.cc"
+#line 4080 "dhcp6_parser.cc"
break;
- case 743:
+ case 743: // $@116: %empty
#line 2597 "dhcp6_parser.yy"
{
// Parse the dhcp-ddns map
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 4121 "dhcp6_parser.cc"
+#line 4090 "dhcp6_parser.cc"
break;
- case 744:
+ case 744: // sub_dhcp_ddns: "{" $@116 dhcp_ddns_params "}"
#line 2601 "dhcp6_parser.yy"
{
// The enable updates DHCP DDNS parameter is required.
ctx.require("enable-updates", ctx.loc2pos(yystack_[3].location), ctx.loc2pos(yystack_[0].location));
// parsing completed
}
-#line 4131 "dhcp6_parser.cc"
+#line 4100 "dhcp6_parser.cc"
break;
- case 747:
+ case 747: // dhcp_ddns_params: dhcp_ddns_params ","
#line 2609 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 4139 "dhcp6_parser.cc"
+#line 4108 "dhcp6_parser.cc"
break;
- case 766:
+ case 766: // enable_updates: "enable-updates" ":" "boolean"
#line 2634 "dhcp6_parser.yy"
{
ctx.unique("enable-updates", ctx.loc2pos(yystack_[2].location));
ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("enable-updates", b);
}
-#line 4149 "dhcp6_parser.cc"
+#line 4118 "dhcp6_parser.cc"
break;
- case 767:
+ case 767: // $@117: %empty
#line 2641 "dhcp6_parser.yy"
{
ctx.unique("qualifying-suffix", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 4158 "dhcp6_parser.cc"
+#line 4127 "dhcp6_parser.cc"
break;
- case 768:
+ case 768: // dep_qualifying_suffix: "qualifying-suffix" $@117 ":" "constant string"
#line 2644 "dhcp6_parser.yy"
{
ElementPtr s(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("qualifying-suffix", s);
ctx.leave();
}
-#line 4168 "dhcp6_parser.cc"
+#line 4137 "dhcp6_parser.cc"
break;
- case 769:
+ case 769: // $@118: %empty
#line 2650 "dhcp6_parser.yy"
{
ctx.unique("server-ip", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 4177 "dhcp6_parser.cc"
+#line 4146 "dhcp6_parser.cc"
break;
- case 770:
+ case 770: // server_ip: "server-ip" $@118 ":" "constant string"
#line 2653 "dhcp6_parser.yy"
{
ElementPtr s(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("server-ip", s);
ctx.leave();
}
-#line 4187 "dhcp6_parser.cc"
+#line 4156 "dhcp6_parser.cc"
break;
- case 771:
+ case 771: // server_port: "server-port" ":" "integer"
#line 2659 "dhcp6_parser.yy"
{
ctx.unique("server-port", ctx.loc2pos(yystack_[2].location));
ElementPtr i(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("server-port", i);
}
-#line 4197 "dhcp6_parser.cc"
+#line 4166 "dhcp6_parser.cc"
break;
- case 772:
+ case 772: // $@119: %empty
#line 2665 "dhcp6_parser.yy"
{
ctx.unique("sender-ip", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 4206 "dhcp6_parser.cc"
+#line 4175 "dhcp6_parser.cc"
break;
- case 773:
+ case 773: // sender_ip: "sender-ip" $@119 ":" "constant string"
#line 2668 "dhcp6_parser.yy"
{
ElementPtr s(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("sender-ip", s);
ctx.leave();
}
-#line 4216 "dhcp6_parser.cc"
+#line 4185 "dhcp6_parser.cc"
break;
- case 774:
+ case 774: // sender_port: "sender-port" ":" "integer"
#line 2674 "dhcp6_parser.yy"
{
ctx.unique("sender-port", ctx.loc2pos(yystack_[2].location));
ElementPtr i(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("sender-port", i);
}
-#line 4226 "dhcp6_parser.cc"
+#line 4195 "dhcp6_parser.cc"
break;
- case 775:
+ case 775: // max_queue_size: "max-queue-size" ":" "integer"
#line 2680 "dhcp6_parser.yy"
{
ctx.unique("max-queue-size", ctx.loc2pos(yystack_[2].location));
ElementPtr i(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("max-queue-size", i);
}
-#line 4236 "dhcp6_parser.cc"
+#line 4205 "dhcp6_parser.cc"
break;
- case 776:
+ case 776: // $@120: %empty
#line 2686 "dhcp6_parser.yy"
{
ctx.unique("ncr-protocol", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NCR_PROTOCOL);
}
-#line 4245 "dhcp6_parser.cc"
+#line 4214 "dhcp6_parser.cc"
break;
- case 777:
+ case 777: // ncr_protocol: "ncr-protocol" $@120 ":" ncr_protocol_value
#line 2689 "dhcp6_parser.yy"
{
ctx.stack_.back()->set("ncr-protocol", yystack_[0].value.as < ElementPtr > ());
ctx.leave();
}
-#line 4254 "dhcp6_parser.cc"
+#line 4223 "dhcp6_parser.cc"
break;
- case 778:
+ case 778: // ncr_protocol_value: "UDP"
#line 2695 "dhcp6_parser.yy"
{ yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("UDP", ctx.loc2pos(yystack_[0].location))); }
-#line 4260 "dhcp6_parser.cc"
+#line 4229 "dhcp6_parser.cc"
break;
- case 779:
+ case 779: // ncr_protocol_value: "TCP"
#line 2696 "dhcp6_parser.yy"
{ yylhs.value.as < ElementPtr > () = ElementPtr(new StringElement("TCP", ctx.loc2pos(yystack_[0].location))); }
-#line 4266 "dhcp6_parser.cc"
+#line 4235 "dhcp6_parser.cc"
break;
- case 780:
+ case 780: // $@121: %empty
#line 2699 "dhcp6_parser.yy"
{
ctx.unique("ncr-format", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NCR_FORMAT);
}
-#line 4275 "dhcp6_parser.cc"
+#line 4244 "dhcp6_parser.cc"
break;
- case 781:
+ case 781: // ncr_format: "ncr-format" $@121 ":" "JSON"
#line 2702 "dhcp6_parser.yy"
{
ElementPtr json(new StringElement("JSON", ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("ncr-format", json);
ctx.leave();
}
-#line 4285 "dhcp6_parser.cc"
+#line 4254 "dhcp6_parser.cc"
break;
- case 782:
+ case 782: // dep_override_no_update: "override-no-update" ":" "boolean"
#line 2709 "dhcp6_parser.yy"
{
ctx.unique("override-no-update", ctx.loc2pos(yystack_[2].location));
ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("override-no-update", b);
}
-#line 4295 "dhcp6_parser.cc"
+#line 4264 "dhcp6_parser.cc"
break;
- case 783:
+ case 783: // dep_override_client_update: "override-client-update" ":" "boolean"
#line 2716 "dhcp6_parser.yy"
{
ctx.unique("override-client-update", ctx.loc2pos(yystack_[2].location));
ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("override-client-update", b);
}
-#line 4305 "dhcp6_parser.cc"
+#line 4274 "dhcp6_parser.cc"
break;
- case 784:
+ case 784: // $@122: %empty
#line 2723 "dhcp6_parser.yy"
{
ctx.unique("replace-client-name", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.REPLACE_CLIENT_NAME);
}
-#line 4314 "dhcp6_parser.cc"
+#line 4283 "dhcp6_parser.cc"
break;
- case 785:
+ case 785: // dep_replace_client_name: "replace-client-name" $@122 ":" ddns_replace_client_name_value
#line 2726 "dhcp6_parser.yy"
{
ctx.stack_.back()->set("replace-client-name", yystack_[0].value.as < ElementPtr > ());
ctx.leave();
}
-#line 4323 "dhcp6_parser.cc"
+#line 4292 "dhcp6_parser.cc"
break;
- case 786:
+ case 786: // $@123: %empty
#line 2732 "dhcp6_parser.yy"
{
ctx.unique("generated-prefix", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 4332 "dhcp6_parser.cc"
+#line 4301 "dhcp6_parser.cc"
break;
- case 787:
+ case 787: // dep_generated_prefix: "generated-prefix" $@123 ":" "constant string"
#line 2735 "dhcp6_parser.yy"
{
ElementPtr s(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("generated-prefix", s);
ctx.leave();
}
-#line 4342 "dhcp6_parser.cc"
+#line 4311 "dhcp6_parser.cc"
break;
- case 788:
+ case 788: // $@124: %empty
#line 2742 "dhcp6_parser.yy"
{
ctx.unique("hostname-char-set", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 4351 "dhcp6_parser.cc"
+#line 4320 "dhcp6_parser.cc"
break;
- case 789:
+ case 789: // dep_hostname_char_set: "hostname-char-set" $@124 ":" "constant string"
#line 2745 "dhcp6_parser.yy"
{
ElementPtr s(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("hostname-char-set", s);
ctx.leave();
}
-#line 4361 "dhcp6_parser.cc"
+#line 4330 "dhcp6_parser.cc"
break;
- case 790:
+ case 790: // $@125: %empty
#line 2752 "dhcp6_parser.yy"
{
ctx.unique("hostname-char-replacement", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 4370 "dhcp6_parser.cc"
+#line 4339 "dhcp6_parser.cc"
break;
- case 791:
+ case 791: // dep_hostname_char_replacement: "hostname-char-replacement" $@125 ":" "constant string"
#line 2755 "dhcp6_parser.yy"
{
ElementPtr s(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("hostname-char-replacement", s);
ctx.leave();
}
-#line 4380 "dhcp6_parser.cc"
+#line 4349 "dhcp6_parser.cc"
break;
- case 792:
+ case 792: // $@126: %empty
#line 2764 "dhcp6_parser.yy"
{
ctx.unique("config-control", ctx.loc2pos(yystack_[0].location));
@@ -4388,47 +4357,47 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(i);
ctx.enter(ctx.CONFIG_CONTROL);
}
-#line 4392 "dhcp6_parser.cc"
+#line 4361 "dhcp6_parser.cc"
break;
- case 793:
+ case 793: // config_control: "config-control" $@126 ":" "{" config_control_params "}"
#line 2770 "dhcp6_parser.yy"
{
// No config control params are required
ctx.stack_.pop_back();
ctx.leave();
}
-#line 4402 "dhcp6_parser.cc"
+#line 4371 "dhcp6_parser.cc"
break;
- case 794:
+ case 794: // $@127: %empty
#line 2776 "dhcp6_parser.yy"
{
// Parse the config-control map
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.push_back(m);
}
-#line 4412 "dhcp6_parser.cc"
+#line 4381 "dhcp6_parser.cc"
break;
- case 795:
+ case 795: // sub_config_control: "{" $@127 config_control_params "}"
#line 2780 "dhcp6_parser.yy"
{
// No config_control params are required
// parsing completed
}
-#line 4421 "dhcp6_parser.cc"
+#line 4390 "dhcp6_parser.cc"
break;
- case 798:
+ case 798: // config_control_params: config_control_params ","
#line 2788 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 4429 "dhcp6_parser.cc"
+#line 4398 "dhcp6_parser.cc"
break;
- case 801:
+ case 801: // $@128: %empty
#line 2798 "dhcp6_parser.yy"
{
ctx.unique("config-databases", ctx.loc2pos(yystack_[0].location));
@@ -4437,29 +4406,29 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(l);
ctx.enter(ctx.CONFIG_DATABASE);
}
-#line 4441 "dhcp6_parser.cc"
+#line 4410 "dhcp6_parser.cc"
break;
- case 802:
+ case 802: // config_databases: "config-databases" $@128 ":" "[" database_list "]"
#line 2804 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 4450 "dhcp6_parser.cc"
+#line 4419 "dhcp6_parser.cc"
break;
- case 803:
+ case 803: // config_fetch_wait_time: "config-fetch-wait-time" ":" "integer"
#line 2809 "dhcp6_parser.yy"
{
ctx.unique("config-fetch-wait-time", ctx.loc2pos(yystack_[2].location));
ElementPtr value(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("config-fetch-wait-time", value);
}
-#line 4460 "dhcp6_parser.cc"
+#line 4429 "dhcp6_parser.cc"
break;
- case 804:
+ case 804: // $@129: %empty
#line 2817 "dhcp6_parser.yy"
{
ctx.unique("loggers", ctx.loc2pos(yystack_[0].location));
@@ -4468,82 +4437,82 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(l);
ctx.enter(ctx.LOGGERS);
}
-#line 4472 "dhcp6_parser.cc"
+#line 4441 "dhcp6_parser.cc"
break;
- case 805:
+ case 805: // loggers: "loggers" $@129 ":" "[" loggers_entries "]"
#line 2823 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 4481 "dhcp6_parser.cc"
+#line 4450 "dhcp6_parser.cc"
break;
- case 808:
+ case 808: // loggers_entries: loggers_entries ","
#line 2832 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 4489 "dhcp6_parser.cc"
+#line 4458 "dhcp6_parser.cc"
break;
- case 809:
+ case 809: // $@130: %empty
#line 2838 "dhcp6_parser.yy"
{
ElementPtr l(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(l);
ctx.stack_.push_back(l);
}
-#line 4499 "dhcp6_parser.cc"
+#line 4468 "dhcp6_parser.cc"
break;
- case 810:
+ case 810: // logger_entry: "{" $@130 logger_params "}"
#line 2842 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
}
-#line 4507 "dhcp6_parser.cc"
+#line 4476 "dhcp6_parser.cc"
break;
- case 813:
+ case 813: // logger_params: logger_params ","
#line 2848 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 4515 "dhcp6_parser.cc"
+#line 4484 "dhcp6_parser.cc"
break;
- case 821:
+ case 821: // debuglevel: "debuglevel" ":" "integer"
#line 2862 "dhcp6_parser.yy"
{
ctx.unique("debuglevel", ctx.loc2pos(yystack_[2].location));
ElementPtr dl(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("debuglevel", dl);
}
-#line 4525 "dhcp6_parser.cc"
+#line 4494 "dhcp6_parser.cc"
break;
- case 822:
+ case 822: // $@131: %empty
#line 2868 "dhcp6_parser.yy"
{
ctx.unique("severity", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 4534 "dhcp6_parser.cc"
+#line 4503 "dhcp6_parser.cc"
break;
- case 823:
+ case 823: // severity: "severity" $@131 ":" "constant string"
#line 2871 "dhcp6_parser.yy"
{
ElementPtr sev(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("severity", sev);
ctx.leave();
}
-#line 4544 "dhcp6_parser.cc"
+#line 4513 "dhcp6_parser.cc"
break;
- case 824:
+ case 824: // $@132: %empty
#line 2877 "dhcp6_parser.yy"
{
ctx.unique("output_options", ctx.loc2pos(yystack_[0].location));
@@ -4552,121 +4521,121 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(l);
ctx.enter(ctx.OUTPUT_OPTIONS);
}
-#line 4556 "dhcp6_parser.cc"
+#line 4525 "dhcp6_parser.cc"
break;
- case 825:
+ case 825: // output_options_list: "output_options" $@132 ":" "[" output_options_list_content "]"
#line 2883 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 4565 "dhcp6_parser.cc"
+#line 4534 "dhcp6_parser.cc"
break;
- case 828:
+ case 828: // output_options_list_content: output_options_list_content ","
#line 2890 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 4573 "dhcp6_parser.cc"
+#line 4542 "dhcp6_parser.cc"
break;
- case 829:
+ case 829: // $@133: %empty
#line 2895 "dhcp6_parser.yy"
{
ElementPtr m(new MapElement(ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->add(m);
ctx.stack_.push_back(m);
}
-#line 4583 "dhcp6_parser.cc"
+#line 4552 "dhcp6_parser.cc"
break;
- case 830:
+ case 830: // output_entry: "{" $@133 output_params_list "}"
#line 2899 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
}
-#line 4591 "dhcp6_parser.cc"
+#line 4560 "dhcp6_parser.cc"
break;
- case 833:
+ case 833: // output_params_list: output_params_list ","
#line 2905 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 4599 "dhcp6_parser.cc"
+#line 4568 "dhcp6_parser.cc"
break;
- case 839:
+ case 839: // $@134: %empty
#line 2917 "dhcp6_parser.yy"
{
ctx.unique("output", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 4608 "dhcp6_parser.cc"
+#line 4577 "dhcp6_parser.cc"
break;
- case 840:
+ case 840: // output: "output" $@134 ":" "constant string"
#line 2920 "dhcp6_parser.yy"
{
ElementPtr sev(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("output", sev);
ctx.leave();
}
-#line 4618 "dhcp6_parser.cc"
+#line 4587 "dhcp6_parser.cc"
break;
- case 841:
+ case 841: // flush: "flush" ":" "boolean"
#line 2926 "dhcp6_parser.yy"
{
ctx.unique("flush", ctx.loc2pos(yystack_[2].location));
ElementPtr flush(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("flush", flush);
}
-#line 4628 "dhcp6_parser.cc"
+#line 4597 "dhcp6_parser.cc"
break;
- case 842:
+ case 842: // maxsize: "maxsize" ":" "integer"
#line 2932 "dhcp6_parser.yy"
{
ctx.unique("maxsize", ctx.loc2pos(yystack_[2].location));
ElementPtr maxsize(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("maxsize", maxsize);
}
-#line 4638 "dhcp6_parser.cc"
+#line 4607 "dhcp6_parser.cc"
break;
- case 843:
+ case 843: // maxver: "maxver" ":" "integer"
#line 2938 "dhcp6_parser.yy"
{
ctx.unique("maxver", ctx.loc2pos(yystack_[2].location));
ElementPtr maxver(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("maxver", maxver);
}
-#line 4648 "dhcp6_parser.cc"
+#line 4617 "dhcp6_parser.cc"
break;
- case 844:
+ case 844: // $@135: %empty
#line 2944 "dhcp6_parser.yy"
{
ctx.unique("pattern", ctx.loc2pos(yystack_[0].location));
ctx.enter(ctx.NO_KEYWORD);
}
-#line 4657 "dhcp6_parser.cc"
+#line 4626 "dhcp6_parser.cc"
break;
- case 845:
+ case 845: // pattern: "pattern" $@135 ":" "constant string"
#line 2947 "dhcp6_parser.yy"
{
ElementPtr sev(new StringElement(yystack_[0].value.as < std::string > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("pattern", sev);
ctx.leave();
}
-#line 4667 "dhcp6_parser.cc"
+#line 4636 "dhcp6_parser.cc"
break;
- case 846:
+ case 846: // $@136: %empty
#line 2953 "dhcp6_parser.yy"
{
ctx.unique("compatibility", ctx.loc2pos(yystack_[0].location));
@@ -4675,38 +4644,38 @@ namespace isc { namespace dhcp {
ctx.stack_.push_back(i);
ctx.enter(ctx.COMPATIBILITY);
}
-#line 4679 "dhcp6_parser.cc"
+#line 4648 "dhcp6_parser.cc"
break;
- case 847:
+ case 847: // compatibility: "compatibility" $@136 ":" "{" compatibility_params "}"
#line 2959 "dhcp6_parser.yy"
{
ctx.stack_.pop_back();
ctx.leave();
}
-#line 4688 "dhcp6_parser.cc"
+#line 4657 "dhcp6_parser.cc"
break;
- case 850:
+ case 850: // compatibility_params: compatibility_params ","
#line 2966 "dhcp6_parser.yy"
{
ctx.warnAboutExtraCommas(yystack_[0].location);
}
-#line 4696 "dhcp6_parser.cc"
+#line 4665 "dhcp6_parser.cc"
break;
- case 853:
+ case 853: // lenient_option_parsing: "lenient-option-parsing" ":" "boolean"
#line 2975 "dhcp6_parser.yy"
{
ctx.unique("lenient-option-parsing", ctx.loc2pos(yystack_[2].location));
ElementPtr b(new BoolElement(yystack_[0].value.as < bool > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("lenient-option-parsing", b);
}
-#line 4706 "dhcp6_parser.cc"
+#line 4675 "dhcp6_parser.cc"
break;
-#line 4710 "dhcp6_parser.cc"
+#line 4679 "dhcp6_parser.cc"
default:
break;
@@ -4723,7 +4692,6 @@ namespace isc { namespace dhcp {
YY_SYMBOL_PRINT ("-> $$ =", yylhs);
yypop_ (yylen);
yylen = 0;
- YY_STACK_PRINT ();
// Shift the result of the reduction.
yypush_ (YY_NULLPTR, YY_MOVE (yylhs));
@@ -4739,7 +4707,9 @@ namespace isc { namespace dhcp {
if (!yyerrstatus_)
{
++yynerrs_;
- error (yyla.location, yysyntax_error_ (yystack_[0].state, yyla));
+ context yyctx (*this, yyla);
+ std::string msg = yysyntax_error_ (yyctx);
+ error (yyla.location, YY_MOVE (msg));
}
@@ -4750,7 +4720,7 @@ namespace isc { namespace dhcp {
error, discard it. */
// Return failure if at end of input.
- if (yyla.type_get () == yyeof_)
+ if (yyla.kind () == symbol_kind::S_YYEOF)
YYABORT;
else if (!yyla.empty ())
{
@@ -4776,6 +4746,7 @@ namespace isc { namespace dhcp {
this YYERROR. */
yypop_ (yylen);
yylen = 0;
+ YY_STACK_PRINT ();
goto yyerrlab1;
@@ -4784,31 +4755,33 @@ namespace isc { namespace dhcp {
`-------------------------------------------------------------*/
yyerrlab1:
yyerrstatus_ = 3; // Each real token shifted decrements this.
+ // Pop stack until we find a state that shifts the error token.
+ for (;;)
+ {
+ yyn = yypact_[+yystack_[0].state];
+ if (!yy_pact_value_is_default_ (yyn))
+ {
+ yyn += symbol_kind::S_YYerror;
+ if (0 <= yyn && yyn <= yylast_
+ && yycheck_[yyn] == symbol_kind::S_YYerror)
+ {
+ yyn = yytable_[yyn];
+ if (0 < yyn)
+ break;
+ }
+ }
+
+ // Pop the current state because it cannot handle the error token.
+ if (yystack_.size () == 1)
+ YYABORT;
+
+ yyerror_range[1].location = yystack_[0].location;
+ yy_destroy_ ("Error: popping", yystack_[0]);
+ yypop_ ();
+ YY_STACK_PRINT ();
+ }
{
stack_symbol_type error_token;
- for (;;)
- {
- yyn = yypact_[+yystack_[0].state];
- if (!yy_pact_value_is_default_ (yyn))
- {
- yyn += yy_error_token_;
- if (0 <= yyn && yyn <= yylast_ && yycheck_[yyn] == yy_error_token_)
- {
- yyn = yytable_[yyn];
- if (0 < yyn)
- break;
- }
- }
-
- // Pop the current state because it cannot handle the error token.
- if (yystack_.size () == 1)
- YYABORT;
-
- yyerror_range[1].location = yystack_[0].location;
- yy_destroy_ ("Error: popping", yystack_[0]);
- yypop_ ();
- YY_STACK_PRINT ();
- }
yyerror_range[2].location = yyla.location;
YYLLOC_DEFAULT (error_token.location, yyerror_range, 2);
@@ -4846,6 +4819,7 @@ namespace isc { namespace dhcp {
/* Do not reclaim the symbols of the rule whose action triggered
this YYABORT or YYACCEPT. */
yypop_ (yylen);
+ YY_STACK_PRINT ();
while (1 < yystack_.size ())
{
yy_destroy_ ("Cleanup: popping", yystack_[0]);
@@ -4879,18 +4853,103 @@ namespace isc { namespace dhcp {
error (yyexc.location, yyexc.what ());
}
- // Generate an error message.
+ /* Return YYSTR after stripping away unnecessary quotes and
+ backslashes, so that it's suitable for yyerror. The heuristic is
+ that double-quoting is unnecessary unless the string contains an
+ apostrophe, a comma, or backslash (other than backslash-backslash).
+ YYSTR is taken from yytname. */
std::string
- Dhcp6Parser::yysyntax_error_ (state_type yystate, const symbol_type& yyla) const
+ Dhcp6Parser::yytnamerr_ (const char *yystr)
{
- // Number of reported tokens (one for the "unexpected", one per
- // "expected").
- std::ptrdiff_t yycount = 0;
- // Its maximum.
- enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
- // Arguments of yyformat.
- char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
+ if (*yystr == '"')
+ {
+ std::string yyr;
+ char const *yyp = yystr;
+ for (;;)
+ switch (*++yyp)
+ {
+ case '\'':
+ case ',':
+ goto do_not_strip_quotes;
+
+ case '\\':
+ if (*++yyp != '\\')
+ goto do_not_strip_quotes;
+ else
+ goto append;
+
+ append:
+ default:
+ yyr += *yyp;
+ break;
+
+ case '"':
+ return yyr;
+ }
+ do_not_strip_quotes: ;
+ }
+
+ return yystr;
+ }
+
+ std::string
+ Dhcp6Parser::symbol_name (symbol_kind_type yysymbol)
+ {
+ return yytnamerr_ (yytname_[yysymbol]);
+ }
+
+
+
+ // Dhcp6Parser::context.
+ Dhcp6Parser::context::context (const Dhcp6Parser& yyparser, const symbol_type& yyla)
+ : yyparser_ (yyparser)
+ , yyla_ (yyla)
+ {}
+
+ int
+ Dhcp6Parser::context::expected_tokens (symbol_kind_type yyarg[], int yyargn) const
+ {
+ // Actual number of expected tokens
+ int yycount = 0;
+
+ const int yyn = yypact_[+yyparser_.yystack_[0].state];
+ if (!yy_pact_value_is_default_ (yyn))
+ {
+ /* Start YYX at -YYN if negative to avoid negative indexes in
+ YYCHECK. In other words, skip the first -YYN actions for
+ this state because they are default actions. */
+ const int yyxbegin = yyn < 0 ? -yyn : 0;
+ // Stay within bounds of both yycheck and yytname.
+ const int yychecklim = yylast_ - yyn + 1;
+ const int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
+ for (int yyx = yyxbegin; yyx < yyxend; ++yyx)
+ if (yycheck_[yyx + yyn] == yyx && yyx != symbol_kind::S_YYerror
+ && !yy_table_value_is_error_ (yytable_[yyx + yyn]))
+ {
+ if (!yyarg)
+ ++yycount;
+ else if (yycount == yyargn)
+ return 0;
+ else
+ yyarg[yycount++] = YY_CAST (symbol_kind_type, yyx);
+ }
+ }
+
+ if (yyarg && yycount == 0 && 0 < yyargn)
+ yyarg[0] = symbol_kind::S_YYEMPTY;
+ return yycount;
+ }
+
+
+
+
+
+
+ int
+ Dhcp6Parser::yy_syntax_error_arguments_ (const context& yyctx,
+ symbol_kind_type yyarg[], int yyargn) const
+ {
/* There are many possibilities here to consider:
- If this state is a consistent state with a default action, then
the only way this function was invoked is if the default action
@@ -4915,35 +4974,26 @@ namespace isc { namespace dhcp {
one exception: it will still contain any token that will not be
accepted due to an error action in a later state.
*/
- if (!yyla.empty ())
- {
- symbol_number_type yytoken = yyla.type_get ();
- yyarg[yycount++] = yytname_[yytoken];
- int yyn = yypact_[+yystate];
- if (!yy_pact_value_is_default_ (yyn))
- {
- /* Start YYX at -YYN if negative to avoid negative indexes in
- YYCHECK. In other words, skip the first -YYN actions for
- this state because they are default actions. */
- int yyxbegin = yyn < 0 ? -yyn : 0;
- // Stay within bounds of both yycheck and yytname.
- int yychecklim = yylast_ - yyn + 1;
- int yyxend = yychecklim < yyntokens_ ? yychecklim : yyntokens_;
- for (int yyx = yyxbegin; yyx < yyxend; ++yyx)
- if (yycheck_[yyx + yyn] == yyx && yyx != yy_error_token_
- && !yy_table_value_is_error_ (yytable_[yyx + yyn]))
- {
- if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
- {
- yycount = 1;
- break;
- }
- else
- yyarg[yycount++] = yytname_[yyx];
- }
- }
+ if (!yyctx.lookahead ().empty ())
+ {
+ if (yyarg)
+ yyarg[0] = yyctx.token ();
+ int yyn = yyctx.expected_tokens (yyarg ? yyarg + 1 : yyarg, yyargn - 1);
+ return yyn + 1;
}
+ return 0;
+ }
+
+ // Generate an error message.
+ std::string
+ Dhcp6Parser::yysyntax_error_ (const context& yyctx) const
+ {
+ // Its maximum.
+ enum { YYARGS_MAX = 5 };
+ // Arguments of yyformat.
+ symbol_kind_type yyarg[YYARGS_MAX];
+ int yycount = yy_syntax_error_arguments_ (yyctx, yyarg, YYARGS_MAX);
char const* yyformat = YY_NULLPTR;
switch (yycount)
@@ -4968,7 +5018,7 @@ namespace isc { namespace dhcp {
for (char const* yyp = yyformat; *yyp; ++yyp)
if (yyp[0] == '%' && yyp[1] == 's' && yyi < yycount)
{
- yyres += yytnamerr_ (yyarg[yyi++]);
+ yyres += symbol_name (yyarg[yyi++]);
++yyp;
}
else
@@ -5307,7 +5357,7 @@ namespace isc { namespace dhcp {
const short
Dhcp6Parser::yydefgoto_[] =
{
- -1, 15, 16, 17, 18, 19, 20, 21, 22, 23,
+ 0, 15, 16, 17, 18, 19, 20, 21, 22, 23,
24, 25, 26, 27, 28, 29, 83, 39, 40, 69,
732, 87, 88, 41, 68, 84, 85, 757, 959, 1066,
1067, 817, 43, 70, 90, 432, 91, 45, 71, 158,
@@ -5947,15 +5997,15 @@ namespace isc { namespace dhcp {
};
-
+#if PARSER6_DEBUG || 1
// YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
- // First, the terminals, then, starting at \a yyntokens_, nonterminals.
+ // First, the terminals, then, starting at \a YYNTOKENS, nonterminals.
const char*
const Dhcp6Parser::yytname_[] =
{
- "\"end of file\"", "error", "$undefined", "\",\"", "\":\"", "\"[\"",
- "\"]\"", "\"{\"", "\"}\"", "\"null\"", "\"Dhcp6\"", "\"data-directory\"",
- "\"config-control\"", "\"config-databases\"",
+ "\"end of file\"", "error", "\"invalid token\"", "\",\"", "\":\"",
+ "\"[\"", "\"]\"", "\"{\"", "\"}\"", "\"null\"", "\"Dhcp6\"",
+ "\"data-directory\"", "\"config-control\"", "\"config-databases\"",
"\"config-fetch-wait-time\"", "\"interfaces-config\"", "\"interfaces\"",
"\"re-detect\"", "\"lease-database\"", "\"hosts-database\"",
"\"hosts-databases\"", "\"type\"", "\"memfile\"", "\"mysql\"",
@@ -6130,6 +6180,8 @@ namespace isc { namespace dhcp {
"maxsize", "maxver", "pattern", "$@135", "compatibility", "$@136",
"compatibility_params", "compatibility_param", "lenient_option_parsing", YY_NULLPTR
};
+#endif
+
#if PARSER6_DEBUG
const short
@@ -6223,9 +6275,8 @@ namespace isc { namespace dhcp {
2966, 2971, 2972, 2975
};
- // Print the state stack on the debug stream.
void
- Dhcp6Parser::yystack_print_ ()
+ Dhcp6Parser::yy_stack_print_ () const
{
*yycdebug_ << "Stack now";
for (stack_type::const_iterator
@@ -6236,9 +6287,8 @@ namespace isc { namespace dhcp {
*yycdebug_ << '\n';
}
- // Report on the debug stream that the rule \a yyrule is going to be reduced.
void
- Dhcp6Parser::yy_reduce_print_ (int yyrule)
+ Dhcp6Parser::yy_reduce_print_ (int yyrule) const
{
int yylno = yyrline_[yyrule];
int yynrhs = yyr2_[yyrule];
@@ -6255,7 +6305,7 @@ namespace isc { namespace dhcp {
#line 14 "dhcp6_parser.yy"
} } // isc::dhcp
-#line 6259 "dhcp6_parser.cc"
+#line 6309 "dhcp6_parser.cc"
#line 2981 "dhcp6_parser.yy"
diff --git a/src/bin/dhcp6/dhcp6_parser.h b/src/bin/dhcp6/dhcp6_parser.h
index 2128519cd3..eca3f42e5e 100644
--- a/src/bin/dhcp6/dhcp6_parser.h
+++ b/src/bin/dhcp6/dhcp6_parser.h
@@ -1,8 +1,8 @@
-// A Bison parser, made by GNU Bison 3.5.1.
+// A Bison parser, made by GNU Bison 3.8.2.
// Skeleton interface for Bison LALR(1) parsers in C++
-// Copyright (C) 2002-2015, 2018-2020 Free Software Foundation, Inc.
+// Copyright (C) 2002-2015, 2018-2021 Free Software Foundation, Inc.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -15,7 +15,7 @@
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
-// along with this program. If not, see .
+// along with this program. If not, see .
// As a special exception, you may create a larger work that contains
// part or all of the Bison parser skeleton and distribute that work
@@ -38,8 +38,9 @@
// C++ LALR(1) parser skeleton written by Akim Demaille.
-// Undocumented macros, especially those whose name start with YY_,
-// are private implementation details. Do not rely on them.
+// DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
+// especially those whose name start with YY_ or yy_. They are
+// private implementation details that can be changed or removed.
#ifndef YY_PARSER6_DHCP6_PARSER_H_INCLUDED
# define YY_PARSER6_DHCP6_PARSER_H_INCLUDED
@@ -56,7 +57,7 @@ using namespace isc::dhcp;
using namespace isc::data;
using namespace std;
-#line 60 "dhcp6_parser.h"
+#line 61 "dhcp6_parser.h"
# include
# include // std::abort
@@ -103,9 +104,9 @@ using namespace std;
#endif
# include "location.hh"
#include
-#ifndef YY_ASSERT
+#ifndef PARSER6__ASSERT
# include
-# define YY_ASSERT assert
+# define PARSER6__ASSERT assert
#endif
@@ -127,17 +128,23 @@ using namespace std;
/* Suppress unused-variable warnings by "using" E. */
#if ! defined lint || defined __GNUC__
-# define YYUSE(E) ((void) (E))
+# define YY_USE(E) ((void) (E))
#else
-# define YYUSE(E) /* empty */
+# define YY_USE(E) /* empty */
#endif
-#if defined __GNUC__ && ! defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
/* Suppress an incorrect diagnostic about yylval being uninitialized. */
-# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
+#if defined __GNUC__ && ! defined __ICC && 406 <= __GNUC__ * 100 + __GNUC_MINOR__
+# if __GNUC__ * 100 + __GNUC_MINOR__ < 407
+# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
+ _Pragma ("GCC diagnostic push") \
+ _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")
+# else
+# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
_Pragma ("GCC diagnostic push") \
_Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") \
_Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
+# endif
# define YY_IGNORE_MAYBE_UNINITIALIZED_END \
_Pragma ("GCC diagnostic pop")
#else
@@ -199,7 +206,7 @@ using namespace std;
#line 14 "dhcp6_parser.yy"
namespace isc { namespace dhcp {
-#line 203 "dhcp6_parser.h"
+#line 210 "dhcp6_parser.h"
@@ -208,37 +215,49 @@ namespace isc { namespace dhcp {
class Dhcp6Parser
{
public:
-#ifndef PARSER6_STYPE
+#ifdef PARSER6_STYPE
+# ifdef __GNUC__
+# pragma GCC message "bison: do not #define PARSER6_STYPE in C++, use %define api.value.type"
+# endif
+ typedef PARSER6_STYPE value_type;
+#else
/// A buffer to store and retrieve objects.
///
/// Sort of a variant, but does not keep track of the nature
/// of the stored data, since that knowledge is available
/// via the current parser state.
- class semantic_type
+ class value_type
{
public:
/// Type of *this.
- typedef semantic_type self_type;
+ typedef value_type self_type;
/// Empty construction.
- semantic_type () YY_NOEXCEPT
- : yybuffer_ ()
+ value_type () YY_NOEXCEPT
+ : yyraw_ ()
, yytypeid_ (YY_NULLPTR)
{}
/// Construct and fill.
template
- semantic_type (YY_RVREF (T) t)
+ value_type (YY_RVREF (T) t)
: yytypeid_ (&typeid (T))
{
- YY_ASSERT (sizeof (T) <= size);
+ PARSER6__ASSERT (sizeof (T) <= size);
new (yyas_ ()) T (YY_MOVE (t));
}
+#if 201103L <= YY_CPLUSPLUS
+ /// Non copyable.
+ value_type (const self_type&) = delete;
+ /// Non copyable.
+ self_type& operator= (const self_type&) = delete;
+#endif
+
/// Destruction, allowed only if empty.
- ~semantic_type () YY_NOEXCEPT
+ ~value_type () YY_NOEXCEPT
{
- YY_ASSERT (!yytypeid_);
+ PARSER6__ASSERT (!yytypeid_);
}
# if 201103L <= YY_CPLUSPLUS
@@ -247,8 +266,8 @@ namespace isc { namespace dhcp {
T&
emplace (U&&... u)
{
- YY_ASSERT (!yytypeid_);
- YY_ASSERT (sizeof (T) <= size);
+ PARSER6__ASSERT (!yytypeid_);
+ PARSER6__ASSERT (sizeof (T) <= size);
yytypeid_ = & typeid (T);
return *new (yyas_ ()) T (std::forward (u)...);
}
@@ -258,8 +277,8 @@ namespace isc { namespace dhcp {
T&
emplace ()
{
- YY_ASSERT (!yytypeid_);
- YY_ASSERT (sizeof (T) <= size);
+ PARSER6__ASSERT (!yytypeid_);
+ PARSER6__ASSERT (sizeof (T) <= size);
yytypeid_ = & typeid (T);
return *new (yyas_ ()) T ();
}
@@ -269,8 +288,8 @@ namespace isc { namespace dhcp {
T&
emplace (const T& t)
{
- YY_ASSERT (!yytypeid_);
- YY_ASSERT (sizeof (T) <= size);
+ PARSER6__ASSERT (!yytypeid_);
+ PARSER6__ASSERT (sizeof (T) <= size);
yytypeid_ = & typeid (T);
return *new (yyas_ ()) T (t);
}
@@ -299,9 +318,9 @@ namespace isc { namespace dhcp {
T&
as () YY_NOEXCEPT
{
- YY_ASSERT (yytypeid_);
- YY_ASSERT (*yytypeid_ == typeid (T));
- YY_ASSERT (sizeof (T) <= size);
+ PARSER6__ASSERT (yytypeid_);
+ PARSER6__ASSERT (*yytypeid_ == typeid (T));
+ PARSER6__ASSERT (sizeof (T) <= size);
return *yyas_ ();
}
@@ -310,9 +329,9 @@ namespace isc { namespace dhcp {
const T&
as () const YY_NOEXCEPT
{
- YY_ASSERT (yytypeid_);
- YY_ASSERT (*yytypeid_ == typeid (T));
- YY_ASSERT (sizeof (T) <= size);
+ PARSER6__ASSERT (yytypeid_);
+ PARSER6__ASSERT (*yytypeid_ == typeid (T));
+ PARSER6__ASSERT (sizeof (T) <= size);
return *yyas_ ();
}
@@ -328,8 +347,8 @@ namespace isc { namespace dhcp {
void
swap (self_type& that) YY_NOEXCEPT
{
- YY_ASSERT (yytypeid_);
- YY_ASSERT (*yytypeid_ == *that.yytypeid_);
+ PARSER6__ASSERT (yytypeid_);
+ PARSER6__ASSERT (*yytypeid_ == *that.yytypeid_);
std::swap (as (), that.as ());
}
@@ -378,16 +397,19 @@ namespace isc { namespace dhcp {
}
private:
- /// Prohibit blind copies.
+#if YY_CPLUSPLUS < 201103L
+ /// Non copyable.
+ value_type (const self_type&);
+ /// Non copyable.
self_type& operator= (const self_type&);
- semantic_type (const self_type&);
+#endif
/// Accessor to raw memory as \a T.
template
T*
yyas_ () YY_NOEXCEPT
{
- void *yyp = yybuffer_.yyraw;
+ void *yyp = yyraw_;
return static_cast (yyp);
}
@@ -396,7 +418,7 @@ namespace isc { namespace dhcp {
const T*
yyas_ () const YY_NOEXCEPT
{
- const void *yyp = yybuffer_.yyraw;
+ const void *yyp = yyraw_;
return static_cast (yyp);
}
@@ -433,18 +455,19 @@ namespace isc { namespace dhcp {
union
{
/// Strongest alignment constraints.
- long double yyalign_me;
+ long double yyalign_me_;
/// A buffer large enough to store any of the semantic values.
- char yyraw[size];
- } yybuffer_;
+ char yyraw_[size];
+ };
/// Whether the content is built: if defined, the name of the stored type.
const std::type_info *yytypeid_;
};
-#else
- typedef PARSER6_STYPE semantic_type;
#endif
+ /// Backward compatibility (Bison 3.8).
+ typedef value_type semantic_type;
+
/// Symbol locations.
typedef location location_type;
@@ -466,239 +489,904 @@ namespace isc { namespace dhcp {
location_type location;
};
- /// Tokens.
+ /// Token kinds.
struct token
{
- enum yytokentype
+ enum token_kind_type
{
- TOKEN_END = 0,
- TOKEN_COMMA = 258,
- TOKEN_COLON = 259,
- TOKEN_LSQUARE_BRACKET = 260,
- TOKEN_RSQUARE_BRACKET = 261,
- TOKEN_LCURLY_BRACKET = 262,
- TOKEN_RCURLY_BRACKET = 263,
- TOKEN_NULL_TYPE = 264,
- TOKEN_DHCP6 = 265,
- TOKEN_DATA_DIRECTORY = 266,
- TOKEN_CONFIG_CONTROL = 267,
- TOKEN_CONFIG_DATABASES = 268,
- TOKEN_CONFIG_FETCH_WAIT_TIME = 269,
- TOKEN_INTERFACES_CONFIG = 270,
- TOKEN_INTERFACES = 271,
- TOKEN_RE_DETECT = 272,
- TOKEN_LEASE_DATABASE = 273,
- TOKEN_HOSTS_DATABASE = 274,
- TOKEN_HOSTS_DATABASES = 275,
- TOKEN_TYPE = 276,
- TOKEN_MEMFILE = 277,
- TOKEN_MYSQL = 278,
- TOKEN_POSTGRESQL = 279,
- TOKEN_USER = 280,
- TOKEN_PASSWORD = 281,
- TOKEN_HOST = 282,
- TOKEN_PORT = 283,
- TOKEN_PERSIST = 284,
- TOKEN_LFC_INTERVAL = 285,
- TOKEN_READONLY = 286,
- TOKEN_CONNECT_TIMEOUT = 287,
- TOKEN_MAX_RECONNECT_TRIES = 288,
- TOKEN_RECONNECT_WAIT_TIME = 289,
- TOKEN_ON_FAIL = 290,
- TOKEN_STOP_RETRY_EXIT = 291,
- TOKEN_SERVE_RETRY_EXIT = 292,
- TOKEN_SERVE_RETRY_CONTINUE = 293,
- TOKEN_MAX_ROW_ERRORS = 294,
- TOKEN_TRUST_ANCHOR = 295,
- TOKEN_CERT_FILE = 296,
- TOKEN_KEY_FILE = 297,
- TOKEN_CIPHER_LIST = 298,
- TOKEN_PREFERRED_LIFETIME = 299,
- TOKEN_MIN_PREFERRED_LIFETIME = 300,
- TOKEN_MAX_PREFERRED_LIFETIME = 301,
- TOKEN_VALID_LIFETIME = 302,
- TOKEN_MIN_VALID_LIFETIME = 303,
- TOKEN_MAX_VALID_LIFETIME = 304,
- TOKEN_RENEW_TIMER = 305,
- TOKEN_REBIND_TIMER = 306,
- TOKEN_CALCULATE_TEE_TIMES = 307,
- TOKEN_T1_PERCENT = 308,
- TOKEN_T2_PERCENT = 309,
- TOKEN_CACHE_THRESHOLD = 310,
- TOKEN_CACHE_MAX_AGE = 311,
- TOKEN_DECLINE_PROBATION_PERIOD = 312,
- TOKEN_SERVER_TAG = 313,
- TOKEN_STATISTIC_DEFAULT_SAMPLE_COUNT = 314,
- TOKEN_STATISTIC_DEFAULT_SAMPLE_AGE = 315,
- TOKEN_DDNS_SEND_UPDATES = 316,
- TOKEN_DDNS_OVERRIDE_NO_UPDATE = 317,
- TOKEN_DDNS_OVERRIDE_CLIENT_UPDATE = 318,
- TOKEN_DDNS_REPLACE_CLIENT_NAME = 319,
- TOKEN_DDNS_GENERATED_PREFIX = 320,
- TOKEN_DDNS_QUALIFYING_SUFFIX = 321,
- TOKEN_DDNS_UPDATE_ON_RENEW = 322,
- TOKEN_DDNS_USE_CONFLICT_RESOLUTION = 323,
- TOKEN_STORE_EXTENDED_INFO = 324,
- TOKEN_SUBNET6 = 325,
- TOKEN_OPTION_DEF = 326,
- TOKEN_OPTION_DATA = 327,
- TOKEN_NAME = 328,
- TOKEN_DATA = 329,
- TOKEN_CODE = 330,
- TOKEN_SPACE = 331,
- TOKEN_CSV_FORMAT = 332,
- TOKEN_ALWAYS_SEND = 333,
- TOKEN_RECORD_TYPES = 334,
- TOKEN_ENCAPSULATE = 335,
- TOKEN_ARRAY = 336,
- TOKEN_PARKED_PACKET_LIMIT = 337,
- TOKEN_SHARED_NETWORKS = 338,
- TOKEN_POOLS = 339,
- TOKEN_POOL = 340,
- TOKEN_PD_POOLS = 341,
- TOKEN_PREFIX = 342,
- TOKEN_PREFIX_LEN = 343,
- TOKEN_EXCLUDED_PREFIX = 344,
- TOKEN_EXCLUDED_PREFIX_LEN = 345,
- TOKEN_DELEGATED_LEN = 346,
- TOKEN_USER_CONTEXT = 347,
- TOKEN_COMMENT = 348,
- TOKEN_SUBNET = 349,
- TOKEN_INTERFACE = 350,
- TOKEN_INTERFACE_ID = 351,
- TOKEN_ID = 352,
- TOKEN_RAPID_COMMIT = 353,
- TOKEN_RESERVATION_MODE = 354,
- TOKEN_DISABLED = 355,
- TOKEN_OUT_OF_POOL = 356,
- TOKEN_GLOBAL = 357,
- TOKEN_ALL = 358,
- TOKEN_RESERVATIONS_GLOBAL = 359,
- TOKEN_RESERVATIONS_IN_SUBNET = 360,
- TOKEN_RESERVATIONS_OUT_OF_POOL = 361,
- TOKEN_MAC_SOURCES = 362,
- TOKEN_RELAY_SUPPLIED_OPTIONS = 363,
- TOKEN_HOST_RESERVATION_IDENTIFIERS = 364,
- TOKEN_SANITY_CHECKS = 365,
- TOKEN_LEASE_CHECKS = 366,
- TOKEN_CLIENT_CLASSES = 367,
- TOKEN_REQUIRE_CLIENT_CLASSES = 368,
- TOKEN_TEST = 369,
- TOKEN_ONLY_IF_REQUIRED = 370,
- TOKEN_CLIENT_CLASS = 371,
- TOKEN_RESERVATIONS = 372,
- TOKEN_IP_ADDRESSES = 373,
- TOKEN_PREFIXES = 374,
- TOKEN_DUID = 375,
- TOKEN_HW_ADDRESS = 376,
- TOKEN_HOSTNAME = 377,
- TOKEN_FLEX_ID = 378,
- TOKEN_RELAY = 379,
- TOKEN_IP_ADDRESS = 380,
- TOKEN_HOOKS_LIBRARIES = 381,
- TOKEN_LIBRARY = 382,
- TOKEN_PARAMETERS = 383,
- TOKEN_EXPIRED_LEASES_PROCESSING = 384,
- TOKEN_RECLAIM_TIMER_WAIT_TIME = 385,
- TOKEN_FLUSH_RECLAIMED_TIMER_WAIT_TIME = 386,
- TOKEN_HOLD_RECLAIMED_TIME = 387,
- TOKEN_MAX_RECLAIM_LEASES = 388,
- TOKEN_MAX_RECLAIM_TIME = 389,
- TOKEN_UNWARNED_RECLAIM_CYCLES = 390,
- TOKEN_SERVER_ID = 391,
- TOKEN_LLT = 392,
- TOKEN_EN = 393,
- TOKEN_LL = 394,
- TOKEN_IDENTIFIER = 395,
- TOKEN_HTYPE = 396,
- TOKEN_TIME = 397,
- TOKEN_ENTERPRISE_ID = 398,
- TOKEN_DHCP4O6_PORT = 399,
- TOKEN_DHCP_MULTI_THREADING = 400,
- TOKEN_ENABLE_MULTI_THREADING = 401,
- TOKEN_THREAD_POOL_SIZE = 402,
- TOKEN_PACKET_QUEUE_SIZE = 403,
- TOKEN_CONTROL_SOCKET = 404,
- TOKEN_SOCKET_TYPE = 405,
- TOKEN_SOCKET_NAME = 406,
- TOKEN_DHCP_QUEUE_CONTROL = 407,
- TOKEN_ENABLE_QUEUE = 408,
- TOKEN_QUEUE_TYPE = 409,
- TOKEN_CAPACITY = 410,
- TOKEN_DHCP_DDNS = 411,
- TOKEN_ENABLE_UPDATES = 412,
- TOKEN_QUALIFYING_SUFFIX = 413,
- TOKEN_SERVER_IP = 414,
- TOKEN_SERVER_PORT = 415,
- TOKEN_SENDER_IP = 416,
- TOKEN_SENDER_PORT = 417,
- TOKEN_MAX_QUEUE_SIZE = 418,
- TOKEN_NCR_PROTOCOL = 419,
- TOKEN_NCR_FORMAT = 420,
- TOKEN_OVERRIDE_NO_UPDATE = 421,
- TOKEN_OVERRIDE_CLIENT_UPDATE = 422,
- TOKEN_REPLACE_CLIENT_NAME = 423,
- TOKEN_GENERATED_PREFIX = 424,
- TOKEN_UDP = 425,
- TOKEN_TCP = 426,
- TOKEN_JSON = 427,
- TOKEN_WHEN_PRESENT = 428,
- TOKEN_NEVER = 429,
- TOKEN_ALWAYS = 430,
- TOKEN_WHEN_NOT_PRESENT = 431,
- TOKEN_HOSTNAME_CHAR_SET = 432,
- TOKEN_HOSTNAME_CHAR_REPLACEMENT = 433,
- TOKEN_EARLY_GLOBAL_RESERVATIONS_LOOKUP = 434,
- TOKEN_IP_RESERVATIONS_UNIQUE = 435,
- TOKEN_RESERVATIONS_LOOKUP_FIRST = 436,
- TOKEN_LOGGERS = 437,
- TOKEN_OUTPUT_OPTIONS = 438,
- TOKEN_OUTPUT = 439,
- TOKEN_DEBUGLEVEL = 440,
- TOKEN_SEVERITY = 441,
- TOKEN_FLUSH = 442,
- TOKEN_MAXSIZE = 443,
- TOKEN_MAXVER = 444,
- TOKEN_PATTERN = 445,
- TOKEN_COMPATIBILITY = 446,
- TOKEN_LENIENT_OPTION_PARSING = 447,
- TOKEN_TOPLEVEL_JSON = 448,
- TOKEN_TOPLEVEL_DHCP6 = 449,
- TOKEN_SUB_DHCP6 = 450,
- TOKEN_SUB_INTERFACES6 = 451,
- TOKEN_SUB_SUBNET6 = 452,
- TOKEN_SUB_POOL6 = 453,
- TOKEN_SUB_PD_POOL = 454,
- TOKEN_SUB_RESERVATION = 455,
- TOKEN_SUB_OPTION_DEFS = 456,
- TOKEN_SUB_OPTION_DEF = 457,
- TOKEN_SUB_OPTION_DATA = 458,
- TOKEN_SUB_HOOKS_LIBRARY = 459,
- TOKEN_SUB_DHCP_DDNS = 460,
- TOKEN_SUB_CONFIG_CONTROL = 461,
- TOKEN_STRING = 462,
- TOKEN_INTEGER = 463,
- TOKEN_FLOAT = 464,
- TOKEN_BOOLEAN = 465
+ TOKEN_PARSER6_EMPTY = -2,
+ TOKEN_END = 0, // "end of file"
+ TOKEN_PARSER6_error = 256, // error
+ TOKEN_PARSER6_UNDEF = 257, // "invalid token"
+ TOKEN_COMMA = 258, // ","
+ TOKEN_COLON = 259, // ":"
+ TOKEN_LSQUARE_BRACKET = 260, // "["
+ TOKEN_RSQUARE_BRACKET = 261, // "]"
+ TOKEN_LCURLY_BRACKET = 262, // "{"
+ TOKEN_RCURLY_BRACKET = 263, // "}"
+ TOKEN_NULL_TYPE = 264, // "null"
+ TOKEN_DHCP6 = 265, // "Dhcp6"
+ TOKEN_DATA_DIRECTORY = 266, // "data-directory"
+ TOKEN_CONFIG_CONTROL = 267, // "config-control"
+ TOKEN_CONFIG_DATABASES = 268, // "config-databases"
+ TOKEN_CONFIG_FETCH_WAIT_TIME = 269, // "config-fetch-wait-time"
+ TOKEN_INTERFACES_CONFIG = 270, // "interfaces-config"
+ TOKEN_INTERFACES = 271, // "interfaces"
+ TOKEN_RE_DETECT = 272, // "re-detect"
+ TOKEN_LEASE_DATABASE = 273, // "lease-database"
+ TOKEN_HOSTS_DATABASE = 274, // "hosts-database"
+ TOKEN_HOSTS_DATABASES = 275, // "hosts-databases"
+ TOKEN_TYPE = 276, // "type"
+ TOKEN_MEMFILE = 277, // "memfile"
+ TOKEN_MYSQL = 278, // "mysql"
+ TOKEN_POSTGRESQL = 279, // "postgresql"
+ TOKEN_USER = 280, // "user"
+ TOKEN_PASSWORD = 281, // "password"
+ TOKEN_HOST = 282, // "host"
+ TOKEN_PORT = 283, // "port"
+ TOKEN_PERSIST = 284, // "persist"
+ TOKEN_LFC_INTERVAL = 285, // "lfc-interval"
+ TOKEN_READONLY = 286, // "readonly"
+ TOKEN_CONNECT_TIMEOUT = 287, // "connect-timeout"
+ TOKEN_MAX_RECONNECT_TRIES = 288, // "max-reconnect-tries"
+ TOKEN_RECONNECT_WAIT_TIME = 289, // "reconnect-wait-time"
+ TOKEN_ON_FAIL = 290, // "on-fail"
+ TOKEN_STOP_RETRY_EXIT = 291, // "stop-retry-exit"
+ TOKEN_SERVE_RETRY_EXIT = 292, // "serve-retry-exit"
+ TOKEN_SERVE_RETRY_CONTINUE = 293, // "serve-retry-continue"
+ TOKEN_MAX_ROW_ERRORS = 294, // "max-row-errors"
+ TOKEN_TRUST_ANCHOR = 295, // "trust-anchor"
+ TOKEN_CERT_FILE = 296, // "cert-file"
+ TOKEN_KEY_FILE = 297, // "key-file"
+ TOKEN_CIPHER_LIST = 298, // "cipher-list"
+ TOKEN_PREFERRED_LIFETIME = 299, // "preferred-lifetime"
+ TOKEN_MIN_PREFERRED_LIFETIME = 300, // "min-preferred-lifetime"
+ TOKEN_MAX_PREFERRED_LIFETIME = 301, // "max-preferred-lifetime"
+ TOKEN_VALID_LIFETIME = 302, // "valid-lifetime"
+ TOKEN_MIN_VALID_LIFETIME = 303, // "min-valid-lifetime"
+ TOKEN_MAX_VALID_LIFETIME = 304, // "max-valid-lifetime"
+ TOKEN_RENEW_TIMER = 305, // "renew-timer"
+ TOKEN_REBIND_TIMER = 306, // "rebind-timer"
+ TOKEN_CALCULATE_TEE_TIMES = 307, // "calculate-tee-times"
+ TOKEN_T1_PERCENT = 308, // "t1-percent"
+ TOKEN_T2_PERCENT = 309, // "t2-percent"
+ TOKEN_CACHE_THRESHOLD = 310, // "cache-threshold"
+ TOKEN_CACHE_MAX_AGE = 311, // "cache-max-age"
+ TOKEN_DECLINE_PROBATION_PERIOD = 312, // "decline-probation-period"
+ TOKEN_SERVER_TAG = 313, // "server-tag"
+ TOKEN_STATISTIC_DEFAULT_SAMPLE_COUNT = 314, // "statistic-default-sample-count"
+ TOKEN_STATISTIC_DEFAULT_SAMPLE_AGE = 315, // "statistic-default-sample-age"
+ TOKEN_DDNS_SEND_UPDATES = 316, // "ddns-send-updates"
+ TOKEN_DDNS_OVERRIDE_NO_UPDATE = 317, // "ddns-override-no-update"
+ TOKEN_DDNS_OVERRIDE_CLIENT_UPDATE = 318, // "ddns-override-client-update"
+ TOKEN_DDNS_REPLACE_CLIENT_NAME = 319, // "ddns-replace-client-name"
+ TOKEN_DDNS_GENERATED_PREFIX = 320, // "ddns-generated-prefix"
+ TOKEN_DDNS_QUALIFYING_SUFFIX = 321, // "ddns-qualifying-suffix"
+ TOKEN_DDNS_UPDATE_ON_RENEW = 322, // "ddns-update-on-renew"
+ TOKEN_DDNS_USE_CONFLICT_RESOLUTION = 323, // "ddns-use-conflict-resolution"
+ TOKEN_STORE_EXTENDED_INFO = 324, // "store-extended-info"
+ TOKEN_SUBNET6 = 325, // "subnet6"
+ TOKEN_OPTION_DEF = 326, // "option-def"
+ TOKEN_OPTION_DATA = 327, // "option-data"
+ TOKEN_NAME = 328, // "name"
+ TOKEN_DATA = 329, // "data"
+ TOKEN_CODE = 330, // "code"
+ TOKEN_SPACE = 331, // "space"
+ TOKEN_CSV_FORMAT = 332, // "csv-format"
+ TOKEN_ALWAYS_SEND = 333, // "always-send"
+ TOKEN_RECORD_TYPES = 334, // "record-types"
+ TOKEN_ENCAPSULATE = 335, // "encapsulate"
+ TOKEN_ARRAY = 336, // "array"
+ TOKEN_PARKED_PACKET_LIMIT = 337, // "parked-packet-limit"
+ TOKEN_SHARED_NETWORKS = 338, // "shared-networks"
+ TOKEN_POOLS = 339, // "pools"
+ TOKEN_POOL = 340, // "pool"
+ TOKEN_PD_POOLS = 341, // "pd-pools"
+ TOKEN_PREFIX = 342, // "prefix"
+ TOKEN_PREFIX_LEN = 343, // "prefix-len"
+ TOKEN_EXCLUDED_PREFIX = 344, // "excluded-prefix"
+ TOKEN_EXCLUDED_PREFIX_LEN = 345, // "excluded-prefix-len"
+ TOKEN_DELEGATED_LEN = 346, // "delegated-len"
+ TOKEN_USER_CONTEXT = 347, // "user-context"
+ TOKEN_COMMENT = 348, // "comment"
+ TOKEN_SUBNET = 349, // "subnet"
+ TOKEN_INTERFACE = 350, // "interface"
+ TOKEN_INTERFACE_ID = 351, // "interface-id"
+ TOKEN_ID = 352, // "id"
+ TOKEN_RAPID_COMMIT = 353, // "rapid-commit"
+ TOKEN_RESERVATION_MODE = 354, // "reservation-mode"
+ TOKEN_DISABLED = 355, // "disabled"
+ TOKEN_OUT_OF_POOL = 356, // "out-of-pool"
+ TOKEN_GLOBAL = 357, // "global"
+ TOKEN_ALL = 358, // "all"
+ TOKEN_RESERVATIONS_GLOBAL = 359, // "reservations-global"
+ TOKEN_RESERVATIONS_IN_SUBNET = 360, // "reservations-in-subnet"
+ TOKEN_RESERVATIONS_OUT_OF_POOL = 361, // "reservations-out-of-pool"
+ TOKEN_MAC_SOURCES = 362, // "mac-sources"
+ TOKEN_RELAY_SUPPLIED_OPTIONS = 363, // "relay-supplied-options"
+ TOKEN_HOST_RESERVATION_IDENTIFIERS = 364, // "host-reservation-identifiers"
+ TOKEN_SANITY_CHECKS = 365, // "sanity-checks"
+ TOKEN_LEASE_CHECKS = 366, // "lease-checks"
+ TOKEN_CLIENT_CLASSES = 367, // "client-classes"
+ TOKEN_REQUIRE_CLIENT_CLASSES = 368, // "require-client-classes"
+ TOKEN_TEST = 369, // "test"
+ TOKEN_ONLY_IF_REQUIRED = 370, // "only-if-required"
+ TOKEN_CLIENT_CLASS = 371, // "client-class"
+ TOKEN_RESERVATIONS = 372, // "reservations"
+ TOKEN_IP_ADDRESSES = 373, // "ip-addresses"
+ TOKEN_PREFIXES = 374, // "prefixes"
+ TOKEN_DUID = 375, // "duid"
+ TOKEN_HW_ADDRESS = 376, // "hw-address"
+ TOKEN_HOSTNAME = 377, // "hostname"
+ TOKEN_FLEX_ID = 378, // "flex-id"
+ TOKEN_RELAY = 379, // "relay"
+ TOKEN_IP_ADDRESS = 380, // "ip-address"
+ TOKEN_HOOKS_LIBRARIES = 381, // "hooks-libraries"
+ TOKEN_LIBRARY = 382, // "library"
+ TOKEN_PARAMETERS = 383, // "parameters"
+ TOKEN_EXPIRED_LEASES_PROCESSING = 384, // "expired-leases-processing"
+ TOKEN_RECLAIM_TIMER_WAIT_TIME = 385, // "reclaim-timer-wait-time"
+ TOKEN_FLUSH_RECLAIMED_TIMER_WAIT_TIME = 386, // "flush-reclaimed-timer-wait-time"
+ TOKEN_HOLD_RECLAIMED_TIME = 387, // "hold-reclaimed-time"
+ TOKEN_MAX_RECLAIM_LEASES = 388, // "max-reclaim-leases"
+ TOKEN_MAX_RECLAIM_TIME = 389, // "max-reclaim-time"
+ TOKEN_UNWARNED_RECLAIM_CYCLES = 390, // "unwarned-reclaim-cycles"
+ TOKEN_SERVER_ID = 391, // "server-id"
+ TOKEN_LLT = 392, // "LLT"
+ TOKEN_EN = 393, // "EN"
+ TOKEN_LL = 394, // "LL"
+ TOKEN_IDENTIFIER = 395, // "identifier"
+ TOKEN_HTYPE = 396, // "htype"
+ TOKEN_TIME = 397, // "time"
+ TOKEN_ENTERPRISE_ID = 398, // "enterprise-id"
+ TOKEN_DHCP4O6_PORT = 399, // "dhcp4o6-port"
+ TOKEN_DHCP_MULTI_THREADING = 400, // "multi-threading"
+ TOKEN_ENABLE_MULTI_THREADING = 401, // "enable-multi-threading"
+ TOKEN_THREAD_POOL_SIZE = 402, // "thread-pool-size"
+ TOKEN_PACKET_QUEUE_SIZE = 403, // "packet-queue-size"
+ TOKEN_CONTROL_SOCKET = 404, // "control-socket"
+ TOKEN_SOCKET_TYPE = 405, // "socket-type"
+ TOKEN_SOCKET_NAME = 406, // "socket-name"
+ TOKEN_DHCP_QUEUE_CONTROL = 407, // "dhcp-queue-control"
+ TOKEN_ENABLE_QUEUE = 408, // "enable-queue"
+ TOKEN_QUEUE_TYPE = 409, // "queue-type"
+ TOKEN_CAPACITY = 410, // "capacity"
+ TOKEN_DHCP_DDNS = 411, // "dhcp-ddns"
+ TOKEN_ENABLE_UPDATES = 412, // "enable-updates"
+ TOKEN_QUALIFYING_SUFFIX = 413, // "qualifying-suffix"
+ TOKEN_SERVER_IP = 414, // "server-ip"
+ TOKEN_SERVER_PORT = 415, // "server-port"
+ TOKEN_SENDER_IP = 416, // "sender-ip"
+ TOKEN_SENDER_PORT = 417, // "sender-port"
+ TOKEN_MAX_QUEUE_SIZE = 418, // "max-queue-size"
+ TOKEN_NCR_PROTOCOL = 419, // "ncr-protocol"
+ TOKEN_NCR_FORMAT = 420, // "ncr-format"
+ TOKEN_OVERRIDE_NO_UPDATE = 421, // "override-no-update"
+ TOKEN_OVERRIDE_CLIENT_UPDATE = 422, // "override-client-update"
+ TOKEN_REPLACE_CLIENT_NAME = 423, // "replace-client-name"
+ TOKEN_GENERATED_PREFIX = 424, // "generated-prefix"
+ TOKEN_UDP = 425, // "UDP"
+ TOKEN_TCP = 426, // "TCP"
+ TOKEN_JSON = 427, // "JSON"
+ TOKEN_WHEN_PRESENT = 428, // "when-present"
+ TOKEN_NEVER = 429, // "never"
+ TOKEN_ALWAYS = 430, // "always"
+ TOKEN_WHEN_NOT_PRESENT = 431, // "when-not-present"
+ TOKEN_HOSTNAME_CHAR_SET = 432, // "hostname-char-set"
+ TOKEN_HOSTNAME_CHAR_REPLACEMENT = 433, // "hostname-char-replacement"
+ TOKEN_EARLY_GLOBAL_RESERVATIONS_LOOKUP = 434, // "early-global-reservations-lookup"
+ TOKEN_IP_RESERVATIONS_UNIQUE = 435, // "ip-reservations-unique"
+ TOKEN_RESERVATIONS_LOOKUP_FIRST = 436, // "reservations-lookup-first"
+ TOKEN_LOGGERS = 437, // "loggers"
+ TOKEN_OUTPUT_OPTIONS = 438, // "output_options"
+ TOKEN_OUTPUT = 439, // "output"
+ TOKEN_DEBUGLEVEL = 440, // "debuglevel"
+ TOKEN_SEVERITY = 441, // "severity"
+ TOKEN_FLUSH = 442, // "flush"
+ TOKEN_MAXSIZE = 443, // "maxsize"
+ TOKEN_MAXVER = 444, // "maxver"
+ TOKEN_PATTERN = 445, // "pattern"
+ TOKEN_COMPATIBILITY = 446, // "compatibility"
+ TOKEN_LENIENT_OPTION_PARSING = 447, // "lenient-option-parsing"
+ TOKEN_TOPLEVEL_JSON = 448, // TOPLEVEL_JSON
+ TOKEN_TOPLEVEL_DHCP6 = 449, // TOPLEVEL_DHCP6
+ TOKEN_SUB_DHCP6 = 450, // SUB_DHCP6
+ TOKEN_SUB_INTERFACES6 = 451, // SUB_INTERFACES6
+ TOKEN_SUB_SUBNET6 = 452, // SUB_SUBNET6
+ TOKEN_SUB_POOL6 = 453, // SUB_POOL6
+ TOKEN_SUB_PD_POOL = 454, // SUB_PD_POOL
+ TOKEN_SUB_RESERVATION = 455, // SUB_RESERVATION
+ TOKEN_SUB_OPTION_DEFS = 456, // SUB_OPTION_DEFS
+ TOKEN_SUB_OPTION_DEF = 457, // SUB_OPTION_DEF
+ TOKEN_SUB_OPTION_DATA = 458, // SUB_OPTION_DATA
+ TOKEN_SUB_HOOKS_LIBRARY = 459, // SUB_HOOKS_LIBRARY
+ TOKEN_SUB_DHCP_DDNS = 460, // SUB_DHCP_DDNS
+ TOKEN_SUB_CONFIG_CONTROL = 461, // SUB_CONFIG_CONTROL
+ TOKEN_STRING = 462, // "constant string"
+ TOKEN_INTEGER = 463, // "integer"
+ TOKEN_FLOAT = 464, // "floating point"
+ TOKEN_BOOLEAN = 465 // "boolean"
+ };
+ /// Backward compatibility alias (Bison 3.6).
+ typedef token_kind_type yytokentype;
+ };
+
+ /// Token kind, as returned by yylex.
+ typedef token::token_kind_type token_kind_type;
+
+ /// Backward compatibility alias (Bison 3.6).
+ typedef token_kind_type token_type;
+
+ /// Symbol kinds.
+ struct symbol_kind
+ {
+ enum symbol_kind_type
+ {
+ YYNTOKENS = 211, ///< Number of tokens.
+ S_YYEMPTY = -2,
+ S_YYEOF = 0, // "end of file"
+ S_YYerror = 1, // error
+ S_YYUNDEF = 2, // "invalid token"
+ S_COMMA = 3, // ","
+ S_COLON = 4, // ":"
+ S_LSQUARE_BRACKET = 5, // "["
+ S_RSQUARE_BRACKET = 6, // "]"
+ S_LCURLY_BRACKET = 7, // "{"
+ S_RCURLY_BRACKET = 8, // "}"
+ S_NULL_TYPE = 9, // "null"
+ S_DHCP6 = 10, // "Dhcp6"
+ S_DATA_DIRECTORY = 11, // "data-directory"
+ S_CONFIG_CONTROL = 12, // "config-control"
+ S_CONFIG_DATABASES = 13, // "config-databases"
+ S_CONFIG_FETCH_WAIT_TIME = 14, // "config-fetch-wait-time"
+ S_INTERFACES_CONFIG = 15, // "interfaces-config"
+ S_INTERFACES = 16, // "interfaces"
+ S_RE_DETECT = 17, // "re-detect"
+ S_LEASE_DATABASE = 18, // "lease-database"
+ S_HOSTS_DATABASE = 19, // "hosts-database"
+ S_HOSTS_DATABASES = 20, // "hosts-databases"
+ S_TYPE = 21, // "type"
+ S_MEMFILE = 22, // "memfile"
+ S_MYSQL = 23, // "mysql"
+ S_POSTGRESQL = 24, // "postgresql"
+ S_USER = 25, // "user"
+ S_PASSWORD = 26, // "password"
+ S_HOST = 27, // "host"
+ S_PORT = 28, // "port"
+ S_PERSIST = 29, // "persist"
+ S_LFC_INTERVAL = 30, // "lfc-interval"
+ S_READONLY = 31, // "readonly"
+ S_CONNECT_TIMEOUT = 32, // "connect-timeout"
+ S_MAX_RECONNECT_TRIES = 33, // "max-reconnect-tries"
+ S_RECONNECT_WAIT_TIME = 34, // "reconnect-wait-time"
+ S_ON_FAIL = 35, // "on-fail"
+ S_STOP_RETRY_EXIT = 36, // "stop-retry-exit"
+ S_SERVE_RETRY_EXIT = 37, // "serve-retry-exit"
+ S_SERVE_RETRY_CONTINUE = 38, // "serve-retry-continue"
+ S_MAX_ROW_ERRORS = 39, // "max-row-errors"
+ S_TRUST_ANCHOR = 40, // "trust-anchor"
+ S_CERT_FILE = 41, // "cert-file"
+ S_KEY_FILE = 42, // "key-file"
+ S_CIPHER_LIST = 43, // "cipher-list"
+ S_PREFERRED_LIFETIME = 44, // "preferred-lifetime"
+ S_MIN_PREFERRED_LIFETIME = 45, // "min-preferred-lifetime"
+ S_MAX_PREFERRED_LIFETIME = 46, // "max-preferred-lifetime"
+ S_VALID_LIFETIME = 47, // "valid-lifetime"
+ S_MIN_VALID_LIFETIME = 48, // "min-valid-lifetime"
+ S_MAX_VALID_LIFETIME = 49, // "max-valid-lifetime"
+ S_RENEW_TIMER = 50, // "renew-timer"
+ S_REBIND_TIMER = 51, // "rebind-timer"
+ S_CALCULATE_TEE_TIMES = 52, // "calculate-tee-times"
+ S_T1_PERCENT = 53, // "t1-percent"
+ S_T2_PERCENT = 54, // "t2-percent"
+ S_CACHE_THRESHOLD = 55, // "cache-threshold"
+ S_CACHE_MAX_AGE = 56, // "cache-max-age"
+ S_DECLINE_PROBATION_PERIOD = 57, // "decline-probation-period"
+ S_SERVER_TAG = 58, // "server-tag"
+ S_STATISTIC_DEFAULT_SAMPLE_COUNT = 59, // "statistic-default-sample-count"
+ S_STATISTIC_DEFAULT_SAMPLE_AGE = 60, // "statistic-default-sample-age"
+ S_DDNS_SEND_UPDATES = 61, // "ddns-send-updates"
+ S_DDNS_OVERRIDE_NO_UPDATE = 62, // "ddns-override-no-update"
+ S_DDNS_OVERRIDE_CLIENT_UPDATE = 63, // "ddns-override-client-update"
+ S_DDNS_REPLACE_CLIENT_NAME = 64, // "ddns-replace-client-name"
+ S_DDNS_GENERATED_PREFIX = 65, // "ddns-generated-prefix"
+ S_DDNS_QUALIFYING_SUFFIX = 66, // "ddns-qualifying-suffix"
+ S_DDNS_UPDATE_ON_RENEW = 67, // "ddns-update-on-renew"
+ S_DDNS_USE_CONFLICT_RESOLUTION = 68, // "ddns-use-conflict-resolution"
+ S_STORE_EXTENDED_INFO = 69, // "store-extended-info"
+ S_SUBNET6 = 70, // "subnet6"
+ S_OPTION_DEF = 71, // "option-def"
+ S_OPTION_DATA = 72, // "option-data"
+ S_NAME = 73, // "name"
+ S_DATA = 74, // "data"
+ S_CODE = 75, // "code"
+ S_SPACE = 76, // "space"
+ S_CSV_FORMAT = 77, // "csv-format"
+ S_ALWAYS_SEND = 78, // "always-send"
+ S_RECORD_TYPES = 79, // "record-types"
+ S_ENCAPSULATE = 80, // "encapsulate"
+ S_ARRAY = 81, // "array"
+ S_PARKED_PACKET_LIMIT = 82, // "parked-packet-limit"
+ S_SHARED_NETWORKS = 83, // "shared-networks"
+ S_POOLS = 84, // "pools"
+ S_POOL = 85, // "pool"
+ S_PD_POOLS = 86, // "pd-pools"
+ S_PREFIX = 87, // "prefix"
+ S_PREFIX_LEN = 88, // "prefix-len"
+ S_EXCLUDED_PREFIX = 89, // "excluded-prefix"
+ S_EXCLUDED_PREFIX_LEN = 90, // "excluded-prefix-len"
+ S_DELEGATED_LEN = 91, // "delegated-len"
+ S_USER_CONTEXT = 92, // "user-context"
+ S_COMMENT = 93, // "comment"
+ S_SUBNET = 94, // "subnet"
+ S_INTERFACE = 95, // "interface"
+ S_INTERFACE_ID = 96, // "interface-id"
+ S_ID = 97, // "id"
+ S_RAPID_COMMIT = 98, // "rapid-commit"
+ S_RESERVATION_MODE = 99, // "reservation-mode"
+ S_DISABLED = 100, // "disabled"
+ S_OUT_OF_POOL = 101, // "out-of-pool"
+ S_GLOBAL = 102, // "global"
+ S_ALL = 103, // "all"
+ S_RESERVATIONS_GLOBAL = 104, // "reservations-global"
+ S_RESERVATIONS_IN_SUBNET = 105, // "reservations-in-subnet"
+ S_RESERVATIONS_OUT_OF_POOL = 106, // "reservations-out-of-pool"
+ S_MAC_SOURCES = 107, // "mac-sources"
+ S_RELAY_SUPPLIED_OPTIONS = 108, // "relay-supplied-options"
+ S_HOST_RESERVATION_IDENTIFIERS = 109, // "host-reservation-identifiers"
+ S_SANITY_CHECKS = 110, // "sanity-checks"
+ S_LEASE_CHECKS = 111, // "lease-checks"
+ S_CLIENT_CLASSES = 112, // "client-classes"
+ S_REQUIRE_CLIENT_CLASSES = 113, // "require-client-classes"
+ S_TEST = 114, // "test"
+ S_ONLY_IF_REQUIRED = 115, // "only-if-required"
+ S_CLIENT_CLASS = 116, // "client-class"
+ S_RESERVATIONS = 117, // "reservations"
+ S_IP_ADDRESSES = 118, // "ip-addresses"
+ S_PREFIXES = 119, // "prefixes"
+ S_DUID = 120, // "duid"
+ S_HW_ADDRESS = 121, // "hw-address"
+ S_HOSTNAME = 122, // "hostname"
+ S_FLEX_ID = 123, // "flex-id"
+ S_RELAY = 124, // "relay"
+ S_IP_ADDRESS = 125, // "ip-address"
+ S_HOOKS_LIBRARIES = 126, // "hooks-libraries"
+ S_LIBRARY = 127, // "library"
+ S_PARAMETERS = 128, // "parameters"
+ S_EXPIRED_LEASES_PROCESSING = 129, // "expired-leases-processing"
+ S_RECLAIM_TIMER_WAIT_TIME = 130, // "reclaim-timer-wait-time"
+ S_FLUSH_RECLAIMED_TIMER_WAIT_TIME = 131, // "flush-reclaimed-timer-wait-time"
+ S_HOLD_RECLAIMED_TIME = 132, // "hold-reclaimed-time"
+ S_MAX_RECLAIM_LEASES = 133, // "max-reclaim-leases"
+ S_MAX_RECLAIM_TIME = 134, // "max-reclaim-time"
+ S_UNWARNED_RECLAIM_CYCLES = 135, // "unwarned-reclaim-cycles"
+ S_SERVER_ID = 136, // "server-id"
+ S_LLT = 137, // "LLT"
+ S_EN = 138, // "EN"
+ S_LL = 139, // "LL"
+ S_IDENTIFIER = 140, // "identifier"
+ S_HTYPE = 141, // "htype"
+ S_TIME = 142, // "time"
+ S_ENTERPRISE_ID = 143, // "enterprise-id"
+ S_DHCP4O6_PORT = 144, // "dhcp4o6-port"
+ S_DHCP_MULTI_THREADING = 145, // "multi-threading"
+ S_ENABLE_MULTI_THREADING = 146, // "enable-multi-threading"
+ S_THREAD_POOL_SIZE = 147, // "thread-pool-size"
+ S_PACKET_QUEUE_SIZE = 148, // "packet-queue-size"
+ S_CONTROL_SOCKET = 149, // "control-socket"
+ S_SOCKET_TYPE = 150, // "socket-type"
+ S_SOCKET_NAME = 151, // "socket-name"
+ S_DHCP_QUEUE_CONTROL = 152, // "dhcp-queue-control"
+ S_ENABLE_QUEUE = 153, // "enable-queue"
+ S_QUEUE_TYPE = 154, // "queue-type"
+ S_CAPACITY = 155, // "capacity"
+ S_DHCP_DDNS = 156, // "dhcp-ddns"
+ S_ENABLE_UPDATES = 157, // "enable-updates"
+ S_QUALIFYING_SUFFIX = 158, // "qualifying-suffix"
+ S_SERVER_IP = 159, // "server-ip"
+ S_SERVER_PORT = 160, // "server-port"
+ S_SENDER_IP = 161, // "sender-ip"
+ S_SENDER_PORT = 162, // "sender-port"
+ S_MAX_QUEUE_SIZE = 163, // "max-queue-size"
+ S_NCR_PROTOCOL = 164, // "ncr-protocol"
+ S_NCR_FORMAT = 165, // "ncr-format"
+ S_OVERRIDE_NO_UPDATE = 166, // "override-no-update"
+ S_OVERRIDE_CLIENT_UPDATE = 167, // "override-client-update"
+ S_REPLACE_CLIENT_NAME = 168, // "replace-client-name"
+ S_GENERATED_PREFIX = 169, // "generated-prefix"
+ S_UDP = 170, // "UDP"
+ S_TCP = 171, // "TCP"
+ S_JSON = 172, // "JSON"
+ S_WHEN_PRESENT = 173, // "when-present"
+ S_NEVER = 174, // "never"
+ S_ALWAYS = 175, // "always"
+ S_WHEN_NOT_PRESENT = 176, // "when-not-present"
+ S_HOSTNAME_CHAR_SET = 177, // "hostname-char-set"
+ S_HOSTNAME_CHAR_REPLACEMENT = 178, // "hostname-char-replacement"
+ S_EARLY_GLOBAL_RESERVATIONS_LOOKUP = 179, // "early-global-reservations-lookup"
+ S_IP_RESERVATIONS_UNIQUE = 180, // "ip-reservations-unique"
+ S_RESERVATIONS_LOOKUP_FIRST = 181, // "reservations-lookup-first"
+ S_LOGGERS = 182, // "loggers"
+ S_OUTPUT_OPTIONS = 183, // "output_options"
+ S_OUTPUT = 184, // "output"
+ S_DEBUGLEVEL = 185, // "debuglevel"
+ S_SEVERITY = 186, // "severity"
+ S_FLUSH = 187, // "flush"
+ S_MAXSIZE = 188, // "maxsize"
+ S_MAXVER = 189, // "maxver"
+ S_PATTERN = 190, // "pattern"
+ S_COMPATIBILITY = 191, // "compatibility"
+ S_LENIENT_OPTION_PARSING = 192, // "lenient-option-parsing"
+ S_TOPLEVEL_JSON = 193, // TOPLEVEL_JSON
+ S_TOPLEVEL_DHCP6 = 194, // TOPLEVEL_DHCP6
+ S_SUB_DHCP6 = 195, // SUB_DHCP6
+ S_SUB_INTERFACES6 = 196, // SUB_INTERFACES6
+ S_SUB_SUBNET6 = 197, // SUB_SUBNET6
+ S_SUB_POOL6 = 198, // SUB_POOL6
+ S_SUB_PD_POOL = 199, // SUB_PD_POOL
+ S_SUB_RESERVATION = 200, // SUB_RESERVATION
+ S_SUB_OPTION_DEFS = 201, // SUB_OPTION_DEFS
+ S_SUB_OPTION_DEF = 202, // SUB_OPTION_DEF
+ S_SUB_OPTION_DATA = 203, // SUB_OPTION_DATA
+ S_SUB_HOOKS_LIBRARY = 204, // SUB_HOOKS_LIBRARY
+ S_SUB_DHCP_DDNS = 205, // SUB_DHCP_DDNS
+ S_SUB_CONFIG_CONTROL = 206, // SUB_CONFIG_CONTROL
+ S_STRING = 207, // "constant string"
+ S_INTEGER = 208, // "integer"
+ S_FLOAT = 209, // "floating point"
+ S_BOOLEAN = 210, // "boolean"
+ S_YYACCEPT = 211, // $accept
+ S_start = 212, // start
+ S_213_1 = 213, // $@1
+ S_214_2 = 214, // $@2
+ S_215_3 = 215, // $@3
+ S_216_4 = 216, // $@4
+ S_217_5 = 217, // $@5
+ S_218_6 = 218, // $@6
+ S_219_7 = 219, // $@7
+ S_220_8 = 220, // $@8
+ S_221_9 = 221, // $@9
+ S_222_10 = 222, // $@10
+ S_223_11 = 223, // $@11
+ S_224_12 = 224, // $@12
+ S_225_13 = 225, // $@13
+ S_226_14 = 226, // $@14
+ S_value = 227, // value
+ S_sub_json = 228, // sub_json
+ S_map2 = 229, // map2
+ S_230_15 = 230, // $@15
+ S_map_value = 231, // map_value
+ S_map_content = 232, // map_content
+ S_not_empty_map = 233, // not_empty_map
+ S_list_generic = 234, // list_generic
+ S_235_16 = 235, // $@16
+ S_list_content = 236, // list_content
+ S_not_empty_list = 237, // not_empty_list
+ S_list_strings = 238, // list_strings
+ S_239_17 = 239, // $@17
+ S_list_strings_content = 240, // list_strings_content
+ S_not_empty_list_strings = 241, // not_empty_list_strings
+ S_unknown_map_entry = 242, // unknown_map_entry
+ S_syntax_map = 243, // syntax_map
+ S_244_18 = 244, // $@18
+ S_global_object = 245, // global_object
+ S_246_19 = 246, // $@19
+ S_global_object_comma = 247, // global_object_comma
+ S_sub_dhcp6 = 248, // sub_dhcp6
+ S_249_20 = 249, // $@20
+ S_global_params = 250, // global_params
+ S_global_param = 251, // global_param
+ S_data_directory = 252, // data_directory
+ S_253_21 = 253, // $@21
+ S_preferred_lifetime = 254, // preferred_lifetime
+ S_min_preferred_lifetime = 255, // min_preferred_lifetime
+ S_max_preferred_lifetime = 256, // max_preferred_lifetime
+ S_valid_lifetime = 257, // valid_lifetime
+ S_min_valid_lifetime = 258, // min_valid_lifetime
+ S_max_valid_lifetime = 259, // max_valid_lifetime
+ S_renew_timer = 260, // renew_timer
+ S_rebind_timer = 261, // rebind_timer
+ S_calculate_tee_times = 262, // calculate_tee_times
+ S_t1_percent = 263, // t1_percent
+ S_t2_percent = 264, // t2_percent
+ S_cache_threshold = 265, // cache_threshold
+ S_cache_max_age = 266, // cache_max_age
+ S_decline_probation_period = 267, // decline_probation_period
+ S_ddns_send_updates = 268, // ddns_send_updates
+ S_ddns_override_no_update = 269, // ddns_override_no_update
+ S_ddns_override_client_update = 270, // ddns_override_client_update
+ S_ddns_replace_client_name = 271, // ddns_replace_client_name
+ S_272_22 = 272, // $@22
+ S_ddns_replace_client_name_value = 273, // ddns_replace_client_name_value
+ S_ddns_generated_prefix = 274, // ddns_generated_prefix
+ S_275_23 = 275, // $@23
+ S_ddns_qualifying_suffix = 276, // ddns_qualifying_suffix
+ S_277_24 = 277, // $@24
+ S_ddns_update_on_renew = 278, // ddns_update_on_renew
+ S_ddns_use_conflict_resolution = 279, // ddns_use_conflict_resolution
+ S_hostname_char_set = 280, // hostname_char_set
+ S_281_25 = 281, // $@25
+ S_hostname_char_replacement = 282, // hostname_char_replacement
+ S_283_26 = 283, // $@26
+ S_store_extended_info = 284, // store_extended_info
+ S_statistic_default_sample_count = 285, // statistic_default_sample_count
+ S_statistic_default_sample_age = 286, // statistic_default_sample_age
+ S_server_tag = 287, // server_tag
+ S_288_27 = 288, // $@27
+ S_parked_packet_limit = 289, // parked_packet_limit
+ S_early_global_reservations_lookup = 290, // early_global_reservations_lookup
+ S_ip_reservations_unique = 291, // ip_reservations_unique
+ S_reservations_lookup_first = 292, // reservations_lookup_first
+ S_interfaces_config = 293, // interfaces_config
+ S_294_28 = 294, // $@28
+ S_sub_interfaces6 = 295, // sub_interfaces6
+ S_296_29 = 296, // $@29
+ S_interfaces_config_params = 297, // interfaces_config_params
+ S_interfaces_config_param = 298, // interfaces_config_param
+ S_interfaces_list = 299, // interfaces_list
+ S_300_30 = 300, // $@30
+ S_re_detect = 301, // re_detect
+ S_lease_database = 302, // lease_database
+ S_303_31 = 303, // $@31
+ S_hosts_database = 304, // hosts_database
+ S_305_32 = 305, // $@32
+ S_hosts_databases = 306, // hosts_databases
+ S_307_33 = 307, // $@33
+ S_database_list = 308, // database_list
+ S_not_empty_database_list = 309, // not_empty_database_list
+ S_database = 310, // database
+ S_311_34 = 311, // $@34
+ S_database_map_params = 312, // database_map_params
+ S_database_map_param = 313, // database_map_param
+ S_database_type = 314, // database_type
+ S_315_35 = 315, // $@35
+ S_db_type = 316, // db_type
+ S_user = 317, // user
+ S_318_36 = 318, // $@36
+ S_password = 319, // password
+ S_320_37 = 320, // $@37
+ S_host = 321, // host
+ S_322_38 = 322, // $@38
+ S_port = 323, // port
+ S_name = 324, // name
+ S_325_39 = 325, // $@39
+ S_persist = 326, // persist
+ S_lfc_interval = 327, // lfc_interval
+ S_readonly = 328, // readonly
+ S_connect_timeout = 329, // connect_timeout
+ S_reconnect_wait_time = 330, // reconnect_wait_time
+ S_on_fail = 331, // on_fail
+ S_332_40 = 332, // $@40
+ S_on_fail_mode = 333, // on_fail_mode
+ S_max_row_errors = 334, // max_row_errors
+ S_max_reconnect_tries = 335, // max_reconnect_tries
+ S_trust_anchor = 336, // trust_anchor
+ S_337_41 = 337, // $@41
+ S_cert_file = 338, // cert_file
+ S_339_42 = 339, // $@42
+ S_key_file = 340, // key_file
+ S_341_43 = 341, // $@43
+ S_cipher_list = 342, // cipher_list
+ S_343_44 = 343, // $@44
+ S_sanity_checks = 344, // sanity_checks
+ S_345_45 = 345, // $@45
+ S_sanity_checks_params = 346, // sanity_checks_params
+ S_sanity_checks_param = 347, // sanity_checks_param
+ S_lease_checks = 348, // lease_checks
+ S_349_46 = 349, // $@46
+ S_mac_sources = 350, // mac_sources
+ S_351_47 = 351, // $@47
+ S_mac_sources_list = 352, // mac_sources_list
+ S_mac_sources_value = 353, // mac_sources_value
+ S_duid_id = 354, // duid_id
+ S_string_id = 355, // string_id
+ S_host_reservation_identifiers = 356, // host_reservation_identifiers
+ S_357_48 = 357, // $@48
+ S_host_reservation_identifiers_list = 358, // host_reservation_identifiers_list
+ S_host_reservation_identifier = 359, // host_reservation_identifier
+ S_hw_address_id = 360, // hw_address_id
+ S_flex_id = 361, // flex_id
+ S_relay_supplied_options = 362, // relay_supplied_options
+ S_363_49 = 363, // $@49
+ S_dhcp_multi_threading = 364, // dhcp_multi_threading
+ S_365_50 = 365, // $@50
+ S_multi_threading_params = 366, // multi_threading_params
+ S_multi_threading_param = 367, // multi_threading_param
+ S_enable_multi_threading = 368, // enable_multi_threading
+ S_thread_pool_size = 369, // thread_pool_size
+ S_packet_queue_size = 370, // packet_queue_size
+ S_hooks_libraries = 371, // hooks_libraries
+ S_372_51 = 372, // $@51
+ S_hooks_libraries_list = 373, // hooks_libraries_list
+ S_not_empty_hooks_libraries_list = 374, // not_empty_hooks_libraries_list
+ S_hooks_library = 375, // hooks_library
+ S_376_52 = 376, // $@52
+ S_sub_hooks_library = 377, // sub_hooks_library
+ S_378_53 = 378, // $@53
+ S_hooks_params = 379, // hooks_params
+ S_hooks_param = 380, // hooks_param
+ S_library = 381, // library
+ S_382_54 = 382, // $@54
+ S_parameters = 383, // parameters
+ S_384_55 = 384, // $@55
+ S_expired_leases_processing = 385, // expired_leases_processing
+ S_386_56 = 386, // $@56
+ S_expired_leases_params = 387, // expired_leases_params
+ S_expired_leases_param = 388, // expired_leases_param
+ S_reclaim_timer_wait_time = 389, // reclaim_timer_wait_time
+ S_flush_reclaimed_timer_wait_time = 390, // flush_reclaimed_timer_wait_time
+ S_hold_reclaimed_time = 391, // hold_reclaimed_time
+ S_max_reclaim_leases = 392, // max_reclaim_leases
+ S_max_reclaim_time = 393, // max_reclaim_time
+ S_unwarned_reclaim_cycles = 394, // unwarned_reclaim_cycles
+ S_subnet6_list = 395, // subnet6_list
+ S_396_57 = 396, // $@57
+ S_subnet6_list_content = 397, // subnet6_list_content
+ S_not_empty_subnet6_list = 398, // not_empty_subnet6_list
+ S_subnet6 = 399, // subnet6
+ S_400_58 = 400, // $@58
+ S_sub_subnet6 = 401, // sub_subnet6
+ S_402_59 = 402, // $@59
+ S_subnet6_params = 403, // subnet6_params
+ S_subnet6_param = 404, // subnet6_param
+ S_subnet = 405, // subnet
+ S_406_60 = 406, // $@60
+ S_interface = 407, // interface
+ S_408_61 = 408, // $@61
+ S_interface_id = 409, // interface_id
+ S_410_62 = 410, // $@62
+ S_client_class = 411, // client_class
+ S_412_63 = 412, // $@63
+ S_require_client_classes = 413, // require_client_classes
+ S_414_64 = 414, // $@64
+ S_reservations_global = 415, // reservations_global
+ S_reservations_in_subnet = 416, // reservations_in_subnet
+ S_reservations_out_of_pool = 417, // reservations_out_of_pool
+ S_reservation_mode = 418, // reservation_mode
+ S_419_65 = 419, // $@65
+ S_hr_mode = 420, // hr_mode
+ S_id = 421, // id
+ S_rapid_commit = 422, // rapid_commit
+ S_shared_networks = 423, // shared_networks
+ S_424_66 = 424, // $@66
+ S_shared_networks_content = 425, // shared_networks_content
+ S_shared_networks_list = 426, // shared_networks_list
+ S_shared_network = 427, // shared_network
+ S_428_67 = 428, // $@67
+ S_shared_network_params = 429, // shared_network_params
+ S_shared_network_param = 430, // shared_network_param
+ S_option_def_list = 431, // option_def_list
+ S_432_68 = 432, // $@68
+ S_sub_option_def_list = 433, // sub_option_def_list
+ S_434_69 = 434, // $@69
+ S_option_def_list_content = 435, // option_def_list_content
+ S_not_empty_option_def_list = 436, // not_empty_option_def_list
+ S_option_def_entry = 437, // option_def_entry
+ S_438_70 = 438, // $@70
+ S_sub_option_def = 439, // sub_option_def
+ S_440_71 = 440, // $@71
+ S_option_def_params = 441, // option_def_params
+ S_not_empty_option_def_params = 442, // not_empty_option_def_params
+ S_option_def_param = 443, // option_def_param
+ S_option_def_name = 444, // option_def_name
+ S_code = 445, // code
+ S_option_def_code = 446, // option_def_code
+ S_option_def_type = 447, // option_def_type
+ S_448_72 = 448, // $@72
+ S_option_def_record_types = 449, // option_def_record_types
+ S_450_73 = 450, // $@73
+ S_space = 451, // space
+ S_452_74 = 452, // $@74
+ S_option_def_space = 453, // option_def_space
+ S_option_def_encapsulate = 454, // option_def_encapsulate
+ S_455_75 = 455, // $@75
+ S_option_def_array = 456, // option_def_array
+ S_option_data_list = 457, // option_data_list
+ S_458_76 = 458, // $@76
+ S_option_data_list_content = 459, // option_data_list_content
+ S_not_empty_option_data_list = 460, // not_empty_option_data_list
+ S_option_data_entry = 461, // option_data_entry
+ S_462_77 = 462, // $@77
+ S_sub_option_data = 463, // sub_option_data
+ S_464_78 = 464, // $@78
+ S_option_data_params = 465, // option_data_params
+ S_not_empty_option_data_params = 466, // not_empty_option_data_params
+ S_option_data_param = 467, // option_data_param
+ S_option_data_name = 468, // option_data_name
+ S_option_data_data = 469, // option_data_data
+ S_470_79 = 470, // $@79
+ S_option_data_code = 471, // option_data_code
+ S_option_data_space = 472, // option_data_space
+ S_option_data_csv_format = 473, // option_data_csv_format
+ S_option_data_always_send = 474, // option_data_always_send
+ S_pools_list = 475, // pools_list
+ S_476_80 = 476, // $@80
+ S_pools_list_content = 477, // pools_list_content
+ S_not_empty_pools_list = 478, // not_empty_pools_list
+ S_pool_list_entry = 479, // pool_list_entry
+ S_480_81 = 480, // $@81
+ S_sub_pool6 = 481, // sub_pool6
+ S_482_82 = 482, // $@82
+ S_pool_params = 483, // pool_params
+ S_pool_param = 484, // pool_param
+ S_pool_entry = 485, // pool_entry
+ S_486_83 = 486, // $@83
+ S_user_context = 487, // user_context
+ S_488_84 = 488, // $@84
+ S_comment = 489, // comment
+ S_490_85 = 490, // $@85
+ S_pd_pools_list = 491, // pd_pools_list
+ S_492_86 = 492, // $@86
+ S_pd_pools_list_content = 493, // pd_pools_list_content
+ S_not_empty_pd_pools_list = 494, // not_empty_pd_pools_list
+ S_pd_pool_entry = 495, // pd_pool_entry
+ S_496_87 = 496, // $@87
+ S_sub_pd_pool = 497, // sub_pd_pool
+ S_498_88 = 498, // $@88
+ S_pd_pool_params = 499, // pd_pool_params
+ S_pd_pool_param = 500, // pd_pool_param
+ S_pd_prefix = 501, // pd_prefix
+ S_502_89 = 502, // $@89
+ S_pd_prefix_len = 503, // pd_prefix_len
+ S_excluded_prefix = 504, // excluded_prefix
+ S_505_90 = 505, // $@90
+ S_excluded_prefix_len = 506, // excluded_prefix_len
+ S_pd_delegated_len = 507, // pd_delegated_len
+ S_reservations = 508, // reservations
+ S_509_91 = 509, // $@91
+ S_reservations_list = 510, // reservations_list
+ S_not_empty_reservations_list = 511, // not_empty_reservations_list
+ S_reservation = 512, // reservation
+ S_513_92 = 513, // $@92
+ S_sub_reservation = 514, // sub_reservation
+ S_515_93 = 515, // $@93
+ S_reservation_params = 516, // reservation_params
+ S_not_empty_reservation_params = 517, // not_empty_reservation_params
+ S_reservation_param = 518, // reservation_param
+ S_ip_addresses = 519, // ip_addresses
+ S_520_94 = 520, // $@94
+ S_prefixes = 521, // prefixes
+ S_522_95 = 522, // $@95
+ S_duid = 523, // duid
+ S_524_96 = 524, // $@96
+ S_hw_address = 525, // hw_address
+ S_526_97 = 526, // $@97
+ S_hostname = 527, // hostname
+ S_528_98 = 528, // $@98
+ S_flex_id_value = 529, // flex_id_value
+ S_530_99 = 530, // $@99
+ S_reservation_client_classes = 531, // reservation_client_classes
+ S_532_100 = 532, // $@100
+ S_relay = 533, // relay
+ S_534_101 = 534, // $@101
+ S_relay_map = 535, // relay_map
+ S_ip_address = 536, // ip_address
+ S_537_102 = 537, // $@102
+ S_client_classes = 538, // client_classes
+ S_539_103 = 539, // $@103
+ S_client_classes_list = 540, // client_classes_list
+ S_client_class_entry = 541, // client_class_entry
+ S_542_104 = 542, // $@104
+ S_client_class_params = 543, // client_class_params
+ S_not_empty_client_class_params = 544, // not_empty_client_class_params
+ S_client_class_param = 545, // client_class_param
+ S_client_class_name = 546, // client_class_name
+ S_client_class_test = 547, // client_class_test
+ S_548_105 = 548, // $@105
+ S_only_if_required = 549, // only_if_required
+ S_server_id = 550, // server_id
+ S_551_106 = 551, // $@106
+ S_server_id_params = 552, // server_id_params
+ S_server_id_param = 553, // server_id_param
+ S_server_id_type = 554, // server_id_type
+ S_555_107 = 555, // $@107
+ S_duid_type = 556, // duid_type
+ S_htype = 557, // htype
+ S_identifier = 558, // identifier
+ S_559_108 = 559, // $@108
+ S_time = 560, // time
+ S_enterprise_id = 561, // enterprise_id
+ S_dhcp4o6_port = 562, // dhcp4o6_port
+ S_control_socket = 563, // control_socket
+ S_564_109 = 564, // $@109
+ S_control_socket_params = 565, // control_socket_params
+ S_control_socket_param = 566, // control_socket_param
+ S_socket_type = 567, // socket_type
+ S_568_110 = 568, // $@110
+ S_socket_name = 569, // socket_name
+ S_570_111 = 570, // $@111
+ S_dhcp_queue_control = 571, // dhcp_queue_control
+ S_572_112 = 572, // $@112
+ S_queue_control_params = 573, // queue_control_params
+ S_queue_control_param = 574, // queue_control_param
+ S_enable_queue = 575, // enable_queue
+ S_queue_type = 576, // queue_type
+ S_577_113 = 577, // $@113
+ S_capacity = 578, // capacity
+ S_arbitrary_map_entry = 579, // arbitrary_map_entry
+ S_580_114 = 580, // $@114
+ S_dhcp_ddns = 581, // dhcp_ddns
+ S_582_115 = 582, // $@115
+ S_sub_dhcp_ddns = 583, // sub_dhcp_ddns
+ S_584_116 = 584, // $@116
+ S_dhcp_ddns_params = 585, // dhcp_ddns_params
+ S_dhcp_ddns_param = 586, // dhcp_ddns_param
+ S_enable_updates = 587, // enable_updates
+ S_dep_qualifying_suffix = 588, // dep_qualifying_suffix
+ S_589_117 = 589, // $@117
+ S_server_ip = 590, // server_ip
+ S_591_118 = 591, // $@118
+ S_server_port = 592, // server_port
+ S_sender_ip = 593, // sender_ip
+ S_594_119 = 594, // $@119
+ S_sender_port = 595, // sender_port
+ S_max_queue_size = 596, // max_queue_size
+ S_ncr_protocol = 597, // ncr_protocol
+ S_598_120 = 598, // $@120
+ S_ncr_protocol_value = 599, // ncr_protocol_value
+ S_ncr_format = 600, // ncr_format
+ S_601_121 = 601, // $@121
+ S_dep_override_no_update = 602, // dep_override_no_update
+ S_dep_override_client_update = 603, // dep_override_client_update
+ S_dep_replace_client_name = 604, // dep_replace_client_name
+ S_605_122 = 605, // $@122
+ S_dep_generated_prefix = 606, // dep_generated_prefix
+ S_607_123 = 607, // $@123
+ S_dep_hostname_char_set = 608, // dep_hostname_char_set
+ S_609_124 = 609, // $@124
+ S_dep_hostname_char_replacement = 610, // dep_hostname_char_replacement
+ S_611_125 = 611, // $@125
+ S_config_control = 612, // config_control
+ S_613_126 = 613, // $@126
+ S_sub_config_control = 614, // sub_config_control
+ S_615_127 = 615, // $@127
+ S_config_control_params = 616, // config_control_params
+ S_config_control_param = 617, // config_control_param
+ S_config_databases = 618, // config_databases
+ S_619_128 = 619, // $@128
+ S_config_fetch_wait_time = 620, // config_fetch_wait_time
+ S_loggers = 621, // loggers
+ S_622_129 = 622, // $@129
+ S_loggers_entries = 623, // loggers_entries
+ S_logger_entry = 624, // logger_entry
+ S_625_130 = 625, // $@130
+ S_logger_params = 626, // logger_params
+ S_logger_param = 627, // logger_param
+ S_debuglevel = 628, // debuglevel
+ S_severity = 629, // severity
+ S_630_131 = 630, // $@131
+ S_output_options_list = 631, // output_options_list
+ S_632_132 = 632, // $@132
+ S_output_options_list_content = 633, // output_options_list_content
+ S_output_entry = 634, // output_entry
+ S_635_133 = 635, // $@133
+ S_output_params_list = 636, // output_params_list
+ S_output_params = 637, // output_params
+ S_output = 638, // output
+ S_639_134 = 639, // $@134
+ S_flush = 640, // flush
+ S_maxsize = 641, // maxsize
+ S_maxver = 642, // maxver
+ S_pattern = 643, // pattern
+ S_644_135 = 644, // $@135
+ S_compatibility = 645, // compatibility
+ S_646_136 = 646, // $@136
+ S_compatibility_params = 647, // compatibility_params
+ S_compatibility_param = 648, // compatibility_param
+ S_lenient_option_parsing = 649 // lenient_option_parsing
};
};
- /// (External) token type, as returned by yylex.
- typedef token::yytokentype token_type;
+ /// (Internal) symbol kind.
+ typedef symbol_kind::symbol_kind_type symbol_kind_type;
- /// Symbol type: an internal symbol number.
- typedef int symbol_number_type;
-
- /// The symbol type number to denote an empty symbol.
- enum { empty_symbol = -2 };
-
- /// Internal symbol number for tokens (subsumed by symbol_number_type).
- typedef unsigned char token_number_type;
+ /// The number of tokens.
+ static const symbol_kind_type YYNTOKENS = symbol_kind::YYNTOKENS;
/// A complete symbol.
///
- /// Expects its Base type to provide access to the symbol type
- /// via type_get ().
+ /// Expects its Base type to provide access to the symbol kind
+ /// via kind ().
///
/// Provide access to semantic value and location.
template
@@ -708,20 +1396,58 @@ namespace isc { namespace dhcp {
typedef Base super_type;
/// Default constructor.
- basic_symbol ()
+ basic_symbol () YY_NOEXCEPT
: value ()
, location ()
{}
#if 201103L <= YY_CPLUSPLUS
/// Move constructor.
- basic_symbol (basic_symbol&& that);
+ basic_symbol (basic_symbol&& that)
+ : Base (std::move (that))
+ , value ()
+ , location (std::move (that.location))
+ {
+ switch (this->kind ())
+ {
+ case symbol_kind::S_value: // value
+ case symbol_kind::S_map_value: // map_value
+ case symbol_kind::S_ddns_replace_client_name_value: // ddns_replace_client_name_value
+ case symbol_kind::S_db_type: // db_type
+ case symbol_kind::S_on_fail_mode: // on_fail_mode
+ case symbol_kind::S_hr_mode: // hr_mode
+ case symbol_kind::S_duid_type: // duid_type
+ case symbol_kind::S_ncr_protocol_value: // ncr_protocol_value
+ value.move< ElementPtr > (std::move (that.value));
+ break;
+
+ case symbol_kind::S_BOOLEAN: // "boolean"
+ value.move< bool > (std::move (that.value));
+ break;
+
+ case symbol_kind::S_FLOAT: // "floating point"
+ value.move< double > (std::move (that.value));
+ break;
+
+ case symbol_kind::S_INTEGER: // "integer"
+ value.move< int64_t > (std::move (that.value));
+ break;
+
+ case symbol_kind::S_STRING: // "constant string"
+ value.move< std::string > (std::move (that.value));
+ break;
+
+ default:
+ break;
+ }
+
+ }
#endif
/// Copy constructor.
basic_symbol (const basic_symbol& that);
- /// Constructor for valueless symbols, and symbols from each type.
+ /// Constructors for typed symbols.
#if 201103L <= YY_CPLUSPLUS
basic_symbol (typename Base::kind_type t, location_type&& l)
: Base (t)
@@ -733,6 +1459,7 @@ namespace isc { namespace dhcp {
, location (l)
{}
#endif
+
#if 201103L <= YY_CPLUSPLUS
basic_symbol (typename Base::kind_type t, ElementPtr&& v, location_type&& l)
: Base (t)
@@ -746,6 +1473,7 @@ namespace isc { namespace dhcp {
, location (l)
{}
#endif
+
#if 201103L <= YY_CPLUSPLUS
basic_symbol (typename Base::kind_type t, bool&& v, location_type&& l)
: Base (t)
@@ -759,6 +1487,7 @@ namespace isc { namespace dhcp {
, location (l)
{}
#endif
+
#if 201103L <= YY_CPLUSPLUS
basic_symbol (typename Base::kind_type t, double&& v, location_type&& l)
: Base (t)
@@ -772,6 +1501,7 @@ namespace isc { namespace dhcp {
, location (l)
{}
#endif
+
#if 201103L <= YY_CPLUSPLUS
basic_symbol (typename Base::kind_type t, int64_t&& v, location_type&& l)
: Base (t)
@@ -785,6 +1515,7 @@ namespace isc { namespace dhcp {
, location (l)
{}
#endif
+
#if 201103L <= YY_CPLUSPLUS
basic_symbol (typename Base::kind_type t, std::string&& v, location_type&& l)
: Base (t)
@@ -805,46 +1536,48 @@ namespace isc { namespace dhcp {
clear ();
}
+
+
/// Destroy contents, and record that is empty.
- void clear ()
+ void clear () YY_NOEXCEPT
{
// User destructor.
- symbol_number_type yytype = this->type_get ();
+ symbol_kind_type yykind = this->kind ();
basic_symbol& yysym = *this;
(void) yysym;
- switch (yytype)
+ switch (yykind)
{
default:
break;
}
- // Type destructor.
-switch (yytype)
+ // Value type destructor.
+switch (yykind)
{
- case 227: // value
- case 231: // map_value
- case 273: // ddns_replace_client_name_value
- case 316: // db_type
- case 333: // on_fail_mode
- case 420: // hr_mode
- case 556: // duid_type
- case 599: // ncr_protocol_value
+ case symbol_kind::S_value: // value
+ case symbol_kind::S_map_value: // map_value
+ case symbol_kind::S_ddns_replace_client_name_value: // ddns_replace_client_name_value
+ case symbol_kind::S_db_type: // db_type
+ case symbol_kind::S_on_fail_mode: // on_fail_mode
+ case symbol_kind::S_hr_mode: // hr_mode
+ case symbol_kind::S_duid_type: // duid_type
+ case symbol_kind::S_ncr_protocol_value: // ncr_protocol_value
value.template destroy< ElementPtr > ();
break;
- case 210: // "boolean"
+ case symbol_kind::S_BOOLEAN: // "boolean"
value.template destroy< bool > ();
break;
- case 209: // "floating point"
+ case symbol_kind::S_FLOAT: // "floating point"
value.template destroy< double > ();
break;
- case 208: // "integer"
+ case symbol_kind::S_INTEGER: // "integer"
value.template destroy< int64_t > ();
break;
- case 207: // "constant string"
+ case symbol_kind::S_STRING: // "constant string"
value.template destroy< std::string > ();
break;
@@ -855,6 +1588,15 @@ switch (yytype)
Base::clear ();
}
+ /// The user-facing name of this symbol.
+ std::string name () const YY_NOEXCEPT
+ {
+ return Dhcp6Parser::symbol_name (this->kind ());
+ }
+
+ /// Backward compatibility (Bison 3.6).
+ symbol_kind_type type_get () const YY_NOEXCEPT;
+
/// Whether empty.
bool empty () const YY_NOEXCEPT;
@@ -862,7 +1604,7 @@ switch (yytype)
void move (basic_symbol& s);
/// The semantic value.
- semantic_type value;
+ value_type value;
/// The location.
location_type location;
@@ -875,122 +1617,132 @@ switch (yytype)
};
/// Type access provider for token (enum) based symbols.
- struct by_type
+ struct by_kind
{
+ /// The symbol kind as needed by the constructor.
+ typedef token_kind_type kind_type;
+
/// Default constructor.
- by_type ();
+ by_kind () YY_NOEXCEPT;
#if 201103L <= YY_CPLUSPLUS
/// Move constructor.
- by_type (by_type&& that);
+ by_kind (by_kind&& that) YY_NOEXCEPT;
#endif
/// Copy constructor.
- by_type (const by_type& that);
-
- /// The symbol type as needed by the constructor.
- typedef token_type kind_type;
+ by_kind (const by_kind& that) YY_NOEXCEPT;
/// Constructor from (external) token numbers.
- by_type (kind_type t);
+ by_kind (kind_type t) YY_NOEXCEPT;
+
+
/// Record that this symbol is empty.
- void clear ();
+ void clear () YY_NOEXCEPT;
- /// Steal the symbol type from \a that.
- void move (by_type& that);
+ /// Steal the symbol kind from \a that.
+ void move (by_kind& that);
/// The (internal) type number (corresponding to \a type).
/// \a empty when empty.
- symbol_number_type type_get () const YY_NOEXCEPT;
+ symbol_kind_type kind () const YY_NOEXCEPT;
- /// The symbol type.
- /// \a empty_symbol when empty.
- /// An int, not token_number_type, to be able to store empty_symbol.
- int type;
+ /// Backward compatibility (Bison 3.6).
+ symbol_kind_type type_get () const YY_NOEXCEPT;
+
+ /// The symbol kind.
+ /// \a S_YYEMPTY when empty.
+ symbol_kind_type kind_;
};
+ /// Backward compatibility for a private implementation detail (Bison 3.6).
+ typedef by_kind by_type;
+
/// "External" symbols: returned by the scanner.
- struct symbol_type : basic_symbol
+ struct symbol_type : basic_symbol
{
/// Superclass.
- typedef basic_symbol super_type;
+ typedef basic_symbol super_type;
/// Empty symbol.
- symbol_type () {}
+ symbol_type () YY_NOEXCEPT {}
/// Constructor for valueless symbols, and symbols from each type.
#if 201103L <= YY_CPLUSPLUS
symbol_type (int tok, location_type l)
- : super_type(token_type (tok), std::move (l))
- {
- YY_ASSERT (tok == token::TOKEN_END || tok == token::TOKEN_COMMA || tok == token::TOKEN_COLON || tok == token::TOKEN_LSQUARE_BRACKET || tok == token::TOKEN_RSQUARE_BRACKET || tok == token::TOKEN_LCURLY_BRACKET || tok == token::TOKEN_RCURLY_BRACKET || tok == token::TOKEN_NULL_TYPE || tok == token::TOKEN_DHCP6 || tok == token::TOKEN_DATA_DIRECTORY || tok == token::TOKEN_CONFIG_CONTROL || tok == token::TOKEN_CONFIG_DATABASES || tok == token::TOKEN_CONFIG_FETCH_WAIT_TIME || tok == token::TOKEN_INTERFACES_CONFIG || tok == token::TOKEN_INTERFACES || tok == token::TOKEN_RE_DETECT || tok == token::TOKEN_LEASE_DATABASE || tok == token::TOKEN_HOSTS_DATABASE || tok == token::TOKEN_HOSTS_DATABASES || tok == token::TOKEN_TYPE || tok == token::TOKEN_MEMFILE || tok == token::TOKEN_MYSQL || tok == token::TOKEN_POSTGRESQL || tok == token::TOKEN_USER || tok == token::TOKEN_PASSWORD || tok == token::TOKEN_HOST || tok == token::TOKEN_PORT || tok == token::TOKEN_PERSIST || tok == token::TOKEN_LFC_INTERVAL || tok == token::TOKEN_READONLY || tok == token::TOKEN_CONNECT_TIMEOUT || tok == token::TOKEN_MAX_RECONNECT_TRIES || tok == token::TOKEN_RECONNECT_WAIT_TIME || tok == token::TOKEN_ON_FAIL || tok == token::TOKEN_STOP_RETRY_EXIT || tok == token::TOKEN_SERVE_RETRY_EXIT || tok == token::TOKEN_SERVE_RETRY_CONTINUE || tok == token::TOKEN_MAX_ROW_ERRORS || tok == token::TOKEN_TRUST_ANCHOR || tok == token::TOKEN_CERT_FILE || tok == token::TOKEN_KEY_FILE || tok == token::TOKEN_CIPHER_LIST || tok == token::TOKEN_PREFERRED_LIFETIME || tok == token::TOKEN_MIN_PREFERRED_LIFETIME || tok == token::TOKEN_MAX_PREFERRED_LIFETIME || tok == token::TOKEN_VALID_LIFETIME || tok == token::TOKEN_MIN_VALID_LIFETIME || tok == token::TOKEN_MAX_VALID_LIFETIME || tok == token::TOKEN_RENEW_TIMER || tok == token::TOKEN_REBIND_TIMER || tok == token::TOKEN_CALCULATE_TEE_TIMES || tok == token::TOKEN_T1_PERCENT || tok == token::TOKEN_T2_PERCENT || tok == token::TOKEN_CACHE_THRESHOLD || tok == token::TOKEN_CACHE_MAX_AGE || tok == token::TOKEN_DECLINE_PROBATION_PERIOD || tok == token::TOKEN_SERVER_TAG || tok == token::TOKEN_STATISTIC_DEFAULT_SAMPLE_COUNT || tok == token::TOKEN_STATISTIC_DEFAULT_SAMPLE_AGE || tok == token::TOKEN_DDNS_SEND_UPDATES || tok == token::TOKEN_DDNS_OVERRIDE_NO_UPDATE || tok == token::TOKEN_DDNS_OVERRIDE_CLIENT_UPDATE || tok == token::TOKEN_DDNS_REPLACE_CLIENT_NAME || tok == token::TOKEN_DDNS_GENERATED_PREFIX || tok == token::TOKEN_DDNS_QUALIFYING_SUFFIX || tok == token::TOKEN_DDNS_UPDATE_ON_RENEW || tok == token::TOKEN_DDNS_USE_CONFLICT_RESOLUTION || tok == token::TOKEN_STORE_EXTENDED_INFO || tok == token::TOKEN_SUBNET6 || tok == token::TOKEN_OPTION_DEF || tok == token::TOKEN_OPTION_DATA || tok == token::TOKEN_NAME || tok == token::TOKEN_DATA || tok == token::TOKEN_CODE || tok == token::TOKEN_SPACE || tok == token::TOKEN_CSV_FORMAT || tok == token::TOKEN_ALWAYS_SEND || tok == token::TOKEN_RECORD_TYPES || tok == token::TOKEN_ENCAPSULATE || tok == token::TOKEN_ARRAY || tok == token::TOKEN_PARKED_PACKET_LIMIT || tok == token::TOKEN_SHARED_NETWORKS || tok == token::TOKEN_POOLS || tok == token::TOKEN_POOL || tok == token::TOKEN_PD_POOLS || tok == token::TOKEN_PREFIX || tok == token::TOKEN_PREFIX_LEN || tok == token::TOKEN_EXCLUDED_PREFIX || tok == token::TOKEN_EXCLUDED_PREFIX_LEN || tok == token::TOKEN_DELEGATED_LEN || tok == token::TOKEN_USER_CONTEXT || tok == token::TOKEN_COMMENT || tok == token::TOKEN_SUBNET || tok == token::TOKEN_INTERFACE || tok == token::TOKEN_INTERFACE_ID || tok == token::TOKEN_ID || tok == token::TOKEN_RAPID_COMMIT || tok == token::TOKEN_RESERVATION_MODE || tok == token::TOKEN_DISABLED || tok == token::TOKEN_OUT_OF_POOL || tok == token::TOKEN_GLOBAL || tok == token::TOKEN_ALL || tok == token::TOKEN_RESERVATIONS_GLOBAL || tok == token::TOKEN_RESERVATIONS_IN_SUBNET || tok == token::TOKEN_RESERVATIONS_OUT_OF_POOL || tok == token::TOKEN_MAC_SOURCES || tok == token::TOKEN_RELAY_SUPPLIED_OPTIONS || tok == token::TOKEN_HOST_RESERVATION_IDENTIFIERS || tok == token::TOKEN_SANITY_CHECKS || tok == token::TOKEN_LEASE_CHECKS || tok == token::TOKEN_CLIENT_CLASSES || tok == token::TOKEN_REQUIRE_CLIENT_CLASSES || tok == token::TOKEN_TEST || tok == token::TOKEN_ONLY_IF_REQUIRED || tok == token::TOKEN_CLIENT_CLASS || tok == token::TOKEN_RESERVATIONS || tok == token::TOKEN_IP_ADDRESSES || tok == token::TOKEN_PREFIXES || tok == token::TOKEN_DUID || tok == token::TOKEN_HW_ADDRESS || tok == token::TOKEN_HOSTNAME || tok == token::TOKEN_FLEX_ID || tok == token::TOKEN_RELAY || tok == token::TOKEN_IP_ADDRESS || tok == token::TOKEN_HOOKS_LIBRARIES || tok == token::TOKEN_LIBRARY || tok == token::TOKEN_PARAMETERS || tok == token::TOKEN_EXPIRED_LEASES_PROCESSING || tok == token::TOKEN_RECLAIM_TIMER_WAIT_TIME || tok == token::TOKEN_FLUSH_RECLAIMED_TIMER_WAIT_TIME || tok == token::TOKEN_HOLD_RECLAIMED_TIME || tok == token::TOKEN_MAX_RECLAIM_LEASES || tok == token::TOKEN_MAX_RECLAIM_TIME || tok == token::TOKEN_UNWARNED_RECLAIM_CYCLES || tok == token::TOKEN_SERVER_ID || tok == token::TOKEN_LLT || tok == token::TOKEN_EN || tok == token::TOKEN_LL || tok == token::TOKEN_IDENTIFIER || tok == token::TOKEN_HTYPE || tok == token::TOKEN_TIME || tok == token::TOKEN_ENTERPRISE_ID || tok == token::TOKEN_DHCP4O6_PORT || tok == token::TOKEN_DHCP_MULTI_THREADING || tok == token::TOKEN_ENABLE_MULTI_THREADING || tok == token::TOKEN_THREAD_POOL_SIZE || tok == token::TOKEN_PACKET_QUEUE_SIZE || tok == token::TOKEN_CONTROL_SOCKET || tok == token::TOKEN_SOCKET_TYPE || tok == token::TOKEN_SOCKET_NAME || tok == token::TOKEN_DHCP_QUEUE_CONTROL || tok == token::TOKEN_ENABLE_QUEUE || tok == token::TOKEN_QUEUE_TYPE || tok == token::TOKEN_CAPACITY || tok == token::TOKEN_DHCP_DDNS || tok == token::TOKEN_ENABLE_UPDATES || tok == token::TOKEN_QUALIFYING_SUFFIX || tok == token::TOKEN_SERVER_IP || tok == token::TOKEN_SERVER_PORT || tok == token::TOKEN_SENDER_IP || tok == token::TOKEN_SENDER_PORT || tok == token::TOKEN_MAX_QUEUE_SIZE || tok == token::TOKEN_NCR_PROTOCOL || tok == token::TOKEN_NCR_FORMAT || tok == token::TOKEN_OVERRIDE_NO_UPDATE || tok == token::TOKEN_OVERRIDE_CLIENT_UPDATE || tok == token::TOKEN_REPLACE_CLIENT_NAME || tok == token::TOKEN_GENERATED_PREFIX || tok == token::TOKEN_UDP || tok == token::TOKEN_TCP || tok == token::TOKEN_JSON || tok == token::TOKEN_WHEN_PRESENT || tok == token::TOKEN_NEVER || tok == token::TOKEN_ALWAYS || tok == token::TOKEN_WHEN_NOT_PRESENT || tok == token::TOKEN_HOSTNAME_CHAR_SET || tok == token::TOKEN_HOSTNAME_CHAR_REPLACEMENT || tok == token::TOKEN_EARLY_GLOBAL_RESERVATIONS_LOOKUP || tok == token::TOKEN_IP_RESERVATIONS_UNIQUE || tok == token::TOKEN_RESERVATIONS_LOOKUP_FIRST || tok == token::TOKEN_LOGGERS || tok == token::TOKEN_OUTPUT_OPTIONS || tok == token::TOKEN_OUTPUT || tok == token::TOKEN_DEBUGLEVEL || tok == token::TOKEN_SEVERITY || tok == token::TOKEN_FLUSH || tok == token::TOKEN_MAXSIZE || tok == token::TOKEN_MAXVER || tok == token::TOKEN_PATTERN || tok == token::TOKEN_COMPATIBILITY || tok == token::TOKEN_LENIENT_OPTION_PARSING || tok == token::TOKEN_TOPLEVEL_JSON || tok == token::TOKEN_TOPLEVEL_DHCP6 || tok == token::TOKEN_SUB_DHCP6 || tok == token::TOKEN_SUB_INTERFACES6 || tok == token::TOKEN_SUB_SUBNET6 || tok == token::TOKEN_SUB_POOL6 || tok == token::TOKEN_SUB_PD_POOL || tok == token::TOKEN_SUB_RESERVATION || tok == token::TOKEN_SUB_OPTION_DEFS || tok == token::TOKEN_SUB_OPTION_DEF || tok == token::TOKEN_SUB_OPTION_DATA || tok == token::TOKEN_SUB_HOOKS_LIBRARY || tok == token::TOKEN_SUB_DHCP_DDNS || tok == token::TOKEN_SUB_CONFIG_CONTROL);
- }
+ : super_type (token_kind_type (tok), std::move (l))
#else
symbol_type (int tok, const location_type& l)
- : super_type(token_type (tok), l)
- {
- YY_ASSERT (tok == token::TOKEN_END || tok == token::TOKEN_COMMA || tok == token::TOKEN_COLON || tok == token::TOKEN_LSQUARE_BRACKET || tok == token::TOKEN_RSQUARE_BRACKET || tok == token::TOKEN_LCURLY_BRACKET || tok == token::TOKEN_RCURLY_BRACKET || tok == token::TOKEN_NULL_TYPE || tok == token::TOKEN_DHCP6 || tok == token::TOKEN_DATA_DIRECTORY || tok == token::TOKEN_CONFIG_CONTROL || tok == token::TOKEN_CONFIG_DATABASES || tok == token::TOKEN_CONFIG_FETCH_WAIT_TIME || tok == token::TOKEN_INTERFACES_CONFIG || tok == token::TOKEN_INTERFACES || tok == token::TOKEN_RE_DETECT || tok == token::TOKEN_LEASE_DATABASE || tok == token::TOKEN_HOSTS_DATABASE || tok == token::TOKEN_HOSTS_DATABASES || tok == token::TOKEN_TYPE || tok == token::TOKEN_MEMFILE || tok == token::TOKEN_MYSQL || tok == token::TOKEN_POSTGRESQL || tok == token::TOKEN_USER || tok == token::TOKEN_PASSWORD || tok == token::TOKEN_HOST || tok == token::TOKEN_PORT || tok == token::TOKEN_PERSIST || tok == token::TOKEN_LFC_INTERVAL || tok == token::TOKEN_READONLY || tok == token::TOKEN_CONNECT_TIMEOUT || tok == token::TOKEN_MAX_RECONNECT_TRIES || tok == token::TOKEN_RECONNECT_WAIT_TIME || tok == token::TOKEN_ON_FAIL || tok == token::TOKEN_STOP_RETRY_EXIT || tok == token::TOKEN_SERVE_RETRY_EXIT || tok == token::TOKEN_SERVE_RETRY_CONTINUE || tok == token::TOKEN_MAX_ROW_ERRORS || tok == token::TOKEN_TRUST_ANCHOR || tok == token::TOKEN_CERT_FILE || tok == token::TOKEN_KEY_FILE || tok == token::TOKEN_CIPHER_LIST || tok == token::TOKEN_PREFERRED_LIFETIME || tok == token::TOKEN_MIN_PREFERRED_LIFETIME || tok == token::TOKEN_MAX_PREFERRED_LIFETIME || tok == token::TOKEN_VALID_LIFETIME || tok == token::TOKEN_MIN_VALID_LIFETIME || tok == token::TOKEN_MAX_VALID_LIFETIME || tok == token::TOKEN_RENEW_TIMER || tok == token::TOKEN_REBIND_TIMER || tok == token::TOKEN_CALCULATE_TEE_TIMES || tok == token::TOKEN_T1_PERCENT || tok == token::TOKEN_T2_PERCENT || tok == token::TOKEN_CACHE_THRESHOLD || tok == token::TOKEN_CACHE_MAX_AGE || tok == token::TOKEN_DECLINE_PROBATION_PERIOD || tok == token::TOKEN_SERVER_TAG || tok == token::TOKEN_STATISTIC_DEFAULT_SAMPLE_COUNT || tok == token::TOKEN_STATISTIC_DEFAULT_SAMPLE_AGE || tok == token::TOKEN_DDNS_SEND_UPDATES || tok == token::TOKEN_DDNS_OVERRIDE_NO_UPDATE || tok == token::TOKEN_DDNS_OVERRIDE_CLIENT_UPDATE || tok == token::TOKEN_DDNS_REPLACE_CLIENT_NAME || tok == token::TOKEN_DDNS_GENERATED_PREFIX || tok == token::TOKEN_DDNS_QUALIFYING_SUFFIX || tok == token::TOKEN_DDNS_UPDATE_ON_RENEW || tok == token::TOKEN_DDNS_USE_CONFLICT_RESOLUTION || tok == token::TOKEN_STORE_EXTENDED_INFO || tok == token::TOKEN_SUBNET6 || tok == token::TOKEN_OPTION_DEF || tok == token::TOKEN_OPTION_DATA || tok == token::TOKEN_NAME || tok == token::TOKEN_DATA || tok == token::TOKEN_CODE || tok == token::TOKEN_SPACE || tok == token::TOKEN_CSV_FORMAT || tok == token::TOKEN_ALWAYS_SEND || tok == token::TOKEN_RECORD_TYPES || tok == token::TOKEN_ENCAPSULATE || tok == token::TOKEN_ARRAY || tok == token::TOKEN_PARKED_PACKET_LIMIT || tok == token::TOKEN_SHARED_NETWORKS || tok == token::TOKEN_POOLS || tok == token::TOKEN_POOL || tok == token::TOKEN_PD_POOLS || tok == token::TOKEN_PREFIX || tok == token::TOKEN_PREFIX_LEN || tok == token::TOKEN_EXCLUDED_PREFIX || tok == token::TOKEN_EXCLUDED_PREFIX_LEN || tok == token::TOKEN_DELEGATED_LEN || tok == token::TOKEN_USER_CONTEXT || tok == token::TOKEN_COMMENT || tok == token::TOKEN_SUBNET || tok == token::TOKEN_INTERFACE || tok == token::TOKEN_INTERFACE_ID || tok == token::TOKEN_ID || tok == token::TOKEN_RAPID_COMMIT || tok == token::TOKEN_RESERVATION_MODE || tok == token::TOKEN_DISABLED || tok == token::TOKEN_OUT_OF_POOL || tok == token::TOKEN_GLOBAL || tok == token::TOKEN_ALL || tok == token::TOKEN_RESERVATIONS_GLOBAL || tok == token::TOKEN_RESERVATIONS_IN_SUBNET || tok == token::TOKEN_RESERVATIONS_OUT_OF_POOL || tok == token::TOKEN_MAC_SOURCES || tok == token::TOKEN_RELAY_SUPPLIED_OPTIONS || tok == token::TOKEN_HOST_RESERVATION_IDENTIFIERS || tok == token::TOKEN_SANITY_CHECKS || tok == token::TOKEN_LEASE_CHECKS || tok == token::TOKEN_CLIENT_CLASSES || tok == token::TOKEN_REQUIRE_CLIENT_CLASSES || tok == token::TOKEN_TEST || tok == token::TOKEN_ONLY_IF_REQUIRED || tok == token::TOKEN_CLIENT_CLASS || tok == token::TOKEN_RESERVATIONS || tok == token::TOKEN_IP_ADDRESSES || tok == token::TOKEN_PREFIXES || tok == token::TOKEN_DUID || tok == token::TOKEN_HW_ADDRESS || tok == token::TOKEN_HOSTNAME || tok == token::TOKEN_FLEX_ID || tok == token::TOKEN_RELAY || tok == token::TOKEN_IP_ADDRESS || tok == token::TOKEN_HOOKS_LIBRARIES || tok == token::TOKEN_LIBRARY || tok == token::TOKEN_PARAMETERS || tok == token::TOKEN_EXPIRED_LEASES_PROCESSING || tok == token::TOKEN_RECLAIM_TIMER_WAIT_TIME || tok == token::TOKEN_FLUSH_RECLAIMED_TIMER_WAIT_TIME || tok == token::TOKEN_HOLD_RECLAIMED_TIME || tok == token::TOKEN_MAX_RECLAIM_LEASES || tok == token::TOKEN_MAX_RECLAIM_TIME || tok == token::TOKEN_UNWARNED_RECLAIM_CYCLES || tok == token::TOKEN_SERVER_ID || tok == token::TOKEN_LLT || tok == token::TOKEN_EN || tok == token::TOKEN_LL || tok == token::TOKEN_IDENTIFIER || tok == token::TOKEN_HTYPE || tok == token::TOKEN_TIME || tok == token::TOKEN_ENTERPRISE_ID || tok == token::TOKEN_DHCP4O6_PORT || tok == token::TOKEN_DHCP_MULTI_THREADING || tok == token::TOKEN_ENABLE_MULTI_THREADING || tok == token::TOKEN_THREAD_POOL_SIZE || tok == token::TOKEN_PACKET_QUEUE_SIZE || tok == token::TOKEN_CONTROL_SOCKET || tok == token::TOKEN_SOCKET_TYPE || tok == token::TOKEN_SOCKET_NAME || tok == token::TOKEN_DHCP_QUEUE_CONTROL || tok == token::TOKEN_ENABLE_QUEUE || tok == token::TOKEN_QUEUE_TYPE || tok == token::TOKEN_CAPACITY || tok == token::TOKEN_DHCP_DDNS || tok == token::TOKEN_ENABLE_UPDATES || tok == token::TOKEN_QUALIFYING_SUFFIX || tok == token::TOKEN_SERVER_IP || tok == token::TOKEN_SERVER_PORT || tok == token::TOKEN_SENDER_IP || tok == token::TOKEN_SENDER_PORT || tok == token::TOKEN_MAX_QUEUE_SIZE || tok == token::TOKEN_NCR_PROTOCOL || tok == token::TOKEN_NCR_FORMAT || tok == token::TOKEN_OVERRIDE_NO_UPDATE || tok == token::TOKEN_OVERRIDE_CLIENT_UPDATE || tok == token::TOKEN_REPLACE_CLIENT_NAME || tok == token::TOKEN_GENERATED_PREFIX || tok == token::TOKEN_UDP || tok == token::TOKEN_TCP || tok == token::TOKEN_JSON || tok == token::TOKEN_WHEN_PRESENT || tok == token::TOKEN_NEVER || tok == token::TOKEN_ALWAYS || tok == token::TOKEN_WHEN_NOT_PRESENT || tok == token::TOKEN_HOSTNAME_CHAR_SET || tok == token::TOKEN_HOSTNAME_CHAR_REPLACEMENT || tok == token::TOKEN_EARLY_GLOBAL_RESERVATIONS_LOOKUP || tok == token::TOKEN_IP_RESERVATIONS_UNIQUE || tok == token::TOKEN_RESERVATIONS_LOOKUP_FIRST || tok == token::TOKEN_LOGGERS || tok == token::TOKEN_OUTPUT_OPTIONS || tok == token::TOKEN_OUTPUT || tok == token::TOKEN_DEBUGLEVEL || tok == token::TOKEN_SEVERITY || tok == token::TOKEN_FLUSH || tok == token::TOKEN_MAXSIZE || tok == token::TOKEN_MAXVER || tok == token::TOKEN_PATTERN || tok == token::TOKEN_COMPATIBILITY || tok == token::TOKEN_LENIENT_OPTION_PARSING || tok == token::TOKEN_TOPLEVEL_JSON || tok == token::TOKEN_TOPLEVEL_DHCP6 || tok == token::TOKEN_SUB_DHCP6 || tok == token::TOKEN_SUB_INTERFACES6 || tok == token::TOKEN_SUB_SUBNET6 || tok == token::TOKEN_SUB_POOL6 || tok == token::TOKEN_SUB_PD_POOL || tok == token::TOKEN_SUB_RESERVATION || tok == token::TOKEN_SUB_OPTION_DEFS || tok == token::TOKEN_SUB_OPTION_DEF || tok == token::TOKEN_SUB_OPTION_DATA || tok == token::TOKEN_SUB_HOOKS_LIBRARY || tok == token::TOKEN_SUB_DHCP_DDNS || tok == token::TOKEN_SUB_CONFIG_CONTROL);
- }
+ : super_type (token_kind_type (tok), l)
#endif
+ {
+#if !defined _MSC_VER || defined __clang__
+ PARSER6__ASSERT (tok == token::TOKEN_END
+ || (token::TOKEN_PARSER6_error <= tok && tok <= token::TOKEN_SUB_CONFIG_CONTROL));
+#endif
+ }
#if 201103L <= YY_CPLUSPLUS
symbol_type (int tok, bool v, location_type l)
- : super_type(token_type (tok), std::move (v), std::move (l))
- {
- YY_ASSERT (tok == token::TOKEN_BOOLEAN);
- }
+ : super_type (token_kind_type (tok), std::move (v), std::move (l))
#else
symbol_type (int tok, const bool& v, const location_type& l)
- : super_type(token_type (tok), v, l)
- {
- YY_ASSERT (tok == token::TOKEN_BOOLEAN);
- }
+ : super_type (token_kind_type (tok), v, l)
#endif
+ {
+#if !defined _MSC_VER || defined __clang__
+ PARSER6__ASSERT (tok == token::TOKEN_BOOLEAN);
+#endif
+ }
#if 201103L <= YY_CPLUSPLUS
symbol_type (int tok, double v, location_type l)
- : super_type(token_type (tok), std::move (v), std::move (l))
- {
- YY_ASSERT (tok == token::TOKEN_FLOAT);
- }
+ : super_type (token_kind_type (tok), std::move (v), std::move (l))
#else
symbol_type (int tok, const double& v, const location_type& l)
- : super_type(token_type (tok), v, l)
- {
- YY_ASSERT (tok == token::TOKEN_FLOAT);
- }
+ : super_type (token_kind_type (tok), v, l)
#endif
+ {
+#if !defined _MSC_VER || defined __clang__
+ PARSER6__ASSERT (tok == token::TOKEN_FLOAT);
+#endif
+ }
#if 201103L <= YY_CPLUSPLUS
symbol_type (int tok, int64_t v, location_type l)
- : super_type(token_type (tok), std::move (v), std::move (l))
- {
- YY_ASSERT (tok == token::TOKEN_INTEGER);
- }
+ : super_type (token_kind_type (tok), std::move (v), std::move (l))
#else
symbol_type (int tok, const int64_t& v, const location_type& l)
- : super_type(token_type (tok), v, l)
- {
- YY_ASSERT (tok == token::TOKEN_INTEGER);
- }
+ : super_type (token_kind_type (tok), v, l)
#endif
+ {
+#if !defined _MSC_VER || defined __clang__
+ PARSER6__ASSERT (tok == token::TOKEN_INTEGER);
+#endif
+ }
#if 201103L <= YY_CPLUSPLUS
symbol_type (int tok, std::string v, location_type l)
- : super_type(token_type (tok), std::move (v), std::move (l))
- {
- YY_ASSERT (tok == token::TOKEN_STRING);
- }
+ : super_type (token_kind_type (tok), std::move (v), std::move (l))
#else
symbol_type (int tok, const std::string& v, const location_type& l)
- : super_type(token_type (tok), v, l)
- {
- YY_ASSERT (tok == token::TOKEN_STRING);
- }
+ : super_type (token_kind_type (tok), v, l)
#endif
+ {
+#if !defined _MSC_VER || defined __clang__
+ PARSER6__ASSERT (tok == token::TOKEN_STRING);
+#endif
+ }
};
/// Build a parser object.
Dhcp6Parser (isc::dhcp::Parser6Context& ctx_yyarg);
virtual ~Dhcp6Parser ();
+#if 201103L <= YY_CPLUSPLUS
+ /// Non copyable.
+ Dhcp6Parser (const Dhcp6Parser&) = delete;
+ /// Non copyable.
+ Dhcp6Parser& operator= (const Dhcp6Parser&) = delete;
+#endif
+
/// Parse. An alias for parse ().
/// \returns 0 iff parsing succeeded.
int operator() ();
@@ -1021,7 +1773,11 @@ switch (yytype)
/// Report a syntax error.
void error (const syntax_error& err);
- // Implementation of make_symbol for each symbol type.
+ /// The user-facing name of the symbol whose (internal) number is
+ /// YYSYMBOL. No bounds checking.
+ static std::string symbol_name (symbol_kind_type yysymbol);
+
+ // Implementation of make_symbol for each token kind.
#if 201103L <= YY_CPLUSPLUS
static
symbol_type
@@ -1037,6 +1793,36 @@ switch (yytype)
return symbol_type (token::TOKEN_END, l);
}
#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_PARSER6_error (location_type l)
+ {
+ return symbol_type (token::TOKEN_PARSER6_error, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_PARSER6_error (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_PARSER6_error, l);
+ }
+#endif
+#if 201103L <= YY_CPLUSPLUS
+ static
+ symbol_type
+ make_PARSER6_UNDEF (location_type l)
+ {
+ return symbol_type (token::TOKEN_PARSER6_UNDEF, std::move (l));
+ }
+#else
+ static
+ symbol_type
+ make_PARSER6_UNDEF (const location_type& l)
+ {
+ return symbol_type (token::TOKEN_PARSER6_UNDEF, l);
+ }
+#endif
#if 201103L <= YY_CPLUSPLUS
static
symbol_type
@@ -4159,20 +4945,43 @@ switch (yytype)
#endif
+ class context
+ {
+ public:
+ context (const Dhcp6Parser& yyparser, const symbol_type& yyla);
+ const symbol_type& lookahead () const YY_NOEXCEPT { return yyla_; }
+ symbol_kind_type token () const YY_NOEXCEPT { return yyla_.kind (); }
+ const location_type& location () const YY_NOEXCEPT { return yyla_.location; }
+
+ /// Put in YYARG at most YYARGN of the expected tokens, and return the
+ /// number of tokens stored in YYARG. If YYARG is null, return the
+ /// number of expected tokens (guaranteed to be less than YYNTOKENS).
+ int expected_tokens (symbol_kind_type yyarg[], int yyargn) const;
+
+ private:
+ const Dhcp6Parser& yyparser_;
+ const symbol_type& yyla_;
+ };
+
private:
- /// This class is not copyable.
+#if YY_CPLUSPLUS < 201103L
+ /// Non copyable.
Dhcp6Parser (const Dhcp6Parser&);
+ /// Non copyable.
Dhcp6Parser& operator= (const Dhcp6Parser&);
+#endif
+
/// Stored state numbers (used for stacks).
typedef short state_type;
- /// Generate an error message.
- /// \param yystate the state where the error occurred.
- /// \param yyla the lookahead token.
- virtual std::string yysyntax_error_ (state_type yystate,
- const symbol_type& yyla) const;
+ /// The arguments of the error message.
+ int yy_syntax_error_arguments_ (const context& yyctx,
+ symbol_kind_type yyarg[], int yyargn) const;
+ /// Generate an error message.
+ /// \param yyctx the context in which the error occurred.
+ virtual std::string yysyntax_error_ (const context& yyctx) const;
/// Compute post-reduction state.
/// \param yystate the current state
/// \param yysym the nonterminal to push on the stack
@@ -4180,19 +4989,26 @@ switch (yytype)
/// Whether the given \c yypact_ value indicates a defaulted state.
/// \param yyvalue the value to check
- static bool yy_pact_value_is_default_ (int yyvalue);
+ static bool yy_pact_value_is_default_ (int yyvalue) YY_NOEXCEPT;
/// Whether the given \c yytable_ value indicates a syntax error.
/// \param yyvalue the value to check
- static bool yy_table_value_is_error_ (int yyvalue);
+ static bool yy_table_value_is_error_ (int yyvalue) YY_NOEXCEPT;
static const short yypact_ninf_;
static const signed char yytable_ninf_;
- /// Convert a scanner token number \a t to a symbol number.
- /// In theory \a t should be a token_type, but character literals
- /// are valid, yet not members of the token_type enum.
- static token_number_type yytranslate_ (int t);
+ /// Convert a scanner token kind \a t to a symbol kind.
+ /// In theory \a t should be a token_kind_type, but character literals
+ /// are valid, yet not members of the token_kind_type enum.
+ static symbol_kind_type yytranslate_ (int t) YY_NOEXCEPT;
+
+ /// Convert the symbol name \a n to a form suitable for a diagnostic.
+ static std::string yytnamerr_ (const char *yystr);
+
+ /// For a symbol, its name in clear.
+ static const char* const yytname_[];
+
// Tables.
// YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
@@ -4217,37 +5033,31 @@ switch (yytype)
static const short yycheck_[];
- // YYSTOS[STATE-NUM] -- The (internal number of the) accessing
- // symbol of state STATE-NUM.
+ // YYSTOS[STATE-NUM] -- The symbol kind of the accessing symbol of
+ // state STATE-NUM.
static const short yystos_[];
- // YYR1[YYN] -- Symbol number of symbol that rule YYN derives.
+ // YYR1[RULE-NUM] -- Symbol kind of the left-hand side of rule RULE-NUM.
static const short yyr1_[];
- // YYR2[YYN] -- Number of symbols on the right hand side of rule YYN.
+ // YYR2[RULE-NUM] -- Number of symbols on the right-hand side of rule RULE-NUM.
static const signed char yyr2_[];
- /// Convert the symbol name \a n to a form suitable for a diagnostic.
- static std::string yytnamerr_ (const char *n);
-
-
- /// For a symbol, its name in clear.
- static const char* const yytname_[];
#if PARSER6_DEBUG
// YYRLINE[YYN] -- Source line where rule number YYN was defined.
static const short yyrline_[];
/// Report on the debug stream that the rule \a r is going to be reduced.
- virtual void yy_reduce_print_ (int r);
+ virtual void yy_reduce_print_ (int r) const;
/// Print the state stack on the debug stream.
- virtual void yystack_print_ ();
+ virtual void yy_stack_print_ () const;
/// Debugging level.
int yydebug_;
/// Debug stream.
std::ostream* yycdebug_;
- /// \brief Display a symbol type, value and location.
+ /// \brief Display a symbol kind, value and location.
/// \param yyo The output stream.
/// \param yysym The symbol.
template
@@ -4268,7 +5078,7 @@ switch (yytype)
/// Default constructor.
by_state () YY_NOEXCEPT;
- /// The symbol type as needed by the constructor.
+ /// The symbol kind as needed by the constructor.
typedef state_type kind_type;
/// Constructor.
@@ -4280,12 +5090,12 @@ switch (yytype)
/// Record that this symbol is empty.
void clear () YY_NOEXCEPT;
- /// Steal the symbol type from \a that.
+ /// Steal the symbol kind from \a that.
void move (by_state& that);
- /// The (internal) type number (corresponding to \a state).
- /// \a empty_symbol when empty.
- symbol_number_type type_get () const YY_NOEXCEPT;
+ /// The symbol kind (corresponding to \a state).
+ /// \a symbol_kind::S_YYEMPTY when empty.
+ symbol_kind_type kind () const YY_NOEXCEPT;
/// The state number used to denote an empty symbol.
/// We use the initial state, as it does not have a value.
@@ -4324,15 +5134,22 @@ switch (yytype)
{
public:
// Hide our reversed order.
- typedef typename S::reverse_iterator iterator;
- typedef typename S::const_reverse_iterator const_iterator;
+ typedef typename S::iterator iterator;
+ typedef typename S::const_iterator const_iterator;
typedef typename S::size_type size_type;
typedef typename std::ptrdiff_t index_type;
- stack (size_type n = 200)
+ stack (size_type n = 200) YY_NOEXCEPT
: seq_ (n)
{}
+#if 201103L <= YY_CPLUSPLUS
+ /// Non copyable.
+ stack (const stack&) = delete;
+ /// Non copyable.
+ stack& operator= (const stack&) = delete;
+#endif
+
/// Random access.
///
/// Index 0 returns the topmost element.
@@ -4383,31 +5200,25 @@ switch (yytype)
return index_type (seq_.size ());
}
- std::ptrdiff_t
- ssize () const YY_NOEXCEPT
- {
- return std::ptrdiff_t (size ());
- }
-
/// Iterator on top of the stack (going downwards).
const_iterator
begin () const YY_NOEXCEPT
{
- return seq_.rbegin ();
+ return seq_.begin ();
}
/// Bottom of the stack.
const_iterator
end () const YY_NOEXCEPT
{
- return seq_.rend ();
+ return seq_.end ();
}
/// Present a slice of the top of a stack.
class slice
{
public:
- slice (const stack& stack, index_type range)
+ slice (const stack& stack, index_type range) YY_NOEXCEPT
: stack_ (stack)
, range_ (range)
{}
@@ -4424,8 +5235,12 @@ switch (yytype)
};
private:
+#if YY_CPLUSPLUS < 201103L
+ /// Non copyable.
stack (const stack&);
+ /// Non copyable.
stack& operator= (const stack&);
+#endif
/// The wrapped container.
S seq_;
};
@@ -4453,35 +5268,30 @@ switch (yytype)
void yypush_ (const char* m, state_type s, YY_MOVE_REF (symbol_type) sym);
/// Pop \a n symbols from the stack.
- void yypop_ (int n = 1);
-
- /// Some specific tokens.
- static const token_number_type yy_error_token_ = 1;
- static const token_number_type yy_undef_token_ = 2;
+ void yypop_ (int n = 1) YY_NOEXCEPT;
/// Constants.
enum
{
- yyeof_ = 0,
yylast_ = 1315, ///< Last index in yytable_.
yynnts_ = 439, ///< Number of nonterminal symbols.
- yyfinal_ = 30, ///< Termination state number.
- yyntokens_ = 211 ///< Number of tokens.
+ yyfinal_ = 30 ///< Termination state number.
};
// User arguments.
isc::dhcp::Parser6Context& ctx;
+
};
inline
- Dhcp6Parser::token_number_type
- Dhcp6Parser::yytranslate_ (int t)
+ Dhcp6Parser::symbol_kind_type
+ Dhcp6Parser::yytranslate_ (int t) YY_NOEXCEPT
{
// YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to
// TOKEN-NUM as returned by yylex.
static
- const token_number_type
+ const unsigned char
translate_table[] =
{
0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
@@ -4532,92 +5342,50 @@ switch (yytype)
195, 196, 197, 198, 199, 200, 201, 202, 203, 204,
205, 206, 207, 208, 209, 210
};
- const int user_token_number_max_ = 465;
+ // Last valid token kind.
+ const int code_max = 465;
if (t <= 0)
- return yyeof_;
- else if (t <= user_token_number_max_)
- return translate_table[t];
+ return symbol_kind::S_YYEOF;
+ else if (t <= code_max)
+ return static_cast (translate_table[t]);
else
- return yy_undef_token_;
+ return symbol_kind::S_YYUNDEF;
}
// basic_symbol.
-#if 201103L <= YY_CPLUSPLUS
- template
- Dhcp6Parser::basic_symbol::basic_symbol (basic_symbol&& that)
- : Base (std::move (that))
- , value ()
- , location (std::move (that.location))
- {
- switch (this->type_get ())
- {
- case 227: // value
- case 231: // map_value
- case 273: // ddns_replace_client_name_value
- case 316: // db_type
- case 333: // on_fail_mode
- case 420: // hr_mode
- case 556: // duid_type
- case 599: // ncr_protocol_value
- value.move< ElementPtr > (std::move (that.value));
- break;
-
- case 210: // "boolean"
- value.move< bool > (std::move (that.value));
- break;
-
- case 209: // "floating point"
- value.move< double > (std::move (that.value));
- break;
-
- case 208: // "integer"
- value.move< int64_t > (std::move (that.value));
- break;
-
- case 207: // "constant string"
- value.move< std::string > (std::move (that.value));
- break;
-
- default:
- break;
- }
-
- }
-#endif
-
template
Dhcp6Parser::basic_symbol::basic_symbol (const basic_symbol& that)
: Base (that)
, value ()
, location (that.location)
{
- switch (this->type_get ())
+ switch (this->kind ())
{
- case 227: // value
- case 231: // map_value
- case 273: // ddns_replace_client_name_value
- case 316: // db_type
- case 333: // on_fail_mode
- case 420: // hr_mode
- case 556: // duid_type
- case 599: // ncr_protocol_value
+ case symbol_kind::S_value: // value
+ case symbol_kind::S_map_value: // map_value
+ case symbol_kind::S_ddns_replace_client_name_value: // ddns_replace_client_name_value
+ case symbol_kind::S_db_type: // db_type
+ case symbol_kind::S_on_fail_mode: // on_fail_mode
+ case symbol_kind::S_hr_mode: // hr_mode
+ case symbol_kind::S_duid_type: // duid_type
+ case symbol_kind::S_ncr_protocol_value: // ncr_protocol_value
value.copy< ElementPtr > (YY_MOVE (that.value));
break;
- case 210: // "boolean"
+ case symbol_kind::S_BOOLEAN: // "boolean"
value.copy< bool > (YY_MOVE (that.value));
break;
- case 209: // "floating point"
+ case symbol_kind::S_FLOAT: // "floating point"
value.copy< double > (YY_MOVE (that.value));
break;
- case 208: // "integer"
+ case symbol_kind::S_INTEGER: // "integer"
value.copy< int64_t > (YY_MOVE (that.value));
break;
- case 207: // "constant string"
+ case symbol_kind::S_STRING: // "constant string"
value.copy< std::string > (YY_MOVE (that.value));
break;
@@ -4629,11 +5397,20 @@ switch (yytype)
+
+ template
+ Dhcp6Parser::symbol_kind_type
+ Dhcp6Parser::basic_symbol::type_get () const YY_NOEXCEPT
+ {
+ return this->kind ();
+ }
+
+
template
bool
Dhcp6Parser::basic_symbol::empty () const YY_NOEXCEPT
{
- return Base::type_get () == empty_symbol;
+ return this->kind () == symbol_kind::S_YYEMPTY;
}
template
@@ -4641,32 +5418,32 @@ switch (yytype)
Dhcp6Parser::basic_symbol::move (basic_symbol& s)
{
super_type::move (s);
- switch (this->type_get ())
+ switch (this->kind ())
{
- case 227: // value
- case 231: // map_value
- case 273: // ddns_replace_client_name_value
- case 316: // db_type
- case 333: // on_fail_mode
- case 420: // hr_mode
- case 556: // duid_type
- case 599: // ncr_protocol_value
+ case symbol_kind::S_value: // value
+ case symbol_kind::S_map_value: // map_value
+ case symbol_kind::S_ddns_replace_client_name_value: // ddns_replace_client_name_value
+ case symbol_kind::S_db_type: // db_type
+ case symbol_kind::S_on_fail_mode: // on_fail_mode
+ case symbol_kind::S_hr_mode: // hr_mode
+ case symbol_kind::S_duid_type: // duid_type
+ case symbol_kind::S_ncr_protocol_value: // ncr_protocol_value
value.move< ElementPtr > (YY_MOVE (s.value));
break;
- case 210: // "boolean"
+ case symbol_kind::S_BOOLEAN: // "boolean"
value.move< bool > (YY_MOVE (s.value));
break;
- case 209: // "floating point"
+ case symbol_kind::S_FLOAT: // "floating point"
value.move< double > (YY_MOVE (s.value));
break;
- case 208: // "integer"
+ case symbol_kind::S_INTEGER: // "integer"
value.move< int64_t > (YY_MOVE (s.value));
break;
- case 207: // "constant string"
+ case symbol_kind::S_STRING: // "constant string"
value.move< std::string > (YY_MOVE (s.value));
break;
@@ -4677,57 +5454,67 @@ switch (yytype)
location = YY_MOVE (s.location);
}
- // by_type.
+ // by_kind.
inline
- Dhcp6Parser::by_type::by_type ()
- : type (empty_symbol)
+ Dhcp6Parser::by_kind::by_kind () YY_NOEXCEPT
+ : kind_ (symbol_kind::S_YYEMPTY)
{}
#if 201103L <= YY_CPLUSPLUS
inline
- Dhcp6Parser::by_type::by_type (by_type&& that)
- : type (that.type)
+ Dhcp6Parser::by_kind::by_kind (by_kind&& that) YY_NOEXCEPT
+ : kind_ (that.kind_)
{
that.clear ();
}
#endif
inline
- Dhcp6Parser::by_type::by_type (const by_type& that)
- : type (that.type)
+ Dhcp6Parser::by_kind::by_kind (const by_kind& that) YY_NOEXCEPT
+ : kind_ (that.kind_)
{}
inline
- Dhcp6Parser::by_type::by_type (token_type t)
- : type (yytranslate_ (t))
+ Dhcp6Parser::by_kind::by_kind (token_kind_type t) YY_NOEXCEPT
+ : kind_ (yytranslate_ (t))
{}
+
+
inline
void
- Dhcp6Parser::by_type::clear ()
+ Dhcp6Parser::by_kind::clear () YY_NOEXCEPT
{
- type = empty_symbol;
+ kind_ = symbol_kind::S_YYEMPTY;
}
inline
void
- Dhcp6Parser::by_type::move (by_type& that)
+ Dhcp6Parser::by_kind::move (by_kind& that)
{
- type = that.type;
+ kind_ = that.kind_;
that.clear ();
}
inline
- int
- Dhcp6Parser::by_type::type_get () const YY_NOEXCEPT
+ Dhcp6Parser::symbol_kind_type
+ Dhcp6Parser::by_kind::kind () const YY_NOEXCEPT
{
- return type;
+ return kind_;
}
+
+ inline
+ Dhcp6Parser::symbol_kind_type
+ Dhcp6Parser::by_kind::type_get () const YY_NOEXCEPT
+ {
+ return this->kind ();
+ }
+
+
#line 14 "dhcp6_parser.yy"
} } // isc::dhcp
-#line 4730 "dhcp6_parser.h"
-
+#line 5518 "dhcp6_parser.h"
diff --git a/src/bin/dhcp6/location.hh b/src/bin/dhcp6/location.hh
index bf5ebc3716..6805958b0f 100644
--- a/src/bin/dhcp6/location.hh
+++ b/src/bin/dhcp6/location.hh
@@ -1,8 +1,9 @@
-// A Bison parser, made by GNU Bison 3.5.1.
+// Generated 202203302203
+// A Bison parser, made by GNU Bison 3.8.2.
// Locations for Bison parsers in C++
-// Copyright (C) 2002-2015, 2018-2020 Free Software Foundation, Inc.
+// Copyright (C) 2002-2015, 2018-2021 Free Software Foundation, Inc.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -15,7 +16,7 @@
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
-// along with this program. If not, see .
+// along with this program. If not, see .
// As a special exception, you may create a larger work that contains
// part or all of the Bison parser skeleton and distribute that work
@@ -61,11 +62,13 @@ namespace isc { namespace dhcp {
class position
{
public:
+ /// Type for file name.
+ typedef const std::string filename_type;
/// Type for line and column numbers.
typedef int counter_type;
/// Construct a position.
- explicit position (std::string* f = YY_NULLPTR,
+ explicit position (filename_type* f = YY_NULLPTR,
counter_type l = 1,
counter_type c = 1)
: filename (f)
@@ -75,7 +78,7 @@ namespace isc { namespace dhcp {
/// Initialization.
- void initialize (std::string* fn = YY_NULLPTR,
+ void initialize (filename_type* fn = YY_NULLPTR,
counter_type l = 1,
counter_type c = 1)
{
@@ -104,7 +107,7 @@ namespace isc { namespace dhcp {
/** \} */
/// File name to which this position refers.
- std::string* filename;
+ filename_type* filename;
/// Current line number.
counter_type line;
/// Current column number.
@@ -147,24 +150,6 @@ namespace isc { namespace dhcp {
return res -= width;
}
- /// Compare two position objects.
- inline bool
- operator== (const position& pos1, const position& pos2)
- {
- return (pos1.line == pos2.line
- && pos1.column == pos2.column
- && (pos1.filename == pos2.filename
- || (pos1.filename && pos2.filename
- && *pos1.filename == *pos2.filename)));
- }
-
- /// Compare two position objects.
- inline bool
- operator!= (const position& pos1, const position& pos2)
- {
- return !(pos1 == pos2);
- }
-
/** \brief Intercept output stream redirection.
** \param ostr the destination output stream
** \param pos a reference to the position to redirect
@@ -182,6 +167,8 @@ namespace isc { namespace dhcp {
class location
{
public:
+ /// Type for file name.
+ typedef position::filename_type filename_type;
/// Type for line and column numbers.
typedef position::counter_type counter_type;
@@ -198,7 +185,7 @@ namespace isc { namespace dhcp {
{}
/// Construct a 0-width location in \a f, \a l, \a c.
- explicit location (std::string* f,
+ explicit location (filename_type* f,
counter_type l = 1,
counter_type c = 1)
: begin (f, l, c)
@@ -207,7 +194,7 @@ namespace isc { namespace dhcp {
/// Initialization.
- void initialize (std::string* f = YY_NULLPTR,
+ void initialize (filename_type* f = YY_NULLPTR,
counter_type l = 1,
counter_type c = 1)
{
@@ -289,20 +276,6 @@ namespace isc { namespace dhcp {
return res -= width;
}
- /// Compare two location objects.
- inline bool
- operator== (const location& loc1, const location& loc2)
- {
- return loc1.begin == loc2.begin && loc1.end == loc2.end;
- }
-
- /// Compare two location objects.
- inline bool
- operator!= (const location& loc1, const location& loc2)
- {
- return !(loc1 == loc2);
- }
-
/** \brief Intercept output stream redirection.
** \param ostr the destination output stream
** \param loc a reference to the location to redirect
@@ -329,6 +302,6 @@ namespace isc { namespace dhcp {
#line 14 "dhcp6_parser.yy"
} } // isc::dhcp
-#line 333 "location.hh"
+#line 305 "location.hh"
#endif // !YY_PARSER6_LOCATION_HH_INCLUDED