Parcourir la source

[master] regen parser

Francis Dupont il y a 8 ans
Parent
commit
7d0f7a8372
5 fichiers modifiés avec 48 ajouts et 48 suppressions
  1. 1 1
      src/lib/eval/location.hh
  2. 17 17
      src/lib/eval/parser.cc
  3. 28 28
      src/lib/eval/parser.h
  4. 1 1
      src/lib/eval/position.hh
  5. 1 1
      src/lib/eval/stack.hh

+ 1 - 1
src/lib/eval/location.hh

@@ -1,4 +1,4 @@
-// Generated 201705171457
+// Generated 201707051218
 // A Bison parser, made by GNU Bison 3.0.4.
 // A Bison parser, made by GNU Bison 3.0.4.
 
 
 // Locations for Bison parsers in C++
 // Locations for Bison parsers in C++

+ 17 - 17
src/lib/eval/parser.cc

@@ -273,6 +273,10 @@ namespace isc { namespace eval {
         value.move< TokenRelay6Field::FieldType > (that.value);
         value.move< TokenRelay6Field::FieldType > (that.value);
         break;
         break;
 
 
+      case 60: // nest_level
+        value.move< int8_t > (that.value);
+        break;
+
       case 47: // "constant string"
       case 47: // "constant string"
       case 48: // "integer"
       case 48: // "integer"
       case 49: // "constant hexstring"
       case 49: // "constant hexstring"
@@ -290,10 +294,6 @@ namespace isc { namespace eval {
         value.move< uint32_t > (that.value);
         value.move< uint32_t > (that.value);
         break;
         break;
 
 
-      case 60: // nest_level
-        value.move< uint8_t > (that.value);
-        break;
-
       default:
       default:
         break;
         break;
     }
     }
@@ -329,6 +329,10 @@ namespace isc { namespace eval {
         value.copy< TokenRelay6Field::FieldType > (that.value);
         value.copy< TokenRelay6Field::FieldType > (that.value);
         break;
         break;
 
 
+      case 60: // nest_level
+        value.copy< int8_t > (that.value);
+        break;
+
       case 47: // "constant string"
       case 47: // "constant string"
       case 48: // "integer"
       case 48: // "integer"
       case 49: // "constant hexstring"
       case 49: // "constant hexstring"
@@ -346,10 +350,6 @@ namespace isc { namespace eval {
         value.copy< uint32_t > (that.value);
         value.copy< uint32_t > (that.value);
         break;
         break;
 
 
-      case 60: // nest_level
-        value.copy< uint8_t > (that.value);
-        break;
-
       default:
       default:
         break;
         break;
     }
     }
@@ -445,7 +445,7 @@ namespace isc { namespace eval {
       case 60: // nest_level
       case 60: // nest_level
 
 
 #line 108 "parser.yy" // lalr1.cc:636
 #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
 #line 450 "parser.cc" // lalr1.cc:636
         break;
         break;
 
 
@@ -701,6 +701,10 @@ namespace isc { namespace eval {
         yylhs.value.build< TokenRelay6Field::FieldType > ();
         yylhs.value.build< TokenRelay6Field::FieldType > ();
         break;
         break;
 
 
+      case 60: // nest_level
+        yylhs.value.build< int8_t > ();
+        break;
+
       case 47: // "constant string"
       case 47: // "constant string"
       case 48: // "integer"
       case 48: // "integer"
       case 49: // "constant hexstring"
       case 49: // "constant hexstring"
@@ -718,10 +722,6 @@ namespace isc { namespace eval {
         yylhs.value.build< uint32_t > ();
         yylhs.value.build< uint32_t > ();
         break;
         break;
 
 
-      case 60: // nest_level
-        yylhs.value.build< uint8_t > ();
-        break;
-
       default:
       default:
         break;
         break;
     }
     }
@@ -814,7 +814,7 @@ namespace isc { namespace eval {
                     switch (ctx.getUniverse()) {
                     switch (ctx.getUniverse()) {
                     case Option::V6:
                     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);
                         ctx.expression.push_back(opt);
                         break;
                         break;
                     }
                     }
@@ -932,7 +932,7 @@ namespace isc { namespace eval {
                      switch (ctx.getUniverse()) {
                      switch (ctx.getUniverse()) {
                      case Option::V6:
                      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);
                          ctx.expression.push_back(opt);
                          break;
                          break;
                      }
                      }
@@ -995,7 +995,7 @@ namespace isc { namespace eval {
                      switch (ctx.getUniverse()) {
                      switch (ctx.getUniverse()) {
                      case Option::V6:
                      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);
                          ctx.expression.push_back(relay6field);
                          break;
                          break;
                      }
                      }
@@ -1151,7 +1151,7 @@ namespace isc { namespace eval {
   case 39:
   case 39:
 #line 418 "parser.yy" // lalr1.cc:859
 #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
 #line 1157 "parser.cc" // lalr1.cc:859
     break;
     break;

+ 28 - 28
src/lib/eval/parser.h

@@ -318,22 +318,22 @@ namespace isc { namespace eval {
       // relay6_field
       // relay6_field
       char dummy5[sizeof(TokenRelay6Field::FieldType)];
       char dummy5[sizeof(TokenRelay6Field::FieldType)];
 
 
+      // nest_level
+      char dummy6[sizeof(int8_t)];
+
       // "constant string"
       // "constant string"
       // "integer"
       // "integer"
       // "constant hexstring"
       // "constant hexstring"
       // "option name"
       // "option name"
       // "ip address"
       // "ip address"
-      char dummy6[sizeof(std::string)];
+      char dummy7[sizeof(std::string)];
 
 
       // option_code
       // option_code
-      char dummy7[sizeof(uint16_t)];
+      char dummy8[sizeof(uint16_t)];
 
 
       // integer_expr
       // integer_expr
       // enterprise_id
       // enterprise_id
-      char dummy8[sizeof(uint32_t)];
-
-      // nest_level
-      char dummy9[sizeof(uint8_t)];
+      char dummy9[sizeof(uint32_t)];
 };
 };
 
 
     /// Symbol semantic values.
     /// 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 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 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 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 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.
       /// Constructor for symbols with semantic value.
       basic_symbol (typename Base::kind_type t,
       basic_symbol (typename Base::kind_type t,
@@ -1040,6 +1040,10 @@ namespace isc { namespace eval {
         value.copy< TokenRelay6Field::FieldType > (other.value);
         value.copy< TokenRelay6Field::FieldType > (other.value);
         break;
         break;
 
 
+      case 60: // nest_level
+        value.copy< int8_t > (other.value);
+        break;
+
       case 47: // "constant string"
       case 47: // "constant string"
       case 48: // "integer"
       case 48: // "integer"
       case 49: // "constant hexstring"
       case 49: // "constant hexstring"
@@ -1057,10 +1061,6 @@ namespace isc { namespace eval {
         value.copy< uint32_t > (other.value);
         value.copy< uint32_t > (other.value);
         break;
         break;
 
 
-      case 60: // nest_level
-        value.copy< uint8_t > (other.value);
-        break;
-
       default:
       default:
         break;
         break;
     }
     }
@@ -1098,6 +1098,10 @@ namespace isc { namespace eval {
         value.copy< TokenRelay6Field::FieldType > (v);
         value.copy< TokenRelay6Field::FieldType > (v);
         break;
         break;
 
 
+      case 60: // nest_level
+        value.copy< int8_t > (v);
+        break;
+
       case 47: // "constant string"
       case 47: // "constant string"
       case 48: // "integer"
       case 48: // "integer"
       case 49: // "constant hexstring"
       case 49: // "constant hexstring"
@@ -1115,10 +1119,6 @@ namespace isc { namespace eval {
         value.copy< uint32_t > (v);
         value.copy< uint32_t > (v);
         break;
         break;
 
 
-      case 60: // nest_level
-        value.copy< uint8_t > (v);
-        break;
-
       default:
       default:
         break;
         break;
     }
     }
@@ -1170,28 +1170,28 @@ namespace isc { namespace eval {
   {}
   {}
 
 
   template <typename Base>
   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)
     : Base (t)
     , value (v)
     , value (v)
     , location (l)
     , location (l)
   {}
   {}
 
 
   template <typename Base>
   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)
     : Base (t)
     , value (v)
     , value (v)
     , location (l)
     , location (l)
   {}
   {}
 
 
   template <typename Base>
   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)
     : Base (t)
     , value (v)
     , value (v)
     , location (l)
     , location (l)
   {}
   {}
 
 
   template <typename Base>
   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)
     : Base (t)
     , value (v)
     , value (v)
     , location (l)
     , location (l)
@@ -1243,6 +1243,10 @@ namespace isc { namespace eval {
         value.template destroy< TokenRelay6Field::FieldType > ();
         value.template destroy< TokenRelay6Field::FieldType > ();
         break;
         break;
 
 
+      case 60: // nest_level
+        value.template destroy< int8_t > ();
+        break;
+
       case 47: // "constant string"
       case 47: // "constant string"
       case 48: // "integer"
       case 48: // "integer"
       case 49: // "constant hexstring"
       case 49: // "constant hexstring"
@@ -1260,10 +1264,6 @@ namespace isc { namespace eval {
         value.template destroy< uint32_t > ();
         value.template destroy< uint32_t > ();
         break;
         break;
 
 
-      case 60: // nest_level
-        value.template destroy< uint8_t > ();
-        break;
-
       default:
       default:
         break;
         break;
     }
     }
@@ -1307,6 +1307,10 @@ namespace isc { namespace eval {
         value.move< TokenRelay6Field::FieldType > (s.value);
         value.move< TokenRelay6Field::FieldType > (s.value);
         break;
         break;
 
 
+      case 60: // nest_level
+        value.move< int8_t > (s.value);
+        break;
+
       case 47: // "constant string"
       case 47: // "constant string"
       case 48: // "integer"
       case 48: // "integer"
       case 49: // "constant hexstring"
       case 49: // "constant hexstring"
@@ -1324,10 +1328,6 @@ namespace isc { namespace eval {
         value.move< uint32_t > (s.value);
         value.move< uint32_t > (s.value);
         break;
         break;
 
 
-      case 60: // nest_level
-        value.move< uint8_t > (s.value);
-        break;
-
       default:
       default:
         break;
         break;
     }
     }

+ 1 - 1
src/lib/eval/position.hh

@@ -1,4 +1,4 @@
-// Generated 201705171457
+// Generated 201707051218
 // A Bison parser, made by GNU Bison 3.0.4.
 // A Bison parser, made by GNU Bison 3.0.4.
 
 
 // Positions for Bison parsers in C++
 // Positions for Bison parsers in C++

+ 1 - 1
src/lib/eval/stack.hh

@@ -1,4 +1,4 @@
-// Generated 201705171457
+// Generated 201707051218
 // A Bison parser, made by GNU Bison 3.0.4.
 // A Bison parser, made by GNU Bison 3.0.4.
 
 
 // Stack handling for Bison parsers in C++
 // Stack handling for Bison parsers in C++