mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-01 22:45:18 +00:00
[2116] regen flex/bison
This commit is contained in:
committed by
Razvan Becheriu
parent
b8414c0a34
commit
28f001f6c0
@@ -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
|
#define YY_INT_ALIGNED short int
|
||||||
|
|
||||||
@@ -2057,7 +2057,7 @@ using namespace isc::dhcp;
|
|||||||
|
|
||||||
/* To avoid the call to exit... oops! */
|
/* To avoid the call to exit... oops! */
|
||||||
#define YY_FATAL_ERROR(msg) isc::dhcp::Parser4Context::fatal(msg)
|
#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
|
/* 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
|
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
|
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
|
by moving it ahead by yyleng bytes. yyleng specifies the length of the
|
||||||
currently matched token. */
|
currently matched token. */
|
||||||
#define YY_USER_ACTION driver.loc_.columns(yyleng);
|
#define YY_USER_ACTION driver.loc_.columns(yyleng);
|
||||||
|
#line 2086 "dhcp4_lexer.cc"
|
||||||
#line 2087 "dhcp4_lexer.cc"
|
#line 2087 "dhcp4_lexer.cc"
|
||||||
#line 2088 "dhcp4_lexer.cc"
|
|
||||||
|
|
||||||
#define INITIAL 0
|
#define INITIAL 0
|
||||||
#define COMMENT 1
|
#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 */
|
while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */
|
||||||
{
|
{
|
||||||
@@ -5243,7 +5243,7 @@ YY_RULE_SETUP
|
|||||||
#line 2248 "dhcp4_lexer.ll"
|
#line 2248 "dhcp4_lexer.ll"
|
||||||
ECHO;
|
ECHO;
|
||||||
YY_BREAK
|
YY_BREAK
|
||||||
#line 5247 "dhcp4_lexer.cc"
|
#line 5246 "dhcp4_lexer.cc"
|
||||||
|
|
||||||
case YY_END_OF_BUFFER:
|
case YY_END_OF_BUFFER:
|
||||||
{
|
{
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@@ -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++
|
// 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
|
// 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
|
// it under the terms of the GNU General Public License as published by
|
||||||
@@ -15,7 +16,7 @@
|
|||||||
// GNU General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
|
|
||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
// As a special exception, you may create a larger work that contains
|
// As a special exception, you may create a larger work that contains
|
||||||
// part or all of the Bison parser skeleton and distribute that work
|
// part or all of the Bison parser skeleton and distribute that work
|
||||||
@@ -61,11 +62,13 @@ namespace isc { namespace dhcp {
|
|||||||
class position
|
class position
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
/// Type for file name.
|
||||||
|
typedef const std::string filename_type;
|
||||||
/// Type for line and column numbers.
|
/// Type for line and column numbers.
|
||||||
typedef int counter_type;
|
typedef int counter_type;
|
||||||
|
|
||||||
/// Construct a position.
|
/// Construct a position.
|
||||||
explicit position (std::string* f = YY_NULLPTR,
|
explicit position (filename_type* f = YY_NULLPTR,
|
||||||
counter_type l = 1,
|
counter_type l = 1,
|
||||||
counter_type c = 1)
|
counter_type c = 1)
|
||||||
: filename (f)
|
: filename (f)
|
||||||
@@ -75,7 +78,7 @@ namespace isc { namespace dhcp {
|
|||||||
|
|
||||||
|
|
||||||
/// Initialization.
|
/// Initialization.
|
||||||
void initialize (std::string* fn = YY_NULLPTR,
|
void initialize (filename_type* fn = YY_NULLPTR,
|
||||||
counter_type l = 1,
|
counter_type l = 1,
|
||||||
counter_type c = 1)
|
counter_type c = 1)
|
||||||
{
|
{
|
||||||
@@ -104,7 +107,7 @@ namespace isc { namespace dhcp {
|
|||||||
/** \} */
|
/** \} */
|
||||||
|
|
||||||
/// File name to which this position refers.
|
/// File name to which this position refers.
|
||||||
std::string* filename;
|
filename_type* filename;
|
||||||
/// Current line number.
|
/// Current line number.
|
||||||
counter_type line;
|
counter_type line;
|
||||||
/// Current column number.
|
/// Current column number.
|
||||||
@@ -147,24 +150,6 @@ namespace isc { namespace dhcp {
|
|||||||
return res -= width;
|
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.
|
/** \brief Intercept output stream redirection.
|
||||||
** \param ostr the destination output stream
|
** \param ostr the destination output stream
|
||||||
** \param pos a reference to the position to redirect
|
** \param pos a reference to the position to redirect
|
||||||
@@ -182,6 +167,8 @@ namespace isc { namespace dhcp {
|
|||||||
class location
|
class location
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
/// Type for file name.
|
||||||
|
typedef position::filename_type filename_type;
|
||||||
/// Type for line and column numbers.
|
/// Type for line and column numbers.
|
||||||
typedef position::counter_type counter_type;
|
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.
|
/// 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 l = 1,
|
||||||
counter_type c = 1)
|
counter_type c = 1)
|
||||||
: begin (f, l, c)
|
: begin (f, l, c)
|
||||||
@@ -207,7 +194,7 @@ namespace isc { namespace dhcp {
|
|||||||
|
|
||||||
|
|
||||||
/// Initialization.
|
/// Initialization.
|
||||||
void initialize (std::string* f = YY_NULLPTR,
|
void initialize (filename_type* f = YY_NULLPTR,
|
||||||
counter_type l = 1,
|
counter_type l = 1,
|
||||||
counter_type c = 1)
|
counter_type c = 1)
|
||||||
{
|
{
|
||||||
@@ -289,20 +276,6 @@ namespace isc { namespace dhcp {
|
|||||||
return res -= width;
|
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.
|
/** \brief Intercept output stream redirection.
|
||||||
** \param ostr the destination output stream
|
** \param ostr the destination output stream
|
||||||
** \param loc a reference to the location to redirect
|
** \param loc a reference to the location to redirect
|
||||||
@@ -329,6 +302,6 @@ namespace isc { namespace dhcp {
|
|||||||
|
|
||||||
#line 14 "dhcp4_parser.yy"
|
#line 14 "dhcp4_parser.yy"
|
||||||
} } // isc::dhcp
|
} } // isc::dhcp
|
||||||
#line 333 "location.hh"
|
#line 305 "location.hh"
|
||||||
|
|
||||||
#endif // !YY_PARSER4_LOCATION_HH_INCLUDED
|
#endif // !YY_PARSER4_LOCATION_HH_INCLUDED
|
||||||
|
@@ -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
|
#define YY_INT_ALIGNED short int
|
||||||
|
|
||||||
@@ -2078,7 +2078,7 @@ using namespace isc::dhcp;
|
|||||||
|
|
||||||
/* To avoid the call to exit... oops! */
|
/* To avoid the call to exit... oops! */
|
||||||
#define YY_FATAL_ERROR(msg) isc::dhcp::Parser6Context::fatal(msg)
|
#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
|
/* 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
|
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
|
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
|
by moving it ahead by yyleng bytes. yyleng specifies the length of the
|
||||||
currently matched token. */
|
currently matched token. */
|
||||||
#define YY_USER_ACTION driver.loc_.columns(yyleng);
|
#define YY_USER_ACTION driver.loc_.columns(yyleng);
|
||||||
|
#line 2107 "dhcp6_lexer.cc"
|
||||||
#line 2108 "dhcp6_lexer.cc"
|
#line 2108 "dhcp6_lexer.cc"
|
||||||
#line 2109 "dhcp6_lexer.cc"
|
|
||||||
|
|
||||||
#define INITIAL 0
|
#define INITIAL 0
|
||||||
#define COMMENT 1
|
#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 */
|
while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */
|
||||||
{
|
{
|
||||||
@@ -5351,7 +5351,7 @@ YY_RULE_SETUP
|
|||||||
#line 2313 "dhcp6_lexer.ll"
|
#line 2313 "dhcp6_lexer.ll"
|
||||||
ECHO;
|
ECHO;
|
||||||
YY_BREAK
|
YY_BREAK
|
||||||
#line 5355 "dhcp6_lexer.cc"
|
#line 5354 "dhcp6_lexer.cc"
|
||||||
|
|
||||||
case YY_END_OF_BUFFER:
|
case YY_END_OF_BUFFER:
|
||||||
{
|
{
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@@ -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++
|
// 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
|
// 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
|
// it under the terms of the GNU General Public License as published by
|
||||||
@@ -15,7 +16,7 @@
|
|||||||
// GNU General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
|
|
||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
// As a special exception, you may create a larger work that contains
|
// As a special exception, you may create a larger work that contains
|
||||||
// part or all of the Bison parser skeleton and distribute that work
|
// part or all of the Bison parser skeleton and distribute that work
|
||||||
@@ -61,11 +62,13 @@ namespace isc { namespace dhcp {
|
|||||||
class position
|
class position
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
/// Type for file name.
|
||||||
|
typedef const std::string filename_type;
|
||||||
/// Type for line and column numbers.
|
/// Type for line and column numbers.
|
||||||
typedef int counter_type;
|
typedef int counter_type;
|
||||||
|
|
||||||
/// Construct a position.
|
/// Construct a position.
|
||||||
explicit position (std::string* f = YY_NULLPTR,
|
explicit position (filename_type* f = YY_NULLPTR,
|
||||||
counter_type l = 1,
|
counter_type l = 1,
|
||||||
counter_type c = 1)
|
counter_type c = 1)
|
||||||
: filename (f)
|
: filename (f)
|
||||||
@@ -75,7 +78,7 @@ namespace isc { namespace dhcp {
|
|||||||
|
|
||||||
|
|
||||||
/// Initialization.
|
/// Initialization.
|
||||||
void initialize (std::string* fn = YY_NULLPTR,
|
void initialize (filename_type* fn = YY_NULLPTR,
|
||||||
counter_type l = 1,
|
counter_type l = 1,
|
||||||
counter_type c = 1)
|
counter_type c = 1)
|
||||||
{
|
{
|
||||||
@@ -104,7 +107,7 @@ namespace isc { namespace dhcp {
|
|||||||
/** \} */
|
/** \} */
|
||||||
|
|
||||||
/// File name to which this position refers.
|
/// File name to which this position refers.
|
||||||
std::string* filename;
|
filename_type* filename;
|
||||||
/// Current line number.
|
/// Current line number.
|
||||||
counter_type line;
|
counter_type line;
|
||||||
/// Current column number.
|
/// Current column number.
|
||||||
@@ -147,24 +150,6 @@ namespace isc { namespace dhcp {
|
|||||||
return res -= width;
|
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.
|
/** \brief Intercept output stream redirection.
|
||||||
** \param ostr the destination output stream
|
** \param ostr the destination output stream
|
||||||
** \param pos a reference to the position to redirect
|
** \param pos a reference to the position to redirect
|
||||||
@@ -182,6 +167,8 @@ namespace isc { namespace dhcp {
|
|||||||
class location
|
class location
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
/// Type for file name.
|
||||||
|
typedef position::filename_type filename_type;
|
||||||
/// Type for line and column numbers.
|
/// Type for line and column numbers.
|
||||||
typedef position::counter_type counter_type;
|
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.
|
/// 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 l = 1,
|
||||||
counter_type c = 1)
|
counter_type c = 1)
|
||||||
: begin (f, l, c)
|
: begin (f, l, c)
|
||||||
@@ -207,7 +194,7 @@ namespace isc { namespace dhcp {
|
|||||||
|
|
||||||
|
|
||||||
/// Initialization.
|
/// Initialization.
|
||||||
void initialize (std::string* f = YY_NULLPTR,
|
void initialize (filename_type* f = YY_NULLPTR,
|
||||||
counter_type l = 1,
|
counter_type l = 1,
|
||||||
counter_type c = 1)
|
counter_type c = 1)
|
||||||
{
|
{
|
||||||
@@ -289,20 +276,6 @@ namespace isc { namespace dhcp {
|
|||||||
return res -= width;
|
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.
|
/** \brief Intercept output stream redirection.
|
||||||
** \param ostr the destination output stream
|
** \param ostr the destination output stream
|
||||||
** \param loc a reference to the location to redirect
|
** \param loc a reference to the location to redirect
|
||||||
@@ -329,6 +302,6 @@ namespace isc { namespace dhcp {
|
|||||||
|
|
||||||
#line 14 "dhcp6_parser.yy"
|
#line 14 "dhcp6_parser.yy"
|
||||||
} } // isc::dhcp
|
} } // isc::dhcp
|
||||||
#line 333 "location.hh"
|
#line 305 "location.hh"
|
||||||
|
|
||||||
#endif // !YY_PARSER6_LOCATION_HH_INCLUDED
|
#endif // !YY_PARSER6_LOCATION_HH_INCLUDED
|
||||||
|
Reference in New Issue
Block a user