Commit 7d0f7a83 authored by Francis Dupont's avatar Francis Dupont
Browse files

[master] regen parser

parent 5ae32bc1
// Generated 201705171457
// Generated 201707051218
// A Bison parser, made by GNU Bison 3.0.4.
// Locations for Bison parsers in C++
......
......@@ -273,6 +273,10 @@ namespace isc { namespace eval {
value.move< TokenRelay6Field::FieldType > (that.value);
break;
case 60: // nest_level
value.move< int8_t > (that.value);
break;
case 47: // "constant string"
case 48: // "integer"
case 49: // "constant hexstring"
......@@ -290,10 +294,6 @@ namespace isc { namespace eval {
value.move< uint32_t > (that.value);
break;
case 60: // nest_level
value.move< uint8_t > (that.value);
break;
default:
break;
}
......@@ -329,6 +329,10 @@ namespace isc { namespace eval {
value.copy< TokenRelay6Field::FieldType > (that.value);
break;
case 60: // nest_level
value.copy< int8_t > (that.value);
break;
case 47: // "constant string"
case 48: // "integer"
case 49: // "constant hexstring"
......@@ -346,10 +350,6 @@ namespace isc { namespace eval {
value.copy< uint32_t > (that.value);
break;
case 60: // nest_level
value.copy< uint8_t > (that.value);
break;
default:
break;
}
......@@ -445,7 +445,7 @@ namespace isc { namespace eval {
case 60: // nest_level
#line 108 "parser.yy" // lalr1.cc:636
{ yyoutput << yysym.value.template as< uint8_t > (); }
{ yyoutput << yysym.value.template as< int8_t > (); }
#line 450 "parser.cc" // lalr1.cc:636
break;
......@@ -701,6 +701,10 @@ namespace isc { namespace eval {
yylhs.value.build< TokenRelay6Field::FieldType > ();
break;
case 60: // nest_level
yylhs.value.build< int8_t > ();
break;
case 47: // "constant string"
case 48: // "integer"
case 49: // "constant hexstring"
......@@ -718,10 +722,6 @@ namespace isc { namespace eval {
yylhs.value.build< uint32_t > ();
break;
case 60: // nest_level
yylhs.value.build< uint8_t > ();
break;
default:
break;
}
......@@ -814,7 +814,7 @@ namespace isc { namespace eval {
switch (ctx.getUniverse()) {
case Option::V6:
{
TokenPtr opt(new TokenRelay6Option(yystack_[8].value.as< uint8_t > (), yystack_[3].value.as< uint16_t > (), TokenOption::EXISTS));
TokenPtr opt(new TokenRelay6Option(yystack_[8].value.as< int8_t > (), yystack_[3].value.as< uint16_t > (), TokenOption::EXISTS));
ctx.expression.push_back(opt);
break;
}
......@@ -932,7 +932,7 @@ namespace isc { namespace eval {
switch (ctx.getUniverse()) {
case Option::V6:
{
TokenPtr opt(new TokenRelay6Option(yystack_[8].value.as< uint8_t > (), yystack_[3].value.as< uint16_t > (), yystack_[0].value.as< TokenOption::RepresentationType > ()));
TokenPtr opt(new TokenRelay6Option(yystack_[8].value.as< int8_t > (), yystack_[3].value.as< uint16_t > (), yystack_[0].value.as< TokenOption::RepresentationType > ()));
ctx.expression.push_back(opt);
break;
}
......@@ -995,7 +995,7 @@ namespace isc { namespace eval {
switch (ctx.getUniverse()) {
case Option::V6:
{
TokenPtr relay6field(new TokenRelay6Field(yystack_[3].value.as< uint8_t > (), yystack_[0].value.as< TokenRelay6Field::FieldType > ()));
TokenPtr relay6field(new TokenRelay6Field(yystack_[3].value.as< int8_t > (), yystack_[0].value.as< TokenRelay6Field::FieldType > ()));
ctx.expression.push_back(relay6field);
break;
}
......@@ -1151,7 +1151,7 @@ namespace isc { namespace eval {
case 39:
#line 418 "parser.yy" // lalr1.cc:859
{
yylhs.value.as< uint8_t > () = ctx.convertNestLevelNumber(yystack_[0].value.as< std::string > (), yystack_[0].location);
yylhs.value.as< int8_t > () = ctx.convertNestLevelNumber(yystack_[0].value.as< std::string > (), yystack_[0].location);
}
#line 1157 "parser.cc" // lalr1.cc:859
break;
......
......@@ -318,22 +318,22 @@ namespace isc { namespace eval {
// relay6_field
char dummy5[sizeof(TokenRelay6Field::FieldType)];
// nest_level
char dummy6[sizeof(int8_t)];
// "constant string"
// "integer"
// "constant hexstring"
// "option name"
// "ip address"
char dummy6[sizeof(std::string)];
char dummy7[sizeof(std::string)];
// option_code
char dummy7[sizeof(uint16_t)];
char dummy8[sizeof(uint16_t)];
// integer_expr
// enterprise_id
char dummy8[sizeof(uint32_t)];
// nest_level
char dummy9[sizeof(uint8_t)];
char dummy9[sizeof(uint32_t)];
};
/// Symbol semantic values.
......@@ -453,14 +453,14 @@ namespace isc { namespace eval {
basic_symbol (typename Base::kind_type t, const TokenRelay6Field::FieldType v, const location_type& l);
basic_symbol (typename Base::kind_type t, const int8_t v, const location_type& l);
basic_symbol (typename Base::kind_type t, const std::string v, const location_type& l);
basic_symbol (typename Base::kind_type t, const uint16_t v, const location_type& l);
basic_symbol (typename Base::kind_type t, const uint32_t v, const location_type& l);
basic_symbol (typename Base::kind_type t, const uint8_t v, const location_type& l);
/// Constructor for symbols with semantic value.
basic_symbol (typename Base::kind_type t,
......@@ -1040,6 +1040,10 @@ namespace isc { namespace eval {
value.copy< TokenRelay6Field::FieldType > (other.value);
break;
case 60: // nest_level
value.copy< int8_t > (other.value);
break;
case 47: // "constant string"
case 48: // "integer"
case 49: // "constant hexstring"
......@@ -1057,10 +1061,6 @@ namespace isc { namespace eval {
value.copy< uint32_t > (other.value);
break;
case 60: // nest_level
value.copy< uint8_t > (other.value);
break;
default:
break;
}
......@@ -1098,6 +1098,10 @@ namespace isc { namespace eval {
value.copy< TokenRelay6Field::FieldType > (v);
break;
case 60: // nest_level
value.copy< int8_t > (v);
break;
case 47: // "constant string"
case 48: // "integer"
case 49: // "constant hexstring"
......@@ -1115,10 +1119,6 @@ namespace isc { namespace eval {
value.copy< uint32_t > (v);
break;
case 60: // nest_level
value.copy< uint8_t > (v);
break;
default:
break;
}
......@@ -1170,28 +1170,28 @@ namespace isc { namespace eval {
{}
template <typename Base>
EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const std::string v, const location_type& l)
EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const int8_t v, const location_type& l)
: Base (t)
, value (v)
, location (l)
{}
template <typename Base>
EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const uint16_t v, const location_type& l)
EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const std::string v, const location_type& l)
: Base (t)
, value (v)
, location (l)
{}
template <typename Base>
EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const uint32_t v, const location_type& l)
EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const uint16_t v, const location_type& l)
: Base (t)
, value (v)
, location (l)
{}
template <typename Base>
EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const uint8_t v, const location_type& l)
EvalParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const uint32_t v, const location_type& l)
: Base (t)
, value (v)
, location (l)
......@@ -1243,6 +1243,10 @@ namespace isc { namespace eval {
value.template destroy< TokenRelay6Field::FieldType > ();
break;
case 60: // nest_level
value.template destroy< int8_t > ();
break;
case 47: // "constant string"
case 48: // "integer"
case 49: // "constant hexstring"
......@@ -1260,10 +1264,6 @@ namespace isc { namespace eval {
value.template destroy< uint32_t > ();
break;
case 60: // nest_level
value.template destroy< uint8_t > ();
break;
default:
break;
}
......@@ -1307,6 +1307,10 @@ namespace isc { namespace eval {
value.move< TokenRelay6Field::FieldType > (s.value);
break;
case 60: // nest_level
value.move< int8_t > (s.value);
break;
case 47: // "constant string"
case 48: // "integer"
case 49: // "constant hexstring"
......@@ -1324,10 +1328,6 @@ namespace isc { namespace eval {
value.move< uint32_t > (s.value);
break;
case 60: // nest_level
value.move< uint8_t > (s.value);
break;
default:
break;
}
......
// Generated 201705171457
// Generated 201707051218
// A Bison parser, made by GNU Bison 3.0.4.
// Positions for Bison parsers in C++
......
// Generated 201705171457
// Generated 201707051218
// A Bison parser, made by GNU Bison 3.0.4.
// Stack handling for Bison parsers in C++
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment