36 #define yylex TQMakelex 38 #include "qmake_yacc.hpp" 44 #line 45 "tqmake_yacc.cpp" 50 # define YY_(msgid) dgettext ("bison-runtime", msgid) 54 # define YY_(msgid) msgid 59 #define YYUSE(e) ((void) (e)) 63 for (bool yydebugcond_ = yydebug_; yydebugcond_; yydebugcond_ = false) \ 69 # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ 73 *yycdebug_ << Title << ' '; \ 74 yy_symbol_print_ ((Type), (Value), (Location)); \ 75 *yycdebug_ << std::endl; \ 79 # define YY_REDUCE_PRINT(Rule) \ 82 yy_reduce_print_ (Rule); \ 85 # define YY_STACK_PRINT() \ 93 # define YY_SYMBOL_PRINT(Title, Type, Value, Location) 94 # define YY_REDUCE_PRINT(Rule) 95 # define YY_STACK_PRINT() 99 #define YYACCEPT goto yyacceptlab 100 #define YYABORT goto yyabortlab 101 #define YYERROR goto yyerrorlab 113 Parser::yytnamerr_ (
const char *yystr)
117 std::string yyr =
"";
118 char const *yyp = yystr;
125 goto do_not_strip_quotes;
129 goto do_not_strip_quotes;
138 do_not_strip_quotes: ;
147 Parser::Parser (TQMake::Lexer* lexer_yyarg, TQValueStack<ProjectAST*>& projects_yyarg,
int depth_yyarg)
149 yycdebug_ (&std::cerr),
151 projects (projects_yyarg),
166 Parser::yy_symbol_value_print_ (
int yytype,
180 Parser::yy_symbol_print_ (
int yytype,
183 *yycdebug_ << (yytype < yyntokens_ ?
"token" :
"nterm")
184 <<
' ' << yytname_[yytype] <<
" (" 185 << *yylocationp <<
": ";
186 yy_symbol_value_print_ (yytype, yyvaluep, yylocationp);
192 Parser::yydestruct_ (
const char* yymsg,
199 YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
210 Parser::yypop_ (
unsigned int n)
212 yystate_stack_.pop (n);
213 yysemantic_stack_.pop (n);
214 yylocation_stack_.pop (n);
247 int yychar = yyempty_;
257 int yyerrstatus_ = 0;
273 YYCDEBUG <<
"Starting parse" << std::endl;
280 yystate_stack_ = state_stack_type (0);
281 yysemantic_stack_ = semantic_stack_type (0);
282 yylocation_stack_ = location_stack_type (0);
283 yysemantic_stack_.push (yylval);
284 yylocation_stack_.push (yylloc);
288 yystate_stack_.push (yystate);
289 YYCDEBUG <<
"Entering state " << yystate << std::endl;
296 yyn = yypact_[yystate];
297 if (yyn == yypact_ninf_)
301 if (yychar == yyempty_)
303 YYCDEBUG <<
"Reading a token: ";
304 yychar = yylex (&yylval, lexer);
309 if (yychar <= yyeof_)
311 yychar = yytoken = yyeof_;
312 YYCDEBUG <<
"Now at end of input." << std::endl;
316 yytoken = yytranslate_ (yychar);
317 YY_SYMBOL_PRINT (
"Next token is", yytoken, &yylval, &yylloc);
323 if (yyn < 0 || yylast_ < yyn || yycheck_[yyn] != yytoken)
330 if (yyn == 0 || yyn == yytable_ninf_)
341 YY_SYMBOL_PRINT (
"Shifting", yytoken, &yylval, &yylloc);
344 if (yychar != yyeof_)
347 yysemantic_stack_.push (yylval);
348 yylocation_stack_.push (yylloc);
362 yyn = yydefact_[yystate];
379 yyval = yysemantic_stack_[yylen - 1];
381 yyval = yysemantic_stack_[0];
385 YYLLOC_DEFAULT (yyloc, slice, yylen);
387 YY_REDUCE_PRINT (yyn);
394 projects.push(projectAST);
401 projects.top()->addChildAST((yysemantic_stack_[(2) - (2)].node));
402 (yysemantic_stack_[(2) - (2)].node)->setDepth(depth);
409 (yyval.
node) = (yysemantic_stack_[(1) - (1)].node);
416 (yyval.
node) = (yysemantic_stack_[(1) - (1)].node);
423 (yyval.
node) = (yysemantic_stack_[(1) - (1)].node);
430 (yyval.
node) = (yysemantic_stack_[(1) - (1)].node);
445 node->
scopedID = (yysemantic_stack_[(5) - (1)].value);
446 node->
op = (yysemantic_stack_[(5) - (2)].value);
447 node->
values = (yysemantic_stack_[(5) - (3)].values) ;
448 node->
values.append( (yysemantic_stack_[(5) - (4)].value) );
449 node->
values.append( (yysemantic_stack_[(5) - (5)].value) );
450 node->
indent = (yysemantic_stack_[(5) - (3)].indent);
459 node->
scopedID = (yysemantic_stack_[(5) - (1)].value);
460 node->
op = (yysemantic_stack_[(5) - (2)].value);
461 node->
values = (yysemantic_stack_[(5) - (3)].values) ;
462 node->
values.append( (yysemantic_stack_[(5) - (4)].value) );
463 node->
indent = (yysemantic_stack_[(5) - (3)].indent);
472 node->
scopedID = (yysemantic_stack_[(5) - (1)].value);
473 node->
op = (yysemantic_stack_[(5) - (2)].value);
474 node->
values = (yysemantic_stack_[(5) - (3)].values) ;
475 node->
values.append( (yysemantic_stack_[(5) - (4)].value) );
476 node->
values.append( (yysemantic_stack_[(5) - (5)].value) );
477 node->
indent = (yysemantic_stack_[(5) - (3)].indent);
486 node->
scopedID = (yysemantic_stack_[(5) - (1)].value);
487 node->
op = (yysemantic_stack_[(5) - (2)].value);
488 node->
values = (yysemantic_stack_[(5) - (3)].values) ;
489 node->
values.append( (yysemantic_stack_[(5) - (4)].value) );
490 node->
values.append( (yysemantic_stack_[(5) - (5)].value) );
491 node->
indent = (yysemantic_stack_[(5) - (3)].indent);
500 node->
scopedID = (yysemantic_stack_[(4) - (1)].value);
501 node->
op = (yysemantic_stack_[(4) - (2)].value);
502 node->
values.append( (yysemantic_stack_[(4) - (3)].value) );
503 node->
values.append( (yysemantic_stack_[(4) - (4)].value) );
512 node->
scopedID = (yysemantic_stack_[(4) - (1)].value);
513 node->
op = (yysemantic_stack_[(4) - (2)].value);
514 node->
values.append( (yysemantic_stack_[(4) - (3)].value) );
523 node->
scopedID = (yysemantic_stack_[(4) - (1)].value);
524 node->
op = (yysemantic_stack_[(4) - (2)].value);
525 node->
values.append( (yysemantic_stack_[(4) - (3)].value) );
526 node->
values.append( (yysemantic_stack_[(4) - (4)].value) );
535 node->
scopedID = (yysemantic_stack_[(5) - (1)].value);
536 node->
op = (yysemantic_stack_[(5) - (2)].value);
537 node->
values = (yysemantic_stack_[(5) - (3)].values);
538 node->
values.append( (yysemantic_stack_[(5) - (4)].value) );
539 node->
values.append( (yysemantic_stack_[(5) - (5)].value) );
540 node->
indent = (yysemantic_stack_[(5) - (3)].indent);
548 (yyval.
values).append( (yysemantic_stack_[(3) - (2)].value) );
549 (yyval.
values).append( (yysemantic_stack_[(3) - (3)].value) );
556 (yyval.
values).append( (yysemantic_stack_[(2) - (2)].value) );
563 (yyval.
values).append( (yysemantic_stack_[(5) - (2)].value) );
564 (yyval.
values).append( (yysemantic_stack_[(5) - (3)].value) );
565 (yyval.
values).append( (yysemantic_stack_[(5) - (4)].value) );
566 (yyval.
values).append( (yysemantic_stack_[(5) - (5)].value) );
567 if( (yysemantic_stack_[(5) - (4)].indent) !=
"" && (yyval.indent) ==
"" )
568 (yyval.indent) = (yysemantic_stack_[(5) - (4)].indent);
575 (yyval.
values).append( (yysemantic_stack_[(5) - (2)].value) );
576 (yyval.
values).append( (yysemantic_stack_[(5) - (3)].value) );
577 (yyval.
values).append( (yysemantic_stack_[(5) - (4)].value) );
578 (yyval.
values).append( (yysemantic_stack_[(5) - (5)].value) );
579 if( (yysemantic_stack_[(5) - (4)].indent) !=
"" && (yyval.indent) ==
"" )
580 (yyval.indent) = (yysemantic_stack_[(5) - (4)].indent);
587 (yyval.
values) = TQStringList();
588 (yyval.
values).append( (yysemantic_stack_[(2) - (1)].value) );
589 (yyval.
values).append( (yysemantic_stack_[(2) - (2)].value) );
595 { (yyval.
value) = (yysemantic_stack_[(1) - (1)].value); ;}
600 { (yyval.
value) = (yysemantic_stack_[(1) - (1)].value); ;}
606 (yyval.
value) = (yysemantic_stack_[(1) - (1)].value);
607 (yyval.indent) = (yysemantic_stack_[(1) - (1)].value);
614 (yyval.
value) = TQString();
615 (yyval.indent) = TQString();
622 (yyval.
value) = (yysemantic_stack_[(1) - (1)].value);
629 (yyval.
value) = (yysemantic_stack_[(1) - (1)].value);
636 (yyval.
value) = (yysemantic_stack_[(1) - (1)].value);
643 (yyval.
value) = (yysemantic_stack_[(1) - (1)].value);
650 (yyval.
value) = (yysemantic_stack_[(1) - (1)].value);
658 projects.push(projectAST);
659 projects.top()->scopedID = (yysemantic_stack_[(1) - (1)].value);
667 (yyval.
node) = projects.pop();
676 projects.push(projectAST);
677 projects.top()->scopedID = (yysemantic_stack_[(4) - (1)].value);
678 projects.top()->args = (yysemantic_stack_[(4) - (3)].value);
682 if ((yysemantic_stack_[(4) - (1)].value).contains(
"include"))
685 includeAST->projectName = (yysemantic_stack_[(4) - (3)].value);
686 projects.top()->addChildAST(includeAST);
695 (yyval.
node) = projects.pop();
702 { (yyval.
value) = (yysemantic_stack_[(1) - (1)].value); ;}
707 { (yyval.
value) =
""; ;}
713 projects.top()->addChildAST((yysemantic_stack_[(2) - (2)].node));
714 (yysemantic_stack_[(2) - (2)].node)->setDepth(depth);
722 projects.push(projectAST);
723 projects.top()->scopedID =
"else";
724 projects.top()->args =
"";
732 (yyval.
node) = projects.pop();
748 node->
comment = (yysemantic_stack_[(1) - (1)].value);
755 #line 756 "tqmake_yacc.cpp" 758 YY_SYMBOL_PRINT (
"-> $$ =", yyr1_[yyn], &yyval, &yyloc);
764 yysemantic_stack_.push (yyval);
765 yylocation_stack_.push (yyloc);
769 yystate = yypgoto_[yyn - yyntokens_] + yystate_stack_[0];
770 if (0 <= yystate && yystate <= yylast_
771 && yycheck_[yystate] == yystate_stack_[0])
772 yystate = yytable_[yystate];
774 yystate = yydefgoto_[yyn - yyntokens_];
785 error (yylloc, yysyntax_error_ (yystate));
788 yyerror_range[0] = yylloc;
789 if (yyerrstatus_ == 3)
794 if (yychar <= yyeof_)
797 if (yychar == yyeof_)
802 yydestruct_ (
"Error: discarding", yytoken, &yylval, &yylloc);
823 yyerror_range[0] = yylocation_stack_[yylen - 1];
828 yystate = yystate_stack_[0];
839 yyn = yypact_[yystate];
840 if (yyn != yypact_ninf_)
843 if (0 <= yyn && yyn <= yylast_ && yycheck_[yyn] == yyterror_)
852 if (yystate_stack_.height () == 1)
855 yyerror_range[0] = yylocation_stack_[0];
856 yydestruct_ (
"Error: popping",
858 &yysemantic_stack_[0], &yylocation_stack_[0]);
860 yystate = yystate_stack_[0];
867 yyerror_range[1] = yylloc;
870 YYLLOC_DEFAULT (yyloc, (yyerror_range - 1), 2);
871 yysemantic_stack_.push (yylval);
872 yylocation_stack_.push (yyloc);
875 YY_SYMBOL_PRINT (
"Shifting", yystos_[yyn],
876 &yysemantic_stack_[0], &yylocation_stack_[0]);
892 if (yychar != yyeof_ && yychar != yyempty_)
893 yydestruct_ (
"Cleanup: discarding lookahead", yytoken, &yylval, &yylloc);
898 while (yystate_stack_.height () != 1)
900 yydestruct_ (
"Cleanup: popping",
901 yystos_[yystate_stack_[0]],
902 &yysemantic_stack_[0],
903 &yylocation_stack_[0]);
912 Parser::yysyntax_error_ (
int yystate)
917 int yyn = yypact_[yystate];
918 if (yypact_ninf_ < yyn && yyn <= yylast_)
922 int yyxbegin = yyn < 0 ? -yyn : 0;
925 int yychecklim = yylast_ - yyn + 1;
926 int yyxend = yychecklim < yyntokens_ ? yychecklim : yyntokens_;
928 for (
int x = yyxbegin; x < yyxend; ++x)
929 if (yycheck_[x + yyn] == x && x != yyterror_)
940 res =
"syntax error, unexpected ";
941 res += yytnamerr_ (yytname_[tok]);
945 for (
int x = yyxbegin; x < yyxend; ++x)
946 if (yycheck_[x + yyn] == x && x != yyterror_)
948 res += (!count++) ?
", expecting " :
" or ";
949 res += yytnamerr_ (yytname_[x]);
955 res = YY_(
"syntax error");
962 const signed char Parser::yypact_ninf_ = -44;
966 -44, 19, -44, -44, 8, 45, -44, -44, -44, -44,
967 -44, -44, -44, -44, -44, -44, -44, -44, -44, 12,
968 10, 31, -44, 24, -44, -15, -5, 8, -44, -44,
969 -44, -44, -44, 26, -44, 14, -44, -44, -44, -44,
970 -44, -44, -44, -44, 0, 31, -44, -44, -44, 18,
971 18, -44, -44, 20, 26, 26, 27, -44, -44, -44,
979 Parser::yydefact_[] =
981 2, 0, 5, 1, 3, 36, 49, 48, 4, 6,
982 7, 8, 9, 10, 31, 32, 33, 34, 35, 41,
983 30, 44, 40, 0, 29, 30, 0, 0, 5, 37,
984 38, 28, 27, 29, 23, 0, 15, 17, 21, 20,
985 16, 26, 19, 43, 0, 44, 22, 11, 18, 13,
986 14, 12, 42, 47, 0, 0, 0, 39, 24, 25,
994 -44, -44, -44, 7, 29, -44, -32, -44, 22, -25,
995 -44, -44, -44, -44, -44, -44, -43, -44, -44, -44,
1001 Parser::yydefgoto_[] =
1003 -1, 1, 2, 4, 8, 9, 41, 25, 42, 26,
1004 20, 10, 21, 11, 45, 23, 29, 57, 61, 12,
1011 const signed char Parser::yytable_ninf_ = -31;
1013 Parser::yytable_[] =
1015 35, 46, 53, 5, 31, 32, 33, 36, 37, 38,
1016 39, 5, 6, 7, 31, 32, 52, 40, 62, 3,
1017 6, 7, 58, 59, 54, 55, 47, 48, 49, 50,
1018 22, 24, -30, -30, 30, 44, 51, -30, -30, 24,
1019 38, 39, 27, 56, 60, 31, 32, 34, 28, 14,
1020 15, 16, 17, 18, 19, 63, 43
1025 Parser::yycheck_[] =
1027 25, 33, 45, 3, 19, 20, 21, 12, 13, 14,
1028 15, 3, 12, 13, 19, 20, 16, 22, 61, 0,
1029 12, 13, 54, 55, 49, 50, 12, 13, 14, 15,
1030 18, 21, 14, 15, 10, 28, 22, 19, 20, 21,
1031 14, 15, 11, 23, 17, 19, 20, 25, 17, 4,
1032 5, 6, 7, 8, 9, 16, 27
1040 0, 25, 26, 0, 27, 3, 12, 13, 28, 29,
1041 35, 37, 43, 44, 4, 5, 6, 7, 8, 9,
1042 34, 36, 18, 39, 21, 31, 33, 11, 17, 40,
1043 10, 19, 20, 21, 32, 33, 12, 13, 14, 15,
1044 22, 30, 32, 28, 27, 38, 30, 12, 13, 14,
1045 15, 22, 16, 40, 33, 33, 23, 41, 30, 30,
1052 const unsigned short int 1053 Parser::yytoken_number_[] =
1055 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
1056 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
1065 0, 24, 26, 25, 27, 27, 28, 28, 28, 28,
1066 28, 29, 29, 29, 29, 29, 29, 29, 29, 30,
1067 30, 30, 31, 31, 31, 31, 31, 32, 32, 33,
1068 33, 34, 34, 34, 34, 34, 36, 35, 38, 37,
1069 39, 39, 40, 40, 40, 42, 41, 41, 43, 44
1076 0, 2, 0, 2, 2, 0, 1, 1, 1, 1,
1077 1, 5, 5, 5, 5, 4, 4, 4, 5, 1,
1078 1, 1, 3, 2, 5, 5, 2, 1, 1, 1,
1079 0, 1, 1, 1, 1, 1, 0, 3, 0, 7,
1080 1, 0, 3, 2, 0, 0, 5, 0, 1, 1
1083 #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE 1087 const Parser::yytname_[] =
1089 "$end",
"error",
"$undefined",
"ID_SIMPLE",
"EQ",
"PLUSEQ",
"MINUSEQ",
1090 "STAREQ",
"TILDEEQ",
"LBRACE",
"RBRACE",
"COLON",
"NEWLINE",
"COMMENT",
1091 "CONT",
"COMMENT_CONT",
"RCURLY",
"LCURLY",
"ID_ARGS",
1092 "QUOTED_VARIABLE_VALUE",
"VARIABLE_VALUE",
"LIST_WS",
"ENDOFFILE",
1093 "\"else\"",
"$accept",
"project",
"@1",
"statements",
"statement",
1094 "variable_assignment",
"possible_value",
"multiline_values",
1095 "variable_value",
"listws",
"operator",
"scope",
"@2",
"function_call",
1096 "@3",
"function_args",
"scope_body",
"else_statement",
"@4",
"comment",
1103 const Parser::rhs_number_type
1106 25, 0, -1, -1, 26, 27, -1, 27, 28, -1,
1107 -1, 29, -1, 35, -1, 37, -1, 43, -1, 44,
1108 -1, 3, 34, 31, 33, 12, -1, 3, 34, 31,
1109 33, 22, -1, 3, 34, 31, 33, 14, -1, 3,
1110 34, 31, 33, 15, -1, 3, 34, 33, 12, -1,
1111 3, 34, 33, 22, -1, 3, 34, 33, 13, -1,
1112 3, 34, 31, 33, 13, -1, 32, -1, 15, -1,
1113 14, -1, 31, 21, 30, -1, 31, 32, -1, 31,
1114 33, 14, 33, 30, -1, 31, 33, 15, 33, 30,
1115 -1, 33, 30, -1, 20, -1, 19, -1, 21, -1,
1116 -1, 4, -1, 5, -1, 6, -1, 7, -1, 8,
1117 -1, -1, 3, 36, 40, -1, -1, 3, 9, 39,
1118 10, 38, 40, 41, -1, 18, -1, -1, 17, 27,
1119 16, -1, 11, 28, -1, -1, -1, 23, 17, 42,
1120 40, 16, -1, -1, 13, -1, 12, -1
1128 0, 0, 3, 4, 7, 10, 11, 13, 15, 17,
1129 19, 21, 27, 33, 39, 45, 50, 55, 60, 66,
1130 68, 70, 72, 76, 79, 85, 91, 94, 96, 98,
1131 100, 101, 103, 105, 107, 109, 111, 112, 116, 117,
1132 125, 127, 128, 132, 135, 136, 137, 143, 144, 146
1136 const unsigned short int 1137 Parser::yyrline_[] =
1139 0, 144, 144, 144, 151, 156, 159, 163, 167, 171,
1140 175, 181, 192, 202, 213, 224, 233, 241, 250, 263,
1141 263, 263, 265, 270, 274, 283, 292, 301, 302, 306,
1142 312, 317, 321, 325, 329, 333, 340, 339, 354, 353,
1143 378, 379, 382, 383, 388, 392, 391, 405, 410, 418
1148 Parser::yystack_print_ ()
1150 *yycdebug_ <<
"Stack now";
1151 for (state_stack_type::const_iterator i = yystate_stack_.begin ();
1152 i != yystate_stack_.end (); ++i)
1153 *yycdebug_ <<
' ' << *i;
1154 *yycdebug_ << std::endl;
1159 Parser::yy_reduce_print_ (
int yyrule)
1161 unsigned int yylno = yyrline_[yyrule];
1162 int yynrhs = yyr2_[yyrule];
1164 *yycdebug_ <<
"Reducing stack by rule " << yyrule - 1
1165 <<
" (line " << yylno <<
"), ";
1167 for (
int yyi = 0; yyi < yynrhs; yyi++)
1168 YY_SYMBOL_PRINT (
" $" << yyi + 1 <<
" =",
1169 yyrhs_[yyprhs_[yyrule] + yyi],
1170 &(yysemantic_stack_[(yynrhs) - (yyi + 1)]),
1171 &(yylocation_stack_[(yynrhs) - (yyi + 1)]));
1176 Parser::token_number_type
1177 Parser::yytranslate_ (
int t)
1180 const token_number_type
1183 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1184 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1185 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1186 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1187 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1188 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1189 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1190 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1191 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1192 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1193 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1194 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1195 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1196 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1197 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1198 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1199 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1200 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1201 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1202 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1203 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1204 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1205 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1206 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1207 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1208 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
1209 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
1210 15, 16, 17, 18, 19, 20, 21, 22, 23
1212 if ((
unsigned int) t <= yyuser_token_number_max_)
1213 return translate_table[t];
1215 return yyundef_token_;
1218 const int Parser::yyeof_ = 0;
1219 const int Parser::yylast_ = 56;
1220 const int Parser::yynnts_ = 21;
1221 const int Parser::yyempty_ = -2;
1222 const int Parser::yyfinal_ = 3;
1223 const int Parser::yyterror_ = 1;
1224 const int Parser::yyerrcode_ = 256;
1225 const int Parser::yyntokens_ = 24;
1227 const unsigned int Parser::yyuser_token_number_max_ = 278;
1228 const Parser::token_number_type Parser::yyundef_token_ = 2;
1232 #line 421 "qmake.yy" 1238 void Parser::error(
const location_type& ,
const std::string& m)
1240 std::cerr << m << std::endl;
void setDepth(int depth)
Sets the depth of the node in AST.
TQStringList values
List of values.
void set_debug_stream(std::ostream &)
Set the current debugging stream.
void set_debug_level(debug_level_type l)
Set the current debugging level.
int debug_level_type
Type for debugging levels.
TQString scopedID
Scoped name of the variable.
TQStringList values
Type of semantic value for "multiline_values" grammar rule.
Parser(TQMake::Lexer *lexer_yyarg, TQValueStack< ProjectAST *> &projects_yyarg, int depth_yyarg)
Build a parser object.
Present a slice of the top of a stack.
TQString value
Type of semantic value for simple grammar rules.
virtual int parse()
Parse.
std::ostream & debug_stream() const
The current debugging stream.
AST * node
Type of semantic value for grammar rules which are parts of AST.
debug_level_type debug_level() const
The current debugging level.
TQString indent
Indentation of multiline values.