Changeset 143763 in webkit
- Timestamp:
- Feb 22, 2013, 11:44:44 AM (12 years ago)
- Location:
- trunk/Source/ThirdParty/ANGLE
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/ThirdParty/ANGLE/ChangeLog
r143742 r143763 1 2013-02-22 Kenneth Russell <kbr@google.com> 2 3 Mac OS build broken by new ExpressionParser.cpp 4 https://bugs.webkit.org/show_bug.cgi?id=110629 5 6 Unreviewed build fix. Regenerated ExpressionParser with Bison 2.3. 7 8 * src/compiler/preprocessor/ExpressionParser.cpp: 9 1 10 2013-02-21 Zhenyao Mo <zmo@google.com> 2 11 -
trunk/Source/ThirdParty/ANGLE/src/compiler/preprocessor/ExpressionParser.cpp
r143742 r143763 1 /* A Bison parser, made by GNU Bison 2. 4.2. */1 /* A Bison parser, made by GNU Bison 2.3. */ 2 2 3 3 /* Skeleton implementation for Bison's Yacc-like parsers in C 4 5 Copyright (C) 1984, 1989-1990, 2000-2006, 2009-2010 Free Software6 F oundation, Inc.7 8 This program is free software :you can redistribute it and/or modify4 5 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 6 Free Software Foundation, Inc. 7 8 This program is free software; you can redistribute it and/or modify 9 9 it under the terms of the GNU General Public License as published by 10 the Free Software Foundation , either version 3 of the License, or11 (at your option)any later version.12 10 the Free Software Foundation; either version 2, or (at your option) 11 any later version. 12 13 13 This program is distributed in the hope that it will be useful, 14 14 but WITHOUT ANY WARRANTY; without even the implied warranty of 15 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 16 GNU General Public License for more details. 17 17 18 18 You should have received a copy of the GNU General Public License 19 along with this program. If not, see <http://www.gnu.org/licenses/>. */ 19 along with this program; if not, write to the Free Software 20 Foundation, Inc., 51 Franklin Street, Fifth Floor, 21 Boston, MA 02110-1301, USA. */ 20 22 21 23 /* As a special exception, you may create a larger work that contains … … 28 30 Bison output files to be licensed under the GNU General Public 29 31 License without this special exception. 30 32 31 33 This special exception was added by the Free Software Foundation in 32 34 version 2.2 of Bison. */ … … 46 48 47 49 /* Bison version. */ 48 #define YYBISON_VERSION "2. 4.2"50 #define YYBISON_VERSION "2.3" 49 51 50 52 /* Skeleton name. */ … … 54 56 #define YYPURE 1 55 57 56 /* Push parsers. */57 #define YYPUSH 058 59 /* Pull parsers. */60 #define YYPULL 161 62 58 /* Using locations. */ 63 59 #define YYLSP_NEEDED 0 64 60 65 61 /* Substitute the variable and function names. */ 66 #define yyparse ppparse 67 #define yylex pplex 68 #define yyerror pperror 69 #define yylval pplval 70 #define yychar ppchar 71 #define yydebug ppdebug 72 #define yynerrs ppnerrs 73 74 75 /* Copy the first part of user declarations. */ 76 77 78 // 79 // Copyright (c) 2012 The ANGLE Project Authors. All rights reserved. 80 // Use of this source code is governed by a BSD-style license that can be 81 // found in the LICENSE file. 82 // 83 84 // This file is auto-generated by generate_parser.sh. DO NOT EDIT! 85 86 #if defined(__GNUC__) 87 // Triggered by the auto-generated pplval variable. 88 #if !defined(__clang__) && ((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7)) 89 #pragma GCC diagnostic ignored "-Wmaybe-uninitialized" 90 #else 91 #pragma GCC diagnostic ignored "-Wuninitialized" 92 #endif 93 #elif defined(_MSC_VER) 94 #pragma warning(disable: 4065 4701) 95 #endif 96 97 #include "ExpressionParser.h" 98 99 #include <cassert> 100 #include <sstream> 101 102 #include "DiagnosticsBase.h" 103 #include "Lexer.h" 104 #include "Token.h" 105 106 #if defined(_MSC_VER) 107 typedef __int64 YYSTYPE; 108 #else 109 #include <stdint.h> 110 typedef intmax_t YYSTYPE; 111 #endif // _MSC_VER 112 #define YYENABLE_NLS 0 113 #define YYLTYPE_IS_TRIVIAL 1 114 #define YYSTYPE_IS_TRIVIAL 1 115 #define YYSTYPE_IS_DECLARED 1 116 117 namespace { 118 struct Context 119 { 120 pp::Diagnostics* diagnostics; 121 pp::Lexer* lexer; 122 pp::Token* token; 123 int* result; 124 }; 125 } // namespace 126 127 128 static int yylex(YYSTYPE* lvalp, Context* context); 129 static void yyerror(Context* context, const char* reason); 130 131 132 133 /* Enabling traces. */ 134 #ifndef YYDEBUG 135 # define YYDEBUG 0 136 #endif 137 138 /* Enabling verbose error messages. */ 139 #ifdef YYERROR_VERBOSE 140 # undef YYERROR_VERBOSE 141 # define YYERROR_VERBOSE 1 142 #else 143 # define YYERROR_VERBOSE 0 144 #endif 145 146 /* Enabling the token table. */ 147 #ifndef YYTOKEN_TABLE 148 # define YYTOKEN_TABLE 0 149 #endif 62 #define yyparse ppparse 63 #define yylex pplex 64 #define yyerror pperror 65 #define yylval pplval 66 #define yychar ppchar 67 #define yydebug ppdebug 68 #define yynerrs ppnerrs 150 69 151 70 … … 168 87 }; 169 88 #endif 170 171 89 /* Tokens. */ 90 #define TOK_CONST_INT 258 91 #define TOK_OP_OR 259 92 #define TOK_OP_AND 260 93 #define TOK_OP_NE 261 94 #define TOK_OP_EQ 262 95 #define TOK_OP_GE 263 96 #define TOK_OP_LE 264 97 #define TOK_OP_RIGHT 265 98 #define TOK_OP_LEFT 266 99 #define TOK_UNARY 267 100 101 102 103 104 /* Copy the first part of user declarations. */ 105 106 107 // 108 // Copyright (c) 2012 The ANGLE Project Authors. All rights reserved. 109 // Use of this source code is governed by a BSD-style license that can be 110 // found in the LICENSE file. 111 // 112 113 // This file is auto-generated by generate_parser.sh. DO NOT EDIT! 114 115 #if defined(__GNUC__) 116 // Triggered by the auto-generated pplval variable. 117 #if !defined(__clang__) && ((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7)) 118 #pragma GCC diagnostic ignored "-Wmaybe-uninitialized" 119 #else 120 #pragma GCC diagnostic ignored "-Wuninitialized" 121 #endif 122 #elif defined(_MSC_VER) 123 #pragma warning(disable: 4065 4701) 124 #endif 125 126 #include "ExpressionParser.h" 127 128 #include <cassert> 129 #include <sstream> 130 131 #include "DiagnosticsBase.h" 132 #include "Lexer.h" 133 #include "Token.h" 134 135 #if defined(_MSC_VER) 136 typedef __int64 YYSTYPE; 137 #else 138 #include <stdint.h> 139 typedef intmax_t YYSTYPE; 140 #endif // _MSC_VER 141 #define YYENABLE_NLS 0 142 #define YYLTYPE_IS_TRIVIAL 1 143 #define YYSTYPE_IS_TRIVIAL 1 144 #define YYSTYPE_IS_DECLARED 1 145 146 namespace { 147 struct Context 148 { 149 pp::Diagnostics* diagnostics; 150 pp::Lexer* lexer; 151 pp::Token* token; 152 int* result; 153 }; 154 } // namespace 155 156 157 static int yylex(YYSTYPE* lvalp, Context* context); 158 static void yyerror(Context* context, const char* reason); 159 160 161 /* Enabling traces. */ 162 #ifndef YYDEBUG 163 # define YYDEBUG 0 164 #endif 165 166 /* Enabling verbose error messages. */ 167 #ifdef YYERROR_VERBOSE 168 # undef YYERROR_VERBOSE 169 # define YYERROR_VERBOSE 1 170 #else 171 # define YYERROR_VERBOSE 0 172 #endif 173 174 /* Enabling the token table. */ 175 #ifndef YYTOKEN_TABLE 176 # define YYTOKEN_TABLE 0 177 #endif 172 178 173 179 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED 174 180 typedef int YYSTYPE; 175 # define YYSTYPE_IS_TRIVIAL 1176 181 # define yystype YYSTYPE /* obsolescent; will be withdrawn */ 177 182 # define YYSTYPE_IS_DECLARED 1 178 #endif 183 # define YYSTYPE_IS_TRIVIAL 1 184 #endif 185 179 186 180 187 181 188 /* Copy the second part of user declarations. */ 182 189 190 191 /* Line 216 of yacc.c. */ 183 192 184 193 … … 256 265 || defined __cplusplus || defined _MSC_VER) 257 266 static int 258 YYID (int yyi)267 YYID (int i) 259 268 #else 260 269 static int 261 YYID ( yyi)262 int yyi;263 #endif 264 { 265 return yyi;270 YYID (i) 271 int i; 272 #endif 273 { 274 return i; 266 275 } 267 276 #endif … … 344 353 union yyalloc 345 354 { 346 yytype_int16 yyss _alloc;347 YYSTYPE yyvs _alloc;348 };355 yytype_int16 yyss; 356 YYSTYPE yyvs; 357 }; 349 358 350 359 /* The size of the maximum gap between one aligned stack and the next. */ … … 380 389 stack. Advance YYPTR to a properly aligned location for the next 381 390 stack. */ 382 # define YYSTACK_RELOCATE(Stack _alloc, Stack)\391 # define YYSTACK_RELOCATE(Stack) \ 383 392 do \ 384 393 { \ 385 394 YYSIZE_T yynewbytes; \ 386 YYCOPY (&yyptr->Stack _alloc, Stack, yysize);\387 Stack = &yyptr->Stack _alloc;\395 YYCOPY (&yyptr->Stack, Stack, yysize); \ 396 Stack = &yyptr->Stack; \ 388 397 yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ 389 398 yyptr += yynewbytes / sizeof (*yyptr); \ … … 474 483 static const yytype_uint8 yyrline[] = 475 484 { 476 0, 9 0, 90, 97, 98, 101, 104, 107, 110, 113,477 11 6, 119, 122, 125, 128, 131, 134, 137, 140, 143,478 15 6, 169, 172, 175, 178, 181, 184485 0, 91, 91, 98, 99, 102, 105, 108, 111, 114, 486 117, 120, 123, 126, 129, 132, 135, 138, 141, 144, 487 157, 170, 173, 176, 179, 182, 185 479 488 }; 480 489 #endif … … 631 640 /* Like YYERROR except do call yyerror. This remains here temporarily 632 641 to ease the transition to the new meaning of YYERROR, for GCC. 633 Once GCC version 2 has supplanted version 1, this can go. However, 634 YYFAIL appears to be in use. Nevertheless, it is formally deprecated 635 in Bison 2.4.2's NEWS entry, where a plan to phase it out is 636 discussed. */ 642 Once GCC version 2 has supplanted version 1, this can go. */ 637 643 638 644 #define YYFAIL goto yyerrlab 639 #if defined YYFAIL640 /* This is here to suppress warnings from the GCC cpp's641 -Wunused-macros. Normally we don't worry about that warning, but642 some users do, and we want to make it easy for users to remove643 YYFAIL uses, which will produce warnings from Bison 2.5. */644 #endif645 645 646 646 #define YYRECOVERING() (!!yyerrstatus) … … 813 813 || defined __cplusplus || defined _MSC_VER) 814 814 static void 815 yy_stack_print (yytype_int16 * yybottom, yytype_int16 *yytop)815 yy_stack_print (yytype_int16 *bottom, yytype_int16 *top) 816 816 #else 817 817 static void 818 yy_stack_print ( yybottom, yytop)819 yytype_int16 * yybottom;820 yytype_int16 * yytop;818 yy_stack_print (bottom, top) 819 yytype_int16 *bottom; 820 yytype_int16 *top; 821 821 #endif 822 822 { 823 823 YYFPRINTF (stderr, "Stack now"); 824 for (; yybottom <= yytop; yybottom++) 825 { 826 int yybot = *yybottom; 827 YYFPRINTF (stderr, " %d", yybot); 828 } 824 for (; bottom <= top; ++bottom) 825 YYFPRINTF (stderr, " %d", *bottom); 829 826 YYFPRINTF (stderr, "\n"); 830 827 } … … 861 858 for (yyi = 0; yyi < yynrhs; yyi++) 862 859 { 863 YYFPRINTF(stderr, " $%d = ", yyi + 1);860 fprintf (stderr, " $%d = ", yyi + 1); 864 861 yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi], 865 862 &(yyvsp[(yyi + 1) - (yynrhs)]) 866 863 , context); 867 YYFPRINTF(stderr, "\n");864 fprintf (stderr, "\n"); 868 865 } 869 866 } … … 1150 1147 } 1151 1148 1149 1150 1152 1151 /* Prevent warnings from -Wmissing-prototypes. */ 1152 1153 1153 #ifdef YYPARSE_PARAM 1154 1154 #if defined __STDC__ || defined __cplusplus … … 1169 1169 1170 1170 1171 /*-------------------------. 1172 | yyparse or yypush_parse. | 1173 `-------------------------*/ 1171 1172 /*----------. 1173 | yyparse. | 1174 `----------*/ 1174 1175 1175 1176 #ifdef YYPARSE_PARAM … … 1195 1196 #endif 1196 1197 { 1197 /* The lookahead symbol. */1198 /* The look-ahead symbol. */ 1198 1199 int yychar; 1199 1200 1200 /* The semantic value of the look ahead symbol. */1201 /* The semantic value of the look-ahead symbol. */ 1201 1202 YYSTYPE yylval; 1202 1203 1203 /* Number of syntax errors so far. */ 1204 int yynerrs; 1205 1206 int yystate; 1207 /* Number of tokens to shift before error messages enabled. */ 1208 int yyerrstatus; 1209 1210 /* The stacks and their tools: 1211 `yyss': related to states. 1212 `yyvs': related to semantic values. 1213 1214 Refer to the stacks thru separate pointers, to allow yyoverflow 1215 to reallocate them elsewhere. */ 1216 1217 /* The state stack. */ 1218 yytype_int16 yyssa[YYINITDEPTH]; 1219 yytype_int16 *yyss; 1220 yytype_int16 *yyssp; 1221 1222 /* The semantic value stack. */ 1223 YYSTYPE yyvsa[YYINITDEPTH]; 1224 YYSTYPE *yyvs; 1225 YYSTYPE *yyvsp; 1226 1227 YYSIZE_T yystacksize; 1228 1204 /* Number of syntax errors so far. */ 1205 int yynerrs; 1206 1207 int yystate; 1229 1208 int yyn; 1230 1209 int yyresult; 1231 /* Lookahead token as an internal (translated) token number. */ 1232 int yytoken; 1233 /* The variables used to return semantic value and location from the 1234 action routines. */ 1235 YYSTYPE yyval; 1236 1210 /* Number of tokens to shift before error messages enabled. */ 1211 int yyerrstatus; 1212 /* Look-ahead token as an internal (translated) token number. */ 1213 int yytoken = 0; 1237 1214 #if YYERROR_VERBOSE 1238 1215 /* Buffer for error messages, and its allocated size. */ … … 1242 1219 #endif 1243 1220 1221 /* Three stacks and their tools: 1222 `yyss': related to states, 1223 `yyvs': related to semantic values, 1224 `yyls': related to locations. 1225 1226 Refer to the stacks thru separate pointers, to allow yyoverflow 1227 to reallocate them elsewhere. */ 1228 1229 /* The state stack. */ 1230 yytype_int16 yyssa[YYINITDEPTH]; 1231 yytype_int16 *yyss = yyssa; 1232 yytype_int16 *yyssp; 1233 1234 /* The semantic value stack. */ 1235 YYSTYPE yyvsa[YYINITDEPTH]; 1236 YYSTYPE *yyvs = yyvsa; 1237 YYSTYPE *yyvsp; 1238 1239 1240 1244 1241 #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) 1242 1243 YYSIZE_T yystacksize = YYINITDEPTH; 1244 1245 /* The variables used to return semantic value and location from the 1246 action routines. */ 1247 YYSTYPE yyval; 1248 1245 1249 1246 1250 /* The number of symbols on the RHS of the reduced rule. … … 1248 1252 int yylen = 0; 1249 1253 1250 yytoken = 0;1251 yyss = yyssa;1252 yyvs = yyvsa;1253 yystacksize = YYINITDEPTH;1254 1255 1254 YYDPRINTF ((stderr, "Starting parse\n")); 1256 1255 … … 1258 1257 yyerrstatus = 0; 1259 1258 yynerrs = 0; 1260 yychar = YYEMPTY; 1259 yychar = YYEMPTY; /* Cause a token to be read. */ 1261 1260 1262 1261 /* Initialize stack pointers. … … 1264 1263 so that they stay on the same level as the state stack. 1265 1264 The wasted elements are never initialized. */ 1265 1266 1266 yyssp = yyss; 1267 1267 yyvsp = yyvs; … … 1293 1293 yytype_int16 *yyss1 = yyss; 1294 1294 1295 1295 1296 /* Each stack pointer address is followed by the size of the 1296 1297 data in use in that stack, in bytes. This used to be a … … 1300 1301 &yyss1, yysize * sizeof (*yyssp), 1301 1302 &yyvs1, yysize * sizeof (*yyvsp), 1303 1302 1304 &yystacksize); 1303 1305 … … 1322 1324 if (! yyptr) 1323 1325 goto yyexhaustedlab; 1324 YYSTACK_RELOCATE (yyss_alloc, yyss); 1325 YYSTACK_RELOCATE (yyvs_alloc, yyvs); 1326 YYSTACK_RELOCATE (yyss); 1327 YYSTACK_RELOCATE (yyvs); 1328 1326 1329 # undef YYSTACK_RELOCATE 1327 1330 if (yyss1 != yyssa) … … 1334 1337 yyvsp = yyvs + yysize - 1; 1335 1338 1339 1336 1340 YYDPRINTF ((stderr, "Stack size increased to %lu\n", 1337 1341 (unsigned long int) yystacksize)); … … 1342 1346 1343 1347 YYDPRINTF ((stderr, "Entering state %d\n", yystate)); 1344 1345 if (yystate == YYFINAL)1346 YYACCEPT;1347 1348 1348 1349 goto yybackup; … … 1354 1355 1355 1356 /* Do appropriate processing given the current state. Read a 1356 look ahead token if we need one and don't already have one. */1357 1358 /* First try to decide what to do without reference to look ahead token. */1357 look-ahead token if we need one and don't already have one. */ 1358 1359 /* First try to decide what to do without reference to look-ahead token. */ 1359 1360 yyn = yypact[yystate]; 1360 1361 if (yyn == YYPACT_NINF) 1361 1362 goto yydefault; 1362 1363 1363 /* Not known => get a look ahead token if don't already have one. */1364 1365 /* YYCHAR is either YYEMPTY or YYEOF or a valid look ahead symbol. */1364 /* Not known => get a look-ahead token if don't already have one. */ 1365 1366 /* YYCHAR is either YYEMPTY or YYEOF or a valid look-ahead symbol. */ 1366 1367 if (yychar == YYEMPTY) 1367 1368 { … … 1395 1396 } 1396 1397 1398 if (yyn == YYFINAL) 1399 YYACCEPT; 1400 1397 1401 /* Count tokens shifted since error; after three, turn off error 1398 1402 status. */ … … 1400 1404 yyerrstatus--; 1401 1405 1402 /* Shift the look ahead token. */1406 /* Shift the look-ahead token. */ 1403 1407 YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); 1404 1408 1405 /* Discard the shifted token. */ 1406 yychar = YYEMPTY; 1409 /* Discard the shifted token unless it is eof. */ 1410 if (yychar != YYEOF) 1411 yychar = YYEMPTY; 1407 1412 1408 1413 yystate = yyn; … … 1448 1453 *(context->result) = static_cast<int>((yyvsp[(1) - (1)])); 1449 1454 YYACCEPT; 1450 }1455 ;} 1451 1456 break; 1452 1457 … … 1455 1460 { 1456 1461 (yyval) = (yyvsp[(1) - (3)]) || (yyvsp[(3) - (3)]); 1457 }1462 ;} 1458 1463 break; 1459 1464 … … 1462 1467 { 1463 1468 (yyval) = (yyvsp[(1) - (3)]) && (yyvsp[(3) - (3)]); 1464 }1469 ;} 1465 1470 break; 1466 1471 … … 1469 1474 { 1470 1475 (yyval) = (yyvsp[(1) - (3)]) | (yyvsp[(3) - (3)]); 1471 }1476 ;} 1472 1477 break; 1473 1478 … … 1476 1481 { 1477 1482 (yyval) = (yyvsp[(1) - (3)]) ^ (yyvsp[(3) - (3)]); 1478 }1483 ;} 1479 1484 break; 1480 1485 … … 1483 1488 { 1484 1489 (yyval) = (yyvsp[(1) - (3)]) & (yyvsp[(3) - (3)]); 1485 }1490 ;} 1486 1491 break; 1487 1492 … … 1490 1495 { 1491 1496 (yyval) = (yyvsp[(1) - (3)]) != (yyvsp[(3) - (3)]); 1492 }1497 ;} 1493 1498 break; 1494 1499 … … 1497 1502 { 1498 1503 (yyval) = (yyvsp[(1) - (3)]) == (yyvsp[(3) - (3)]); 1499 }1504 ;} 1500 1505 break; 1501 1506 … … 1504 1509 { 1505 1510 (yyval) = (yyvsp[(1) - (3)]) >= (yyvsp[(3) - (3)]); 1506 }1511 ;} 1507 1512 break; 1508 1513 … … 1511 1516 { 1512 1517 (yyval) = (yyvsp[(1) - (3)]) <= (yyvsp[(3) - (3)]); 1513 }1518 ;} 1514 1519 break; 1515 1520 … … 1518 1523 { 1519 1524 (yyval) = (yyvsp[(1) - (3)]) > (yyvsp[(3) - (3)]); 1520 }1525 ;} 1521 1526 break; 1522 1527 … … 1525 1530 { 1526 1531 (yyval) = (yyvsp[(1) - (3)]) < (yyvsp[(3) - (3)]); 1527 }1532 ;} 1528 1533 break; 1529 1534 … … 1532 1537 { 1533 1538 (yyval) = (yyvsp[(1) - (3)]) >> (yyvsp[(3) - (3)]); 1534 }1539 ;} 1535 1540 break; 1536 1541 … … 1539 1544 { 1540 1545 (yyval) = (yyvsp[(1) - (3)]) << (yyvsp[(3) - (3)]); 1541 }1546 ;} 1542 1547 break; 1543 1548 … … 1546 1551 { 1547 1552 (yyval) = (yyvsp[(1) - (3)]) - (yyvsp[(3) - (3)]); 1548 }1553 ;} 1549 1554 break; 1550 1555 … … 1553 1558 { 1554 1559 (yyval) = (yyvsp[(1) - (3)]) + (yyvsp[(3) - (3)]); 1555 }1560 ;} 1556 1561 break; 1557 1562 … … 1570 1575 (yyval) = (yyvsp[(1) - (3)]) % (yyvsp[(3) - (3)]); 1571 1576 } 1572 }1577 ;} 1573 1578 break; 1574 1579 … … 1587 1592 (yyval) = (yyvsp[(1) - (3)]) / (yyvsp[(3) - (3)]); 1588 1593 } 1589 }1594 ;} 1590 1595 break; 1591 1596 … … 1594 1599 { 1595 1600 (yyval) = (yyvsp[(1) - (3)]) * (yyvsp[(3) - (3)]); 1596 }1601 ;} 1597 1602 break; 1598 1603 … … 1601 1606 { 1602 1607 (yyval) = ! (yyvsp[(2) - (2)]); 1603 }1608 ;} 1604 1609 break; 1605 1610 … … 1608 1613 { 1609 1614 (yyval) = ~ (yyvsp[(2) - (2)]); 1610 }1615 ;} 1611 1616 break; 1612 1617 … … 1615 1620 { 1616 1621 (yyval) = - (yyvsp[(2) - (2)]); 1617 }1622 ;} 1618 1623 break; 1619 1624 … … 1622 1627 { 1623 1628 (yyval) = + (yyvsp[(2) - (2)]); 1624 }1629 ;} 1625 1630 break; 1626 1631 … … 1629 1634 { 1630 1635 (yyval) = (yyvsp[(2) - (3)]); 1631 } 1632 break; 1633 1634 1636 ;} 1637 break; 1638 1639 1640 /* Line 1267 of yacc.c. */ 1635 1641 1636 1642 default: break; … … 1643 1649 1644 1650 *++yyvsp = yyval; 1651 1645 1652 1646 1653 /* Now `shift' the result of the reduction. Determine what state … … 1708 1715 if (yyerrstatus == 3) 1709 1716 { 1710 /* If just tried and failed to reuse look ahead token after an1717 /* If just tried and failed to reuse look-ahead token after an 1711 1718 error, discard it. */ 1712 1719 … … 1725 1732 } 1726 1733 1727 /* Else will try to reuse look ahead token after shifting the error1734 /* Else will try to reuse look-ahead token after shifting the error 1728 1735 token. */ 1729 1736 goto yyerrlab1; … … 1782 1789 } 1783 1790 1791 if (yyn == YYFINAL) 1792 YYACCEPT; 1793 1784 1794 *++yyvsp = yylval; 1785 1795 … … 1806 1816 goto yyreturn; 1807 1817 1808 #if !defined(yyoverflow) || YYERROR_VERBOSE1818 #ifndef yyoverflow 1809 1819 /*-------------------------------------------------. 1810 1820 | yyexhaustedlab -- memory exhaustion comes here. | … … 1817 1827 1818 1828 yyreturn: 1819 if (yychar != YYE MPTY)1829 if (yychar != YYEOF && yychar != YYEMPTY) 1820 1830 yydestruct ("Cleanup: discarding lookahead", 1821 1831 yytoken, &yylval, context);
Note:
See TracChangeset
for help on using the changeset viewer.