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

[master] regen flex/bison

This commit is contained in:
Francis Dupont
2018-08-16 11:37:55 +00:00
parent f991cffd06
commit 762e88096c
12 changed files with 3259 additions and 2716 deletions

View File

@@ -1,8 +1,8 @@
// A Bison parser, made by GNU Bison 3.0.4.
// A Bison parser, made by GNU Bison 3.0.5.
// Skeleton interface for Bison LALR(1) parsers in C++
// Copyright (C) 2002-2015 Free Software Foundation, Inc.
// Copyright (C) 2002-2015, 2018 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
@@ -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:379
#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:379
# 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:379
namespace isc { namespace dhcp {
#line 141 "dhcp4_parser.h" // lalr1.cc:377
#line 141 "dhcp4_parser.h" // lalr1.cc:379
@@ -1452,6 +1452,8 @@ namespace isc { namespace dhcp {
typedef basic_symbol<by_state> super_type;
/// Construct an empty symbol.
stack_symbol_type ();
/// Copy construct.
stack_symbol_type (const stack_symbol_type& that);
/// Steal the contents from \a sym to build this.
stack_symbol_type (state_type s, symbol_type& sym);
/// Assignment, needed by push_back.
@@ -1480,7 +1482,7 @@ namespace isc { namespace dhcp {
void yypush_ (const char* m, state_type s, symbol_type& sym);
/// Pop \a n symbols the three stacks.
void yypop_ (unsigned int n = 1);
void yypop_ (unsigned n = 1);
/// Constants.
enum
@@ -1552,12 +1554,12 @@ namespace isc { namespace dhcp {
155, 156, 157, 158, 159, 160, 161, 162, 163, 164,
165
};
const unsigned int user_token_number_max_ = 420;
const unsigned user_token_number_max_ = 420;
const token_number_type undef_token_ = 2;
if (static_cast<int>(t) <= yyeof_)
if (static_cast<int> (t) <= yyeof_)
return yyeof_;
else if (static_cast<unsigned int> (t) <= user_token_number_max_)
else if (static_cast<unsigned> (t) <= user_token_number_max_)
return translate_table[t];
else
return undef_token_;
@@ -1571,19 +1573,17 @@ namespace isc { namespace dhcp {
// basic_symbol.
template <typename Base>
inline
Dhcp4Parser::basic_symbol<Base>::basic_symbol ()
: value ()
{}
template <typename Base>
inline
Dhcp4Parser::basic_symbol<Base>::basic_symbol (const basic_symbol& other)
: Base (other)
, value ()
, location (other.location)
{
switch (other.type_get ())
switch (other.type_get ())
{
case 181: // value
case 185: // map_value
@@ -1618,16 +1618,14 @@ namespace isc { namespace dhcp {
}
template <typename Base>
inline
Dhcp4Parser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const semantic_type& v, const location_type& l)
: Base (t)
, value ()
, location (l)
{
(void) v;
switch (this->type_get ())
switch (this->type_get ())
{
case 181: // value
case 185: // map_value
@@ -1708,14 +1706,12 @@ namespace isc { namespace dhcp {
template <typename Base>
inline
Dhcp4Parser::basic_symbol<Base>::~basic_symbol ()
{
clear ();
}
template <typename Base>
inline
void
Dhcp4Parser::basic_symbol<Base>::clear ()
{
@@ -1730,7 +1726,7 @@ namespace isc { namespace dhcp {
}
// Type destructor.
switch (yytype)
switch (yytype)
{
case 181: // value
case 185: // map_value
@@ -1767,7 +1763,6 @@ namespace isc { namespace dhcp {
}
template <typename Base>
inline
bool
Dhcp4Parser::basic_symbol<Base>::empty () const
{
@@ -1775,12 +1770,11 @@ namespace isc { namespace dhcp {
}
template <typename Base>
inline
void
Dhcp4Parser::basic_symbol<Base>::move (basic_symbol& s)
{
super_type::move(s);
switch (this->type_get ())
super_type::move (s);
switch (this->type_get ())
{
case 181: // value
case 185: // map_value
@@ -2870,9 +2864,9 @@ namespace isc { namespace dhcp {
}
#line 14 "dhcp4_parser.yy" // lalr1.cc:377
#line 14 "dhcp4_parser.yy" // lalr1.cc:379
} } // isc::dhcp
#line 2876 "dhcp4_parser.h" // lalr1.cc:377
#line 2870 "dhcp4_parser.h" // lalr1.cc:379