349#line 408 "bison_parser.cpp"
357#line 414 "bison_parser.cpp"
366template <
typename Base>
367void Parser::yy_print_(std::ostream& yyo,
368 const basic_symbol<Base>& yysym)
const {
369 std::ostream& yyoutput = yyo;
372 yyo <<
"empty symbol";
375 yyo << (yykind <
YYNTOKENS ?
"token" :
"nterm") <<
' ' << yysym.name()
376 <<
" (" << yysym.location <<
": ";
390#if 201103L <= YY_CPLUSPLUS
401std::ostream& Parser::debug_stream()
const {
return *yycdebug_; }
403void Parser::set_debug_stream(std::ostream& o) { yycdebug_ = &o; }
405Parser::debug_level_type Parser::debug_level()
const {
return yydebug_; }
407void Parser::set_debug_level(debug_level_type l) { yydebug_ = l; }
434 int yyerrstatus_ = 0;
459#line 557 "bison_parser.cpp"
499 YYCDEBUG <<
"Caught exception: " << yyexc.what() <<
'\n';
532 if (yyerrstatus_) --yyerrstatus_;
543 if (yyn == 0)
goto yyerrlab;
567 stack_type::slice range(
yystack_, yylen);
585#line 698 "bison_parser.cpp"
592 ->push_back((
yystack_[0].value.integerVal));
595#line 707 "bison_parser.cpp"
603#line 715 "bison_parser.cpp"
611#line 723 "bison_parser.cpp"
620 delete (
yystack_[1].value.stringVal);
622#line 732 "bison_parser.cpp"
628 std::vector<double> values;
629 values.push_back((
yystack_[2].value.doubleVal));
630 values.push_back((
yystack_[1].value.doubleVal));
631 values.push_back((
yystack_[0].value.doubleVal));
634 (
yystack_[3].value.integerVal), 3, values);
635 delete (
yystack_[4].value.stringVal);
637#line 745 "bison_parser.cpp"
645 std::vector<double> values;
646 values.push_back((
yystack_[8].value.doubleVal));
647 values.push_back((
yystack_[7].value.doubleVal));
648 values.push_back((
yystack_[6].value.doubleVal));
649 std::vector<double> information;
650 information.push_back((
yystack_[5].value.doubleVal));
651 information.push_back((
yystack_[4].value.doubleVal));
652 information.push_back((
yystack_[3].value.doubleVal));
653 information.push_back((
yystack_[2].value.doubleVal));
654 information.push_back((
yystack_[1].value.doubleVal));
655 information.push_back((
yystack_[0].value.doubleVal));
658 (
yystack_[11].value.integerVal), values.size(),
660 values, information);
661 delete (
yystack_[12].value.stringVal);
663#line 765 "bison_parser.cpp"
672 delete (
yystack_[1].value.stringVal);
674#line 774 "bison_parser.cpp"
684 delete (
yystack_[7].value.stringVal);
686#line 783 "bison_parser.cpp"
696 std::vector<double> values;
697 values.push_back((
yystack_[26].value.doubleVal));
698 values.push_back((
yystack_[25].value.doubleVal));
699 values.push_back((
yystack_[24].value.doubleVal));
700 values.push_back((
yystack_[23].value.doubleVal));
701 values.push_back((
yystack_[22].value.doubleVal));
702 values.push_back((
yystack_[21].value.doubleVal));
703 std::vector<double> information;
704 information.push_back((
yystack_[20].value.doubleVal));
705 information.push_back((
yystack_[19].value.doubleVal));
706 information.push_back((
yystack_[18].value.doubleVal));
707 information.push_back((
yystack_[17].value.doubleVal));
708 information.push_back((
yystack_[16].value.doubleVal));
709 information.push_back((
yystack_[15].value.doubleVal));
710 information.push_back((
yystack_[14].value.doubleVal));
711 information.push_back((
yystack_[13].value.doubleVal));
712 information.push_back((
yystack_[12].value.doubleVal));
713 information.push_back((
yystack_[11].value.doubleVal));
714 information.push_back((
yystack_[10].value.doubleVal));
715 information.push_back((
yystack_[9].value.doubleVal));
716 information.push_back((
yystack_[8].value.doubleVal));
717 information.push_back((
yystack_[7].value.doubleVal));
718 information.push_back((
yystack_[6].value.doubleVal));
719 information.push_back((
yystack_[5].value.doubleVal));
720 information.push_back((
yystack_[4].value.doubleVal));
721 information.push_back((
yystack_[3].value.doubleVal));
722 information.push_back((
yystack_[2].value.doubleVal));
723 information.push_back((
yystack_[1].value.doubleVal));
724 information.push_back((
yystack_[0].value.doubleVal));
727 (
yystack_[29].value.integerVal), values.size(),
729 (
yystack_[27].value.integerVal), values, information);
730 delete (
yystack_[30].value.stringVal);
732#line 821 "bison_parser.cpp"
738 std::vector<int> values;
739 values.push_back((
yystack_[0].value.integerVal));
742#line 831 "bison_parser.cpp"
750#line 839 "bison_parser.cpp"
758#line 847 "bison_parser.cpp"
768#line 856 "bison_parser.cpp"
776#line 864 "bison_parser.cpp"
784#line 872 "bison_parser.cpp"
792#line 880 "bison_parser.cpp"
800#line 888 "bison_parser.cpp"
808#line 896 "bison_parser.cpp"
815 delete (
yystack_[1].value.commandNode);
817#line 905 "bison_parser.cpp"
820#line 909 "bison_parser.cpp"
828 YYCDEBUG <<
"Caught exception: " << yyexc.what() <<
'\n';
854 if (yyerrstatus_ == 3) {
861 else if (!yyla.
empty()) {
895 if (0 <= yyn && yyn <=
yylast_ &&
955 YYCDEBUG <<
"Exception caught: cleaning lookahead and stack\n";
981 char const* yyp = yystr;
983 for (;;)
switch (*++yyp) {
986 goto do_not_strip_quotes;
990 goto do_not_strip_quotes;
1002 do_not_strip_quotes:;
1014 : yyparser_(yyparser), yyla_(yyla) {}
1021 const int yyn =
yypact_[+yyparser_.yystack_[0].state];
1026 const int yyxbegin = yyn < 0 ? -yyn : 0;
1028 const int yychecklim =
yylast_ - yyn + 1;
1030 for (
int yyx = yyxbegin; yyx < yyxend; ++yyx)
1035 else if (yycount == yyargn)
1075 if (yyarg) yyarg[0] = yyctx.
token();
1076 int yyn = yyctx.
expected_tokens(yyarg ? yyarg + 1 : yyarg, yyargn - 1);
1085 enum { YYARGS_MAX = 5 };
1092#define YYCASE_(N, S) \
1098 YYCASE_(1,
YY_(
"syntax error, unexpected %s"));
1099 YYCASE_(2,
YY_(
"syntax error, unexpected %s, expecting %s"));
1100 YYCASE_(3,
YY_(
"syntax error, unexpected %s, expecting %s or %s"));
1101 YYCASE_(4,
YY_(
"syntax error, unexpected %s, expecting %s or %s or %s"));
1104 YY_(
"syntax error, unexpected %s, expecting %s or %s or %s or %s"));
1110 std::ptrdiff_t yyi = 0;
1111 for (
char const* yyp = yyformat; *yyp; ++yyp)
1112 if (yyp[0] ==
'%' && yyp[1] ==
's' && yyi < yycount) {
1125 -24, 54, -24, -24, -7, 1, -24, 10, -24, -24, -24, -24, -24, 9, 31, 51,
1126 52, 55, -24, -24, 56, -24, 4, 4, 58, 59, -24, -24, -24, 4, 4, 60,
1127 61, 4, 4, 4, 4, -24, 4, 4, 4, 4, 4, 4, 4, 4, 4, -24,
1128 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, -24, 4, 4, 4, 4, 4,
1129 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, -24};
1132 21, 0, 1, 22, 0, 0, 13, 14, 16, 17, 18, 19, 20, 0, 0, 0, 0, 0, 12, 2,
1133 15, 23, 6, 9, 0, 0, 3, 4, 5, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0,
1134 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0,
1135 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11};
1138 -24, -24, -24, -24, -24};
1143 30, 14, 15, 16, 17, 18, 33, 34, 27, 28, 37, 38, 39, 40, 19, 41, 42, 43,
1144 44, 45, 46, 47, 48, 49, 21, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 22,
1145 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77,
1146 2, 23, 24, 3, 0, 25, 26, 4, 31, 32, 35, 36, 5, 6, 7};
1149 23, 8, 9, 10, 11, 4, 29, 30, 4, 5, 33, 34, 35, 36, 4, 38, 39, 40,
1150 41, 42, 43, 44, 45, 46, 15, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 4,
1151 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76,
1152 0, 4, 4, 3, -1, 4, 4, 7, 4, 4, 4, 4, 12, 13, 14};
1155 0, 25, 0, 3, 7, 12, 13, 14, 19, 20, 21, 22, 23, 24, 8, 9,
1156 10, 11, 4, 4, 17, 15, 4, 4, 4, 4, 4, 4, 5, 18, 18, 4,
1157 4, 18, 18, 4, 4, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
1158 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
1159 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18};
1161const signed char Parser::yyr1_[] = {0, 16, 17, 17, 18, 18, 19, 19,
1162 19, 20, 20, 20, 21, 22, 23, 23,
1163 24, 24, 24, 24, 24, 25, 25, 25};
1165const signed char Parser::yyr2_[] = {0, 2, 1, 2, 1, 1, 3, 6, 14, 3, 9, 32,
1166 2, 1, 1, 2, 1, 1, 1, 1, 1, 0, 2, 3};
1168#if SLAMPARSERDEBUG || 1
1173 "\"invalid token\"",
1201const unsigned char Parser::yyrline_[] = {
1202 0, 103, 103, 108, 114, 118, 123, 128, 137, 154, 159, 164,
1203 199, 206, 211, 215, 221, 225, 229, 233, 237, 242, 243, 244};
1205void Parser::yy_stack_print_()
const {
1206 *yycdebug_ <<
"Stack now";
1209 *yycdebug_ <<
' ' <<
int(i->state);
1213void Parser::yy_reduce_print_(
int yyrule)
const {
1214 int yylno = yyrline_[yyrule];
1215 int yynrhs =
yyr2_[yyrule];
1217 *yycdebug_ <<
"Reducing stack by rule " << yyrule - 1 <<
" (line " << yylno
1220 for (
int yyi = 0; yyi < yynrhs; yyi++)
1228 static const signed char translate_table[] = {
1229 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1230 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1231 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 15, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1232 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1233 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1234 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1235 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1236 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1237 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1238 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1239 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1240 2, 2, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14};
1242 const int code_max = 269;
1246 else if (t <= code_max)
1253#line 1458 "bison_parser.cpp"
1255#line 252 "parser.yy"
1259 const std::string& m) {