| /* A Bison parser, made by GNU Bison 1.875c. */ |
| |
| /* Skeleton parser for Yacc-like parsing with Bison, |
| Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. |
| |
| 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., 59 Temple Place - Suite 330, |
| Boston, MA 02111-1307, 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. */ |
| |
| /* 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 |
| |
| /* Skeleton name. */ |
| #define YYSKELETON_NAME "yacc.c" |
| |
| /* Pure parsers. */ |
| #define YYPURE 0 |
| |
| /* Using locations. */ |
| #define YYLSP_NEEDED 0 |
| |
| |
| |
| /* Tokens. */ |
| #ifndef YYTOKENTYPE |
| # define YYTOKENTYPE |
| /* Put the tokens into the symbol table, so that GDB and other debuggers |
| know about them. */ |
| enum yytokentype { |
| INT = 258, |
| FLOAT = 259, |
| NAME = 260, |
| STRUCT = 261, |
| CLASS = 262, |
| UNION = 263, |
| ENUM = 264, |
| SIZEOF = 265, |
| UNSIGNED = 266, |
| COLONCOLON = 267, |
| TEMPLATE = 268, |
| ERROR = 269, |
| NEW = 270, |
| DELETE = 271, |
| OPERATOR = 272, |
| STATIC_CAST = 273, |
| REINTERPRET_CAST = 274, |
| DYNAMIC_CAST = 275, |
| SIGNED_KEYWORD = 276, |
| LONG = 277, |
| SHORT = 278, |
| INT_KEYWORD = 279, |
| CONST_KEYWORD = 280, |
| VOLATILE_KEYWORD = 281, |
| DOUBLE_KEYWORD = 282, |
| BOOL = 283, |
| ELLIPSIS = 284, |
| RESTRICT = 285, |
| VOID = 286, |
| FLOAT_KEYWORD = 287, |
| CHAR = 288, |
| WCHAR_T = 289, |
| ASSIGN_MODIFY = 290, |
| TRUEKEYWORD = 291, |
| FALSEKEYWORD = 292, |
| DEMANGLER_SPECIAL = 293, |
| CONSTRUCTION_VTABLE = 294, |
| CONSTRUCTION_IN = 295, |
| OROR = 296, |
| ANDAND = 297, |
| NOTEQUAL = 298, |
| EQUAL = 299, |
| GEQ = 300, |
| LEQ = 301, |
| RSH = 302, |
| LSH = 303, |
| DECREMENT = 304, |
| INCREMENT = 305, |
| UNARY = 306, |
| ARROW = 307 |
| }; |
| #endif |
| #define INT 258 |
| #define FLOAT 259 |
| #define NAME 260 |
| #define STRUCT 261 |
| #define CLASS 262 |
| #define UNION 263 |
| #define ENUM 264 |
| #define SIZEOF 265 |
| #define UNSIGNED 266 |
| #define COLONCOLON 267 |
| #define TEMPLATE 268 |
| #define ERROR 269 |
| #define NEW 270 |
| #define DELETE 271 |
| #define OPERATOR 272 |
| #define STATIC_CAST 273 |
| #define REINTERPRET_CAST 274 |
| #define DYNAMIC_CAST 275 |
| #define SIGNED_KEYWORD 276 |
| #define LONG 277 |
| #define SHORT 278 |
| #define INT_KEYWORD 279 |
| #define CONST_KEYWORD 280 |
| #define VOLATILE_KEYWORD 281 |
| #define DOUBLE_KEYWORD 282 |
| #define BOOL 283 |
| #define ELLIPSIS 284 |
| #define RESTRICT 285 |
| #define VOID 286 |
| #define FLOAT_KEYWORD 287 |
| #define CHAR 288 |
| #define WCHAR_T 289 |
| #define ASSIGN_MODIFY 290 |
| #define TRUEKEYWORD 291 |
| #define FALSEKEYWORD 292 |
| #define DEMANGLER_SPECIAL 293 |
| #define CONSTRUCTION_VTABLE 294 |
| #define CONSTRUCTION_IN 295 |
| #define OROR 296 |
| #define ANDAND 297 |
| #define NOTEQUAL 298 |
| #define EQUAL 299 |
| #define GEQ 300 |
| #define LEQ 301 |
| #define RSH 302 |
| #define LSH 303 |
| #define DECREMENT 304 |
| #define INCREMENT 305 |
| #define UNARY 306 |
| #define ARROW 307 |
| |
| |
| |
| |
| /* Copy the first part of user declarations. */ |
| #line 30 "cp-name-parser.y" |
| |
| |
| #include "defs.h" |
| |
| #include <stdio.h> |
| #include <stdlib.h> |
| #include <unistd.h> |
| #include <string.h> |
| |
| #include "safe-ctype.h" |
| #include "libiberty.h" |
| #include "demangle.h" |
| #include "cp-support.h" |
| #include "gdb_assert.h" |
| |
| /* Bison does not make it easy to create a parser without global |
| state, unfortunately. Here are all the global variables used |
| in this parser. */ |
| |
| /* LEXPTR is the current pointer into our lex buffer. PREV_LEXPTR |
| is the start of the last token lexed, only used for diagnostics. |
| ERROR_LEXPTR is the first place an error occurred. GLOBAL_ERRMSG |
| is the first error message encountered. */ |
| |
| static const char *lexptr, *prev_lexptr, *error_lexptr, *global_errmsg; |
| |
| /* The components built by the parser are allocated ahead of time, |
| and cached in this structure. */ |
| |
| #define ALLOC_CHUNK 100 |
| |
| struct demangle_info { |
| int used; |
| struct demangle_info *next; |
| struct demangle_component comps[ALLOC_CHUNK]; |
| }; |
| |
| static struct demangle_info *demangle_info; |
| |
| static struct demangle_component * |
| d_grab (void) |
| { |
| struct demangle_info *more; |
| |
| if (demangle_info->used >= ALLOC_CHUNK) |
| { |
| if (demangle_info->next == NULL) |
| { |
| more = xmalloc (sizeof (struct demangle_info)); |
| more->next = NULL; |
| demangle_info->next = more; |
| } |
| else |
| more = demangle_info->next; |
| |
| more->used = 0; |
| demangle_info = more; |
| } |
| return &demangle_info->comps[demangle_info->used++]; |
| } |
| |
| /* The parse tree created by the parser is stored here after a successful |
| parse. */ |
| |
| static struct demangle_component *global_result; |
| |
| /* Prototypes for helper functions used when constructing the parse |
| tree. */ |
| |
| static struct demangle_component *d_qualify (struct demangle_component *, int, |
| int); |
| |
| static struct demangle_component *d_int_type (int); |
| |
| static struct demangle_component *d_unary (const char *, |
| struct demangle_component *); |
| static struct demangle_component *d_binary (const char *, |
| struct demangle_component *, |
| struct demangle_component *); |
| |
| /* Flags passed to d_qualify. */ |
| |
| #define QUAL_CONST 1 |
| #define QUAL_RESTRICT 2 |
| #define QUAL_VOLATILE 4 |
| |
| /* Flags passed to d_int_type. */ |
| |
| #define INT_CHAR (1 << 0) |
| #define INT_SHORT (1 << 1) |
| #define INT_LONG (1 << 2) |
| #define INT_LLONG (1 << 3) |
| |
| #define INT_SIGNED (1 << 4) |
| #define INT_UNSIGNED (1 << 5) |
| |
| /* Remap normal yacc parser interface names (yyparse, yylex, yyerror, etc), |
| as well as gratuitiously global symbol names, so we can have multiple |
| yacc generated parsers in gdb. Note that these are only the variables |
| produced by yacc. If other parser generators (bison, byacc, etc) produce |
| additional global names that conflict at link time, then those parser |
| generators need to be fixed instead of adding those names to this list. */ |
| |
| #define yymaxdepth cpname_maxdepth |
| #define yyparse cpname_parse |
| #define yylex cpname_lex |
| #define yyerror cpname_error |
| #define yylval cpname_lval |
| #define yychar cpname_char |
| #define yydebug cpname_debug |
| #define yypact cpname_pact |
| #define yyr1 cpname_r1 |
| #define yyr2 cpname_r2 |
| #define yydef cpname_def |
| #define yychk cpname_chk |
| #define yypgo cpname_pgo |
| #define yyact cpname_act |
| #define yyexca cpname_exca |
| #define yyerrflag cpname_errflag |
| #define yynerrs cpname_nerrs |
| #define yyps cpname_ps |
| #define yypv cpname_pv |
| #define yys cpname_s |
| #define yy_yys cpname_yys |
| #define yystate cpname_state |
| #define yytmp cpname_tmp |
| #define yyv cpname_v |
| #define yy_yyv cpname_yyv |
| #define yyval cpname_val |
| #define yylloc cpname_lloc |
| #define yyreds cpname_reds /* With YYDEBUG defined */ |
| #define yytoks cpname_toks /* With YYDEBUG defined */ |
| #define yyname cpname_name /* With YYDEBUG defined */ |
| #define yyrule cpname_rule /* With YYDEBUG defined */ |
| #define yylhs cpname_yylhs |
| #define yylen cpname_yylen |
| #define yydefred cpname_yydefred |
| #define yydgoto cpname_yydgoto |
| #define yysindex cpname_yysindex |
| #define yyrindex cpname_yyrindex |
| #define yygindex cpname_yygindex |
| #define yytable cpname_yytable |
| #define yycheck cpname_yycheck |
| #define yyss cpname_yyss |
| #define yysslim cpname_yysslim |
| #define yyssp cpname_yyssp |
| #define yystacksize cpname_yystacksize |
| #define yyvs cpname_yyvs |
| #define yyvsp cpname_yyvsp |
| |
| int yyparse (void); |
| static int yylex (void); |
| static void yyerror (char *); |
| |
| /* Enable yydebug for the stand-alone parser. */ |
| #ifdef TEST_CPNAMES |
| # define YYDEBUG 1 |
| #endif |
| |
| /* Helper functions. These wrap the demangler tree interface, handle |
| allocation from our global store, and return the allocated component. */ |
| |
| static struct demangle_component * |
| fill_comp (enum demangle_component_type d_type, struct demangle_component *lhs, |
| struct demangle_component *rhs) |
| { |
| struct demangle_component *ret = d_grab (); |
| int i; |
| |
| i = cplus_demangle_fill_component (ret, d_type, lhs, rhs); |
| gdb_assert (i); |
| |
| return ret; |
| } |
| |
| static struct demangle_component * |
| make_empty (enum demangle_component_type d_type) |
| { |
| struct demangle_component *ret = d_grab (); |
| ret->type = d_type; |
| return ret; |
| } |
| |
| static struct demangle_component * |
| make_operator (const char *name, int args) |
| { |
| struct demangle_component *ret = d_grab (); |
| int i; |
| |
| i = cplus_demangle_fill_operator (ret, name, args); |
| gdb_assert (i); |
| |
| return ret; |
| } |
| |
| static struct demangle_component * |
| make_dtor (enum gnu_v3_dtor_kinds kind, struct demangle_component *name) |
| { |
| struct demangle_component *ret = d_grab (); |
| int i; |
| |
| i = cplus_demangle_fill_dtor (ret, kind, name); |
| gdb_assert (i); |
| |
| return ret; |
| } |
| |
| static struct demangle_component * |
| make_builtin_type (const char *name) |
| { |
| struct demangle_component *ret = d_grab (); |
| int i; |
| |
| i = cplus_demangle_fill_builtin_type (ret, name); |
| gdb_assert (i); |
| |
| return ret; |
| } |
| |
| static struct demangle_component * |
| make_name (const char *name, int len) |
| { |
| struct demangle_component *ret = d_grab (); |
| int i; |
| |
| i = cplus_demangle_fill_name (ret, name, len); |
| gdb_assert (i); |
| |
| return ret; |
| } |
| |
| #define d_left(dc) (dc)->u.s_binary.left |
| #define d_right(dc) (dc)->u.s_binary.right |
| |
| |
| |
| /* 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 |
| |
| #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) |
| #line 267 "cp-name-parser.y" |
| typedef union YYSTYPE { |
| struct demangle_component *comp; |
| struct nested { |
| struct demangle_component *comp; |
| struct demangle_component **last; |
| } nested; |
| struct { |
| struct demangle_component *comp, *last; |
| } nested1; |
| struct { |
| struct demangle_component *comp, **last; |
| struct nested fn; |
| struct demangle_component *start; |
| int fold_flag; |
| } abstract; |
| int lval; |
| const char *opname; |
| } YYSTYPE; |
| /* Line 191 of yacc.c. */ |
| #line 435 "cp-name-parser.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 214 of yacc.c. */ |
| #line 447 "cp-name-parser.c" |
| |
| #if ! defined (yyoverflow) || YYERROR_VERBOSE |
| |
| # ifndef YYFREE |
| # define YYFREE xfree |
| # endif |
| # ifndef YYMALLOC |
| # define YYMALLOC xmalloc |
| # endif |
| |
| /* The parser invokes alloca or xmalloc; define the necessary symbols. */ |
| |
| # ifdef YYSTACK_USE_ALLOCA |
| # if YYSTACK_USE_ALLOCA |
| # define YYSTACK_ALLOC alloca |
| # endif |
| # else |
| # if defined (alloca) || defined (_ALLOCA_H) |
| # define YYSTACK_ALLOC alloca |
| # else |
| # ifdef __GNUC__ |
| # define YYSTACK_ALLOC __builtin_alloca |
| # endif |
| # endif |
| # endif |
| |
| # ifdef YYSTACK_ALLOC |
| /* Pacify GCC's `empty if-body' warning. */ |
| # define YYSTACK_FREE(Ptr) do { /* empty */; } while (0) |
| # else |
| # if defined (__STDC__) || defined (__cplusplus) |
| # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ |
| # define YYSIZE_T size_t |
| # endif |
| # define YYSTACK_ALLOC YYMALLOC |
| # define YYSTACK_FREE YYFREE |
| # endif |
| #endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */ |
| |
| |
| #if (! defined (yyoverflow) \ |
| && (! defined (__cplusplus) \ |
| || (defined (YYSTYPE_IS_TRIVIAL) && YYSTYPE_IS_TRIVIAL))) |
| |
| /* A type that is properly aligned for any stack member. */ |
| union yyalloc |
| { |
| short 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) + 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 \ |
| { \ |
| register 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) |
| |
| #endif |
| |
| #if defined (__STDC__) || defined (__cplusplus) |
| typedef signed char yysigned_char; |
| #else |
| typedef short yysigned_char; |
| #endif |
| |
| /* YYFINAL -- State number of the termination state. */ |
| #define YYFINAL 84 |
| /* YYLAST -- Last index in YYTABLE. */ |
| #define YYLAST 1097 |
| |
| /* YYNTOKENS -- Number of terminals. */ |
| #define YYNTOKENS 75 |
| /* YYNNTS -- Number of nonterminals. */ |
| #define YYNNTS 40 |
| /* YYNRULES -- Number of rules. */ |
| #define YYNRULES 194 |
| /* YYNRULES -- Number of states. */ |
| #define YYNSTATES 324 |
| |
| /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ |
| #define YYUNDEFTOK 2 |
| #define YYMAXUTOK 307 |
| |
| #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, 72, 2, 2, 2, 63, 49, 2, |
| 73, 41, 61, 59, 42, 60, 67, 62, 2, 2, |
| 2, 2, 2, 2, 2, 2, 2, 2, 74, 2, |
| 52, 43, 53, 44, 58, 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, 68, 2, 70, 48, 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, 47, 2, 71, 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, 45, 46, 50, 51, |
| 54, 55, 56, 57, 64, 65, 66, 69 |
| }; |
| |
| #if YYDEBUG |
| /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in |
| YYRHS. */ |
| static const unsigned short yyprhs[] = |
| { |
| 0, 0, 3, 5, 7, 9, 11, 12, 15, 18, |
| 22, 26, 29, 32, 35, 40, 43, 46, 51, 56, |
| 59, 62, 65, 68, 71, 74, 77, 80, 83, 86, |
| 89, 92, 95, 98, 101, 104, 107, 110, 113, 116, |
| 119, 122, 125, 128, 131, 135, 138, 142, 146, 149, |
| 152, 154, 158, 161, 163, 168, 171, 173, 176, 179, |
| 181, 184, 186, 188, 190, 192, 195, 198, 200, 203, |
| 207, 210, 214, 219, 221, 225, 227, 230, 233, 238, |
| 240, 242, 245, 249, 254, 258, 263, 268, 272, 273, |
| 275, 277, 279, 281, 283, 286, 288, 290, 292, 294, |
| 296, 298, 300, 303, 305, 307, 309, 312, 314, 316, |
| 318, 321, 323, 327, 332, 335, 339, 342, 344, 348, |
| 351, 354, 356, 360, 363, 367, 370, 375, 379, 381, |
| 384, 386, 390, 393, 396, 398, 400, 403, 405, 410, |
| 413, 415, 418, 421, 423, 427, 430, 433, 435, 438, |
| 440, 442, 447, 452, 457, 460, 463, 466, 469, 473, |
| 475, 479, 482, 487, 490, 493, 496, 501, 509, 517, |
| 525, 529, 533, 537, 541, 545, 549, 553, 557, 561, |
| 565, 569, 573, 577, 581, 585, 589, 593, 597, 601, |
| 607, 609, 611, 616, 618 |
| }; |
| |
| /* YYRHS -- A `-1'-separated list of the rules' RHS. */ |
| static const yysigned_char yyrhs[] = |
| { |
| 76, 0, -1, 77, -1, 108, -1, 80, -1, 79, |
| -1, -1, 12, 77, -1, 104, 111, -1, 104, 95, |
| 78, -1, 88, 95, 78, -1, 83, 78, -1, 83, |
| 107, -1, 38, 77, -1, 39, 77, 40, 77, -1, |
| 17, 15, -1, 17, 16, -1, 17, 15, 68, 70, |
| -1, 17, 16, 68, 70, -1, 17, 59, -1, 17, |
| 60, -1, 17, 61, -1, 17, 62, -1, 17, 63, |
| -1, 17, 48, -1, 17, 49, -1, 17, 47, -1, |
| 17, 71, -1, 17, 72, -1, 17, 43, -1, 17, |
| 52, -1, 17, 53, -1, 17, 35, -1, 17, 57, |
| -1, 17, 56, -1, 17, 51, -1, 17, 50, -1, |
| 17, 55, -1, 17, 54, -1, 17, 46, -1, 17, |
| 45, -1, 17, 65, -1, 17, 64, -1, 17, 42, |
| -1, 17, 69, 61, -1, 17, 69, -1, 17, 73, |
| 41, -1, 17, 68, 70, -1, 17, 104, -1, 90, |
| 82, -1, 82, -1, 12, 90, 82, -1, 12, 82, |
| -1, 81, -1, 81, 52, 92, 53, -1, 71, 5, |
| -1, 86, -1, 12, 86, -1, 90, 5, -1, 5, |
| -1, 90, 91, -1, 91, -1, 85, -1, 88, -1, |
| 89, -1, 12, 89, -1, 90, 84, -1, 84, -1, |
| 5, 12, -1, 90, 5, 12, -1, 91, 12, -1, |
| 90, 91, 12, -1, 5, 52, 92, 53, -1, 93, |
| -1, 92, 42, 93, -1, 104, -1, 104, 105, -1, |
| 49, 77, -1, 49, 73, 77, 41, -1, 113, -1, |
| 104, -1, 104, 105, -1, 94, 42, 104, -1, 94, |
| 42, 104, 105, -1, 94, 42, 29, -1, 73, 94, |
| 41, 96, -1, 73, 31, 41, 96, -1, 73, 41, |
| 96, -1, -1, 98, -1, 30, -1, 26, -1, 25, |
| -1, 97, -1, 97, 98, -1, 24, -1, 21, -1, |
| 11, -1, 33, -1, 22, -1, 23, -1, 99, -1, |
| 100, 99, -1, 100, -1, 32, -1, 27, -1, 22, |
| 27, -1, 28, -1, 34, -1, 31, -1, 61, 96, |
| -1, 49, -1, 90, 61, 96, -1, 12, 90, 61, |
| 96, -1, 68, 70, -1, 68, 3, 70, -1, 101, |
| 98, -1, 101, -1, 98, 101, 98, -1, 98, 101, |
| -1, 86, 98, -1, 86, -1, 98, 86, 98, -1, |
| 98, 86, -1, 12, 86, 98, -1, 12, 86, -1, |
| 98, 12, 86, 98, -1, 98, 12, 86, -1, 102, |
| -1, 102, 105, -1, 106, -1, 73, 105, 41, -1, |
| 106, 95, -1, 106, 103, -1, 103, -1, 102, -1, |
| 102, 107, -1, 106, -1, 106, 95, 12, 77, -1, |
| 95, 78, -1, 104, -1, 104, 105, -1, 102, 109, |
| -1, 110, -1, 73, 109, 41, -1, 110, 95, -1, |
| 110, 103, -1, 87, -1, 102, 111, -1, 87, -1, |
| 112, -1, 87, 95, 12, 77, -1, 112, 95, 12, |
| 77, -1, 73, 102, 109, 41, -1, 112, 95, -1, |
| 112, 103, -1, 87, 95, -1, 87, 103, -1, 73, |
| 114, 41, -1, 113, -1, 113, 53, 113, -1, 49, |
| 77, -1, 49, 73, 77, 41, -1, 60, 113, -1, |
| 72, 113, -1, 71, 113, -1, 73, 108, 41, 113, |
| -1, 18, 52, 108, 53, 73, 114, 41, -1, 20, |
| 52, 108, 53, 73, 114, 41, -1, 19, 52, 108, |
| 53, 73, 114, 41, -1, 113, 61, 113, -1, 113, |
| 62, 113, -1, 113, 63, 113, -1, 113, 59, 113, |
| -1, 113, 60, 113, -1, 113, 57, 113, -1, 113, |
| 56, 113, -1, 113, 51, 113, -1, 113, 50, 113, |
| -1, 113, 55, 113, -1, 113, 54, 113, -1, 113, |
| 52, 113, -1, 113, 49, 113, -1, 113, 48, 113, |
| -1, 113, 47, 113, -1, 113, 46, 113, -1, 113, |
| 45, 113, -1, 113, 69, 5, -1, 113, 67, 5, |
| -1, 113, 44, 113, 74, 113, -1, 3, -1, 4, |
| -1, 10, 73, 108, 41, -1, 36, -1, 37, -1 |
| }; |
| |
| /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ |
| static const unsigned short yyrline[] = |
| { |
| 0, 381, 381, 385, 387, 389, 394, 395, 402, 411, |
| 414, 418, 421, 440, 444, 448, 450, 452, 454, 456, |
| 458, 460, 462, 464, 466, 468, 470, 472, 474, 476, |
| 478, 480, 482, 484, 486, 488, 490, 492, 494, 496, |
| 498, 500, 502, 504, 506, 508, 510, 512, 520, 525, |
| 530, 534, 539, 547, 548, 550, 562, 563, 569, 571, |
| 572, 574, 577, 578, 581, 582, 586, 588, 591, 597, |
| 604, 610, 621, 625, 628, 639, 640, 644, 646, 648, |
| 651, 655, 660, 665, 671, 681, 685, 689, 697, 698, |
| 701, 703, 705, 709, 710, 717, 719, 721, 723, 725, |
| 727, 731, 732, 736, 738, 740, 742, 744, 746, 748, |
| 752, 758, 762, 770, 780, 784, 800, 802, 803, 805, |
| 808, 810, 811, 813, 816, 818, 820, 822, 827, 830, |
| 835, 842, 846, 857, 863, 881, 884, 892, 894, 905, |
| 912, 913, 919, 923, 927, 929, 934, 939, 952, 956, |
| 961, 969, 974, 983, 987, 992, 997, 1001, 1007, 1013, |
| 1016, 1023, 1025, 1030, 1034, 1038, 1045, 1061, 1068, 1075, |
| 1094, 1098, 1102, 1106, 1110, 1114, 1118, 1122, 1126, 1130, |
| 1134, 1138, 1142, 1146, 1150, 1154, 1158, 1163, 1167, 1171, |
| 1178, 1182, 1185, 1190, 1199 |
| }; |
| #endif |
| |
| #if YYDEBUG || YYERROR_VERBOSE |
| /* YYTNME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. |
| First, the terminals, then, starting at YYNTOKENS, nonterminals. */ |
| static const char *const yytname[] = |
| { |
| "$end", "error", "$undefined", "INT", "FLOAT", "NAME", "STRUCT", |
| "CLASS", "UNION", "ENUM", "SIZEOF", "UNSIGNED", "COLONCOLON", "TEMPLATE", |
| "ERROR", "NEW", "DELETE", "OPERATOR", "STATIC_CAST", "REINTERPRET_CAST", |
| "DYNAMIC_CAST", "SIGNED_KEYWORD", "LONG", "SHORT", "INT_KEYWORD", |
| "CONST_KEYWORD", "VOLATILE_KEYWORD", "DOUBLE_KEYWORD", "BOOL", |
| "ELLIPSIS", "RESTRICT", "VOID", "FLOAT_KEYWORD", "CHAR", "WCHAR_T", |
| "ASSIGN_MODIFY", "TRUEKEYWORD", "FALSEKEYWORD", "DEMANGLER_SPECIAL", |
| "CONSTRUCTION_VTABLE", "CONSTRUCTION_IN", "')'", "','", "'='", "'?'", |
| "OROR", "ANDAND", "'|'", "'^'", "'&'", "NOTEQUAL", "EQUAL", "'<'", "'>'", |
| "GEQ", "LEQ", "RSH", "LSH", "'@'", "'+'", "'-'", "'*'", "'/'", "'%'", |
| "DECREMENT", "INCREMENT", "UNARY", "'.'", "'['", "ARROW", "']'", "'~'", |
| "'!'", "'('", "':'", "$accept", "result", "start", "start_opt", |
| "function", "demangler_special", "operator", "conversion_op", |
| "conversion_op_name", "unqualified_name", "colon_name", "name", |
| "colon_ext_name", "colon_ext_only", "ext_only_name", "nested_name", |
| "template", "template_params", "template_arg", "function_args", |
| "function_arglist", "qualifiers_opt", "qualifier", "qualifiers", |
| "int_part", "int_seq", "builtin_type", "ptr_operator", "array_indicator", |
| "typespec_2", "abstract_declarator", "direct_abstract_declarator", |
| "abstract_declarator_fn", "type", "declarator", "direct_declarator", |
| "declarator_1", "direct_declarator_1", "exp", "exp1", 0 |
| }; |
| #endif |
| |
| # ifdef YYPRINT |
| /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to |
| token YYLEX-NUM. */ |
| static const unsigned short yytoknum[] = |
| { |
| 0, 256, 257, 258, 259, 260, 261, 262, 263, 264, |
| 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, |
| 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, |
| 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, |
| 295, 41, 44, 61, 63, 296, 297, 124, 94, 38, |
| 298, 299, 60, 62, 300, 301, 302, 303, 64, 43, |
| 45, 42, 47, 37, 304, 305, 306, 46, 91, 307, |
| 93, 126, 33, 40, 58 |
| }; |
| # endif |
| |
| /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ |
| static const unsigned char yyr1[] = |
| { |
| 0, 75, 76, 77, 77, 77, 78, 78, 79, 79, |
| 79, 79, 79, 80, 80, 81, 81, 81, 81, 81, |
| 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, |
| 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, |
| 81, 81, 81, 81, 81, 81, 81, 81, 82, 83, |
| 83, 83, 83, 84, 84, 84, 85, 85, 86, 86, |
| 86, 86, 87, 87, 88, 88, 89, 89, 90, 90, |
| 90, 90, 91, 92, 92, 93, 93, 93, 93, 93, |
| 94, 94, 94, 94, 94, 95, 95, 95, 96, 96, |
| 97, 97, 97, 98, 98, 99, 99, 99, 99, 99, |
| 99, 100, 100, 101, 101, 101, 101, 101, 101, 101, |
| 102, 102, 102, 102, 103, 103, 104, 104, 104, 104, |
| 104, 104, 104, 104, 104, 104, 104, 104, 105, 105, |
| 105, 106, 106, 106, 106, 107, 107, 107, 107, 107, |
| 108, 108, 109, 109, 110, 110, 110, 110, 111, 111, |
| 111, 111, 111, 112, 112, 112, 112, 112, 113, 114, |
| 114, 114, 114, 113, 113, 113, 113, 113, 113, 113, |
| 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, |
| 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, |
| 113, 113, 113, 113, 113 |
| }; |
| |
| /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ |
| static const unsigned char yyr2[] = |
| { |
| 0, 2, 1, 1, 1, 1, 0, 2, 2, 3, |
| 3, 2, 2, 2, 4, 2, 2, 4, 4, 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, 3, 2, 3, 3, 2, 2, |
| 1, 3, 2, 1, 4, 2, 1, 2, 2, 1, |
| 2, 1, 1, 1, 1, 2, 2, 1, 2, 3, |
| 2, 3, 4, 1, 3, 1, 2, 2, 4, 1, |
| 1, 2, 3, 4, 3, 4, 4, 3, 0, 1, |
| 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, |
| 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, |
| 2, 1, 3, 4, 2, 3, 2, 1, 3, 2, |
| 2, 1, 3, 2, 3, 2, 4, 3, 1, 2, |
| 1, 3, 2, 2, 1, 1, 2, 1, 4, 2, |
| 1, 2, 2, 1, 3, 2, 2, 1, 2, 1, |
| 1, 4, 4, 4, 2, 2, 2, 2, 3, 1, |
| 3, 2, 4, 2, 2, 2, 4, 7, 7, 7, |
| 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, |
| 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, |
| 1, 1, 4, 1, 1 |
| }; |
| |
| /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state |
| STATE-NUM when YYTABLE doesn't specify something else to do. Zero |
| means the default is an error. */ |
| static const unsigned char yydefact[] = |
| { |
| 0, 59, 97, 0, 0, 96, 99, 100, 95, 92, |
| 91, 105, 107, 90, 109, 104, 98, 108, 0, 0, |
| 0, 0, 2, 5, 4, 53, 50, 6, 67, 121, |
| 0, 64, 0, 61, 93, 0, 101, 103, 117, 140, |
| 3, 68, 0, 52, 125, 65, 0, 0, 15, 16, |
| 32, 43, 29, 40, 39, 26, 24, 25, 36, 35, |
| 30, 31, 38, 37, 34, 33, 19, 20, 21, 22, |
| 23, 42, 41, 0, 45, 27, 28, 0, 0, 48, |
| 106, 13, 0, 55, 1, 0, 0, 0, 111, 88, |
| 0, 0, 11, 0, 0, 6, 135, 134, 137, 12, |
| 120, 0, 6, 58, 49, 66, 60, 70, 94, 0, |
| 123, 119, 99, 102, 116, 0, 0, 0, 62, 56, |
| 149, 63, 0, 6, 128, 141, 130, 8, 150, 190, |
| 191, 0, 0, 0, 0, 193, 194, 0, 0, 0, |
| 0, 0, 0, 73, 75, 79, 124, 51, 0, 0, |
| 47, 44, 46, 0, 0, 7, 0, 110, 89, 0, |
| 114, 0, 109, 88, 0, 0, 0, 128, 80, 0, |
| 0, 88, 0, 0, 139, 0, 136, 132, 133, 10, |
| 69, 71, 127, 122, 118, 57, 0, 128, 156, 157, |
| 9, 0, 129, 148, 132, 154, 155, 0, 0, 0, |
| 0, 0, 77, 163, 165, 164, 0, 140, 0, 159, |
| 0, 0, 72, 76, 0, 0, 0, 0, 0, 0, |
| 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 0, 0, 0, 0, 17, 18, 14, 54, 88, 115, |
| 0, 88, 87, 88, 0, 81, 131, 112, 0, 0, |
| 126, 0, 147, 128, 0, 143, 0, 0, 0, 0, |
| 0, 0, 0, 0, 161, 0, 0, 158, 74, 0, |
| 186, 185, 184, 183, 182, 178, 177, 181, 180, 179, |
| 176, 175, 173, 174, 170, 171, 172, 188, 187, 113, |
| 86, 85, 84, 82, 138, 0, 142, 153, 145, 146, |
| 151, 152, 192, 0, 0, 0, 78, 0, 166, 160, |
| 0, 83, 144, 0, 0, 0, 162, 189, 0, 0, |
| 0, 167, 169, 168 |
| }; |
| |
| /* YYDEFGOTO[NTERM-NUM]. */ |
| static const short yydefgoto[] = |
| { |
| -1, 21, 155, 92, 23, 24, 25, 26, 27, 28, |
| 118, 29, 252, 30, 31, 78, 33, 142, 143, 166, |
| 95, 157, 34, 35, 36, 37, 38, 167, 97, 39, |
| 169, 126, 99, 40, 254, 255, 127, 128, 209, 210 |
| }; |
| |
| /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing |
| STATE-NUM. */ |
| #define YYPACT_NINF -193 |
| static const short yypact[] = |
| { |
| 771, 28, -193, 45, 545, -193, -16, -193, -193, -193, |
| -193, -193, -193, -193, -193, -193, -193, -193, 771, 771, |
| 15, 58, -193, -193, -193, -4, -193, 5, -193, 116, |
| -22, -193, 48, 55, 116, 887, -193, 244, 116, 295, |
| -193, -193, 390, -193, 116, -193, 48, 66, 31, 36, |
| -193, -193, -193, -193, -193, -193, -193, -193, -193, -193, |
| -193, -193, -193, -193, -193, -193, -193, -193, -193, -193, |
| -193, -193, -193, 13, 34, -193, -193, 70, 102, -193, |
| -193, -193, 81, -193, -193, 390, 28, 771, -193, 116, |
| 6, 610, -193, 8, 55, 98, 52, -193, -38, -193, |
| -193, 512, 98, 33, -193, -193, 115, -193, -193, 66, |
| 116, 116, -193, -193, -193, 65, 798, 610, -193, -193, |
| -38, -193, 51, 98, 311, -193, -38, -193, -38, -193, |
| -193, 56, 83, 87, 91, -193, -193, 663, 266, 266, |
| 266, 454, 7, -193, 285, 904, -193, -193, 75, 96, |
| -193, -193, -193, 771, 10, -193, 67, -193, -193, 100, |
| -193, 66, 110, 116, 285, 27, 106, 285, 285, 130, |
| 33, 116, 115, 771, -193, 169, -193, 167, -193, -193, |
| -193, -193, 116, -193, -193, -193, 69, 718, 171, -193, |
| -193, 285, -193, -193, -193, 172, -193, 863, 863, 863, |
| 863, 771, -193, -41, -41, -41, 687, 285, 140, 878, |
| 144, 390, -193, -193, 266, 266, 266, 266, 266, 266, |
| 266, 266, 266, 266, 266, 266, 266, 266, 266, 266, |
| 266, 266, 183, 185, -193, -193, -193, -193, 116, -193, |
| 32, 116, -193, 116, 795, -193, -193, -193, 37, 771, |
| -193, 718, -193, 718, 152, -38, 771, 771, 153, 145, |
| 146, 147, 156, 771, -193, 266, 266, -193, -193, 694, |
| 928, 951, 973, 994, 1014, 593, 593, 1028, 1028, 1028, |
| 375, 375, 308, 308, -41, -41, -41, -193, -193, -193, |
| -193, -193, -193, 285, -193, 161, -193, -193, -193, -193, |
| -193, -193, -193, 131, 160, 164, -193, 162, -41, 904, |
| 266, -193, -193, 492, 492, 492, -193, 904, 193, 199, |
| 200, -193, -193, -193 |
| }; |
| |
| /* YYPGOTO[NTERM-NUM]. */ |
| static const short yypgoto[] = |
| { |
| -193, -193, 25, 57, -193, -193, -193, 1, -193, 9, |
| -193, -1, -34, -24, 3, 0, 150, 157, 47, -193, |
| -23, -149, -193, 210, 208, -193, 212, -15, -97, 188, |
| -18, -19, 165, 151, -192, -193, 138, -193, -6, -159 |
| }; |
| |
| /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If |
| positive, shift that token. If negative, reduce the rule which |
| number is the opposite. If zero, do what YYDEFACT says. |
| If YYTABLE_NINF, syntax error. */ |
| #define YYTABLE_NINF -1 |
| static const unsigned short yytable[] = |
| { |
| 32, 178, 44, 46, 43, 120, 45, 102, 98, 159, |
| 86, 80, 96, 170, 242, 121, 123, 87, 32, 32, |
| 83, 125, 247, 189, 124, 22, 232, 93, 233, 178, |
| 90, 196, 103, 104, 110, 101, 145, 103, 119, 122, |
| 41, 105, 170, 81, 82, 180, 44, 147, 85, 211, |
| 1, 101, 211, 103, 88, 105, 103, 86, 84, 295, |
| 212, 296, 4, 237, 175, 4, 89, 107, 116, 171, |
| 1, 1, 103, 90, 103, 177, 160, 98, 91, 145, |
| 42, 96, 116, 150, 4, 42, 116, 156, 171, 289, |
| 120, 165, 290, 238, 291, 151, 93, 188, 238, 148, |
| 121, 88, 187, 194, 149, 195, 192, 103, 182, 124, |
| 173, 152, 171, 89, 185, 186, 20, 165, 45, 20, |
| 90, 153, 20, 119, 122, 91, 213, 181, 238, 197, |
| 238, 105, 203, 204, 205, 198, 20, 32, 20, 199, |
| 20, 9, 10, 200, 93, 234, 13, 243, 244, 192, |
| 245, 241, 174, 32, 318, 319, 320, 104, 299, 179, |
| 44, 240, 202, 121, 93, 105, 235, 93, 93, 192, |
| 239, 246, 253, 32, 86, 248, 187, 94, 236, 249, |
| 190, 265, 106, 256, 257, 267, 119, 122, 287, 125, |
| 288, 93, 79, 297, 302, 105, 106, 306, 303, 304, |
| 305, 32, 312, 316, 313, 145, 32, 93, 269, 270, |
| 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, |
| 281, 282, 283, 284, 285, 286, 262, 121, 106, 121, |
| 144, 264, 298, 314, 321, 192, 253, 315, 253, 100, |
| 322, 323, 154, 172, 108, 113, 94, 111, 114, 32, |
| 119, 122, 119, 122, 146, 2, 32, 32, 268, 308, |
| 309, 176, 193, 32, 0, 5, 112, 7, 8, 129, |
| 130, 0, 106, 144, 294, 311, 131, 16, 0, 168, |
| 0, 300, 301, 0, 132, 133, 134, 0, 307, 168, |
| 86, 0, 208, 93, 94, 0, 0, 175, 0, 158, |
| 1, 0, 135, 136, 317, 168, 106, 115, 0, 0, |
| 0, 0, 116, 0, 94, 106, 1, 94, 94, 0, |
| 183, 184, 0, 115, 0, 94, 138, 0, 116, 207, |
| 0, 0, 0, 0, 88, 0, 106, 139, 140, 141, |
| 0, 94, 0, 0, 88, 0, 89, 0, 258, 259, |
| 260, 261, 0, 90, 0, 0, 89, 94, 164, 0, |
| 88, 0, 0, 90, 0, 0, 20, 0, 117, 229, |
| 230, 231, 89, 158, 0, 232, 0, 233, 0, 90, |
| 0, 158, 20, 0, 191, 207, 207, 207, 207, 0, |
| 106, 0, 250, 129, 130, 1, 0, 0, 172, 144, |
| 131, 2, 47, 0, 0, 0, 0, 0, 132, 133, |
| 134, 5, 6, 7, 8, 9, 10, 11, 12, 0, |
| 13, 14, 15, 16, 17, 0, 135, 136, 0, 0, |
| 0, 0, 293, 0, 227, 228, 229, 230, 231, 137, |
| 0, 0, 232, 94, 233, 0, 0, 0, 158, 0, |
| 138, 158, 0, 158, 0, 0, 0, 129, 130, 1, |
| 0, 139, 140, 141, 131, 2, 47, 0, 0, 0, |
| 0, 0, 132, 133, 134, 5, 6, 7, 8, 9, |
| 10, 11, 12, 0, 13, 14, 15, 16, 17, 0, |
| 135, 136, 0, 0, 0, 129, 130, 0, 0, 0, |
| 0, 0, 131, 206, 0, 0, 0, 0, 0, 0, |
| 132, 133, 134, 0, 138, 0, 0, 1, 0, 0, |
| 0, 0, 0, 2, 47, 139, 140, 141, 135, 136, |
| 0, 0, 0, 5, 6, 7, 8, 9, 10, 11, |
| 12, 206, 13, 162, 15, 16, 17, 0, 0, 0, |
| 1, 0, 138, 163, 0, 0, 2, 47, 0, 0, |
| 48, 49, 0, 139, 140, 141, 5, 6, 7, 8, |
| 9, 10, 11, 12, 0, 13, 14, 15, 16, 17, |
| 50, 0, 0, 0, 0, 0, 0, 51, 52, 0, |
| 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, |
| 63, 64, 65, 0, 66, 67, 68, 69, 70, 71, |
| 72, 0, 0, 73, 74, 1, 75, 76, 77, 0, |
| 0, 2, 161, 0, 0, 0, 0, 0, 0, 0, |
| 0, 5, 6, 7, 8, 9, 10, 11, 12, 0, |
| 13, 162, 15, 16, 17, 222, 0, 223, 224, 225, |
| 226, 163, 227, 228, 229, 230, 231, 0, 0, 88, |
| 232, 0, 233, 0, 0, 0, 0, 0, 1, 0, |
| 0, 89, 0, 0, 2, 3, 0, 0, 90, 0, |
| 4, 0, 0, 164, 5, 6, 7, 8, 9, 10, |
| 11, 12, 1, 13, 14, 15, 16, 17, 2, 3, |
| 0, 18, 19, 0, 4, 0, 0, 0, 5, 6, |
| 7, 8, 9, 10, 11, 12, 0, 13, 14, 15, |
| 16, 17, 0, 1, 0, 18, 19, 0, 0, 0, |
| 115, 0, 0, 0, 20, 116, 201, 0, 214, 215, |
| 216, 217, 218, 219, 220, 221, 222, 0, 223, 224, |
| 225, 226, 0, 227, 228, 229, 230, 231, 20, 0, |
| 263, 232, 0, 233, 0, 0, 0, 88, 310, 0, |
| 0, 0, 0, 0, 0, 0, 1, 0, 0, 89, |
| 0, 0, 2, 3, 0, 0, 90, 0, 4, 20, |
| 0, 251, 5, 6, 7, 8, 9, 10, 11, 12, |
| 1, 13, 14, 15, 16, 17, 2, 47, 0, 18, |
| 19, 0, 0, 48, 49, 0, 5, 6, 7, 8, |
| 9, 10, 11, 12, 292, 13, 14, 15, 16, 17, |
| 0, 0, 0, 50, 0, 0, 0, 0, 0, 0, |
| 51, 52, 20, 53, 54, 55, 56, 57, 58, 59, |
| 60, 61, 62, 63, 64, 65, 0, 66, 67, 68, |
| 69, 70, 71, 72, 0, 0, 73, 74, 1, 75, |
| 76, 77, 0, 0, 2, 47, 0, 0, 0, 0, |
| 0, 0, 0, 0, 5, 6, 7, 8, 9, 10, |
| 11, 12, 1, 13, 14, 15, 16, 17, 2, 109, |
| 0, 0, 0, 0, 0, 0, 0, 0, 5, 6, |
| 7, 8, 0, 0, 11, 12, 0, 0, 14, 15, |
| 16, 17, 214, 215, 216, 217, 218, 219, 220, 221, |
| 222, 266, 223, 224, 225, 226, 0, 227, 228, 229, |
| 230, 231, 0, 0, 0, 232, 0, 233, 214, 215, |
| 216, 217, 218, 219, 220, 221, 222, 0, 223, 224, |
| 225, 226, 0, 227, 228, 229, 230, 231, 0, 0, |
| 0, 232, 0, 233, 216, 217, 218, 219, 220, 221, |
| 222, 0, 223, 224, 225, 226, 0, 227, 228, 229, |
| 230, 231, 0, 0, 0, 232, 0, 233, 217, 218, |
| 219, 220, 221, 222, 0, 223, 224, 225, 226, 0, |
| 227, 228, 229, 230, 231, 0, 0, 0, 232, 0, |
| 233, 218, 219, 220, 221, 222, 0, 223, 224, 225, |
| 226, 0, 227, 228, 229, 230, 231, 0, 0, 0, |
| 232, 0, 233, 219, 220, 221, 222, 0, 223, 224, |
| 225, 226, 0, 227, 228, 229, 230, 231, 0, 0, |
| 0, 232, 0, 233, 220, 221, 222, 0, 223, 224, |
| 225, 226, 0, 227, 228, 229, 230, 231, 0, 0, |
| 0, 232, 0, 233, 225, 226, 0, 227, 228, 229, |
| 230, 231, 0, 0, 0, 232, 0, 233 |
| }; |
| |
| static const short yycheck[] = |
| { |
| 0, 98, 3, 3, 3, 39, 3, 30, 27, 3, |
| 5, 27, 27, 5, 163, 39, 39, 12, 18, 19, |
| 5, 39, 171, 120, 39, 0, 67, 27, 69, 126, |
| 68, 128, 5, 32, 35, 73, 42, 5, 39, 39, |
| 12, 32, 5, 18, 19, 12, 47, 46, 52, 42, |
| 5, 73, 42, 5, 49, 46, 5, 5, 0, 251, |
| 53, 253, 17, 53, 12, 17, 61, 12, 17, 61, |
| 5, 5, 5, 68, 5, 98, 70, 96, 73, 85, |
| 52, 96, 17, 70, 17, 52, 17, 87, 61, 238, |
| 124, 91, 241, 61, 243, 61, 96, 120, 61, 68, |
| 124, 49, 117, 126, 68, 128, 124, 5, 109, 124, |
| 12, 41, 61, 61, 115, 115, 71, 117, 115, 71, |
| 68, 40, 71, 124, 124, 73, 144, 12, 61, 73, |
| 61, 122, 138, 139, 140, 52, 71, 137, 71, 52, |
| 71, 25, 26, 52, 144, 70, 30, 41, 42, 167, |
| 168, 41, 95, 153, 313, 314, 315, 156, 255, 102, |
| 161, 161, 137, 187, 164, 156, 70, 167, 168, 187, |
| 70, 41, 187, 173, 5, 175, 191, 27, 153, 12, |
| 123, 41, 32, 12, 12, 41, 187, 187, 5, 207, |
| 5, 191, 4, 41, 41, 186, 46, 41, 53, 53, |
| 53, 201, 41, 41, 73, 211, 206, 207, 214, 215, |
| 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, |
| 226, 227, 228, 229, 230, 231, 201, 251, 78, 253, |
| 42, 206, 255, 73, 41, 253, 251, 73, 253, 29, |
| 41, 41, 85, 93, 34, 37, 96, 35, 38, 249, |
| 251, 251, 253, 253, 44, 11, 256, 257, 211, 265, |
| 266, 96, 124, 263, -1, 21, 22, 23, 24, 3, |
| 4, -1, 122, 85, 249, 293, 10, 33, -1, 91, |
| -1, 256, 257, -1, 18, 19, 20, -1, 263, 101, |
| 5, -1, 141, 293, 144, -1, -1, 12, -1, 89, |
| 5, -1, 36, 37, 310, 117, 156, 12, -1, -1, |
| -1, -1, 17, -1, 164, 165, 5, 167, 168, -1, |
| 110, 111, -1, 12, -1, 175, 60, -1, 17, 141, |
| -1, -1, -1, -1, 49, -1, 186, 71, 72, 73, |
| -1, 191, -1, -1, 49, -1, 61, -1, 197, 198, |
| 199, 200, -1, 68, -1, -1, 61, 207, 73, -1, |
| 49, -1, -1, 68, -1, -1, 71, -1, 73, 61, |
| 62, 63, 61, 163, -1, 67, -1, 69, -1, 68, |
| -1, 171, 71, -1, 73, 197, 198, 199, 200, -1, |
| 240, -1, 182, 3, 4, 5, -1, -1, 248, 211, |
| 10, 11, 12, -1, -1, -1, -1, -1, 18, 19, |
| 20, 21, 22, 23, 24, 25, 26, 27, 28, -1, |
| 30, 31, 32, 33, 34, -1, 36, 37, -1, -1, |
| -1, -1, 244, -1, 59, 60, 61, 62, 63, 49, |
| -1, -1, 67, 293, 69, -1, -1, -1, 238, -1, |
| 60, 241, -1, 243, -1, -1, -1, 3, 4, 5, |
| -1, 71, 72, 73, 10, 11, 12, -1, -1, -1, |
| -1, -1, 18, 19, 20, 21, 22, 23, 24, 25, |
| 26, 27, 28, -1, 30, 31, 32, 33, 34, -1, |
| 36, 37, -1, -1, -1, 3, 4, -1, -1, -1, |
| -1, -1, 10, 49, -1, -1, -1, -1, -1, -1, |
| 18, 19, 20, -1, 60, -1, -1, 5, -1, -1, |
| -1, -1, -1, 11, 12, 71, 72, 73, 36, 37, |
| -1, -1, -1, 21, 22, 23, 24, 25, 26, 27, |
| 28, 49, 30, 31, 32, 33, 34, -1, -1, -1, |
| 5, -1, 60, 41, -1, -1, 11, 12, -1, -1, |
| 15, 16, -1, 71, 72, 73, 21, 22, 23, 24, |
| 25, 26, 27, 28, -1, 30, 31, 32, 33, 34, |
| 35, -1, -1, -1, -1, -1, -1, 42, 43, -1, |
| 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, |
| 55, 56, 57, -1, 59, 60, 61, 62, 63, 64, |
| 65, -1, -1, 68, 69, 5, 71, 72, 73, -1, |
| -1, 11, 12, -1, -1, -1, -1, -1, -1, -1, |
| -1, 21, 22, 23, 24, 25, 26, 27, 28, -1, |
| 30, 31, 32, 33, 34, 52, -1, 54, 55, 56, |
| 57, 41, 59, 60, 61, 62, 63, -1, -1, 49, |
| 67, -1, 69, -1, -1, -1, -1, -1, 5, -1, |
| -1, 61, -1, -1, 11, 12, -1, -1, 68, -1, |
| 17, -1, -1, 73, 21, 22, 23, 24, 25, 26, |
| 27, 28, 5, 30, 31, 32, 33, 34, 11, 12, |
| -1, 38, 39, -1, 17, -1, -1, -1, 21, 22, |
| 23, 24, 25, 26, 27, 28, -1, 30, 31, 32, |
| 33, 34, -1, 5, -1, 38, 39, -1, -1, -1, |
| 12, -1, -1, -1, 71, 17, 73, -1, 44, 45, |
| 46, 47, 48, 49, 50, 51, 52, -1, 54, 55, |
| 56, 57, -1, 59, 60, 61, 62, 63, 71, -1, |
| 73, 67, -1, 69, -1, -1, -1, 49, 74, -1, |
| -1, -1, -1, -1, -1, -1, 5, -1, -1, 61, |
| -1, -1, 11, 12, -1, -1, 68, -1, 17, 71, |
| -1, 73, 21, 22, 23, 24, 25, 26, 27, 28, |
| 5, 30, 31, 32, 33, 34, 11, 12, -1, 38, |
| 39, -1, -1, 15, 16, -1, 21, 22, 23, 24, |
| 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, |
| -1, -1, -1, 35, -1, -1, -1, -1, -1, -1, |
| 42, 43, 71, 45, 46, 47, 48, 49, 50, 51, |
| 52, 53, 54, 55, 56, 57, -1, 59, 60, 61, |
| 62, 63, 64, 65, -1, -1, 68, 69, 5, 71, |
| 72, 73, -1, -1, 11, 12, -1, -1, -1, -1, |
| -1, -1, -1, -1, 21, 22, 23, 24, 25, 26, |
| 27, 28, 5, 30, 31, 32, 33, 34, 11, 12, |
| -1, -1, -1, -1, -1, -1, -1, -1, 21, 22, |
| 23, 24, -1, -1, 27, 28, -1, -1, 31, 32, |
| 33, 34, 44, 45, 46, 47, 48, 49, 50, 51, |
| 52, 53, 54, 55, 56, 57, -1, 59, 60, 61, |
| 62, 63, -1, -1, -1, 67, -1, 69, 44, 45, |
| 46, 47, 48, 49, 50, 51, 52, -1, 54, 55, |
| 56, 57, -1, 59, 60, 61, 62, 63, -1, -1, |
| -1, 67, -1, 69, 46, 47, 48, 49, 50, 51, |
| 52, -1, 54, 55, 56, 57, -1, 59, 60, 61, |
| 62, 63, -1, -1, -1, 67, -1, 69, 47, 48, |
| 49, 50, 51, 52, -1, 54, 55, 56, 57, -1, |
| 59, 60, 61, 62, 63, -1, -1, -1, 67, -1, |
| 69, 48, 49, 50, 51, 52, -1, 54, 55, 56, |
| 57, -1, 59, 60, 61, 62, 63, -1, -1, -1, |
| 67, -1, 69, 49, 50, 51, 52, -1, 54, 55, |
| 56, 57, -1, 59, 60, 61, 62, 63, -1, -1, |
| -1, 67, -1, 69, 50, 51, 52, -1, 54, 55, |
| 56, 57, -1, 59, 60, 61, 62, 63, -1, -1, |
| -1, 67, -1, 69, 56, 57, -1, 59, 60, 61, |
| 62, 63, -1, -1, -1, 67, -1, 69 |
| }; |
| |
| /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing |
| symbol of state STATE-NUM. */ |
| static const unsigned char yystos[] = |
| { |
| 0, 5, 11, 12, 17, 21, 22, 23, 24, 25, |
| 26, 27, 28, 30, 31, 32, 33, 34, 38, 39, |
| 71, 76, 77, 79, 80, 81, 82, 83, 84, 86, |
| 88, 89, 90, 91, 97, 98, 99, 100, 101, 104, |
| 108, 12, 52, 82, 86, 89, 90, 12, 15, 16, |
| 35, 42, 43, 45, 46, 47, 48, 49, 50, 51, |
| 52, 53, 54, 55, 56, 57, 59, 60, 61, 62, |
| 63, 64, 65, 68, 69, 71, 72, 73, 90, 104, |
| 27, 77, 77, 5, 0, 52, 5, 12, 49, 61, |
| 68, 73, 78, 90, 91, 95, 102, 103, 106, 107, |
| 98, 73, 95, 5, 82, 84, 91, 12, 98, 12, |
| 86, 101, 22, 99, 98, 12, 17, 73, 85, 86, |
| 87, 88, 90, 95, 102, 105, 106, 111, 112, 3, |
| 4, 10, 18, 19, 20, 36, 37, 49, 60, 71, |
| 72, 73, 92, 93, 104, 113, 98, 82, 68, 68, |
| 70, 61, 41, 40, 92, 77, 90, 96, 98, 3, |
| 70, 12, 31, 41, 73, 90, 94, 102, 104, 105, |
| 5, 61, 91, 12, 78, 12, 107, 95, 103, 78, |
| 12, 12, 86, 98, 98, 86, 90, 102, 95, 103, |
| 78, 73, 105, 111, 95, 95, 103, 73, 52, 52, |
| 52, 73, 77, 113, 113, 113, 49, 104, 108, 113, |
| 114, 42, 53, 105, 44, 45, 46, 47, 48, 49, |
| 50, 51, 52, 54, 55, 56, 57, 59, 60, 61, |
| 62, 63, 67, 69, 70, 70, 77, 53, 61, 70, |
| 90, 41, 96, 41, 42, 105, 41, 96, 90, 12, |
| 98, 73, 87, 102, 109, 110, 12, 12, 108, 108, |
| 108, 108, 77, 73, 77, 41, 53, 41, 93, 113, |
| 113, 113, 113, 113, 113, 113, 113, 113, 113, 113, |
| 113, 113, 113, 113, 113, 113, 113, 5, 5, 96, |
| 96, 96, 29, 104, 77, 109, 109, 41, 95, 103, |
| 77, 77, 41, 53, 53, 53, 41, 77, 113, 113, |
| 74, 105, 41, 73, 73, 73, 41, 113, 114, 114, |
| 114, 41, 41, 41 |
| }; |
| |
| #if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__) |
| # define YYSIZE_T __SIZE_TYPE__ |
| #endif |
| #if ! defined (YYSIZE_T) && defined (size_t) |
| # define YYSIZE_T size_t |
| #endif |
| #if ! defined (YYSIZE_T) |
| # if defined (__STDC__) || defined (__cplusplus) |
| # include <stddef.h> /* INFRINGES ON USER NAME SPACE */ |
| # define YYSIZE_T size_t |
| # endif |
| #endif |
| #if ! defined (YYSIZE_T) |
| # define YYSIZE_T unsigned int |
| #endif |
| |
| #define yyerrok (yyerrstatus = 0) |
| #define yyclearin (yychar = YYEMPTY) |
| #define YYEMPTY (-2) |
| #define YYEOF 0 |
| |
| #define YYACCEPT goto yyacceptlab |
| #define YYABORT goto yyabortlab |
| #define YYERROR goto yyerrorlab |
| |
| |
| /* Like YYERROR except do call yyerror. This remains here temporarily |
| to ease the transition to the new meaning of YYERROR, for GCC. |
| Once GCC version 2 has supplanted version 1, this can go. */ |
| |
| #define YYFAIL goto yyerrlab |
| |
| #define YYRECOVERING() (!!yyerrstatus) |
| |
| #define YYBACKUP(Token, Value) \ |
| do \ |
| if (yychar == YYEMPTY && yylen == 1) \ |
| { \ |
| yychar = (Token); \ |
| yylval = (Value); \ |
| yytoken = YYTRANSLATE (yychar); \ |
| YYPOPSTACK; \ |
| goto yybackup; \ |
| } \ |
| else \ |
| { \ |
| yyerror ("syntax error: cannot back up");\ |
| YYERROR; \ |
| } \ |
| while (0) |
| |
| #define YYTERROR 1 |
| #define YYERRCODE 256 |
| |
| /* YYLLOC_DEFAULT -- Compute the default location (before the actions |
| are run). */ |
| |
| #ifndef YYLLOC_DEFAULT |
| # define YYLLOC_DEFAULT(Current, Rhs, N) \ |
| ((Current).first_line = (Rhs)[1].first_line, \ |
| (Current).first_column = (Rhs)[1].first_column, \ |
| (Current).last_line = (Rhs)[N].last_line, \ |
| (Current).last_column = (Rhs)[N].last_column) |
| #endif |
| |
| /* YYLEX -- calling `yylex' with the right arguments. */ |
| |
| #ifdef YYLEX_PARAM |
| # define YYLEX yylex (YYLEX_PARAM) |
| #else |
| # define YYLEX yylex () |
| #endif |
| |
| /* Enable debugging if requested. */ |
| #if YYDEBUG |
| |
| # ifndef YYFPRINTF |
| # include <stdio.h> /* INFRINGES ON USER NAME SPACE */ |
| # define YYFPRINTF fprintf |
| # endif |
| |
| # define YYDPRINTF(Args) \ |
| do { \ |
| if (yydebug) \ |
| YYFPRINTF Args; \ |
| } while (0) |
| |
| # define YYDSYMPRINT(Args) \ |
| do { \ |
| if (yydebug) \ |
| yysymprint Args; \ |
| } while (0) |
| |
| # define YYDSYMPRINTF(Title, Token, Value, Location) \ |
| do { \ |
| if (yydebug) \ |
| { \ |
| YYFPRINTF (stderr, "%s ", Title); \ |
| yysymprint (stderr, \ |
| Token, Value); \ |
| YYFPRINTF (stderr, "\n"); \ |
| } \ |
| } while (0) |
| |
| /*------------------------------------------------------------------. |
| | yy_stack_print -- Print the state stack from its BOTTOM up to its | |
| | TOP (included). | |
| `------------------------------------------------------------------*/ |
| |
| #if defined (__STDC__) || defined (__cplusplus) |
| static void |
| yy_stack_print (short *bottom, short *top) |
| #else |
| static void |
| yy_stack_print (bottom, top) |
| short *bottom; |
| short *top; |
| #endif |
| { |
| YYFPRINTF (stderr, "Stack now"); |
| for (/* Nothing. */; bottom <= top; ++bottom) |
| YYFPRINTF (stderr, " %d", *bottom); |
| YYFPRINTF (stderr, "\n"); |
| } |
| |
| # define YY_STACK_PRINT(Bottom, Top) \ |
| do { \ |
| if (yydebug) \ |
| yy_stack_print ((Bottom), (Top)); \ |
| } while (0) |
| |
| |
| /*------------------------------------------------. |
| | Report that the YYRULE is going to be reduced. | |
| `------------------------------------------------*/ |
| |
| #if defined (__STDC__) || defined (__cplusplus) |
| static void |
| yy_reduce_print (int yyrule) |
| #else |
| static void |
| yy_reduce_print (yyrule) |
| int yyrule; |
| #endif |
| { |
| int yyi; |
| unsigned int yylno = yyrline[yyrule]; |
| YYFPRINTF (stderr, "Reducing stack by rule %d (line %u), ", |
| yyrule - 1, yylno); |
| /* Print the symbols being reduced, and their result. */ |
| for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++) |
| YYFPRINTF (stderr, "%s ", yytname [yyrhs[yyi]]); |
| YYFPRINTF (stderr, "-> %s\n", yytname [yyr1[yyrule]]); |
| } |
| |
| # define YY_REDUCE_PRINT(Rule) \ |
| do { \ |
| if (yydebug) \ |
| yy_reduce_print (Rule); \ |
| } while (0) |
| |
| /* Nonzero means print parse trace. It is left uninitialized so that |
| multiple parsers can coexist. */ |
| int yydebug; |
| #else /* !YYDEBUG */ |
| # define YYDPRINTF(Args) |
| # define YYDSYMPRINT(Args) |
| # define YYDSYMPRINTF(Title, Token, Value, Location) |
| # define YY_STACK_PRINT(Bottom, Top) |
| # define YY_REDUCE_PRINT(Rule) |
| #endif /* !YYDEBUG */ |
| |
| |
| /* YYINITDEPTH -- initial size of the parser's stacks. */ |
| #ifndef YYINITDEPTH |
| # define YYINITDEPTH 200 |
| #endif |
| |
| /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only |
| if the built-in stack extension method is used). |
| |
| Do not make this value too large; the results are undefined if |
| SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH) |
| evaluated with infinite-precision integer arithmetic. */ |
| |
| #if defined (YYMAXDEPTH) && YYMAXDEPTH == 0 |
| # undef YYMAXDEPTH |
| #endif |
| |
| #ifndef YYMAXDEPTH |
| # define YYMAXDEPTH 10000 |
| #endif |
| |
| |
| |
| #if YYERROR_VERBOSE |
| |
| # ifndef yystrlen |
| # if defined (__GLIBC__) && defined (_STRING_H) |
| # define yystrlen strlen |
| # else |
| /* Return the length of YYSTR. */ |
| static YYSIZE_T |
| # if defined (__STDC__) || defined (__cplusplus) |
| yystrlen (const char *yystr) |
| # else |
| yystrlen (yystr) |
| const char *yystr; |
| # endif |
| { |
| register const char *yys = yystr; |
| |
| while (*yys++ != '\0') |
| continue; |
| |
| return yys - yystr - 1; |
| } |
| # endif |
| # endif |
| |
| # ifndef yystpcpy |
| # if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE) |
| # define yystpcpy stpcpy |
| # else |
| /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in |
| YYDEST. */ |
| static char * |
| # if defined (__STDC__) || defined (__cplusplus) |
| yystpcpy (char *yydest, const char *yysrc) |
| # else |
| yystpcpy (yydest, yysrc) |
| char *yydest; |
| const char *yysrc; |
| # endif |
| { |
| register char *yyd = yydest; |
| register const char *yys = yysrc; |
| |
| while ((*yyd++ = *yys++) != '\0') |
| continue; |
| |
| return yyd - 1; |
| } |
| # endif |
| # endif |
| |
| #endif /* !YYERROR_VERBOSE */ |
| |
| |
| |
| #if YYDEBUG |
| /*--------------------------------. |
| | Print this symbol on YYOUTPUT. | |
| `--------------------------------*/ |
| |
| #if defined (__STDC__) || defined (__cplusplus) |
| static void |
| yysymprint (FILE *yyoutput, int yytype, YYSTYPE *yyvaluep) |
| #else |
| static void |
| yysymprint (yyoutput, yytype, yyvaluep) |
| FILE *yyoutput; |
| int yytype; |
| YYSTYPE *yyvaluep; |
| #endif |
| { |
| /* Pacify ``unused variable'' warnings. */ |
| (void) yyvaluep; |
| |
| if (yytype < YYNTOKENS) |
| { |
| YYFPRINTF (yyoutput, "token %s (", yytname[yytype]); |
| # ifdef YYPRINT |
| YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep); |
| # endif |
| } |
| else |
| YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]); |
| |
| switch (yytype) |
| { |
| default: |
| break; |
| } |
| YYFPRINTF (yyoutput, ")"); |
| } |
| |
| #endif /* ! YYDEBUG */ |
| /*-----------------------------------------------. |
| | Release the memory associated to this symbol. | |
| `-----------------------------------------------*/ |
| |
| #if defined (__STDC__) || defined (__cplusplus) |
| static void |
| yydestruct (int yytype, YYSTYPE *yyvaluep) |
| #else |
| static void |
| yydestruct (yytype, yyvaluep) |
| int yytype; |
| YYSTYPE *yyvaluep; |
| #endif |
| { |
| /* Pacify ``unused variable'' warnings. */ |
| (void) yyvaluep; |
| |
| switch (yytype) |
| { |
| |
| default: |
| break; |
| } |
| } |
| |
| |
| /* Prevent warnings from -Wmissing-prototypes. */ |
| |
| #ifdef YYPARSE_PARAM |
| # if defined (__STDC__) || defined (__cplusplus) |
| int yyparse (void *YYPARSE_PARAM); |
| # else |
| int yyparse (); |
| # endif |
| #else /* ! YYPARSE_PARAM */ |
| #if defined (__STDC__) || defined (__cplusplus) |
| int yyparse (void); |
| #else |
| int yyparse (); |
| #endif |
| #endif /* ! YYPARSE_PARAM */ |
| |
| |
| |
| /* The lookahead symbol. */ |
| int yychar; |
| |
| /* The semantic value of the lookahead symbol. */ |
| YYSTYPE yylval; |
| |
| /* Number of syntax errors so far. */ |
| int yynerrs; |
| |
| |
| |
| /*----------. |
| | yyparse. | |
| `----------*/ |
| |
| #ifdef YYPARSE_PARAM |
| # if defined (__STDC__) || defined (__cplusplus) |
| int yyparse (void *YYPARSE_PARAM) |
| # else |
| int yyparse (YYPARSE_PARAM) |
| void *YYPARSE_PARAM; |
| # endif |
| #else /* ! YYPARSE_PARAM */ |
| #if defined (__STDC__) || defined (__cplusplus) |
| int |
| yyparse (void) |
| #else |
| int |
| yyparse () |
| |
| #endif |
| #endif |
| { |
| |
| register int yystate; |
| register int yyn; |
| int yyresult; |
| /* Number of tokens to shift before error messages enabled. */ |
| int yyerrstatus; |
| /* Lookahead token as an internal (translated) token number. */ |
| int yytoken = 0; |
| |
| /* Three stacks and their tools: |
| `yyss': related to states, |
| `yyvs': related to semantic values, |
| `yyls': related to locations. |
| |
| Refer to the stacks thru separate pointers, to allow yyoverflow |
| to xreallocate them elsewhere. */ |
| |
| /* The state stack. */ |
| short yyssa[YYINITDEPTH]; |
| short *yyss = yyssa; |
| register short *yyssp; |
| |
| /* The semantic value stack. */ |
| YYSTYPE yyvsa[YYINITDEPTH]; |
| YYSTYPE *yyvs = yyvsa; |
| register YYSTYPE *yyvsp; |
| |
| |
| |
| #define YYPOPSTACK (yyvsp--, yyssp--) |
| |
| YYSIZE_T yystacksize = YYINITDEPTH; |
| |
| /* The variables used to return semantic value and location from the |
| action routines. */ |
| YYSTYPE yyval; |
| |
| |
| /* When reducing, the number of symbols on the RHS of the reduced |
| rule. */ |
| int yylen; |
| |
| YYDPRINTF ((stderr, "Starting parse\n")); |
| |
| yystate = 0; |
| yyerrstatus = 0; |
| yynerrs = 0; |
| yychar = YYEMPTY; /* Cause a token to be read. */ |
| |
| /* Initialize stack pointers. |
| Waste one element of value and location stack |
| so that they stay on the same level as the state stack. |
| The wasted elements are never initialized. */ |
| |
| yyssp = yyss; |
| yyvsp = yyvs; |
| |
| goto yysetstate; |
| |
| /*------------------------------------------------------------. |
| | yynewstate -- Push a new state, which is found in yystate. | |
| `------------------------------------------------------------*/ |
| yynewstate: |
| /* In all cases, when you get here, the value and location stacks |
| have just been pushed. so pushing a state here evens the stacks. |
| */ |
| yyssp++; |
| |
| yysetstate: |
| *yyssp = yystate; |
| |
| if (yyss + yystacksize - 1 <= yyssp) |
| { |
| /* Get the current used size of the three stacks, in elements. */ |
| YYSIZE_T yysize = yyssp - yyss + 1; |
| |
| #ifdef yyoverflow |
| { |
| /* Give user a chance to xreallocate the stack. Use copies of |
| these so that the &'s don't force the real ones into |
| memory. */ |
| YYSTYPE *yyvs1 = yyvs; |
| short *yyss1 = yyss; |
| |
| |
| /* Each stack pointer address is followed by the size of the |
| data in use in that stack, in bytes. This used to be a |
| conditional around just the two extra args, but that might |
| be undefined if yyoverflow is a macro. */ |
| yyoverflow ("parser stack overflow", |
| &yyss1, yysize * sizeof (*yyssp), |
| &yyvs1, yysize * sizeof (*yyvsp), |
| |
| &yystacksize); |
| |
| yyss = yyss1; |
| yyvs = yyvs1; |
| } |
| #else /* no yyoverflow */ |
| # ifndef YYSTACK_RELOCATE |
| goto yyoverflowlab; |
| # else |
| /* Extend the stack our own way. */ |
| if (YYMAXDEPTH <= yystacksize) |
| goto yyoverflowlab; |
| yystacksize *= 2; |
| if (YYMAXDEPTH < yystacksize) |
| yystacksize = YYMAXDEPTH; |
| |
| { |
| short *yyss1 = yyss; |
| union yyalloc *yyptr = |
| (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); |
| if (! yyptr) |
| goto yyoverflowlab; |
| YYSTACK_RELOCATE (yyss); |
| YYSTACK_RELOCATE (yyvs); |
| |
| # undef YYSTACK_RELOCATE |
| if (yyss1 != yyssa) |
| YYSTACK_FREE (yyss1); |
| } |
| # endif |
| #endif /* no yyoverflow */ |
| |
| yyssp = yyss + yysize - 1; |
| yyvsp = yyvs + yysize - 1; |
| |
| |
| YYDPRINTF ((stderr, "Stack size increased to %lu\n", |
| (unsigned long int) yystacksize)); |
| |
| if (yyss + yystacksize - 1 <= yyssp) |
| YYABORT; |
| } |
| |
| YYDPRINTF ((stderr, "Entering state %d\n", yystate)); |
| |
| goto yybackup; |
| |
| /*-----------. |
| | yybackup. | |
| `-----------*/ |
| yybackup: |
| |
| /* Do appropriate processing given the current state. */ |
| /* Read a lookahead token if we need one and don't already have one. */ |
| /* yyresume: */ |
| |
| /* First try to decide what to do without reference to lookahead token. */ |
| |
| yyn = yypact[yystate]; |
| if (yyn == YYPACT_NINF) |
| goto yydefault; |
| |
| /* Not known => get a lookahead token if don't already have one. */ |
| |
| /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */ |
| if (yychar == YYEMPTY) |
| { |
| YYDPRINTF ((stderr, "Reading a token: ")); |
| yychar = YYLEX; |
| } |
| |
| if (yychar <= YYEOF) |
| { |
| yychar = yytoken = YYEOF; |
| YYDPRINTF ((stderr, "Now at end of input.\n")); |
| } |
| else |
| { |
| yytoken = YYTRANSLATE (yychar); |
| YYDSYMPRINTF ("Next token is", yytoken, &yylval, &yylloc); |
| } |
| |
| /* If the proper action on seeing token YYTOKEN is to reduce or to |
| detect an error, take that action. */ |
| yyn += yytoken; |
| if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) |
| goto yydefault; |
| yyn = yytable[yyn]; |
| if (yyn <= 0) |
| { |
| if (yyn == 0 || yyn == YYTABLE_NINF) |
| goto yyerrlab; |
| yyn = -yyn; |
| goto yyreduce; |
| } |
| |
| if (yyn == YYFINAL) |
| YYACCEPT; |
| |
| /* Shift the lookahead token. */ |
| YYDPRINTF ((stderr, "Shifting token %s, ", yytname[yytoken])); |
| |
| /* Discard the token being shifted unless it is eof. */ |
| if (yychar != YYEOF) |
| yychar = YYEMPTY; |
| |
| *++yyvsp = yylval; |
| |
| |
| /* Count tokens shifted since error; after three, turn off error |
| status. */ |
| if (yyerrstatus) |
| yyerrstatus--; |
| |
| yystate = yyn; |
| goto yynewstate; |
| |
| |
| /*-----------------------------------------------------------. |
| | yydefault -- do the default action for the current state. | |
| `-----------------------------------------------------------*/ |
| yydefault: |
| yyn = yydefact[yystate]; |
| if (yyn == 0) |
| goto yyerrlab; |
| goto yyreduce; |
| |
| |
| /*-----------------------------. |
| | yyreduce -- Do a reduction. | |
| `-----------------------------*/ |
| yyreduce: |
| /* yyn is the number of a rule to reduce with. */ |
| yylen = yyr2[yyn]; |
| |
| /* If YYLEN is nonzero, implement the default value of the action: |
| `$$ = $1'. |
| |
| Otherwise, the following line sets YYVAL to garbage. |
| This behavior is undocumented and Bison |
| users should not rely upon it. Assigning to YYVAL |
| unconditionally makes the parser a bit smaller, and it avoids a |
| GCC warning that YYVAL may be used uninitialized. */ |
| yyval = yyvsp[1-yylen]; |
| |
| |
| YY_REDUCE_PRINT (yyn); |
| switch (yyn) |
| { |
| case 2: |
| #line 382 "cp-name-parser.y" |
| { global_result = yyvsp[0].comp; } |
| break; |
| |
| case 6: |
| #line 394 "cp-name-parser.y" |
| { yyval.comp = NULL; } |
| break; |
| |
| case 7: |
| #line 396 "cp-name-parser.y" |
| { yyval.comp = yyvsp[0].comp; } |
| break; |
| |
| case 8: |
| #line 403 "cp-name-parser.y" |
| { yyval.comp = yyvsp[0].nested.comp; |
| *yyvsp[0].nested.last = yyvsp[-1].comp; |
| } |
| break; |
| |
| case 9: |
| #line 412 "cp-name-parser.y" |
| { yyval.comp = fill_comp (DEMANGLE_COMPONENT_TYPED_NAME, yyvsp[-2].comp, yyvsp[-1].nested.comp); |
| if (yyvsp[0].comp) yyval.comp = fill_comp (DEMANGLE_COMPONENT_LOCAL_NAME, yyval.comp, yyvsp[0].comp); } |
| break; |
| |
| case 10: |
| #line 415 "cp-name-parser.y" |
| { yyval.comp = fill_comp (DEMANGLE_COMPONENT_TYPED_NAME, yyvsp[-2].comp, yyvsp[-1].nested.comp); |
| if (yyvsp[0].comp) yyval.comp = fill_comp (DEMANGLE_COMPONENT_LOCAL_NAME, yyval.comp, yyvsp[0].comp); } |
| break; |
| |
| case 11: |
| #line 419 "cp-name-parser.y" |
| { yyval.comp = yyvsp[-1].nested.comp; |
| if (yyvsp[0].comp) yyval.comp = fill_comp (DEMANGLE_COMPONENT_LOCAL_NAME, yyval.comp, yyvsp[0].comp); } |
| break; |
| |
| case 12: |
| #line 422 "cp-name-parser.y" |
| { if (yyvsp[0].abstract.last) |
| { |
| /* First complete the abstract_declarator's type using |
| the typespec from the conversion_op_name. */ |
| *yyvsp[0].abstract.last = *yyvsp[-1].nested.last; |
| /* Then complete the conversion_op_name with the type. */ |
| *yyvsp[-1].nested.last = yyvsp[0].abstract.comp; |
| } |
| /* If we have an arglist, build a function type. */ |
| if (yyvsp[0].abstract.fn.comp) |
| yyval.comp = fill_comp (DEMANGLE_COMPONENT_TYPED_NAME, yyvsp[-1].nested.comp, yyvsp[0].abstract.fn.comp); |
| else |
| yyval.comp = yyvsp[-1].nested.comp; |
| if (yyvsp[0].abstract.start) yyval.comp = fill_comp (DEMANGLE_COMPONENT_LOCAL_NAME, yyval.comp, yyvsp[0].abstract.start); |
| } |
| break; |
| |
| case 13: |
| #line 441 "cp-name-parser.y" |
| { yyval.comp = make_empty (yyvsp[-1].lval); |
| d_left (yyval.comp) = yyvsp[0].comp; |
| d_right (yyval.comp) = NULL; } |
| break; |
| |
| case 14: |
| #line 445 "cp-name-parser.y" |
| { yyval.comp = fill_comp (DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE, yyvsp[-2].comp, yyvsp[0].comp); } |
| break; |
| |
| case 15: |
| #line 449 "cp-name-parser.y" |
| { yyval.comp = make_operator ("new", 3); } |
| break; |
| |
| case 16: |
| #line 451 "cp-name-parser.y" |
| { yyval.comp = make_operator ("delete ", 1); } |
| break; |
| |
| case 17: |
| #line 453 "cp-name-parser.y" |
| { yyval.comp = make_operator ("new[]", 3); } |
| break; |
| |
| case 18: |
| #line 455 "cp-name-parser.y" |
| { yyval.comp = make_operator ("delete[] ", 1); } |
| break; |
| |
| case 19: |
| #line 457 "cp-name-parser.y" |
| { yyval.comp = make_operator ("+", 2); } |
| break; |
| |
| case 20: |
| #line 459 "cp-name-parser.y" |
| { yyval.comp = make_operator ("-", 2); } |
| break; |
| |
| case 21: |
| #line 461 "cp-name-parser.y" |
| { yyval.comp = make_operator ("*", 2); } |
| break; |
| |
| case 22: |
| #line 463 "cp-name-parser.y" |
| { yyval.comp = make_operator ("/", 2); } |
| break; |
| |
| case 23: |
| #line 465 "cp-name-parser.y" |
| { yyval.comp = make_operator ("%", 2); } |
| break; |
| |
| case 24: |
| #line 467 "cp-name-parser.y" |
| { yyval.comp = make_operator ("^", 2); } |
| break; |
| |
| case 25: |
| #line 469 "cp-name-parser.y" |
| { yyval.comp = make_operator ("&", 2); } |
| break; |
| |
| case 26: |
| #line 471 "cp-name-parser.y" |
| { yyval.comp = make_operator ("|", 2); } |
| break; |
| |
| case 27: |
| #line 473 "cp-name-parser.y" |
| { yyval.comp = make_operator ("~", 1); } |
| break; |
| |
| case 28: |
| #line 475 "cp-name-parser.y" |
| { yyval.comp = make_operator ("!", 1); } |
| break; |
| |
| case 29: |
| #line 477 "cp-name-parser.y" |
| { yyval.comp = make_operator ("=", 2); } |
| break; |
| |
| case 30: |
| #line 479 "cp-name-parser.y" |
| { yyval.comp = make_operator ("<", 2); } |
| break; |
| |
| case 31: |
| #line 481 "cp-name-parser.y" |
| { yyval.comp = make_operator (">", 2); } |
| break; |
| |
| case 32: |
| #line 483 "cp-name-parser.y" |
| { yyval.comp = make_operator (yyvsp[0].opname, 2); } |
| break; |
| |
| case 33: |
| #line 485 "cp-name-parser.y" |
| { yyval.comp = make_operator ("<<", 2); } |
| break; |
| |
| case 34: |
| #line 487 "cp-name-parser.y" |
| { yyval.comp = make_operator (">>", 2); } |
| break; |
| |
| case 35: |
| #line 489 "cp-name-parser.y" |
| { yyval.comp = make_operator ("==", 2); } |
| break; |
| |
| case 36: |
| #line 491 "cp-name-parser.y" |
| { yyval.comp = make_operator ("!=", 2); } |
| break; |
| |
| case 37: |
| #line 493 "cp-name-parser.y" |
| { yyval.comp = make_operator ("<=", 2); } |
| break; |
| |
| case 38: |
| #line 495 "cp-name-parser.y" |
| { yyval.comp = make_operator (">=", 2); } |
| break; |
| |
| case 39: |
| #line 497 "cp-name-parser.y" |
| { yyval.comp = make_operator ("&&", 2); } |
| break; |
| |
| case 40: |
| #line 499 "cp-name-parser.y" |
| { yyval.comp = make_operator ("||", 2); } |
| break; |
| |
| case 41: |
| #line 501 "cp-name-parser.y" |
| { yyval.comp = make_operator ("++", 1); } |
| break; |
| |
| case 42: |
| #line 503 "cp-name-parser.y" |
| { yyval.comp = make_operator ("--", 1); } |
| break; |
| |
| case 43: |
| #line 505 "cp-name-parser.y" |
| { yyval.comp = make_operator (",", 2); } |
| break; |
| |
| case 44: |
| #line 507 "cp-name-parser.y" |
| { yyval.comp = make_operator ("->*", 2); } |
| break; |
| |
| case 45: |
| #line 509 "cp-name-parser.y" |
| { yyval.comp = make_operator ("->", 2); } |
| break; |
| |
| case 46: |
| #line 511 "cp-name-parser.y" |
| { yyval.comp = make_operator ("()", 2); } |
| break; |
| |
| case 47: |
| #line 513 "cp-name-parser.y" |
| { yyval.comp = make_operator ("[]", 2); } |
| break; |
| |
| case 48: |
| #line 521 "cp-name-parser.y" |
| { yyval.comp = fill_comp (DEMANGLE_COMPONENT_CAST, yyvsp[0].comp, NULL); } |
| break; |
| |
| case 49: |
| #line 526 "cp-name-parser.y" |
| { yyval.nested.comp = yyvsp[-1].nested1.comp; |
| d_right (yyvsp[-1].nested1.last) = yyvsp[0].comp; |
| yyval.nested.last = &d_left (yyvsp[0].comp); |
| } |
| break; |
| |
| case 50: |
| #line 531 "cp-name-parser.y" |
| { yyval.nested.comp = yyvsp[0].comp; |
| yyval.nested.last = &d_left (yyvsp[0].comp); |
| } |
| break; |
| |
| case 51: |
| #line 535 "cp-name-parser.y" |
| { yyval.nested.comp = yyvsp[-1].nested1.comp; |
| d_right (yyvsp[-1].nested1.last) = yyvsp[0].comp; |
| yyval.nested.last = &d_left (yyvsp[0].comp); |
| } |
| break; |
| |
| case 52: |
| #line 540 "cp-name-parser.y" |
| { yyval.nested.comp = yyvsp[0].comp; |
| yyval.nested.last = &d_left (yyvsp[0].comp); |
| } |
| break; |
| |
| case 54: |
| #line 549 "cp-name-parser.y" |
| { yyval.comp = fill_comp (DEMANGLE_COMPONENT_TEMPLATE, yyvsp[-3].comp, yyvsp[-1].nested.comp); } |
| break; |
| |
| case 55: |
| #line 551 "cp-name-parser.y" |
| { yyval.comp = make_dtor (gnu_v3_complete_object_dtor, yyvsp[0].comp); } |
| break; |
| |
| case 57: |
| #line 564 "cp-name-parser.y" |
| { yyval.comp = yyvsp[0].comp; } |
| break; |
| |
| case 58: |
| #line 570 "cp-name-parser.y" |
| { yyval.comp = yyvsp[-1].nested1.comp; d_right (yyvsp[-1].nested1.last) = yyvsp[0].comp; } |
| break; |
| |
| case 60: |
| #line 573 "cp-name-parser.y" |
| { yyval.comp = yyvsp[-1].nested1.comp; d_right (yyvsp[-1].nested1.last) = yyvsp[0].comp; } |
| break; |
| |
| case 65: |
| #line 583 "cp-name-parser.y" |
| { yyval.comp = yyvsp[0].comp; } |
| break; |
| |
| case 66: |
| #line 587 "cp-name-parser.y" |
| { yyval.comp = yyvsp[-1].nested1.comp; d_right (yyvsp[-1].nested1.last) = yyvsp[0].comp; } |
| break; |
| |
| case 68: |
| #line 592 "cp-name-parser.y" |
| { yyval.nested1.comp = make_empty (DEMANGLE_COMPONENT_QUAL_NAME); |
| d_left (yyval.nested1.comp) = yyvsp[-1].comp; |
| d_right (yyval.nested1.comp) = NULL; |
| yyval.nested1.last = yyval.nested1.comp; |
| } |
| break; |
| |
| case 69: |
| #line 598 "cp-name-parser.y" |
| { yyval.nested1.comp = yyvsp[-2].nested1.comp; |
| d_right (yyvsp[-2].nested1.last) = make_empty (DEMANGLE_COMPONENT_QUAL_NAME); |
| yyval.nested1.last = d_right (yyvsp[-2].nested1.last); |
| d_left (yyval.nested1.last) = yyvsp[-1].comp; |
| d_right (yyval.nested1.last) = NULL; |
| } |
| break; |
| |
| case 70: |
| #line 605 "cp-name-parser.y" |
| { yyval.nested1.comp = make_empty (DEMANGLE_COMPONENT_QUAL_NAME); |
| d_left (yyval.nested1.comp) = yyvsp[-1].comp; |
| d_right (yyval.nested1.comp) = NULL; |
| yyval.nested1.last = yyval.nested1.comp; |
| } |
| break; |
| |
| case 71: |
| #line 611 "cp-name-parser.y" |
| { yyval.nested1.comp = yyvsp[-2].nested1.comp; |
| d_right (yyvsp[-2].nested1.last) = make_empty (DEMANGLE_COMPONENT_QUAL_NAME); |
| yyval.nested1.last = d_right (yyvsp[-2].nested1.last); |
| d_left (yyval.nested1.last) = yyvsp[-1].comp; |
| d_right (yyval.nested1.last) = NULL; |
| } |
| break; |
| |
| case 72: |
| #line 622 "cp-name-parser.y" |
| { yyval.comp = fill_comp (DEMANGLE_COMPONENT_TEMPLATE, yyvsp[-3].comp, yyvsp[-1].nested.comp); } |
| break; |
| |
| case 73: |
| #line 626 "cp-name-parser.y" |
| { yyval.nested.comp = fill_comp (DEMANGLE_COMPONENT_TEMPLATE_ARGLIST, yyvsp[0].comp, NULL); |
| yyval.nested.last = &d_right (yyval.nested.comp); } |
| break; |
| |
| case 74: |
| #line 629 "cp-name-parser.y" |
| { yyval.nested.comp = yyvsp[-2].nested.comp; |
| *yyvsp[-2].nested.last = fill_comp (DEMANGLE_COMPONENT_TEMPLATE_ARGLIST, yyvsp[0].comp, NULL); |
| yyval.nested.last = &d_right (*yyvsp[-2].nested.last); |
| } |
| break; |
| |
| case 76: |
| #line 641 "cp-name-parser.y" |
| { yyval.comp = yyvsp[0].abstract.comp; |
| *yyvsp[0].abstract.last = yyvsp[-1].comp; |
| } |
| break; |
| |
| case 77: |
| #line 645 "cp-name-parser.y" |
| { yyval.comp = fill_comp (DEMANGLE_COMPONENT_UNARY, make_operator
|