1
- // A Bison parser, made by GNU Bison 3.1 .
1
+ // A Bison parser, made by GNU Bison 3.0.5 .
2
2
3
3
// Skeleton interface for Bison LALR(1) parsers in C++
4
4
40
40
#ifndef YY_AGENT_AGENT_PARSER_H_INCLUDED
41
41
# define YY_AGENT_AGENT_PARSER_H_INCLUDED
42
42
// // "%code requires" blocks.
43
- #line 17 "agent_parser.yy" // lalr1.cc:380
43
+ #line 17 "agent_parser.yy" // lalr1.cc:379
44
44
45
45
#include < string>
46
46
#include < cc/data.h>
@@ -51,7 +51,7 @@ using namespace isc::agent;
51
51
using namespace isc ::data;
52
52
using namespace std ;
53
53
54
- #line 55 "agent_parser.h" // lalr1.cc:380
54
+ #line 55 "agent_parser.h" // lalr1.cc:379
55
55
56
56
# include < cassert>
57
57
# include < cstdlib> // std::abort
@@ -102,7 +102,7 @@ using namespace std;
102
102
# define YYUSE (E ) /* empty */
103
103
#endif
104
104
105
- #if defined __GNUC__ && ! defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
105
+ #if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
106
106
/* Suppress an incorrect diagnostic about yylval being uninitialized. */
107
107
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
108
108
_Pragma (" GCC diagnostic push" ) \
@@ -121,13 +121,6 @@ using namespace std;
121
121
# define YY_INITIAL_VALUE (Value ) /* Nothing. */
122
122
#endif
123
123
124
- # ifndef YY_NULLPTR
125
- # if defined __cplusplus && 201103L <= __cplusplus
126
- # define YY_NULLPTR nullptr
127
- # else
128
- # define YY_NULLPTR 0
129
- # endif
130
- # endif
131
124
/* Debug traces. */
132
125
#ifndef AGENT_DEBUG
133
126
# if defined YYDEBUG
@@ -141,9 +134,9 @@ using namespace std;
141
134
# endif /* ! defined YYDEBUG */
142
135
#endif /* ! defined AGENT_DEBUG */
143
136
144
- #line 14 "agent_parser.yy" // lalr1.cc:380
137
+ #line 14 "agent_parser.yy" // lalr1.cc:379
145
138
namespace isc { namespace agent {
146
- #line 147 "agent_parser.h" // lalr1.cc:380
139
+ #line 140 "agent_parser.h" // lalr1.cc:379
147
140
148
141
149
142
@@ -160,8 +153,7 @@ namespace isc { namespace agent {
160
153
161
154
// / Empty construction.
162
155
variant ()
163
- : yybuffer_ ()
164
- , yytypeid_ (YY_NULLPTR)
156
+ : yytypeid_ (YY_NULLPTR)
165
157
{}
166
158
167
159
// / Construct and fill.
@@ -187,7 +179,7 @@ namespace isc { namespace agent {
187
179
YYASSERT (!yytypeid_);
188
180
YYASSERT (sizeof (T) <= S);
189
181
yytypeid_ = & typeid (T);
190
- return *new (yyas_<T> ()) T () ;
182
+ return *new (yyas_<T> ()) T;
191
183
}
192
184
193
185
// / Instantiate a \a T in here from \a t.
@@ -206,7 +198,6 @@ namespace isc { namespace agent {
206
198
T&
207
199
as ()
208
200
{
209
- YYASSERT (yytypeid_);
210
201
YYASSERT (*yytypeid_ == typeid (T));
211
202
YYASSERT (sizeof (T) <= S);
212
203
return *yyas_<T> ();
@@ -217,7 +208,6 @@ namespace isc { namespace agent {
217
208
const T&
218
209
as () const
219
210
{
220
- YYASSERT (yytypeid_);
221
211
YYASSERT (*yytypeid_ == typeid (T));
222
212
YYASSERT (sizeof (T) <= S);
223
213
return *yyas_<T> ();
@@ -431,15 +421,15 @@ namespace isc { namespace agent {
431
421
432
422
basic_symbol (typename Base::kind_type t, const location_type& l);
433
423
434
- basic_symbol (typename Base::kind_type t, const ElementPtr& v, const location_type& l);
424
+ basic_symbol (typename Base::kind_type t, const ElementPtr v, const location_type& l);
435
425
436
- basic_symbol (typename Base::kind_type t, const bool & v, const location_type& l);
426
+ basic_symbol (typename Base::kind_type t, const bool v, const location_type& l);
437
427
438
- basic_symbol (typename Base::kind_type t, const double & v, const location_type& l);
428
+ basic_symbol (typename Base::kind_type t, const double v, const location_type& l);
439
429
440
- basic_symbol (typename Base::kind_type t, const int64_t & v, const location_type& l);
430
+ basic_symbol (typename Base::kind_type t, const int64_t v, const location_type& l);
441
431
442
- basic_symbol (typename Base::kind_type t, const std::string& v, const location_type& l);
432
+ basic_symbol (typename Base::kind_type t, const std::string v, const location_type& l);
443
433
444
434
445
435
// / Constructor for symbols with semantic value.
@@ -747,7 +737,7 @@ namespace isc { namespace agent {
747
737
// Tables.
748
738
// YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
749
739
// STATE-NUM.
750
- static const short yypact_[];
740
+ static const short int yypact_[];
751
741
752
742
// YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.
753
743
// Performed when YYTABLE does not specify something else to do. Zero
@@ -758,14 +748,14 @@ namespace isc { namespace agent {
758
748
static const signed char yypgoto_[];
759
749
760
750
// YYDEFGOTO[NTERM-NUM].
761
- static const short yydefgoto_[];
751
+ static const short int yydefgoto_[];
762
752
763
753
// YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If
764
754
// positive, shift that token. If negative, reduce the rule whose
765
755
// number is the opposite. If YYTABLE_NINF, syntax error.
766
756
static const unsigned char yytable_[];
767
757
768
- static const short yycheck_[];
758
+ static const short int yycheck_[];
769
759
770
760
// YYSTOS[STATE-NUM] -- The (internal number of the) accessing
771
761
// symbol of state STATE-NUM.
@@ -786,7 +776,7 @@ namespace isc { namespace agent {
786
776
static const char * const yytname_[];
787
777
#if AGENT_DEBUG
788
778
// YYRLINE[YYN] -- Source line where rule number YYN was defined.
789
- static const unsigned short yyrline_[];
779
+ static const unsigned short int yyrline_[];
790
780
// / Report on the debug stream that the rule \a r is going to be reduced.
791
781
virtual void yy_reduce_print_ (int r);
792
782
// / Print the state stack on the debug stream.
@@ -851,7 +841,7 @@ namespace isc { namespace agent {
851
841
typedef basic_symbol<by_state> super_type;
852
842
// / Construct an empty symbol.
853
843
stack_symbol_type ();
854
- // / Copy construct (for efficiency) .
844
+ // / Copy construct.
855
845
stack_symbol_type (const stack_symbol_type& that);
856
846
// / Steal the contents from \a sym to build this.
857
847
stack_symbol_type (state_type s, symbol_type& sym);
@@ -961,7 +951,6 @@ namespace isc { namespace agent {
961
951
template <typename Base>
962
952
AgentParser::basic_symbol<Base>::basic_symbol ()
963
953
: value ()
964
- , location ()
965
954
{}
966
955
967
956
template <typename Base>
@@ -1042,39 +1031,40 @@ namespace isc { namespace agent {
1042
1031
template <typename Base>
1043
1032
AgentParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const location_type& l)
1044
1033
: Base (t)
1034
+ , value ()
1045
1035
, location (l)
1046
1036
{}
1047
1037
1048
1038
template <typename Base>
1049
- AgentParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const ElementPtr& v, const location_type& l)
1039
+ AgentParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const ElementPtr v, const location_type& l)
1050
1040
: Base (t)
1051
1041
, value (v)
1052
1042
, location (l)
1053
1043
{}
1054
1044
1055
1045
template <typename Base>
1056
- AgentParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const bool & v, const location_type& l)
1046
+ AgentParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const bool v, const location_type& l)
1057
1047
: Base (t)
1058
1048
, value (v)
1059
1049
, location (l)
1060
1050
{}
1061
1051
1062
1052
template <typename Base>
1063
- AgentParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const double & v, const location_type& l)
1053
+ AgentParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const double v, const location_type& l)
1064
1054
: Base (t)
1065
1055
, value (v)
1066
1056
, location (l)
1067
1057
{}
1068
1058
1069
1059
template <typename Base>
1070
- AgentParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const int64_t & v, const location_type& l)
1060
+ AgentParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const int64_t v, const location_type& l)
1071
1061
: Base (t)
1072
1062
, value (v)
1073
1063
, location (l)
1074
1064
{}
1075
1065
1076
1066
template <typename Base>
1077
- AgentParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const std::string& v, const location_type& l)
1067
+ AgentParser::basic_symbol<Base>::basic_symbol (typename Base::kind_type t, const std::string v, const location_type& l)
1078
1068
: Base (t)
1079
1069
, value (v)
1080
1070
, location (l)
@@ -1221,7 +1211,7 @@ namespace isc { namespace agent {
1221
1211
// YYTOKNUM[NUM] -- (External) token number corresponding to the
1222
1212
// (internal) symbol number NUM (which must be that of a token). */
1223
1213
static
1224
- const unsigned short
1214
+ const unsigned short int
1225
1215
yytoken_number_[] =
1226
1216
{
1227
1217
0 , 256 , 257 , 258 , 259 , 260 , 261 , 262 , 263 , 264 ,
@@ -1492,9 +1482,9 @@ namespace isc { namespace agent {
1492
1482
}
1493
1483
1494
1484
1495
- #line 14 "agent_parser.yy" // lalr1.cc:380
1485
+ #line 14 "agent_parser.yy" // lalr1.cc:379
1496
1486
} } // isc::agent
1497
- #line 1498 "agent_parser.h" // lalr1.cc:380
1487
+ #line 1488 "agent_parser.h" // lalr1.cc:379
1498
1488
1499
1489
1500
1490
0 commit comments