diff options
author | Jim Laskey <jlaskey@mac.com> | 2006-12-06 10:57:33 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2006-12-06 10:57:33 +0000 |
commit | 98ba588c0346254cf53eec401be5fb2d22aec06a (patch) | |
tree | 5d7ef883969c23ff59dcf97a237de30734b79505 /tools/llvm-upgrade/UpgradeParser.cpp | |
parent | 576d123e130a8291669dd2384a3735cc4933fd00 (diff) |
Fix build for older versios of bison.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32274 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-upgrade/UpgradeParser.cpp')
-rw-r--r-- | tools/llvm-upgrade/UpgradeParser.cpp | 6260 |
1 files changed, 2697 insertions, 3563 deletions
diff --git a/tools/llvm-upgrade/UpgradeParser.cpp b/tools/llvm-upgrade/UpgradeParser.cpp index 2364e50009..12b653a6eb 100644 --- a/tools/llvm-upgrade/UpgradeParser.cpp +++ b/tools/llvm-upgrade/UpgradeParser.cpp @@ -1,374 +1,166 @@ -/* A Bison parser, made by GNU Bison 2.1. */ -/* Skeleton parser for Yacc-like parsing with Bison, - Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. +/* A Bison parser, made from /Volumes/Big2/llvm/llvm/tools/llvm-upgrade/UpgradeParser.y + by GNU Bison version 1.28 */ - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. */ - -/* As a special exception, when this file is copied by Bison into a - Bison output file, you may use that output file without restriction. - This special exception was added by the Free Software Foundation - in version 1.24 of Bison. */ +#define YYBISON 1 /* Identify Bison output. */ -/* Written by Richard Stallman by simplifying the original so called - ``semantic'' parser. */ - -/* All symbols defined below should begin with yy or YY, to avoid - infringing on user name space. This should be done even for local - variables, as they might otherwise be expanded by user macros. - There are some unavoidable exceptions within include files to - define necessary library symbols; they are noted "INFRINGES ON - USER NAME SPACE" below. */ - -/* Identify Bison output. */ -#define YYBISON 1 - -/* Bison version. */ -#define YYBISON_VERSION "2.1" - -/* Skeleton name. */ -#define YYSKELETON_NAME "yacc.c" - -/* Pure parsers. */ -#define YYPURE 0 - -/* Using locations. */ -#define YYLSP_NEEDED 0 - -/* Substitute the variable and function names. */ #define yyparse Upgradeparse -#define yylex Upgradelex +#define yylex Upgradelex #define yyerror Upgradeerror -#define yylval Upgradelval -#define yychar Upgradechar +#define yylval Upgradelval +#define yychar Upgradechar #define yydebug Upgradedebug #define yynerrs Upgradenerrs - - -/* Tokens. */ -#ifndef YYTOKENTYPE -# define YYTOKENTYPE - /* Put the tokens into the symbol table, so that GDB and other debuggers - know about them. */ - enum yytokentype { - VOID = 258, - BOOL = 259, - SBYTE = 260, - UBYTE = 261, - SHORT = 262, - USHORT = 263, - INT = 264, - UINT = 265, - LONG = 266, - ULONG = 267, - FLOAT = 268, - DOUBLE = 269, - LABEL = 270, - OPAQUE = 271, - ESINT64VAL = 272, - EUINT64VAL = 273, - SINTVAL = 274, - UINTVAL = 275, - FPVAL = 276, - NULL_TOK = 277, - UNDEF = 278, - ZEROINITIALIZER = 279, - TRUETOK = 280, - FALSETOK = 281, - TYPE = 282, - VAR_ID = 283, - LABELSTR = 284, - STRINGCONSTANT = 285, - IMPLEMENTATION = 286, - BEGINTOK = 287, - ENDTOK = 288, - DECLARE = 289, - GLOBAL = 290, - CONSTANT = 291, - SECTION = 292, - VOLATILE = 293, - TO = 294, - DOTDOTDOT = 295, - CONST = 296, - INTERNAL = 297, - LINKONCE = 298, - WEAK = 299, - DLLIMPORT = 300, - DLLEXPORT = 301, - EXTERN_WEAK = 302, - APPENDING = 303, - NOT = 304, - EXTERNAL = 305, - TARGET = 306, - TRIPLE = 307, - ENDIAN = 308, - POINTERSIZE = 309, - LITTLE = 310, - BIG = 311, - ALIGN = 312, - UNINITIALIZED = 313, - DEPLIBS = 314, - CALL = 315, - TAIL = 316, - ASM_TOK = 317, - MODULE = 318, - SIDEEFFECT = 319, - CC_TOK = 320, - CCC_TOK = 321, - CSRETCC_TOK = 322, - FASTCC_TOK = 323, - COLDCC_TOK = 324, - X86_STDCALLCC_TOK = 325, - X86_FASTCALLCC_TOK = 326, - DATALAYOUT = 327, - RET = 328, - BR = 329, - SWITCH = 330, - INVOKE = 331, - EXCEPT = 332, - UNWIND = 333, - UNREACHABLE = 334, - ADD = 335, - SUB = 336, - MUL = 337, - DIV = 338, - UDIV = 339, - SDIV = 340, - FDIV = 341, - REM = 342, - UREM = 343, - SREM = 344, - FREM = 345, - AND = 346, - OR = 347, - XOR = 348, - SETLE = 349, - SETGE = 350, - SETLT = 351, - SETGT = 352, - SETEQ = 353, - SETNE = 354, - ICMP = 355, - FCMP = 356, - EQ = 357, - NE = 358, - SLT = 359, - SGT = 360, - SLE = 361, - SGE = 362, - OEQ = 363, - ONE = 364, - OLT = 365, - OGT = 366, - OLE = 367, - OGE = 368, - ORD = 369, - UNO = 370, - UEQ = 371, - UNE = 372, - ULT = 373, - UGT = 374, - ULE = 375, - UGE = 376, - MALLOC = 377, - ALLOCA = 378, - FREE = 379, - LOAD = 380, - STORE = 381, - GETELEMENTPTR = 382, - PHI_TOK = 383, - SELECT = 384, - SHL = 385, - SHR = 386, - ASHR = 387, - LSHR = 388, - VAARG = 389, - EXTRACTELEMENT = 390, - INSERTELEMENT = 391, - SHUFFLEVECTOR = 392, - CAST = 393, - TRUNC = 394, - ZEXT = 395, - SEXT = 396, - FPTRUNC = 397, - FPEXT = 398, - FPTOUI = 399, - FPTOSI = 400, - UITOFP = 401, - SITOFP = 402, - PTRTOINT = 403, - INTTOPTR = 404, - BITCAST = 405 - }; -#endif -/* Tokens. */ -#define VOID 258 -#define BOOL 259 -#define SBYTE 260 -#define UBYTE 261 -#define SHORT 262 -#define USHORT 263 -#define INT 264 -#define UINT 265 -#define LONG 266 -#define ULONG 267 -#define FLOAT 268 -#define DOUBLE 269 -#define LABEL 270 -#define OPAQUE 271 -#define ESINT64VAL 272 -#define EUINT64VAL 273 -#define SINTVAL 274 -#define UINTVAL 275 -#define FPVAL 276 -#define NULL_TOK 277 -#define UNDEF 278 -#define ZEROINITIALIZER 279 -#define TRUETOK 280 -#define FALSETOK 281 -#define TYPE 282 -#define VAR_ID 283 -#define LABELSTR 284 -#define STRINGCONSTANT 285 -#define IMPLEMENTATION 286 -#define BEGINTOK 287 -#define ENDTOK 288 -#define DECLARE 289 -#define GLOBAL 290 -#define CONSTANT 291 -#define SECTION 292 -#define VOLATILE 293 -#define TO 294 -#define DOTDOTDOT 295 -#define CONST 296 -#define INTERNAL 297 -#define LINKONCE 298 -#define WEAK 299 -#define DLLIMPORT 300 -#define DLLEXPORT 301 -#define EXTERN_WEAK 302 -#define APPENDING 303 -#define NOT 304 -#define EXTERNAL 305 -#define TARGET 306 -#define TRIPLE 307 -#define ENDIAN 308 -#define POINTERSIZE 309 -#define LITTLE 310 -#define BIG 311 -#define ALIGN 312 -#define UNINITIALIZED 313 -#define DEPLIBS 314 -#define CALL 315 -#define TAIL 316 -#define ASM_TOK 317 -#define MODULE 318 -#define SIDEEFFECT 319 -#define CC_TOK 320 -#define CCC_TOK 321 -#define CSRETCC_TOK 322 -#define FASTCC_TOK 323 -#define COLDCC_TOK 324 -#define X86_STDCALLCC_TOK 325 -#define X86_FASTCALLCC_TOK 326 -#define DATALAYOUT 327 -#define RET 328 -#define BR 329 -#define SWITCH 330 -#define INVOKE 331 -#define EXCEPT 332 -#define UNWIND 333 -#define UNREACHABLE 334 -#define ADD 335 -#define SUB 336 -#define MUL 337 -#define DIV 338 -#define UDIV 339 -#define SDIV 340 -#define FDIV 341 -#define REM 342 -#define UREM 343 -#define SREM 344 -#define FREM 345 -#define AND 346 -#define OR 347 -#define XOR 348 -#define SETLE 349 -#define SETGE 350 -#define SETLT 351 -#define SETGT 352 -#define SETEQ 353 -#define SETNE 354 -#define ICMP 355 -#define FCMP 356 -#define EQ 357 -#define NE 358 -#define SLT 359 -#define SGT 360 -#define SLE 361 -#define SGE 362 -#define OEQ 363 -#define ONE 364 -#define OLT 365 -#define OGT 366 -#define OLE 367 -#define OGE 368 -#define ORD 369 -#define UNO 370 -#define UEQ 371 -#define UNE 372 -#define ULT 373 -#define UGT 374 -#define ULE 375 -#define UGE 376 -#define MALLOC 377 -#define ALLOCA 378 -#define FREE 379 -#define LOAD 380 -#define STORE 381 -#define GETELEMENTPTR 382 -#define PHI_TOK 383 -#define SELECT 384 -#define SHL 385 -#define SHR 386 -#define ASHR 387 -#define LSHR 388 -#define VAARG 389 -#define EXTRACTELEMENT 390 -#define INSERTELEMENT 391 -#define SHUFFLEVECTOR 392 -#define CAST 393 -#define TRUNC 394 -#define ZEXT 395 -#define SEXT 396 -#define FPTRUNC 397 -#define FPEXT 398 -#define FPTOUI 399 -#define FPTOSI 400 -#define UITOFP 401 -#define SITOFP 402 -#define PTRTOINT 403 -#define INTTOPTR 404 -#define BITCAST 405 - - - - -/* Copy the first part of user declarations. */ -#line 14 "/proj/llvm/llvm-2/tools/llvm-upgrade/UpgradeParser.y" +#define VOID 257 +#define BOOL 258 +#define SBYTE 259 +#define UBYTE 260 +#define SHORT 261 +#define USHORT 262 +#define INT 263 +#define UINT 264 +#define LONG 265 +#define ULONG 266 +#define FLOAT 267 +#define DOUBLE 268 +#define LABEL 269 +#define OPAQUE 270 +#define ESINT64VAL 271 +#define EUINT64VAL 272 +#define SINTVAL 273 +#define UINTVAL 274 +#define FPVAL 275 +#define NULL_TOK 276 +#define UNDEF 277 +#define ZEROINITIALIZER 278 +#define TRUETOK 279 +#define FALSETOK 280 +#define TYPE 281 +#define VAR_ID 282 +#define LABELSTR 283 +#define STRINGCONSTANT 284 +#define IMPLEMENTATION 285 +#define BEGINTOK 286 +#define ENDTOK 287 +#define DECLARE 288 +#define GLOBAL 289 +#define CONSTANT 290 +#define SECTION 291 +#define VOLATILE 292 +#define TO 293 +#define DOTDOTDOT 294 +#define CONST 295 +#define INTERNAL 296 +#define LINKONCE 297 +#define WEAK 298 +#define DLLIMPORT 299 +#define DLLEXPORT 300 +#define EXTERN_WEAK 301 +#define APPENDING 302 +#define NOT 303 +#define EXTERNAL 304 +#define TARGET 305 +#define TRIPLE 306 +#define ENDIAN 307 +#define POINTERSIZE 308 +#define LITTLE 309 +#define BIG 310 +#define ALIGN 311 +#define UNINITIALIZED 312 +#define DEPLIBS 313 +#define CALL 314 +#define TAIL 315 +#define ASM_TOK 316 +#define MODULE 317 +#define SIDEEFFECT 318 +#define CC_TOK 319 +#define CCC_TOK 320 +#define CSRETCC_TOK 321 +#define FASTCC_TOK 322 +#define COLDCC_TOK 323 +#define X86_STDCALLCC_TOK 324 +#define X86_FASTCALLCC_TOK 325 +#define DATALAYOUT 326 +#define RET 327 +#define BR 328 +#define SWITCH 329 +#define INVOKE 330 +#define EXCEPT 331 +#define UNWIND 332 +#define UNREACHABLE 333 +#define ADD 334 +#define SUB 335 +#define MUL 336 +#define DIV 337 +#define UDIV 338 +#define SDIV 339 +#define FDIV 340 +#define REM 341 +#define UREM 342 +#define SREM 343 +#define FREM 344 +#define AND 345 +#define OR 346 +#define XOR 347 +#define SETLE 348 +#define SETGE 349 +#define SETLT 350 +#define SETGT 351 +#define SETEQ 352 +#define SETNE 353 +#define ICMP 354 +#define FCMP 355 +#define EQ 356 +#define NE 357 +#define SLT 358 +#define SGT 359 +#define SLE 360 +#define SGE 361 +#define OEQ 362 +#define ONE 363 +#define OLT 364 +#define OGT 365 +#define OLE 366 +#define OGE 367 +#define ORD 368 +#define UNO 369 +#define UEQ 370 +#define UNE 371 +#define ULT 372 +#define UGT 373 +#define ULE 374 +#define UGE 375 +#define MALLOC 376 +#define ALLOCA 377 +#define FREE 378 +#define LOAD 379 +#define STORE 380 +#define GETELEMENTPTR 381 +#define PHI_TOK 382 +#define SELECT 383 +#define SHL 384 +#define SHR 385 +#define ASHR 386 +#define LSHR 387 +#define VAARG 388 +#define EXTRACTELEMENT 389 +#define INSERTELEMENT 390 +#define SHUFFLEVECTOR 391 +#define CAST 392 +#define TRUNC 393 +#define ZEXT 394 +#define SEXT 395 +#define FPTRUNC 396 +#define FPEXT 397 +#define FPTOUI 398 +#define FPTOSI 399 +#define UITOFP 400 +#define SITOFP 401 +#define PTRTOINT 402 +#define INTTOPTR 403 +#define BITCAST 404 + +#line 14 "/Volumes/Big2/llvm/llvm/tools/llvm-upgrade/UpgradeParser.y" #include "ParserInternals.h" #include <llvm/ADT/StringExtras.h> @@ -622,1577 +414,1079 @@ getCompareOp(const std::string& setcc, const TypeInfo& TI) { } - -/* Enabling traces. */ -#ifndef YYDEBUG -# define YYDEBUG 0 -#endif - -/* Enabling verbose error messages. */ -#ifdef YYERROR_VERBOSE -# undef YYERROR_VERBOSE -# define YYERROR_VERBOSE 1 -#else -# define YYERROR_VERBOSE 0 -#endif - -/* Enabling the token table. */ -#ifndef YYTOKEN_TABLE -# define YYTOKEN_TABLE 0 -#endif - -#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) -#line 270 "/proj/llvm/llvm-2/tools/llvm-upgrade/UpgradeParser.y" -typedef union YYSTYPE { +#line 270 "/Volumes/Big2/llvm/llvm/tools/llvm-upgrade/UpgradeParser.y" +typedef union { std::string* String; TypeInfo Type; ValueInfo Value; ConstInfo Const; ValueList* ValList; } YYSTYPE; -/* Line 196 of yacc.c. */ -#line 655 "UpgradeParser.tab.c" -# define yystype YYSTYPE /* obsolescent; will be withdrawn */ -# define YYSTYPE_IS_DECLARED 1 -# define YYSTYPE_IS_TRIVIAL 1 -#endif - - - -/* Copy the second part of user declarations. */ - - -/* Line 219 of yacc.c. */ -#line 667 "UpgradeParser.tab.c" +#include <stdio.h> -#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__) -# define YYSIZE_T __SIZE_TYPE__ +#ifndef __cplusplus +#ifndef __STDC__ +#define const #endif -#if ! defined (YYSIZE_T) && defined (size_t) -# define YYSIZE_T size_t -#endif -#if ! defined (YYSIZE_T) && (defined (__STDC__) || defined (__cplusplus)) -# include <stddef.h> /* INFRINGES ON USER NAME SPACE */ -# define YYSIZE_T size_t -#endif -#if ! defined (YYSIZE_T) -# define YYSIZE_T unsigned int #endif -#ifndef YY_ -# if YYENABLE_NLS -# if ENABLE_NLS -# include <libintl.h> /* INFRINGES ON USER NAME SPACE */ -# define YY_(msgid) dgettext ("bison-runtime", msgid) -# endif -# endif -# ifndef YY_ -# define YY_(msgid) msgid -# endif -#endif -#if ! defined (yyoverflow) || YYERROR_VERBOSE - -/* The parser invokes alloca or malloc; define the necessary symbols. */ - -# ifdef YYSTACK_USE_ALLOCA -# if YYSTACK_USE_ALLOCA -# ifdef __GNUC__ -# define YYSTACK_ALLOC __builtin_alloca -# else -# define YYSTACK_ALLOC alloca -# if defined (__STDC__) || defined (__cplusplus) -# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ -# define YYINCLUDED_STDLIB_H -# endif -# endif -# endif -# endif - -# ifdef YYSTACK_ALLOC - /* Pacify GCC's `empty if-body' warning. */ -# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0) -# ifndef YYSTACK_ALLOC_MAXIMUM - /* The OS might guarantee only one guard page at the bottom of the stack, - and a page size can be as small as 4096 bytes. So we cannot safely - invoke alloca (N) if N exceeds 4096. Use a slightly smaller number - to allow for a few compiler-allocated temporary stack slots. */ -# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2005 */ -# endif -# else -# define YYSTACK_ALLOC YYMALLOC -# define YYSTACK_FREE YYFREE -# ifndef YYSTACK_ALLOC_MAXIMUM -# define YYSTACK_ALLOC_MAXIMUM ((YYSIZE_T) -1) -# endif -# ifdef __cplusplus -extern "C" { -# endif -# ifndef YYMALLOC -# define YYMALLOC malloc -# if (! defined (malloc) && ! defined (YYINCLUDED_STDLIB_H) \ - && (defined (__STDC__) || defined (__cplusplus))) -void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ -# endif -# endif -# ifndef YYFREE -# define YYFREE free -# if (! defined (free) && ! defined (YYINCLUDED_STDLIB_H) \ - && (defined (__STDC__) || defined (__cplusplus))) -void free (void *); /* INFRINGES ON USER NAME SPACE */ -# endif -# endif -# ifdef __cplusplus -} -# endif -# endif -#endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */ +#define YYFINAL 582 +#define YYFLAG -32768 +#define YYNTBASE 165 + +#define YYTRANSLATE(x) ((unsigned)(x) <= 404 ? yytranslate[x] : 239) + +static const short yytranslate[] = { 0, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 154, + 155, 163, 2, 152, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 159, + 151, 160, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 156, 153, 158, 2, 2, 2, 2, 2, 164, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 157, + 2, 2, 161, 2, 162, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 1, 3, 4, 5, 6, + 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, + 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, + 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, + 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, + 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, + 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, + 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, + 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, + 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, + 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, + 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, + 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, + 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, + 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, + 147, 148, 149, 150 +}; -#if (! defined (yyoverflow) \ - && (! defined (__cplusplus) \ - || (defined (YYSTYPE_IS_TRIVIAL) && YYSTYPE_IS_TRIVIAL))) +#if YYDEBUG != 0 +static const short yyprhs[] = { 0, + 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, + 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, + 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, + 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, + 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, + 100, 102, 104, 106, 108, 110, 112, 114, 116, 118, + 120, 122, 124, 126, 128, 130, 132, 134, 136, 138, + 140, 142, 144, 146, 148, 150, 152, 154, 156, 158, + 161, 162, 164, 166, 168, 170, 172, 174, 176, 177, + 179, 181, 183, 185, 187, 189, 192, 193, 194, 197, + 198, 202, 205, 206, 208, 209, 213, 215, 218, 220, + 222, 224, 226, 228, 230, 232, 234, 236, 238, 240, + 242, 244, 246, 248, 250, 252, 254, 256, 258, 261, + 266, 272, 278, 282, 285, 288, 290, 294, 296, 300, + 302, 303, 308, 312, 316, 321, 326, 330, 333, 336, + 339, 342, 345, 348, 351, 354, 357, 360, 367, 373, + 382, 389, 396, 403, 411, 419, 426, 433, 442, 451, + 455, 457, 459, 461, 463, 466, 469, 474, 477, 479, + 481, 483, 488, 491, 496, 503, 510, 517, 524, 528, + 533, 534, 536, 538, 540, 544, 548, 552, 556, 560, + 564, 566, 567, 569, 571, 573, 574, 577, 581, 583, + 585, 589, 591, 592, 601, 603, 605, 609, 611, 613, + 617, 618, 620, 622, 626, 627, 629, 631, 633, 635, + 637, 639, 641, 643, 645, 649, 651, 657, 659, 661, + 663, 665, 668, 671, 673, 676, 679, 680, 682, 684, + 686, 689, 692, 696, 706, 716, 725, 740, 742, 744, + 751, 757, 760, 767, 775, 777, 781, 783, 784, 787, + 789, 795, 801, 807, 815, 823, 826, 831, 836, 843, + 848, 853, 860, 867, 870, 878, 880, 883, 884, 886, + 887, 891, 898, 902, 909, 912, 917, 924 +}; -/* A type that is properly aligned for any stack member. */ -union yyalloc -{ - short int yyss; - YYSTYPE yyvs; - }; - -/* The size of the maximum gap between one aligned stack and the next. */ -# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) - -/* The size of an array large to enough to hold all stacks, each with - N elements. */ -# define YYSTACK_BYTES(N) \ - ((N) * (sizeof (short int) + sizeof (YYSTYPE)) \ - + YYSTACK_GAP_MAXIMUM) - -/* Copy COUNT objects from FROM to TO. The source and destination do - not overlap. */ -# ifndef YYCOPY -# if defined (__GNUC__) && 1 < __GNUC__ -# define YYCOPY(To, From, Count) \ - __builtin_memcpy (To, From, (Count) * sizeof (*(From))) -# else -# define YYCOPY(To, From, Count) \ - do \ - { \ - YYSIZE_T yyi; \ - for (yyi = 0; yyi < (Count); yyi++) \ - (To)[yyi] = (From)[yyi]; \ - } \ - while (0) -# endif -# endif - -/* Relocate STACK from its old location to the new one. The - local variables YYSIZE and YYSTACKSIZE give the old and new number of - elements in the stack, and YYPTR gives the new location of the - stack. Advance YYPTR to a properly aligned location for the next - stack. */ -# define YYSTACK_RELOCATE(Stack) \ - do \ - { \ - YYSIZE_T yynewbytes; \ - YYCOPY (&yyptr->Stack, Stack, yysize); \ - Stack = &yyptr->Stack; \ - yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ - yyptr += yynewbytes / sizeof (*yyptr); \ - } \ - while (0) +static const short yyrhs[] = { 19, + 0, 20, 0, 17, 0, 18, 0, 80, 0, 81, + 0, 82, 0, 83, 0, 84, 0, 85, 0, 86, + 0, 87, 0, 88, 0, 89, 0, 90, 0, 91, + 0, 92, 0, 93, 0, 94, 0, 95, 0, 96, + 0, 97, 0, 98, 0, 99, 0, 102, 0, 103, + 0, 104, 0, 105, 0, 106, 0, 107, 0, 118, + 0, 119, 0, 120, 0, 121, 0, 108, 0, 109, + 0, 110, 0, 111, 0, 112, 0, 113, 0, 114, + 0, 115, 0, 116, 0, 117, 0, 118, 0, 119, + 0, 120, 0, 121, 0, 25, 0, 26, 0, 130, + 0, 131, 0, 132, 0, 133, 0, 139, 0, 140, + 0, 141, 0, 142, 0, 143, 0, 144, 0, 145, + 0, 146, 0, 147, 0, 148, 0, 149, 0, 150, + 0, 138, 0, 11, 0, 9, 0, 7, 0, 5, + 0, 12, 0, 10, 0, 8, 0, 6, 0, 174, + 0, 175, 0, 13, 0, 14, 0, 207, 151, 0, + 0, 42, 0, 43, 0, 44, 0, 48, 0, 45, + 0, 46, 0, 47, 0, 0, 66, 0, 67, 0, + 68, 0, 69, 0, 70, 0, 71, 0, 65, 18, + 0, 0, 0, 57, 18, 0, 0, 152, 57, 18, + 0, 37, 30, 0, 0, 183, 0, 0, 152, 186, + 185, 0, 183, 0, 57, 18, 0, 189, 0, 3, + 0, 191, 0, 3, 0, 191, 0, 4, 0, 5, + 0, 6, 0, 7, 0, 8, 0, 9, 0, 10, + 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, + 0, 16, 0, 221, 0, 190, 0, 153, 18, 0, + 188, 154, 193, 155, 0, 156, 18, 157, 191, 158, + 0, 159, 18, 157, 191, 160, 0, 161, 192, 162, + 0, 161, 162, 0, 191, 163, 0, 191, 0, 192, + 152, 191, 0, 192, 0, 192, 152, 40, 0, 40, + 0, 0, 189, 156, 196, 158, 0, 189, 156, 158, + 0, 189, 164, 30, 0, 189, 159, 196, 160, 0, + 189, 161, 196, 162, 0, 189, 161, 162, 0, 189, + 22, 0, 189, 23, 0, 189, 221, 0, 189, 195, + 0, 189, 24, 0, 174, 166, 0, 175, 18, 0, + 4, 25, 0, 4, 26, 0, 177, 21, 0, 173, + 154, 194, 39, 189, 155, 0, 127, 154, 194, 236, + 155, 0, 129, 154, 194, 152, 194, 152, 194, 155, + 0, 167, 154, 194, 152, 194, 155, 0, 168, 154, + 194, 152, 194, 155, 0, 169, 154, 194, 152, 194, + 155, 0, 100, 170, 154, 194, 152, 194, 155, 0, + 101, 171, 154, 194, 152, 194, 155, 0, 172, 154, + 194, 152, 194, 155, 0, 135, 154, 194, 152, 194, + 155, 0, 136, 154, 194, 152, 194, 152, 194, 155, + 0, 137, 154, 194, 152, 194, 152, 194, 155, 0, + 196, 152, 194, 0, 194, 0, 35, 0, 36, 0, + 199, 0, 199, 216, 0, 199, 218, 0, 199, 63, + 62, 202, 0, 199, 31, 0, 201, 0, 50, 0, + 58, 0, 201, 178, 27, 187, 0, 201, 218, 0, + 201, 63, 62, 202, 0, 201, 178, 179, 197, 194, + 185, 0, 201, 178, 200, 197, 189, 185, 0, 201, + 178, 45, 197, 189, 185, 0, 201, 178, 47, 197, + 189, 185, 0, 201, 51, 204, 0, 201, 59, 151, + 205, 0, 0, 30, 0, 56, 0, 55, 0, 53, + 151, 203, 0, 54, 151, 18, 0, 52, 151, 30, + 0, 72, 151, 30, 0, 156, 206, 158, 0, 206, + 152, 30, 0, 30, 0, 0, 28, 0, 30, 0, + 207, 0, 0, 189, 208, 0, 210, 152, 209, 0, + 209, 0, 210, 0, 210, 152, 40, 0, 40, 0, + 0, 180, 187, 207, 154, 211, 155, 184, 181, 0, + 32, 0, 161, 0, 179, 212, 213, 0, 33, 0, + 162, 0, 214, 224, 215, 0, 0, 45, 0, 47, + 0, 34, 217, 212, 0, 0, 64, 0, 17, 0, + 18, 0, 21, 0, 25, 0, 26, 0, 22, 0, + 23, 0, 24, 0, 159, 196, 160, 0, 195, 0, + 62, 219, 30, 152, 30, 0, 165, 0, 207, 0, + 221, 0, 220, 0, 189, 222, 0, 224, 225, 0, + 225, 0, 226, 228, 0, 226, 230, 0, 0, 29, + 0, 78, 0, 77, 0, 73, 223, 0, 73, 3, + 0, 74, 15, 222, 0, 74, 4, 222, 152, 15, + 222, 152, 15, 222, 0, 75, 176, 222, 152, 15, + 222, 156, 229, 158, 0, 75, 176, 222, 152, 15, + 222, 156, 158, 0, 178, 76, 180, 187, 222, 154, + 233, 155, 39, 15, 222, 227, 15, 222, 0, 227, + 0, 79, 0, 229, 176, 220, 152, 15, 222, 0, + 176, 220, 152, 15, 222, 0, 178, 235, 0, 189, + 156, 222, 152, 222, 158, 0, 231, 152, 156, 222, + 152, 222, 158, 0, 223, 0, 232, 152, 223, 0, + 232, 0, 0, 61, 60, 0, 60, 0, 167, 189, + 222, 152, 222, 0, 168, 189, 222, 152, 222, 0, + 169, 189, 222, 152, 222, 0, 100, 170, 189, 222, + 152, 222, 155, 0, 101, 171, 189, 222, 152, 222, + 155, 0, 49, 223, 0, 172, 223, 152, 223, 0, + 173, 223, 39, 189, 0, 129, 223, 152, 223, 152, + 223, 0, 134, 223, 152, 189, 0, 135, 223, 152, + 223, 0, 136, 223, 152, 223, 152, 223, 0, 137, + 223, 152, 223, 152, 223, 0, 128, 231, 0, 234, + 180, 187, 222, 154, 233, 155, 0, 238, 0, 152, + 232, 0, 0, 38, 0, 0, 122, 189, 182, 0, + 122, 189, 152, 10, 222, 182, 0, 123, 189, 182, + 0, 123, 189, 152, 10, 222, 182, 0, 124, 223, + 0, 237, 125, 189, 222, 0, 237, 126, 223, 152, + 189, 222, 0, 127, 189, 222, 236, 0 +}; #endif -#if defined (__STDC__) || defined (__cplusplus) - typedef signed char yysigned_char; -#else - typedef short int yysigned_char; +#if YYDEBUG != 0 +static const short yyrline[] = { 0, + 333, 333, 334, 334, 338, 338, 338, 338, 338, 338, + 338, 339, 339, 339, 339, 340, 340, 340, 341, 341, + 341, 341, 341, 341, 342, 342, 342, 342, 342, 342, + 342, 342, 342, 342, 343, 343, 343, 343, 343, 343, + 343, 343, 343, 343, 344, 344, 344, 344, 344, 344, + 345, 345, 345, 345, 346, 346, 346, 346, 346, 346, + 346, 346, 347, 347, 347, 347, 347, 352, 352, 352, + 352, 353, 353, 353, 353, 354, 354, 355, 355, 358, + 361, 366, 366, 366, 366, 366, 366, 367, 368, 371, + 371, 371, 371, 371, 372, 373, 378, 383, 384, 387, + 388, 396, 402, 403, 406, 407, 416, 417, 430, 430, + 431, 431, 432, 436, 436, 436, 436, 436, 436, 436, + 437, 437, 437, 437, 437, 439, 443, 447, 450, 455, + 461, 469, 477, 483, 487, 498, 501, 509, 510, 515, + 518, 528, 534, 539, 545, 551, 557, 562, 568, 574, + 580, 586, 592, 598, 604, 610, 616, 624, 638, 650, + 655, 661, 666, 674, 679, 684, 692, 697, 702, 712, + 717, 722, 722, 732, 737, 740, 745, 749, 753, 755, + 755, 758, 770, 775, 780, 789, 798, 807, 816, 821, + 826, 831, 833, 833, 836, 841, 848, 853, 860, 867, + 872, 873, 881, 881, 882, 882, 884, 891, 895, 899, + 902, 907, 910, 912, 932, 933, 935, 944, 945, 947, + 955, 956, 957, 961, 974, 975, 978, 978, 978, 978, + 978, 978, 978, 979, 980, 985, 986, 995, 995, 999, + 1005, 1016, 1022, 1025, 1033, 1037, 1042, 1045, 1051, 1051, + 1053, 1058, 1063, 1068, 1076, 1083, 1089, 1109, 1114, 1120, + 1125, 1133, 1142, 1149, 1157, 1161, 1168, 1169, 1173, 1178, + 1181, 1187, 1192, 1200, 1205, 1210, 1215, 1223, 1237, 1242, + 1247, 1252, 1257, 1262, 1267, 1284, 1289, 1290, 1294, 1295, + 1298, 1305, 1312, 1319, 1326, 1331, 1338, 1345 +}; #endif -/* YYFINAL -- State number of the termination state. */ -#define YYFINAL 4 -/* YYLAST -- Last index in YYTABLE. */ -#define YYLAST 1483 - -/* YYNTOKENS -- Number of terminals. */ -#define YYNTOKENS 165 -/* YYNNTS -- Number of nonterminals. */ -#define YYNNTS 75 -/* YYNRULES -- Number of rules. */ -#define YYNRULES 299 -/* YYNRULES -- Number of states. */ -#define YYNSTATES 582 - -/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ -#define YYUNDEFTOK 2 -#define YYMAXUTOK 405 - -#define YYTRANSLATE(YYX) \ - ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) - -/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */ -static const unsigned char yytranslate[] = -{ - 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 154, 155, 163, 2, 152, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 159, 151, 160, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 156, 153, 158, 2, 2, 2, 2, 2, 164, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 157, 2, 2, 161, 2, 162, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 1, 2, 3, 4, - 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, - 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, - 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, - 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, - 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, - 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, - 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, - 75, 76, 77, 78, 79, 80, 81, 82, 83, 84 |