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);
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);
#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>
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
# 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
}
-#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
+// Generated 201702171216
// A Bison parser, made by GNU Bison 3.0.4.
// Locations for Bison parsers in C++
# 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
{
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
+// Generated 201702171216
// A Bison parser, made by GNU Bison 3.0.4.
// Positions for Bison parsers in C++
# 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
{
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
+// Generated 201702171216
// A Bison parser, made by GNU Bison 3.0.4.
// Stack handling for Bison parsers in C++
# 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
{
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