mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-31 14:05:33 +00:00
[master] Regen bison with 3.2.1 (last) version
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
// A Bison parser, made by GNU Bison 3.0.4.
|
||||
// A Bison parser, made by GNU Bison 3.2.1.
|
||||
|
||||
// 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
|
||||
|
||||
|
||||
|
||||
@@ -1472,6 +1472,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.
|
||||
@@ -1500,7 +1502,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
|
||||
@@ -1572,12 +1574,12 @@ namespace isc { namespace dhcp {
|
||||
155, 156, 157, 158, 159, 160, 161, 162, 163, 164,
|
||||
165, 166, 167, 168, 169
|
||||
};
|
||||
const unsigned int user_token_number_max_ = 424;
|
||||
const unsigned user_token_number_max_ = 424;
|
||||
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_;
|
||||
@@ -1591,19 +1593,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 186: // value
|
||||
case 190: // map_value
|
||||
@@ -1638,16 +1638,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 186: // value
|
||||
case 190: // map_value
|
||||
@@ -1728,14 +1726,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 ()
|
||||
{
|
||||
@@ -1750,7 +1746,7 @@ namespace isc { namespace dhcp {
|
||||
}
|
||||
|
||||
// Type destructor.
|
||||
switch (yytype)
|
||||
switch (yytype)
|
||||
{
|
||||
case 186: // value
|
||||
case 190: // map_value
|
||||
@@ -1787,7 +1783,6 @@ namespace isc { namespace dhcp {
|
||||
}
|
||||
|
||||
template <typename Base>
|
||||
inline
|
||||
bool
|
||||
Dhcp4Parser::basic_symbol<Base>::empty () const
|
||||
{
|
||||
@@ -1795,12 +1790,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 186: // value
|
||||
case 190: // map_value
|
||||
@@ -2914,9 +2908,9 @@ namespace isc { namespace dhcp {
|
||||
}
|
||||
|
||||
|
||||
#line 14 "dhcp4_parser.yy" // lalr1.cc:377
|
||||
#line 14 "dhcp4_parser.yy" // lalr1.cc:379
|
||||
} } // isc::dhcp
|
||||
#line 2920 "dhcp4_parser.h" // lalr1.cc:377
|
||||
#line 2914 "dhcp4_parser.h" // lalr1.cc:379
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user