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"
value.move< uint32_t > (that.value);
break;
- case 60: // nest_level
- value.move< uint8_t > (that.value);
- break;
-
default:
break;
}
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"
value.copy< uint32_t > (that.value);
break;
- case 60: // nest_level
- value.copy< uint8_t > (that.value);
- break;
-
default:
break;
}
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;
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"
yylhs.value.build< uint32_t > ();
break;
- case 60: // nest_level
- yylhs.value.build< uint8_t > ();
- break;
-
default:
break;
}
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;
}
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;
}
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;
}
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;
// 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.
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,
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"
value.copy< uint32_t > (other.value);
break;
- case 60: // nest_level
- value.copy< uint8_t > (other.value);
- break;
-
default:
break;
}
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"
value.copy< uint32_t > (v);
break;
- case 60: // nest_level
- value.copy< uint8_t > (v);
- break;
-
default:
break;
}
{}
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)
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"
value.template destroy< uint32_t > ();
break;
- case 60: // nest_level
- value.template destroy< uint8_t > ();
- break;
-
default:
break;
}
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"
value.move< uint32_t > (s.value);
break;
- case 60: // nest_level
- value.move< uint8_t > (s.value);
- break;
-
default:
break;
}