2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 14:05:33 +00:00

[5484] Bison grammar regenerated.

This commit is contained in:
Tomek Mrugalski
2018-03-07 13:50:50 +01:00
parent eb85122e82
commit 1739f6c709
14 changed files with 5784 additions and 5594 deletions

View File

@@ -40,7 +40,7 @@
#ifndef YY_PARSER4_DHCP4_PARSER_H_INCLUDED
# define YY_PARSER4_DHCP4_PARSER_H_INCLUDED
// // "%code requires" blocks.
#line 17 "dhcp4_parser.yy" // lalr1.cc:377
#line 17 "dhcp4_parser.yy" // lalr1.cc:392
#include <string>
#include <cc/data.h>
@@ -52,7 +52,7 @@ using namespace isc::dhcp;
using namespace isc::data;
using namespace std;
#line 56 "dhcp4_parser.h" // lalr1.cc:377
#line 56 "dhcp4_parser.h" // lalr1.cc:392
# include <cassert>
# include <cstdlib> // std::abort
@@ -135,9 +135,9 @@ using namespace std;
# endif /* ! defined YYDEBUG */
#endif /* ! defined PARSER4_DEBUG */
#line 14 "dhcp4_parser.yy" // lalr1.cc:377
#line 14 "dhcp4_parser.yy" // lalr1.cc:392
namespace isc { namespace dhcp {
#line 141 "dhcp4_parser.h" // lalr1.cc:377
#line 141 "dhcp4_parser.h" // lalr1.cc:392
@@ -389,116 +389,119 @@ namespace isc { namespace dhcp {
TOKEN_KEYSPACE = 296,
TOKEN_MAX_RECONNECT_TRIES = 297,
TOKEN_RECONNECT_WAIT_TIME = 298,
TOKEN_VALID_LIFETIME = 299,
TOKEN_RENEW_TIMER = 300,
TOKEN_REBIND_TIMER = 301,
TOKEN_DECLINE_PROBATION_PERIOD = 302,
TOKEN_SUBNET4 = 303,
TOKEN_SUBNET_4O6_INTERFACE = 304,
TOKEN_SUBNET_4O6_INTERFACE_ID = 305,
TOKEN_SUBNET_4O6_SUBNET = 306,
TOKEN_OPTION_DEF = 307,
TOKEN_OPTION_DATA = 308,
TOKEN_NAME = 309,
TOKEN_DATA = 310,
TOKEN_CODE = 311,
TOKEN_SPACE = 312,
TOKEN_CSV_FORMAT = 313,
TOKEN_ALWAYS_SEND = 314,
TOKEN_RECORD_TYPES = 315,
TOKEN_ENCAPSULATE = 316,
TOKEN_ARRAY = 317,
TOKEN_SHARED_NETWORKS = 318,
TOKEN_POOLS = 319,
TOKEN_POOL = 320,
TOKEN_USER_CONTEXT = 321,
TOKEN_COMMENT = 322,
TOKEN_SUBNET = 323,
TOKEN_INTERFACE = 324,
TOKEN_INTERFACE_ID = 325,
TOKEN_ID = 326,
TOKEN_RAPID_COMMIT = 327,
TOKEN_RESERVATION_MODE = 328,
TOKEN_DISABLED = 329,
TOKEN_OUT_OF_POOL = 330,
TOKEN_ALL = 331,
TOKEN_HOST_RESERVATION_IDENTIFIERS = 332,
TOKEN_CLIENT_CLASSES = 333,
TOKEN_TEST = 334,
TOKEN_CLIENT_CLASS = 335,
TOKEN_RESERVATIONS = 336,
TOKEN_DUID = 337,
TOKEN_HW_ADDRESS = 338,
TOKEN_CIRCUIT_ID = 339,
TOKEN_CLIENT_ID = 340,
TOKEN_HOSTNAME = 341,
TOKEN_FLEX_ID = 342,
TOKEN_RELAY = 343,
TOKEN_IP_ADDRESS = 344,
TOKEN_HOOKS_LIBRARIES = 345,
TOKEN_LIBRARY = 346,
TOKEN_PARAMETERS = 347,
TOKEN_EXPIRED_LEASES_PROCESSING = 348,
TOKEN_RECLAIM_TIMER_WAIT_TIME = 349,
TOKEN_FLUSH_RECLAIMED_TIMER_WAIT_TIME = 350,
TOKEN_HOLD_RECLAIMED_TIME = 351,
TOKEN_MAX_RECLAIM_LEASES = 352,
TOKEN_MAX_RECLAIM_TIME = 353,
TOKEN_UNWARNED_RECLAIM_CYCLES = 354,
TOKEN_DHCP4O6_PORT = 355,
TOKEN_CONTROL_SOCKET = 356,
TOKEN_SOCKET_TYPE = 357,
TOKEN_SOCKET_NAME = 358,
TOKEN_DHCP_DDNS = 359,
TOKEN_ENABLE_UPDATES = 360,
TOKEN_QUALIFYING_SUFFIX = 361,
TOKEN_SERVER_IP = 362,
TOKEN_SERVER_PORT = 363,
TOKEN_SENDER_IP = 364,
TOKEN_SENDER_PORT = 365,
TOKEN_MAX_QUEUE_SIZE = 366,
TOKEN_NCR_PROTOCOL = 367,
TOKEN_NCR_FORMAT = 368,
TOKEN_ALWAYS_INCLUDE_FQDN = 369,
TOKEN_OVERRIDE_NO_UPDATE = 370,
TOKEN_OVERRIDE_CLIENT_UPDATE = 371,
TOKEN_REPLACE_CLIENT_NAME = 372,
TOKEN_GENERATED_PREFIX = 373,
TOKEN_TCP = 374,
TOKEN_JSON = 375,
TOKEN_WHEN_PRESENT = 376,
TOKEN_NEVER = 377,
TOKEN_ALWAYS = 378,
TOKEN_WHEN_NOT_PRESENT = 379,
TOKEN_LOGGING = 380,
TOKEN_LOGGERS = 381,
TOKEN_OUTPUT_OPTIONS = 382,
TOKEN_OUTPUT = 383,
TOKEN_DEBUGLEVEL = 384,
TOKEN_SEVERITY = 385,
TOKEN_FLUSH = 386,
TOKEN_MAXSIZE = 387,
TOKEN_MAXVER = 388,
TOKEN_DHCP6 = 389,
TOKEN_DHCPDDNS = 390,
TOKEN_CONTROL_AGENT = 391,
TOKEN_TOPLEVEL_JSON = 392,
TOKEN_TOPLEVEL_DHCP4 = 393,
TOKEN_SUB_DHCP4 = 394,
TOKEN_SUB_INTERFACES4 = 395,
TOKEN_SUB_SUBNET4 = 396,
TOKEN_SUB_POOL4 = 397,
TOKEN_SUB_RESERVATION = 398,
TOKEN_SUB_OPTION_DEFS = 399,
TOKEN_SUB_OPTION_DEF = 400,
TOKEN_SUB_OPTION_DATA = 401,
TOKEN_SUB_HOOKS_LIBRARY = 402,
TOKEN_SUB_DHCP_DDNS = 403,
TOKEN_SUB_LOGGING = 404,
TOKEN_STRING = 405,
TOKEN_INTEGER = 406,
TOKEN_FLOAT = 407,
TOKEN_BOOLEAN = 408
TOKEN_REQUEST_TIMEOUT = 299,
TOKEN_TCP_KEEPALIVE = 300,
TOKEN_TCP_NODELAY = 301,
TOKEN_VALID_LIFETIME = 302,
TOKEN_RENEW_TIMER = 303,
TOKEN_REBIND_TIMER = 304,
TOKEN_DECLINE_PROBATION_PERIOD = 305,
TOKEN_SUBNET4 = 306,
TOKEN_SUBNET_4O6_INTERFACE = 307,
TOKEN_SUBNET_4O6_INTERFACE_ID = 308,
TOKEN_SUBNET_4O6_SUBNET = 309,
TOKEN_OPTION_DEF = 310,
TOKEN_OPTION_DATA = 311,
TOKEN_NAME = 312,
TOKEN_DATA = 313,
TOKEN_CODE = 314,
TOKEN_SPACE = 315,
TOKEN_CSV_FORMAT = 316,
TOKEN_ALWAYS_SEND = 317,
TOKEN_RECORD_TYPES = 318,
TOKEN_ENCAPSULATE = 319,
TOKEN_ARRAY = 320,
TOKEN_SHARED_NETWORKS = 321,
TOKEN_POOLS = 322,
TOKEN_POOL = 323,
TOKEN_USER_CONTEXT = 324,
TOKEN_COMMENT = 325,
TOKEN_SUBNET = 326,
TOKEN_INTERFACE = 327,
TOKEN_INTERFACE_ID = 328,
TOKEN_ID = 329,
TOKEN_RAPID_COMMIT = 330,
TOKEN_RESERVATION_MODE = 331,
TOKEN_DISABLED = 332,
TOKEN_OUT_OF_POOL = 333,
TOKEN_ALL = 334,
TOKEN_HOST_RESERVATION_IDENTIFIERS = 335,
TOKEN_CLIENT_CLASSES = 336,
TOKEN_TEST = 337,
TOKEN_CLIENT_CLASS = 338,
TOKEN_RESERVATIONS = 339,
TOKEN_DUID = 340,
TOKEN_HW_ADDRESS = 341,
TOKEN_CIRCUIT_ID = 342,
TOKEN_CLIENT_ID = 343,
TOKEN_HOSTNAME = 344,
TOKEN_FLEX_ID = 345,
TOKEN_RELAY = 346,
TOKEN_IP_ADDRESS = 347,
TOKEN_HOOKS_LIBRARIES = 348,
TOKEN_LIBRARY = 349,
TOKEN_PARAMETERS = 350,
TOKEN_EXPIRED_LEASES_PROCESSING = 351,
TOKEN_RECLAIM_TIMER_WAIT_TIME = 352,
TOKEN_FLUSH_RECLAIMED_TIMER_WAIT_TIME = 353,
TOKEN_HOLD_RECLAIMED_TIME = 354,
TOKEN_MAX_RECLAIM_LEASES = 355,
TOKEN_MAX_RECLAIM_TIME = 356,
TOKEN_UNWARNED_RECLAIM_CYCLES = 357,
TOKEN_DHCP4O6_PORT = 358,
TOKEN_CONTROL_SOCKET = 359,
TOKEN_SOCKET_TYPE = 360,
TOKEN_SOCKET_NAME = 361,
TOKEN_DHCP_DDNS = 362,
TOKEN_ENABLE_UPDATES = 363,
TOKEN_QUALIFYING_SUFFIX = 364,
TOKEN_SERVER_IP = 365,
TOKEN_SERVER_PORT = 366,
TOKEN_SENDER_IP = 367,
TOKEN_SENDER_PORT = 368,
TOKEN_MAX_QUEUE_SIZE = 369,
TOKEN_NCR_PROTOCOL = 370,
TOKEN_NCR_FORMAT = 371,
TOKEN_ALWAYS_INCLUDE_FQDN = 372,
TOKEN_OVERRIDE_NO_UPDATE = 373,
TOKEN_OVERRIDE_CLIENT_UPDATE = 374,
TOKEN_REPLACE_CLIENT_NAME = 375,
TOKEN_GENERATED_PREFIX = 376,
TOKEN_TCP = 377,
TOKEN_JSON = 378,
TOKEN_WHEN_PRESENT = 379,
TOKEN_NEVER = 380,
TOKEN_ALWAYS = 381,
TOKEN_WHEN_NOT_PRESENT = 382,
TOKEN_LOGGING = 383,
TOKEN_LOGGERS = 384,
TOKEN_OUTPUT_OPTIONS = 385,
TOKEN_OUTPUT = 386,
TOKEN_DEBUGLEVEL = 387,
TOKEN_SEVERITY = 388,
TOKEN_FLUSH = 389,
TOKEN_MAXSIZE = 390,
TOKEN_MAXVER = 391,
TOKEN_DHCP6 = 392,
TOKEN_DHCPDDNS = 393,
TOKEN_CONTROL_AGENT = 394,
TOKEN_TOPLEVEL_JSON = 395,
TOKEN_TOPLEVEL_DHCP4 = 396,
TOKEN_SUB_DHCP4 = 397,
TOKEN_SUB_INTERFACES4 = 398,
TOKEN_SUB_SUBNET4 = 399,
TOKEN_SUB_POOL4 = 400,
TOKEN_SUB_RESERVATION = 401,
TOKEN_SUB_OPTION_DEFS = 402,
TOKEN_SUB_OPTION_DEF = 403,
TOKEN_SUB_OPTION_DATA = 404,
TOKEN_SUB_HOOKS_LIBRARY = 405,
TOKEN_SUB_DHCP_DDNS = 406,
TOKEN_SUB_LOGGING = 407,
TOKEN_STRING = 408,
TOKEN_INTEGER = 409,
TOKEN_FLOAT = 410,
TOKEN_BOOLEAN = 411
};
};
@@ -781,6 +784,18 @@ namespace isc { namespace dhcp {
symbol_type
make_RECONNECT_WAIT_TIME (const location_type& l);
static inline
symbol_type
make_REQUEST_TIMEOUT (const location_type& l);
static inline
symbol_type
make_TCP_KEEPALIVE (const location_type& l);
static inline
symbol_type
make_TCP_NODELAY (const location_type& l);
static inline
symbol_type
make_VALID_LIFETIME (const location_type& l);
@@ -1426,12 +1441,12 @@ namespace isc { namespace dhcp {
enum
{
yyeof_ = 0,
yylast_ = 894, ///< Last index in yytable_.
yynnts_ = 340, ///< Number of nonterminal symbols.
yylast_ = 906, ///< Last index in yytable_.
yynnts_ = 343, ///< Number of nonterminal symbols.
yyfinal_ = 28, ///< Termination state number.
yyterror_ = 1,
yyerrcode_ = 256,
yyntokens_ = 154 ///< Number of tokens.
yyntokens_ = 157 ///< Number of tokens.
};
@@ -1488,9 +1503,10 @@ namespace isc { namespace dhcp {
115, 116, 117, 118, 119, 120, 121, 122, 123, 124,
125, 126, 127, 128, 129, 130, 131, 132, 133, 134,
135, 136, 137, 138, 139, 140, 141, 142, 143, 144,
145, 146, 147, 148, 149, 150, 151, 152, 153
145, 146, 147, 148, 149, 150, 151, 152, 153, 154,
155, 156
};
const unsigned int user_token_number_max_ = 408;
const unsigned int user_token_number_max_ = 411;
const token_number_type undef_token_ = 2;
if (static_cast<int>(t) <= yyeof_)
@@ -1523,30 +1539,30 @@ namespace isc { namespace dhcp {
{
switch (other.type_get ())
{
case 169: // value
case 173: // map_value
case 211: // socket_type
case 214: // outbound_interface_value
case 224: // db_type
case 303: // hr_mode
case 449: // ncr_protocol_value
case 457: // replace_client_name_value
case 172: // value
case 176: // map_value
case 214: // socket_type
case 217: // outbound_interface_value
case 227: // db_type
case 309: // hr_mode
case 455: // ncr_protocol_value
case 463: // replace_client_name_value
value.copy< ElementPtr > (other.value);
break;
case 153: // "boolean"
case 156: // "boolean"
value.copy< bool > (other.value);
break;
case 152: // "floating point"
case 155: // "floating point"
value.copy< double > (other.value);
break;
case 151: // "integer"
case 154: // "integer"
value.copy< int64_t > (other.value);
break;
case 150: // "constant string"
case 153: // "constant string"
value.copy< std::string > (other.value);
break;
@@ -1567,30 +1583,30 @@ namespace isc { namespace dhcp {
(void) v;
switch (this->type_get ())
{
case 169: // value
case 173: // map_value
case 211: // socket_type
case 214: // outbound_interface_value
case 224: // db_type
case 303: // hr_mode
case 449: // ncr_protocol_value
case 457: // replace_client_name_value
case 172: // value
case 176: // map_value
case 214: // socket_type
case 217: // outbound_interface_value
case 227: // db_type
case 309: // hr_mode
case 455: // ncr_protocol_value
case 463: // replace_client_name_value
value.copy< ElementPtr > (v);
break;
case 153: // "boolean"
case 156: // "boolean"
value.copy< bool > (v);
break;
case 152: // "floating point"
case 155: // "floating point"
value.copy< double > (v);
break;
case 151: // "integer"
case 154: // "integer"
value.copy< int64_t > (v);
break;
case 150: // "constant string"
case 153: // "constant string"
value.copy< std::string > (v);
break;
@@ -1670,30 +1686,30 @@ namespace isc { namespace dhcp {
// Type destructor.
switch (yytype)
{
case 169: // value
case 173: // map_value
case 211: // socket_type
case 214: // outbound_interface_value
case 224: // db_type
case 303: // hr_mode
case 449: // ncr_protocol_value
case 457: // replace_client_name_value
case 172: // value
case 176: // map_value
case 214: // socket_type
case 217: // outbound_interface_value
case 227: // db_type
case 309: // hr_mode
case 455: // ncr_protocol_value
case 463: // replace_client_name_value
value.template destroy< ElementPtr > ();
break;
case 153: // "boolean"
case 156: // "boolean"
value.template destroy< bool > ();
break;
case 152: // "floating point"
case 155: // "floating point"
value.template destroy< double > ();
break;
case 151: // "integer"
case 154: // "integer"
value.template destroy< int64_t > ();
break;
case 150: // "constant string"
case 153: // "constant string"
value.template destroy< std::string > ();
break;
@@ -1720,30 +1736,30 @@ namespace isc { namespace dhcp {
super_type::move(s);
switch (this->type_get ())
{
case 169: // value
case 173: // map_value
case 211: // socket_type
case 214: // outbound_interface_value
case 224: // db_type
case 303: // hr_mode
case 449: // ncr_protocol_value
case 457: // replace_client_name_value
case 172: // value
case 176: // map_value
case 214: // socket_type
case 217: // outbound_interface_value
case 227: // db_type
case 309: // hr_mode
case 455: // ncr_protocol_value
case 463: // replace_client_name_value
value.move< ElementPtr > (s.value);
break;
case 153: // "boolean"
case 156: // "boolean"
value.move< bool > (s.value);
break;
case 152: // "floating point"
case 155: // "floating point"
value.move< double > (s.value);
break;
case 151: // "integer"
case 154: // "integer"
value.move< int64_t > (s.value);
break;
case 150: // "constant string"
case 153: // "constant string"
value.move< std::string > (s.value);
break;
@@ -1817,7 +1833,7 @@ namespace isc { namespace dhcp {
375, 376, 377, 378, 379, 380, 381, 382, 383, 384,
385, 386, 387, 388, 389, 390, 391, 392, 393, 394,
395, 396, 397, 398, 399, 400, 401, 402, 403, 404,
405, 406, 407, 408
405, 406, 407, 408, 409, 410, 411
};
return static_cast<token_type> (yytoken_number_[type]);
}
@@ -2074,6 +2090,24 @@ namespace isc { namespace dhcp {
return symbol_type (token::TOKEN_RECONNECT_WAIT_TIME, l);
}
Dhcp4Parser::symbol_type
Dhcp4Parser::make_REQUEST_TIMEOUT (const location_type& l)
{
return symbol_type (token::TOKEN_REQUEST_TIMEOUT, l);
}
Dhcp4Parser::symbol_type
Dhcp4Parser::make_TCP_KEEPALIVE (const location_type& l)
{
return symbol_type (token::TOKEN_TCP_KEEPALIVE, l);
}
Dhcp4Parser::symbol_type
Dhcp4Parser::make_TCP_NODELAY (const location_type& l)
{
return symbol_type (token::TOKEN_TCP_NODELAY, l);
}
Dhcp4Parser::symbol_type
Dhcp4Parser::make_VALID_LIFETIME (const location_type& l)
{
@@ -2735,9 +2769,9 @@ namespace isc { namespace dhcp {
}
#line 14 "dhcp4_parser.yy" // lalr1.cc:377
#line 14 "dhcp4_parser.yy" // lalr1.cc:392
} } // isc::dhcp
#line 2741 "dhcp4_parser.h" // lalr1.cc:377
#line 2775 "dhcp4_parser.h" // lalr1.cc:392