Browse Source

[5110] Parser regenerated

Tomek Mrugalski 8 years ago
parent
commit
330943bf8d
5 changed files with 25 additions and 22 deletions
  1. 4 4
      src/bin/d2/d2_parser.cc
  2. 6 6
      src/bin/d2/d2_parser.h
  3. 5 4
      src/bin/d2/location.hh
  4. 5 4
      src/bin/d2/position.hh
  5. 5 4
      src/bin/d2/stack.hh

+ 4 - 4
src/bin/d2/d2_parser.cc

@@ -894,8 +894,8 @@ namespace isc { namespace d2 {
   case 67:
 #line 274 "d2_parser.yy" // lalr1.cc:859
     {
-    if (yystack_[0].value.as< int64_t > () <= 0 || yystack_[0].value.as< int64_t > () >= 65792 ) {
-        error(yystack_[0].location, "port must be greater than zero but less than 65792");
+    if (yystack_[0].value.as< int64_t > () <= 0 || yystack_[0].value.as< int64_t > () >= 65535 ) {
+        error(yystack_[0].location, "port must be greater than zero but less than 65535");
     }
     ElementPtr i(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location)));
     ctx.stack_.back()->set("port", i);
@@ -1231,8 +1231,8 @@ namespace isc { namespace d2 {
   case 127:
 #line 486 "d2_parser.yy" // lalr1.cc:859
     {
-    if (yystack_[0].value.as< int64_t > () <= 0 || yystack_[0].value.as< int64_t > () >= 65792 ) {
-        error(yystack_[0].location, "port must be greater than zero but less than 65792");
+    if (yystack_[0].value.as< int64_t > () <= 0 || yystack_[0].value.as< int64_t > () >= 65535 ) {
+        error(yystack_[0].location, "port must be greater than zero but less than 65536");
     }
     ElementPtr i(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location)));
     ctx.stack_.back()->set("port", i);

+ 6 - 6
src/bin/d2/d2_parser.h

@@ -40,7 +40,7 @@
 #ifndef YY_D2_PARSER_D2_PARSER_H_INCLUDED
 # define YY_D2_PARSER_D2_PARSER_H_INCLUDED
 // //                    "%code requires" blocks.
-#line 17 "d2_parser.yy" // lalr1.cc:392
+#line 17 "d2_parser.yy" // lalr1.cc:377
 
 #include <string>
 #include <cc/data.h>
@@ -52,7 +52,7 @@ using namespace isc::d2;
 using namespace isc::data;
 using namespace std;
 
-#line 56 "d2_parser.h" // lalr1.cc:392
+#line 56 "d2_parser.h" // lalr1.cc:377
 
 # include <cassert>
 # include <cstdlib> // std::abort
@@ -135,9 +135,9 @@ using namespace std;
 # endif /* ! defined YYDEBUG */
 #endif  /* ! defined D2_PARSER_DEBUG */
 
-#line 14 "d2_parser.yy" // lalr1.cc:392
+#line 14 "d2_parser.yy" // lalr1.cc:377
 namespace isc { namespace d2 {
-#line 141 "d2_parser.h" // lalr1.cc:392
+#line 141 "d2_parser.h" // lalr1.cc:377
 
 
 
@@ -1552,9 +1552,9 @@ namespace isc { namespace d2 {
   }
 
 
-#line 14 "d2_parser.yy" // lalr1.cc:392
+#line 14 "d2_parser.yy" // lalr1.cc:377
 } } // isc::d2
-#line 1558 "d2_parser.h" // lalr1.cc:392
+#line 1558 "d2_parser.h" // lalr1.cc:377
 
 
 

+ 5 - 4
src/bin/d2/location.hh

@@ -1,3 +1,4 @@
+// Generated 201702171216
 // A Bison parser, made by GNU Bison 3.0.4.
 
 // Locations for Bison parsers in C++
@@ -40,9 +41,9 @@
 
 # include "position.hh"
 
-#line 14 "d2_parser.yy" // location.cc:337
+#line 14 "d2_parser.yy" // location.cc:296
 namespace isc { namespace d2 {
-#line 46 "location.hh" // location.cc:337
+#line 46 "location.hh" // location.cc:296
   /// Abstract a location.
   class location
   {
@@ -186,7 +187,7 @@ namespace isc { namespace d2 {
     return ostr;
   }
 
-#line 14 "d2_parser.yy" // location.cc:337
+#line 14 "d2_parser.yy" // location.cc:296
 } } // isc::d2
-#line 192 "location.hh" // location.cc:337
+#line 192 "location.hh" // location.cc:296
 #endif // !YY_D2_PARSER_LOCATION_HH_INCLUDED

+ 5 - 4
src/bin/d2/position.hh

@@ -1,3 +1,4 @@
+// Generated 201702171216
 // A Bison parser, made by GNU Bison 3.0.4.
 
 // Positions for Bison parsers in C++
@@ -50,9 +51,9 @@
 #  endif
 # endif
 
-#line 14 "d2_parser.yy" // location.cc:337
+#line 14 "d2_parser.yy" // location.cc:296
 namespace isc { namespace d2 {
-#line 56 "position.hh" // location.cc:337
+#line 56 "position.hh" // location.cc:296
   /// Abstract a position.
   class position
   {
@@ -174,7 +175,7 @@ namespace isc { namespace d2 {
     return ostr << pos.line << '.' << pos.column;
   }
 
-#line 14 "d2_parser.yy" // location.cc:337
+#line 14 "d2_parser.yy" // location.cc:296
 } } // isc::d2
-#line 180 "position.hh" // location.cc:337
+#line 180 "position.hh" // location.cc:296
 #endif // !YY_D2_PARSER_POSITION_HH_INCLUDED

+ 5 - 4
src/bin/d2/stack.hh

@@ -1,3 +1,4 @@
+// Generated 201702171216
 // A Bison parser, made by GNU Bison 3.0.4.
 
 // Stack handling for Bison parsers in C++
@@ -40,9 +41,9 @@
 
 # include <vector>
 
-#line 14 "d2_parser.yy" // stack.hh:151
+#line 14 "d2_parser.yy" // stack.hh:132
 namespace isc { namespace d2 {
-#line 46 "stack.hh" // stack.hh:151
+#line 46 "stack.hh" // stack.hh:132
   template <class T, class S = std::vector<T> >
   class stack
   {
@@ -150,8 +151,8 @@ namespace isc { namespace d2 {
     unsigned int range_;
   };
 
-#line 14 "d2_parser.yy" // stack.hh:151
+#line 14 "d2_parser.yy" // stack.hh:132
 } } // isc::d2
-#line 156 "stack.hh" // stack.hh:151
+#line 156 "stack.hh" // stack.hh:132
 
 #endif // !YY_D2_PARSER_STACK_HH_INCLUDED