2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-29 13:07:50 +00:00

[trac5351] regen flex/bison

This commit is contained in:
Francis Dupont 2017-12-03 12:45:12 +00:00
parent 93703b0804
commit a3bd7af4d9
12 changed files with 2948 additions and 2874 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -492,10 +492,11 @@ namespace isc { namespace dhcp {
TOKEN_SUB_OPTION_DATA = 399, TOKEN_SUB_OPTION_DATA = 399,
TOKEN_SUB_HOOKS_LIBRARY = 400, TOKEN_SUB_HOOKS_LIBRARY = 400,
TOKEN_SUB_DHCP_DDNS = 401, TOKEN_SUB_DHCP_DDNS = 401,
TOKEN_STRING = 402, TOKEN_SUB_LOGGING = 402,
TOKEN_INTEGER = 403, TOKEN_STRING = 403,
TOKEN_FLOAT = 404, TOKEN_INTEGER = 404,
TOKEN_BOOLEAN = 405 TOKEN_FLOAT = 405,
TOKEN_BOOLEAN = 406
}; };
}; };
@ -1190,6 +1191,10 @@ namespace isc { namespace dhcp {
symbol_type symbol_type
make_SUB_DHCP_DDNS (const location_type& l); make_SUB_DHCP_DDNS (const location_type& l);
static inline
symbol_type
make_SUB_LOGGING (const location_type& l);
static inline static inline
symbol_type symbol_type
make_STRING (const std::string& v, const location_type& l); make_STRING (const std::string& v, const location_type& l);
@ -1411,12 +1416,12 @@ namespace isc { namespace dhcp {
enum enum
{ {
yyeof_ = 0, yyeof_ = 0,
yylast_ = 878, ///< Last index in yytable_. yylast_ = 890, ///< Last index in yytable_.
yynnts_ = 337, ///< Number of nonterminal symbols. yynnts_ = 340, ///< Number of nonterminal symbols.
yyfinal_ = 26, ///< Termination state number. yyfinal_ = 28, ///< Termination state number.
yyterror_ = 1, yyterror_ = 1,
yyerrcode_ = 256, yyerrcode_ = 256,
yyntokens_ = 151 ///< Number of tokens. yyntokens_ = 152 ///< Number of tokens.
}; };
@ -1473,9 +1478,9 @@ namespace isc { namespace dhcp {
115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124,
125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134,
135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144,
145, 146, 147, 148, 149, 150 145, 146, 147, 148, 149, 150, 151
}; };
const unsigned int user_token_number_max_ = 405; const unsigned int user_token_number_max_ = 406;
const token_number_type undef_token_ = 2; const token_number_type undef_token_ = 2;
if (static_cast<int>(t) <= yyeof_) if (static_cast<int>(t) <= yyeof_)
@ -1508,30 +1513,30 @@ namespace isc { namespace dhcp {
{ {
switch (other.type_get ()) switch (other.type_get ())
{ {
case 165: // value case 167: // value
case 169: // map_value case 171: // map_value
case 207: // socket_type case 209: // socket_type
case 210: // outbound_interface_value case 212: // outbound_interface_value
case 220: // db_type case 222: // db_type
case 297: // hr_mode case 299: // hr_mode
case 445: // ncr_protocol_value case 447: // ncr_protocol_value
case 453: // replace_client_name_value case 455: // replace_client_name_value
value.copy< ElementPtr > (other.value); value.copy< ElementPtr > (other.value);
break; break;
case 150: // "boolean" case 151: // "boolean"
value.copy< bool > (other.value); value.copy< bool > (other.value);
break; break;
case 149: // "floating point" case 150: // "floating point"
value.copy< double > (other.value); value.copy< double > (other.value);
break; break;
case 148: // "integer" case 149: // "integer"
value.copy< int64_t > (other.value); value.copy< int64_t > (other.value);
break; break;
case 147: // "constant string" case 148: // "constant string"
value.copy< std::string > (other.value); value.copy< std::string > (other.value);
break; break;
@ -1552,30 +1557,30 @@ namespace isc { namespace dhcp {
(void) v; (void) v;
switch (this->type_get ()) switch (this->type_get ())
{ {
case 165: // value case 167: // value
case 169: // map_value case 171: // map_value
case 207: // socket_type case 209: // socket_type
case 210: // outbound_interface_value case 212: // outbound_interface_value
case 220: // db_type case 222: // db_type
case 297: // hr_mode case 299: // hr_mode
case 445: // ncr_protocol_value case 447: // ncr_protocol_value
case 453: // replace_client_name_value case 455: // replace_client_name_value
value.copy< ElementPtr > (v); value.copy< ElementPtr > (v);
break; break;
case 150: // "boolean" case 151: // "boolean"
value.copy< bool > (v); value.copy< bool > (v);
break; break;
case 149: // "floating point" case 150: // "floating point"
value.copy< double > (v); value.copy< double > (v);
break; break;
case 148: // "integer" case 149: // "integer"
value.copy< int64_t > (v); value.copy< int64_t > (v);
break; break;
case 147: // "constant string" case 148: // "constant string"
value.copy< std::string > (v); value.copy< std::string > (v);
break; break;
@ -1655,30 +1660,30 @@ namespace isc { namespace dhcp {
// Type destructor. // Type destructor.
switch (yytype) switch (yytype)
{ {
case 165: // value case 167: // value
case 169: // map_value case 171: // map_value
case 207: // socket_type case 209: // socket_type
case 210: // outbound_interface_value case 212: // outbound_interface_value
case 220: // db_type case 222: // db_type
case 297: // hr_mode case 299: // hr_mode
case 445: // ncr_protocol_value case 447: // ncr_protocol_value
case 453: // replace_client_name_value case 455: // replace_client_name_value
value.template destroy< ElementPtr > (); value.template destroy< ElementPtr > ();
break; break;
case 150: // "boolean" case 151: // "boolean"
value.template destroy< bool > (); value.template destroy< bool > ();
break; break;
case 149: // "floating point" case 150: // "floating point"
value.template destroy< double > (); value.template destroy< double > ();
break; break;
case 148: // "integer" case 149: // "integer"
value.template destroy< int64_t > (); value.template destroy< int64_t > ();
break; break;
case 147: // "constant string" case 148: // "constant string"
value.template destroy< std::string > (); value.template destroy< std::string > ();
break; break;
@ -1705,30 +1710,30 @@ namespace isc { namespace dhcp {
super_type::move(s); super_type::move(s);
switch (this->type_get ()) switch (this->type_get ())
{ {
case 165: // value case 167: // value
case 169: // map_value case 171: // map_value
case 207: // socket_type case 209: // socket_type
case 210: // outbound_interface_value case 212: // outbound_interface_value
case 220: // db_type case 222: // db_type
case 297: // hr_mode case 299: // hr_mode
case 445: // ncr_protocol_value case 447: // ncr_protocol_value
case 453: // replace_client_name_value case 455: // replace_client_name_value
value.move< ElementPtr > (s.value); value.move< ElementPtr > (s.value);
break; break;
case 150: // "boolean" case 151: // "boolean"
value.move< bool > (s.value); value.move< bool > (s.value);
break; break;
case 149: // "floating point" case 150: // "floating point"
value.move< double > (s.value); value.move< double > (s.value);
break; break;
case 148: // "integer" case 149: // "integer"
value.move< int64_t > (s.value); value.move< int64_t > (s.value);
break; break;
case 147: // "constant string" case 148: // "constant string"
value.move< std::string > (s.value); value.move< std::string > (s.value);
break; break;
@ -1802,7 +1807,7 @@ namespace isc { namespace dhcp {
375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384,
385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394,
395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404,
405 405, 406
}; };
return static_cast<token_type> (yytoken_number_[type]); return static_cast<token_type> (yytoken_number_[type]);
} }
@ -2677,6 +2682,12 @@ namespace isc { namespace dhcp {
return symbol_type (token::TOKEN_SUB_DHCP_DDNS, l); return symbol_type (token::TOKEN_SUB_DHCP_DDNS, l);
} }
Dhcp4Parser::symbol_type
Dhcp4Parser::make_SUB_LOGGING (const location_type& l)
{
return symbol_type (token::TOKEN_SUB_LOGGING, l);
}
Dhcp4Parser::symbol_type Dhcp4Parser::symbol_type
Dhcp4Parser::make_STRING (const std::string& v, const location_type& l) Dhcp4Parser::make_STRING (const std::string& v, const location_type& l)
{ {
@ -2704,7 +2715,7 @@ namespace isc { namespace dhcp {
#line 14 "dhcp4_parser.yy" // lalr1.cc:377 #line 14 "dhcp4_parser.yy" // lalr1.cc:377
} } // isc::dhcp } } // isc::dhcp
#line 2708 "dhcp4_parser.h" // lalr1.cc:377 #line 2719 "dhcp4_parser.h" // lalr1.cc:377

View File

@ -1,4 +1,4 @@
// Generated 201712021537 // Generated 201712031245
// A Bison parser, made by GNU Bison 3.0.4. // A Bison parser, made by GNU Bison 3.0.4.
// Locations for Bison parsers in C++ // Locations for Bison parsers in C++

View File

@ -1,4 +1,4 @@
// Generated 201712021537 // Generated 201712031245
// A Bison parser, made by GNU Bison 3.0.4. // A Bison parser, made by GNU Bison 3.0.4.
// Positions for Bison parsers in C++ // Positions for Bison parsers in C++

View File

@ -1,4 +1,4 @@
// Generated 201712021537 // Generated 201712031245
// A Bison parser, made by GNU Bison 3.0.4. // A Bison parser, made by GNU Bison 3.0.4.
// Stack handling for Bison parsers in C++ // Stack handling for Bison parsers in C++

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -496,10 +496,11 @@ namespace isc { namespace dhcp {
TOKEN_SUB_OPTION_DATA = 404, TOKEN_SUB_OPTION_DATA = 404,
TOKEN_SUB_HOOKS_LIBRARY = 405, TOKEN_SUB_HOOKS_LIBRARY = 405,
TOKEN_SUB_DHCP_DDNS = 406, TOKEN_SUB_DHCP_DDNS = 406,
TOKEN_STRING = 407, TOKEN_SUB_LOGGING = 407,
TOKEN_INTEGER = 408, TOKEN_STRING = 408,
TOKEN_FLOAT = 409, TOKEN_INTEGER = 409,
TOKEN_BOOLEAN = 410 TOKEN_FLOAT = 410,
TOKEN_BOOLEAN = 411
}; };
}; };
@ -1214,6 +1215,10 @@ namespace isc { namespace dhcp {
symbol_type symbol_type
make_SUB_DHCP_DDNS (const location_type& l); make_SUB_DHCP_DDNS (const location_type& l);
static inline
symbol_type
make_SUB_LOGGING (const location_type& l);
static inline static inline
symbol_type symbol_type
make_STRING (const std::string& v, const location_type& l); make_STRING (const std::string& v, const location_type& l);
@ -1436,11 +1441,11 @@ namespace isc { namespace dhcp {
{ {
yyeof_ = 0, yyeof_ = 0,
yylast_ = 931, ///< Last index in yytable_. yylast_ = 931, ///< Last index in yytable_.
yynnts_ = 351, ///< Number of nonterminal symbols. yynnts_ = 354, ///< Number of nonterminal symbols.
yyfinal_ = 28, ///< Termination state number. yyfinal_ = 30, ///< Termination state number.
yyterror_ = 1, yyterror_ = 1,
yyerrcode_ = 256, yyerrcode_ = 256,
yyntokens_ = 156 ///< Number of tokens. yyntokens_ = 157 ///< Number of tokens.
}; };
@ -1498,9 +1503,9 @@ namespace isc { namespace dhcp {
125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134,
135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144,
145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154,
155 155, 156
}; };
const unsigned int user_token_number_max_ = 410; const unsigned int user_token_number_max_ = 411;
const token_number_type undef_token_ = 2; const token_number_type undef_token_ = 2;
if (static_cast<int>(t) <= yyeof_) if (static_cast<int>(t) <= yyeof_)
@ -1533,29 +1538,29 @@ namespace isc { namespace dhcp {
{ {
switch (other.type_get ()) switch (other.type_get ())
{ {
case 171: // value case 173: // value
case 175: // map_value case 177: // map_value
case 219: // db_type case 221: // db_type
case 295: // hr_mode case 297: // hr_mode
case 428: // duid_type case 430: // duid_type
case 464: // ncr_protocol_value case 466: // ncr_protocol_value
case 472: // replace_client_name_value case 474: // replace_client_name_value
value.copy< ElementPtr > (other.value); value.copy< ElementPtr > (other.value);
break; break;
case 155: // "boolean" case 156: // "boolean"
value.copy< bool > (other.value); value.copy< bool > (other.value);
break; break;
case 154: // "floating point" case 155: // "floating point"
value.copy< double > (other.value); value.copy< double > (other.value);
break; break;
case 153: // "integer" case 154: // "integer"
value.copy< int64_t > (other.value); value.copy< int64_t > (other.value);
break; break;
case 152: // "constant string" case 153: // "constant string"
value.copy< std::string > (other.value); value.copy< std::string > (other.value);
break; break;
@ -1576,29 +1581,29 @@ namespace isc { namespace dhcp {
(void) v; (void) v;
switch (this->type_get ()) switch (this->type_get ())
{ {
case 171: // value case 173: // value
case 175: // map_value case 177: // map_value
case 219: // db_type case 221: // db_type
case 295: // hr_mode case 297: // hr_mode
case 428: // duid_type case 430: // duid_type
case 464: // ncr_protocol_value case 466: // ncr_protocol_value
case 472: // replace_client_name_value case 474: // replace_client_name_value
value.copy< ElementPtr > (v); value.copy< ElementPtr > (v);
break; break;
case 155: // "boolean" case 156: // "boolean"
value.copy< bool > (v); value.copy< bool > (v);
break; break;
case 154: // "floating point" case 155: // "floating point"
value.copy< double > (v); value.copy< double > (v);
break; break;
case 153: // "integer" case 154: // "integer"
value.copy< int64_t > (v); value.copy< int64_t > (v);
break; break;
case 152: // "constant string" case 153: // "constant string"
value.copy< std::string > (v); value.copy< std::string > (v);
break; break;
@ -1678,29 +1683,29 @@ namespace isc { namespace dhcp {
// Type destructor. // Type destructor.
switch (yytype) switch (yytype)
{ {
case 171: // value case 173: // value
case 175: // map_value case 177: // map_value
case 219: // db_type case 221: // db_type
case 295: // hr_mode case 297: // hr_mode
case 428: // duid_type case 430: // duid_type
case 464: // ncr_protocol_value case 466: // ncr_protocol_value
case 472: // replace_client_name_value case 474: // replace_client_name_value
value.template destroy< ElementPtr > (); value.template destroy< ElementPtr > ();
break; break;
case 155: // "boolean" case 156: // "boolean"
value.template destroy< bool > (); value.template destroy< bool > ();
break; break;
case 154: // "floating point" case 155: // "floating point"
value.template destroy< double > (); value.template destroy< double > ();
break; break;
case 153: // "integer" case 154: // "integer"
value.template destroy< int64_t > (); value.template destroy< int64_t > ();
break; break;
case 152: // "constant string" case 153: // "constant string"
value.template destroy< std::string > (); value.template destroy< std::string > ();
break; break;
@ -1727,29 +1732,29 @@ namespace isc { namespace dhcp {
super_type::move(s); super_type::move(s);
switch (this->type_get ()) switch (this->type_get ())
{ {
case 171: // value case 173: // value
case 175: // map_value case 177: // map_value
case 219: // db_type case 221: // db_type
case 295: // hr_mode case 297: // hr_mode
case 428: // duid_type case 430: // duid_type
case 464: // ncr_protocol_value case 466: // ncr_protocol_value
case 472: // replace_client_name_value case 474: // replace_client_name_value
value.move< ElementPtr > (s.value); value.move< ElementPtr > (s.value);
break; break;
case 155: // "boolean" case 156: // "boolean"
value.move< bool > (s.value); value.move< bool > (s.value);
break; break;
case 154: // "floating point" case 155: // "floating point"
value.move< double > (s.value); value.move< double > (s.value);
break; break;
case 153: // "integer" case 154: // "integer"
value.move< int64_t > (s.value); value.move< int64_t > (s.value);
break; break;
case 152: // "constant string" case 153: // "constant string"
value.move< std::string > (s.value); value.move< std::string > (s.value);
break; break;
@ -1823,7 +1828,7 @@ namespace isc { namespace dhcp {
375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384,
385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394,
395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404,
405, 406, 407, 408, 409, 410 405, 406, 407, 408, 409, 410, 411
}; };
return static_cast<token_type> (yytoken_number_[type]); return static_cast<token_type> (yytoken_number_[type]);
} }
@ -2728,6 +2733,12 @@ namespace isc { namespace dhcp {
return symbol_type (token::TOKEN_SUB_DHCP_DDNS, l); return symbol_type (token::TOKEN_SUB_DHCP_DDNS, l);
} }
Dhcp6Parser::symbol_type
Dhcp6Parser::make_SUB_LOGGING (const location_type& l)
{
return symbol_type (token::TOKEN_SUB_LOGGING, l);
}
Dhcp6Parser::symbol_type Dhcp6Parser::symbol_type
Dhcp6Parser::make_STRING (const std::string& v, const location_type& l) Dhcp6Parser::make_STRING (const std::string& v, const location_type& l)
{ {
@ -2755,7 +2766,7 @@ namespace isc { namespace dhcp {
#line 14 "dhcp6_parser.yy" // lalr1.cc:377 #line 14 "dhcp6_parser.yy" // lalr1.cc:377
} } // isc::dhcp } } // isc::dhcp
#line 2759 "dhcp6_parser.h" // lalr1.cc:377 #line 2770 "dhcp6_parser.h" // lalr1.cc:377

View File

@ -1,4 +1,4 @@
// Generated 201712021539 // Generated 201712031245
// A Bison parser, made by GNU Bison 3.0.4. // A Bison parser, made by GNU Bison 3.0.4.
// Locations for Bison parsers in C++ // Locations for Bison parsers in C++

View File

@ -1,4 +1,4 @@
// Generated 201712021539 // Generated 201712031245
// A Bison parser, made by GNU Bison 3.0.4. // A Bison parser, made by GNU Bison 3.0.4.
// Positions for Bison parsers in C++ // Positions for Bison parsers in C++

View File

@ -1,4 +1,4 @@
// Generated 201712021539 // Generated 201712031245
// A Bison parser, made by GNU Bison 3.0.4. // A Bison parser, made by GNU Bison 3.0.4.
// Stack handling for Bison parsers in C++ // Stack handling for Bison parsers in C++