blob: 7595990da73be0a48375407e9aebca216ea89889 [file] [log] [blame]
/* 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,
DECFLOAT = 260,
STRING = 261,
CHAR = 262,
NAME = 263,
UNKNOWN_CPP_NAME = 264,
COMPLETE = 265,
TYPENAME = 266,
NAME_OR_INT = 267,
OPERATOR = 268,
STRUCT = 269,
CLASS = 270,
UNION = 271,
ENUM = 272,
SIZEOF = 273,
UNSIGNED = 274,
COLONCOLON = 275,
TEMPLATE = 276,
ERROR = 277,
NEW = 278,
DELETE = 279,
REINTERPRET_CAST = 280,
DYNAMIC_CAST = 281,
STATIC_CAST = 282,
CONST_CAST = 283,
ENTRY = 284,
SIGNED_KEYWORD = 285,
LONG = 286,
SHORT = 287,
INT_KEYWORD = 288,
CONST_KEYWORD = 289,
VOLATILE_KEYWORD = 290,
DOUBLE_KEYWORD = 291,
VARIABLE = 292,
ASSIGN_MODIFY = 293,
TRUEKEYWORD = 294,
FALSEKEYWORD = 295,
ABOVE_COMMA = 296,
OROR = 297,
ANDAND = 298,
NOTEQUAL = 299,
EQUAL = 300,
GEQ = 301,
LEQ = 302,
RSH = 303,
LSH = 304,
DECREMENT = 305,
INCREMENT = 306,
UNARY = 307,
DOT_STAR = 308,
ARROW_STAR = 309,
ARROW = 310,
BLOCKNAME = 311,
FILENAME = 312,
DOTDOTDOT = 313
};
#endif
#define INT 258
#define FLOAT 259
#define DECFLOAT 260
#define STRING 261
#define CHAR 262
#define NAME 263
#define UNKNOWN_CPP_NAME 264
#define COMPLETE 265
#define TYPENAME 266
#define NAME_OR_INT 267
#define OPERATOR 268
#define STRUCT 269
#define CLASS 270
#define UNION 271
#define ENUM 272
#define SIZEOF 273
#define UNSIGNED 274
#define COLONCOLON 275
#define TEMPLATE 276
#define ERROR 277
#define NEW 278
#define DELETE 279
#define REINTERPRET_CAST 280
#define DYNAMIC_CAST 281
#define STATIC_CAST 282
#define CONST_CAST 283
#define ENTRY 284
#define SIGNED_KEYWORD 285
#define LONG 286
#define SHORT 287
#define INT_KEYWORD 288
#define CONST_KEYWORD 289
#define VOLATILE_KEYWORD 290
#define DOUBLE_KEYWORD 291
#define VARIABLE 292
#define ASSIGN_MODIFY 293
#define TRUEKEYWORD 294
#define FALSEKEYWORD 295
#define ABOVE_COMMA 296
#define OROR 297
#define ANDAND 298
#define NOTEQUAL 299
#define EQUAL 300
#define GEQ 301
#define LEQ 302
#define RSH 303
#define LSH 304
#define DECREMENT 305
#define INCREMENT 306
#define UNARY 307
#define DOT_STAR 308
#define ARROW_STAR 309
#define ARROW 310
#define BLOCKNAME 311
#define FILENAME 312
#define DOTDOTDOT 313
/* Copy the first part of user declarations. */
#line 37 "c-exp.y"
#include "defs.h"
#include "gdb_string.h"
#include <ctype.h>
#include "expression.h"
#include "value.h"
#include "parser-defs.h"
#include "language.h"
#include "c-lang.h"
#include "bfd.h" /* Required by objfiles.h. */
#include "symfile.h" /* Required by objfiles.h. */
#include "objfiles.h" /* For have_full_symbols and have_partial_symbols */
#include "charset.h"
#include "block.h"
#include "cp-support.h"
#include "dfp.h"
#include "gdb_assert.h"
#include "macroscope.h"
#define parse_type builtin_type (parse_gdbarch)
/* 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 c_maxdepth
#define yyparse c_parse_internal
#define yylex c_lex
#define yyerror c_error
#define yylval c_lval
#define yychar c_char
#define yydebug c_debug
#define yypact c_pact
#define yyr1 c_r1
#define yyr2 c_r2
#define yydef c_def
#define yychk c_chk
#define yypgo c_pgo
#define yyact c_act
#define yyexca c_exca
#define yyerrflag c_errflag
#define yynerrs c_nerrs
#define yyps c_ps
#define yypv c_pv
#define yys c_s
#define yy_yys c_yys
#define yystate c_state
#define yytmp c_tmp
#define yyv c_v
#define yy_yyv c_yyv
#define yyval c_val
#define yylloc c_lloc
#define yyreds c_reds /* With YYDEBUG defined */
#define yytoks c_toks /* With YYDEBUG defined */
#define yyname c_name /* With YYDEBUG defined */
#define yyrule c_rule /* With YYDEBUG defined */
#define yylhs c_yylhs
#define yylen c_yylen
#define yydefred c_yydefred
#define yydgoto c_yydgoto
#define yysindex c_yysindex
#define yyrindex c_yyrindex
#define yygindex c_yygindex
#define yytable c_yytable
#define yycheck c_yycheck
#define yyss c_yyss
#define yysslim c_yysslim
#define yyssp c_yyssp
#define yystacksize c_yystacksize
#define yyvs c_yyvs
#define yyvsp c_yyvsp
#ifndef YYDEBUG
#define YYDEBUG 1 /* Default to yydebug support */
#endif
#define YYFPRINTF parser_fprintf
int yyparse (void);
static int yylex (void);
void yyerror (char *);
/* 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 132 "c-exp.y"
typedef union YYSTYPE {
LONGEST lval;
struct {
LONGEST val;
struct type *type;
} typed_val_int;
struct {
DOUBLEST dval;
struct type *type;
} typed_val_float;
struct {
gdb_byte val[16];
struct type *type;
} typed_val_decfloat;
struct symbol *sym;
struct type *tval;
struct stoken sval;
struct typed_stoken tsval;
struct ttype tsym;
struct symtoken ssym;
int voidval;
struct block *bval;
enum exp_opcode opcode;
struct internalvar *ivar;
struct stoken_vector svec;
VEC (type_ptr) *tvec;
int *ivec;
struct type_stack *type_stack;
} YYSTYPE;
/* Line 191 of yacc.c. */
#line 314 "c-exp.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 164 "c-exp.y"
/* YYSTYPE gets defined by %union */
static int parse_number (char *, int, int, YYSTYPE *);
static struct stoken operator_stoken (const char *);
static void check_parameter_typelist (VEC (type_ptr) *);
/* Line 214 of yacc.c. */
#line 332 "c-exp.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 149
/* YYLAST -- Last index in YYTABLE. */
#define YYLAST 1237
/* YYNTOKENS -- Number of terminals. */
#define YYNTOKENS 83
/* YYNNTS -- Number of nonterminals. */
#define YYNNTS 40
/* YYNRULES -- Number of rules. */
#define YYNRULES 222
/* YYNRULES -- Number of states. */
#define YYNSTATES 341
/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
#define YYUNDEFTOK 2
#define YYMAXUTOK 313
#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, 76, 2, 2, 2, 63, 49, 2,
69, 79, 61, 59, 41, 60, 67, 62, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 82, 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, 78, 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, 80, 47, 81, 77, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 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, 42, 45, 46, 50,
51, 54, 55, 56, 57, 64, 65, 66, 70, 71,
72, 73, 74, 75
};
#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, 15, 18, 21,
24, 27, 30, 33, 36, 39, 42, 45, 48, 52,
57, 61, 65, 69, 73, 78, 82, 86, 90, 95,
96, 102, 103, 109, 111, 112, 114, 118, 124, 126,
130, 135, 140, 144, 148, 152, 156, 160, 164, 168,
172, 176, 180, 184, 188, 192, 196, 200, 204, 208,
212, 216, 220, 226, 230, 234, 236, 238, 240, 242,
244, 246, 248, 253, 261, 269, 277, 285, 287, 290,
292, 294, 296, 298, 300, 304, 307, 311, 315, 320,
326, 328, 331, 333, 336, 338, 339, 343, 345, 347,
349, 350, 351, 356, 357, 361, 363, 366, 368, 371,
373, 375, 379, 382, 384, 387, 389, 392, 396, 399,
403, 405, 407, 409, 411, 413, 416, 420, 423, 427,
431, 435, 438, 441, 445, 450, 454, 458, 463, 467,
472, 476, 481, 484, 488, 491, 495, 498, 502, 504,
507, 510, 513, 516, 519, 522, 524, 527, 529, 535,
538, 541, 543, 545, 547, 549, 551, 555, 557, 561,
563, 566, 569, 570, 573, 576, 579, 581, 583, 585,
588, 591, 596, 601, 604, 607, 610, 613, 616, 619,
622, 625, 628, 631, 634, 637, 640, 643, 646, 649,
652, 655, 658, 661, 664, 667, 670, 673, 676, 679,
682, 686, 690, 693, 695, 697, 699, 701, 703, 705,
707, 709, 711
};
/* YYRHS -- A `-1'-separated list of the rules' RHS. */
static const yysigned_char yyrhs[] =
{
84, 0, -1, 86, -1, 85, -1, 110, -1, 87,
-1, 86, 41, 87, -1, 61, 87, -1, 49, 87,
-1, 60, 87, -1, 59, 87, -1, 76, 87, -1,
77, 87, -1, 65, 87, -1, 64, 87, -1, 87,
65, -1, 87, 64, -1, 18, 87, -1, 87, 72,
121, -1, 87, 72, 121, 10, -1, 87, 72, 10,
-1, 87, 72, 96, -1, 87, 71, 87, -1, 87,
67, 121, -1, 87, 67, 121, 10, -1, 87, 67,
10, -1, 87, 67, 96, -1, 87, 70, 87, -1,
87, 68, 86, 78, -1, -1, 87, 69, 88, 91,
79, -1, -1, 9, 69, 89, 91, 79, -1, 80,
-1, -1, 87, -1, 91, 41, 87, -1, 87, 69,
113, 79, 98, -1, 81, -1, 90, 91, 92, -1,
90, 110, 92, 87, -1, 69, 110, 79, 87, -1,
69, 86, 79, -1, 87, 58, 87, -1, 87, 61,
87, -1, 87, 62, 87, -1, 87, 63, 87, -1,
87, 59, 87, -1, 87, 60, 87, -1, 87, 57,
87, -1, 87, 56, 87, -1, 87, 51, 87, -1,
87, 50, 87, -1, 87, 55, 87, -1, 87, 54,
87, -1, 87, 52, 87, -1, 87, 53, 87, -1,
87, 49, 87, -1, 87, 48, 87, -1, 87, 47,
87, -1, 87, 46, 87, -1, 87, 45, 87, -1,
87, 44, 87, 82, 87, -1, 87, 43, 87, -1,
87, 38, 87, -1, 3, -1, 7, -1, 12, -1,
4, -1, 5, -1, 95, -1, 37, -1, 18, 69,
110, 79, -1, 25, 52, 110, 53, 69, 87, 79,
-1, 27, 52, 110, 53, 69, 87, 79, -1, 26,
52, 110, 53, 69, 87, 79, -1, 28, 52, 110,
53, 69, 87, 79, -1, 6, -1, 93, 6, -1,
93, -1, 39, -1, 40, -1, 73, -1, 74, -1,
94, 20, 121, -1, 122, 29, -1, 94, 20, 121,
-1, 11, 20, 121, -1, 11, 20, 77, 121, -1,
11, 20, 121, 20, 121, -1, 96, -1, 20, 122,
-1, 122, -1, 58, 8, -1, 119, -1, -1, 98,
97, 98, -1, 99, -1, 119, -1, 100, -1, -1,
-1, 102, 61, 103, 101, -1, -1, 61, 104, 101,
-1, 49, -1, 49, 102, -1, 102, -1, 105, 107,
-1, 105, -1, 107, -1, 69, 106, 79, -1, 107,
108, -1, 108, -1, 107, 109, -1, 109, -1, 68,
78, -1, 68, 3, 78, -1, 69, 79, -1, 69,
113, 79, -1, 115, -1, 11, -1, 33, -1, 31,
-1, 32, -1, 31, 33, -1, 31, 30, 33, -1,
31, 30, -1, 30, 31, 33, -1, 19, 31, 33,
-1, 31, 19, 33, -1, 31, 19, -1, 31, 31,
-1, 31, 31, 33, -1, 31, 31, 30, 33, -1,
31, 31, 30, -1, 30, 31, 31, -1, 30, 31,
31, 33, -1, 19, 31, 31, -1, 19, 31, 31,
33, -1, 31, 31, 19, -1, 31, 31, 19, 33,
-1, 32, 33, -1, 32, 30, 33, -1, 32, 30,
-1, 19, 32, 33, -1, 32, 19, -1, 32, 19,
33, -1, 36, -1, 31, 36, -1, 14, 121, -1,
15, 121, -1, 16, 121, -1, 17, 121, -1, 19,
112, -1, 19, -1, 30, 112, -1, 30, -1, 21,
121, 52, 110, 53, -1, 100, 111, -1, 111, 100,
-1, 11, -1, 33, -1, 31, -1, 32, -1, 114,
-1, 114, 41, 75, -1, 110, -1, 114, 41, 110,
-1, 111, -1, 115, 106, -1, 111, 117, -1, -1,
102, 117, -1, 34, 35, -1, 35, 34, -1, 118,
-1, 34, -1, 35, -1, 13, 23, -1, 13, 24,
-1, 13, 23, 68, 78, -1, 13, 24, 68, 78,
-1, 13, 59, -1, 13, 60, -1, 13, 61, -1,
13, 62, -1, 13, 63, -1, 13, 48, -1, 13,
49, -1, 13, 47, -1, 13, 77, -1, 13, 76,
-1, 13, 43, -1, 13, 52, -1, 13, 53, -1,
13, 38, -1, 13, 57, -1, 13, 56, -1, 13,
51, -1, 13, 50, -1, 13, 55, -1, 13, 54,
-1, 13, 46, -1, 13, 45, -1, 13, 65, -1,
13, 64, -1, 13, 41, -1, 13, 71, -1, 13,
72, -1, 13, 69, 79, -1, 13, 68, 78, -1,
13, 116, -1, 8, -1, 73, -1, 11, -1, 12,
-1, 9, -1, 120, -1, 8, -1, 73, -1, 120,
-1, 9, -1
};
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
static const unsigned short yyrline[] =
{
0, 263, 263, 264, 267, 274, 275, 280, 284, 288,
292, 296, 300, 304, 308, 312, 316, 320, 324, 330,
337, 347, 355, 359, 365, 372, 382, 390, 394, 401,
398, 409, 408, 431, 435, 438, 442, 446, 464, 467,
474, 480, 486, 492, 496, 500, 504, 508, 512, 516,
520, 524, 528, 532, 536, 540, 544, 548, 552, 556,
560, 564, 568, 572, 576, 582, 589, 598, 609, 616,
623, 626, 632, 642, 648, 654, 660, 669, 686, 704,
738, 745, 754, 762, 768, 778, 793, 815, 830, 854,
863, 864, 892, 946, 950, 951, 954, 957, 958, 962,
963, 968, 967, 971, 970, 973, 975, 979, 988, 990,
991, 994, 996, 1003, 1010, 1016, 1023, 1025, 1029, 1031,
1043, 1047, 1049, 1053, 1057, 1061, 1065, 1069, 1073, 1077,
1081, 1085, 1089, 1093, 1097, 1101, 1105, 1109, 1113, 1117,
1121, 1125, 1129, 1133, 1137, 1141, 1145, 1149, 1153, 1157,
1161, 1164, 1167, 1170, 1173, 1177, 1181, 1185, 1192, 1196,
1198, 1202, 1203, 1211, 1219, 1230, 1232, 1241, 1247, 1254,
1255, 1262, 1266, 1267, 1270, 1271, 1274, 1278, 1280, 1284,
1286, 1288, 1290, 1292, 1294, 1296, 1298, 1300, 1302, 1304,
1306, 1308, 1310, 1312, 1314, 1316, 1318, 1358, 1360, 1362,
1364, 1366, 1368, 1370, 1372, 1374, 1376, 1378, 1380, 1382,
1384, 1386, 1388, 1403, 1404, 1405, 1406, 1407, 1408, 1411,
1412, 1420, 1428
};
#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", "DECFLOAT", "STRING",
"CHAR", "NAME", "UNKNOWN_CPP_NAME", "COMPLETE", "TYPENAME",
"NAME_OR_INT", "OPERATOR", "STRUCT", "CLASS", "UNION", "ENUM", "SIZEOF",
"UNSIGNED", "COLONCOLON", "TEMPLATE", "ERROR", "NEW", "DELETE",
"REINTERPRET_CAST", "DYNAMIC_CAST", "STATIC_CAST", "CONST_CAST", "ENTRY",
"SIGNED_KEYWORD", "LONG", "SHORT", "INT_KEYWORD", "CONST_KEYWORD",
"VOLATILE_KEYWORD", "DOUBLE_KEYWORD", "VARIABLE", "ASSIGN_MODIFY",
"TRUEKEYWORD", "FALSEKEYWORD", "','", "ABOVE_COMMA", "'='", "'?'",
"OROR", "ANDAND", "'|'", "'^'", "'&'", "NOTEQUAL", "EQUAL", "'<'", "'>'",
"GEQ", "LEQ", "RSH", "LSH", "'@'", "'+'", "'-'", "'*'", "'/'", "'%'",
"DECREMENT", "INCREMENT", "UNARY", "'.'", "'['", "'('", "DOT_STAR",
"ARROW_STAR", "ARROW", "BLOCKNAME", "FILENAME", "DOTDOTDOT", "'!'",
"'~'", "']'", "')'", "'{'", "'}'", "':'", "$accept", "start", "type_exp",
"exp1", "exp", "@1", "@2", "lcurly", "arglist", "rcurly", "string_exp",
"block", "variable", "qualified_name", "space_identifier",
"const_or_volatile", "cv_with_space_id",
"const_or_volatile_or_space_identifier_noopt",
"const_or_volatile_or_space_identifier", "ptr_operator", "@3", "@4",
"ptr_operator_ts", "abs_decl", "direct_abs_decl", "array_mod",
"func_mod", "type", "typebase", "typename", "parameter_typelist",
"nonempty_typelist", "ptype", "conversion_type_id",
"conversion_declarator", "const_and_volatile", "const_or_volatile_noopt",
"operator", "name", "name_not_typename", 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, 44, 296, 61, 63, 297, 298, 124, 94, 38,
299, 300, 60, 62, 301, 302, 303, 304, 64, 43,
45, 42, 47, 37, 305, 306, 307, 46, 91, 40,
308, 309, 310, 311, 312, 313, 33, 126, 93, 41,
123, 125, 58
};
# endif
/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
static const unsigned char yyr1[] =
{
0, 83, 84, 84, 85, 86, 86, 87, 87, 87,
87, 87, 87, 87, 87, 87, 87, 87, 87, 87,
87, 87, 87, 87, 87, 87, 87, 87, 87, 88,
87, 89, 87, 90, 91, 91, 91, 87, 92, 87,
87, 87, 87, 87, 87, 87, 87, 87, 87, 87,
87, 87, 87, 87, 87, 87, 87, 87, 87, 87,
87, 87, 87, 87, 87, 87, 87, 87, 87, 87,
87, 87, 87, 87, 87, 87, 87, 93, 93, 87,
87, 87, 94, 94, 94, 95, 95, 96, 96, 96,
95, 95, 95, 97, 98, 98, 99, 100, 100, 101,
101, 103, 102, 104, 102, 102, 102, 105, 106, 106,
106, 107, 107, 107, 107, 107, 108, 108, 109, 109,
110, 111, 111, 111, 111, 111, 111, 111, 111, 111,
111, 111, 111, 111, 111, 111, 111, 111, 111, 111,
111, 111, 111, 111, 111, 111, 111, 111, 111, 111,
111, 111, 111, 111, 111, 111, 111, 111, 111, 111,
111, 112, 112, 112, 112, 113, 113, 114, 114, 115,
115, 116, 117, 117, 118, 118, 119, 119, 119, 120,
120, 120, 120, 120, 120, 120, 120, 120, 120, 120,
120, 120, 120, 120, 120, 120, 120, 120, 120, 120,
120, 120, 120, 120, 120, 120, 120, 120, 120, 120,
120, 120, 120, 121, 121, 121, 121, 121, 121, 122,
122, 122, 122
};
/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
static const unsigned char yyr2[] =
{
0, 2, 1, 1, 1, 1, 3, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 3, 4,
3, 3, 3, 3, 4, 3, 3, 3, 4, 0,
5, 0, 5, 1, 0, 1, 3, 5, 1, 3,
4, 4, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 5, 3, 3, 1, 1, 1, 1, 1,
1, 1, 4, 7, 7, 7, 7, 1, 2, 1,
1, 1, 1, 1, 3, 2, 3, 3, 4, 5,
1, 2, 1, 2, 1, 0, 3, 1, 1, 1,
0, 0, 4, 0, 3, 1, 2, 1, 2, 1,
1, 3, 2, 1, 2, 1, 2, 3, 2, 3,
1, 1, 1, 1, 1, 2, 3, 2, 3, 3,
3, 2, 2, 3, 4, 3, 3, 4, 3, 4,
3, 4, 2, 3, 2, 3, 2, 3, 1, 2,
2, 2, 2, 2, 2, 1, 2, 1, 5, 2,
2, 1, 1, 1, 1, 1, 3, 1, 3, 1,
2, 2, 0, 2, 2, 2, 1, 1, 1, 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, 2, 2,
3, 3, 2, 1, 1, 1, 1, 1, 1, 1,
1, 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[] =
{
95, 65, 68, 69, 77, 66, 219, 222, 121, 67,
95, 0, 0, 0, 0, 0, 155, 0, 0, 0,
0, 0, 0, 157, 123, 124, 122, 177, 178, 148,
71, 80, 81, 0, 0, 0, 0, 0, 0, 95,
220, 83, 0, 0, 33, 0, 3, 2, 5, 34,
79, 0, 70, 90, 0, 97, 95, 4, 169, 120,
176, 98, 221, 92, 31, 0, 121, 179, 180, 196,
207, 193, 204, 203, 190, 188, 189, 200, 199, 194,
195, 202, 201, 198, 197, 183, 184, 185, 186, 187,
206, 205, 0, 0, 208, 209, 192, 191, 172, 212,
213, 217, 215, 216, 214, 218, 150, 151, 152, 153,
0, 95, 17, 161, 163, 164, 162, 154, 222, 220,
91, 0, 95, 95, 95, 95, 163, 164, 156, 131,
127, 132, 125, 149, 146, 144, 142, 174, 175, 8,
10, 9, 7, 14, 13, 0, 0, 11, 12, 1,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 16, 15, 0, 0, 29, 0, 0,
0, 35, 0, 0, 78, 0, 0, 95, 159, 160,
105, 103, 0, 95, 107, 109, 170, 110, 113, 115,
85, 34, 0, 87, 0, 0, 211, 210, 172, 171,
0, 138, 129, 145, 95, 0, 0, 0, 0, 136,
128, 130, 126, 140, 135, 133, 147, 143, 42, 0,
6, 64, 63, 0, 61, 60, 59, 58, 57, 52,
51, 55, 56, 54, 53, 50, 49, 43, 47, 48,
44, 45, 46, 25, 215, 26, 23, 0, 34, 167,
0, 165, 27, 22, 20, 21, 18, 0, 38, 39,
0, 86, 93, 96, 94, 106, 100, 0, 116, 118,
0, 0, 101, 108, 95, 112, 114, 0, 88, 0,
181, 182, 101, 173, 72, 139, 0, 0, 0, 0,
0, 137, 141, 134, 41, 0, 24, 28, 0, 95,
95, 19, 36, 40, 99, 104, 117, 111, 119, 100,
32, 89, 158, 0, 0, 0, 0, 62, 30, 37,
166, 168, 102, 0, 0, 0, 0, 73, 75, 74,
76
};
/* YYDEFGOTO[NTERM-NUM]. */
static const short yydefgoto[] =
{
-1, 45, 46, 145, 48, 258, 201, 49, 182, 269,
50, 51, 52, 53, 187, 54, 55, 56, 315, 194,
319, 276, 195, 196, 197, 198, 199, 259, 58, 117,
281, 261, 59, 99, 209, 60, 61, 62, 106, 63
};
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
STATE-NUM. */
#define YYPACT_NINF -187
static const short yypact[] =
{
388, -187, -187, -187, -187, -187, -187, -43, 32, -187,
670, 56, 56, 56, 56, 197, 52, 16, 56, -19,
-16, 10, 19, 100, 84, 88, -187, 45, 47, -187,
-187, -187, -187, 466, 466, 466, 466, 466, 466, 388,
72, -187, 466, 466, -187, 87, -187, 65, 964, 310,
103, 92, -187, -187, 61, -187, 1108, -187, 24, 113,
-187, 64, -187, 101, -187, 31, -187, 93, 97, -187,
-187, -187, -187, -187, -187, -187, -187, -187, -187, -187,
-187, -187, -187, -187, -187, -187, -187, -187, -187, -187,
-187, -187, 91, 94, -187, -187, -187, -187, 44, -187,
-187, -187, -187, -187, -187, -187, -187, -187, -187, -187,
32, 388, 449, -187, 55, 138, -187, -187, -187, -187,
-187, 127, 1108, 1108, 1108, 1108, 135, -187, -187, 152,
155, 159, -187, -187, 162, 163, -187, -187, -187, 449,
449, 449, 449, 449, 449, -6, 114, 449, 449, -187,
466, 466, 466, 466, 466, 466, 466, 466, 466, 466,
466, 466, 466, 466, 466, 466, 466, 466, 466, 466,
466, 466, 466, -187, -187, 37, 466, 760, 466, 466,
86, 964, -9, 117, -187, 56, 191, 20, 24, -187,
146, -187, 13, 611, 150, 115, -187, 122, -187, -187,
-187, 466, 56, 192, 140, 141, -187, -187, 67, -187,
134, 187, -187, -187, 1108, 168, 173, 180, 182, 205,
-187, -187, -187, 206, 207, -187, -187, -187, -187, 466,
964, 964, 964, 776, 1020, 1046, 1097, 1121, 1144, 1165,
1165, 606, 606, 606, 606, 234, 234, 293, 371, 371,
449, 449, 449, -187, 32, -187, 231, 12, 466, -187,
165, 201, 160, 160, -187, -187, 235, 466, -187, -187,
466, 227, -187, -187, -187, 150, 24, 171, -187, -187,
172, 174, -187, 122, 571, -187, -187, -4, -187, 56,
-187, -187, -187, -187, 544, -187, 210, 181, 185, 190,
195, -187, -187, -187, 449, 466, -187, -187, -3, 20,
734, -187, 964, 449, -187, -187, -187, -187, -187, 24,
-187, -187, -187, 466, 466, 466, 466, 993, -187, -187,
-187, -187, -187, 816, 853, 890, 927, -187, -187, -187,
-187
};
/* YYPGOTO[NTERM-NUM]. */
static const short yypgoto[] =
{
-187, -187, -187, 11, -15, -187, -187, -187, -184, 77,
-187, -187, -187, -119, -187, -186, -187, -28, -54, -32,
-187, -187, -187, 74, 73, -183, -182, 2, 21, 246,
95, -187, -187, -187, 68, -187, -175, -8, -5, 258
};
/* 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 -96
static const short yytable[] =
{
112, 273, 57, 105, 105, 105, 105, 107, 108, 109,
105, 47, 274, 121, 285, 286, 277, 287, 139, 140,
141, 142, 143, 144, 6, 118, 64, 147, 148, 10,
189, 98, 267, 122, 181, 150, 123, 267, 267, 100,
101, 146, 102, 103, 10, 100, 101, 253, 254, 103,
10, 183, 65, 150, 27, 28, 255, 105, 27, 28,
203, 265, 124, 113, 100, 101, 208, 102, 103, 10,
189, 125, 268, 228, 308, 320, 328, 188, 27, 28,
137, 138, -95, 114, 115, 116, 211, 149, 212, 119,
307, 278, -82, 190, 100, 101, 264, 254, 103, 10,
285, 286, -95, 129, 104, 191, 150, 134, 202, 184,
104, 113, 185, 210, 130, 131, 190, 132, 135, 186,
133, 136, -94, 329, 215, 216, 217, 218, 292, 104,
200, 126, 127, 116, 274, 230, 231, 232, 233, 234,
235, 236, 237, 238, 239, 240, 241, 242, 243, 244,
245, 246, 247, 248, 249, 250, 251, 252, 275, 104,
189, 204, 190, 262, 263, 205, 219, 105, 220, 206,
256, 213, 105, 207, 191, 266, 208, 105, 223, 214,
271, 192, 193, 192, 193, 221, 181, 257, 222, 224,
192, 284, 225, 229, 105, 226, 227, 288, 268, 272,
1, 2, 3, 4, 5, 6, 7, 191, 110, 9,
10, 282, 289, 294, 304, 15, 296, 17, 290, 291,
295, 297, 19, 20, 21, 22, 298, 175, 176, 177,
178, 179, 180, 299, 30, 300, 31, 32, 301, 302,
303, 306, 310, 181, 309, 311, 33, -84, 314, 316,
323, 317, 312, 318, 324, 313, 34, 35, 36, 325,
270, 37, 38, 322, 326, 332, 111, 280, 283, 128,
40, 41, 260, 42, 43, 120, 293, 44, 0, 304,
0, 105, 0, 0, 321, 0, 0, 0, 0, 0,
327, 314, 167, 168, 169, 170, 171, 172, 173, 174,
0, 175, 176, 177, 178, 179, 180, 0, 333, 334,
335, 336, 331, 1, 2, 3, 4, 5, 6, 7,
0, 8, 9, 10, 11, 12, 13, 14, 15, 16,
17, 18, 0, 0, 0, 19, 20, 21, 22, 0,
23, 24, 25, 26, 27, 28, 29, 30, 0, 31,
32, 0, 168, 169, 170, 171, 172, 173, 174, 33,
175, 176, 177, 178, 179, 180, 0, 0, -95, 34,
35, 36, 0, 0, 37, 38, 0, 0, 0, 39,
0, 0, 0, 40, 41, 0, 42, 43, 0, 0,
44, 1, 2, 3, 4, 5, 6, 7, 0, 8,
9, 10, 11, 12, 13, 14, 15, 16, 17, 18,
0, 0, 0, 19, 20, 21, 22, 0, 23, 24,
25, 26, 27, 28, 29, 30, 0, 31, 32, 0,
0, 0, 170, 171, 172, 173, 174, 33, 175, 176,
177, 178, 179, 180, 0, 0, 0, 34, 35, 36,
0, 0, 37, 38, 0, 0, 0, 39, 0, 0,
0, 40, 41, 0, 42, 43, 0, 0, 44, 1,
2, 3, 4, 5, 6, 7, 0, 110, 9, 10,
0, 0, 0, 0, 15, 0, 17, 0, 0, 0,
0, 19, 20, 21, 22, 0, 0, 0, 0, 0,
0, 0, 0, 30, 0, 31, 32, 0, 0, 0,
0, 0, 0, 173, 174, 33, 175, 176, 177, 178,
179, 180, 0, 0, 0, 34, 35, 36, 0, 0,
37, 38, 0, 0, 0, 39, 0, 0, 0, 40,
41, 0, 42, 43, 0, 0, 44, 1, 2, 3,
4, 5, 6, 7, 0, 110, 9, 10, 0, 0,
0, 0, 15, 0, 17, 0, 0, 0, 0, 19,
20, 21, 22, 0, 0, 0, 0, 0, 0, 0,
0, 30, 66, 31, 32, 11, 12, 13, 14, 0,
16, 0, 18, 0, 0, 0, 0, 0, 0, 0,
0, 23, 24, 25, 26, 27, 28, 29, 37, 38,
0, 0, 0, 39, 0, 0, 0, 40, 41, 0,
42, 43, 66, 0, 44, 11, 12, 13, 14, 0,
16, 0, 18, 0, 0, 0, 0, 0, 0, 0,
0, 23, 24, 25, 26, 27, 28, 29, 0, 0,
279, 0, 0, 0, 0, 0, 0, 0, 0, 0,
190, 0, 165, 166, 167, 168, 169, 170, 171, 172,
173, 174, 191, 175, 176, 177, 178, 179, 180, 192,
193, 66, 0, 0, 11, 12, 13, 14, 0, 16,
279, 18, 0, 67, 68, 0, 0, 0, 0, 0,
23, 24, 25, 26, 27, 28, 29, 0, 69, 0,
0, 70, 0, 71, 0, 72, 73, 74, 75, 76,
77, 78, 79, 80, 81, 82, 83, 84, 0, 85,
86, 87, 88, 89, 90, 91, 0, 0, 92, 93,
0, 94, 95, 0, 0, 66, 96, 97, 11, 12,
13, 14, 0, 16, 0, 18, 0, 0, 0, 0,
0, 0, 0, 0, 23, 24, 25, 26, 27, 28,
29, 66, 0, 0, 11, 12, 13, 14, 0, 16,
0, 18, 0, 0, 0, 0, 0, 0, 0, 0,
23, 24, 25, 26, 27, 28, 29, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 330,
0, 0, 0, 0, 151, 0, 0, 0, -95, 152,
153, 154, 155, 156, 157, 158, 159, 160, 161, 162,
163, 164, 165, 166, 167, 168, 169, 170, 171, 172,
173, 174, 0, 175, 176, 177, 178, 179, 180, 0,
0, 0, 0, 0, 151, 0, 0, 0, 305, 152,
153, 154, 155, 156, 157, 158, 159, 160, 161, 162,
163, 164, 165, 166, 167, 168, 169, 170, 171, 172,
173, 174, 0, 175, 176, 177, 178, 179, 180, 0,
0, 151, 0, 0, 0, 337, 152, 153, 154, 155,
156, 157, 158, 159, 160, 161, 162, 163, 164, 165,
166, 167, 168, 169, 170, 171, 172, 173, 174, 0,
175, 176, 177, 178, 179, 180, 0, 0, 151, 0,
0, 0, 338, 152, 153, 154, 155, 156, 157, 158,
159, 160, 161, 162, 163, 164, 165, 166, 167, 168,
169, 170, 171, 172, 173, 174, 0, 175, 176, 177,
178, 179, 180, 0, 0, 151, 0, 0, 0, 339,
152, 153, 154, 155, 156, 157, 158, 159, 160, 161,
162, 163, 164, 165, 166, 167, 168, 169, 170, 171,
172, 173, 174, 0, 175, 176, 177, 178, 179, 180,
0, 0, 151, 0, 0, 0, 340, 152, 153, 154,
155, 156, 157, 158, 159, 160, 161, 162, 163, 164,
165, 166, 167, 168, 169, 170, 171, 172, 173, 174,
0, 175, 176, 177, 178, 179, 180, 153, 154, 155,
156, 157, 158, 159, 160, 161, 162, 163, 164, 165,
166, 167, 168, 169, 170, 171, 172, 173, 174, 0,
175, 176, 177, 178, 179, 180, 155, 156, 157, 158,
159, 160, 161, 162, 163, 164, 165, 166, 167, 168,
169, 170, 171, 172, 173, 174, 0, 175, 176, 177,
178, 179, 180, 156, 157, 158, 159, 160, 161, 162,
163, 164, 165, 166, 167, 168, 169, 170, 171, 172,
173, 174, 0, 175, 176, 177, 178, 179, 180, 66,
0, 0, 11, 12, 13, 14, 0, 16, 0, 18,
0, 0, 0, 0, 0, 0, 0, 0, 23, 24,
25, 26, 27, 28, 29, 157, 158, 159, 160, 161,
162, 163, 164, 165, 166, 167, 168, 169, 170, 171,
172, 173, 174, 0, 175, 176, 177, 178, 179, 180,
158, 159, 160, 161, 162, 163, 164, 165, 166, 167,
168, 169, 170, 171, 172, 173, 174, 0, 175, 176,
177, 178, 179, 180, 159, 160, 161, 162, 163, 164,
165, 166, 167, 168, 169, 170, 171, 172, 173, 174,
0, 175, 176, 177, 178, 179, 180, 161, 162, 163,
164, 165, 166, 167, 168, 169, 170, 171, 172, 173,
174, 0, 175, 176, 177, 178, 179, 180
};
static const short yycheck[] =
{
15, 187, 0, 11, 12, 13, 14, 12, 13, 14,
18, 0, 187, 18, 197, 197, 3, 201, 33, 34,
35, 36, 37, 38, 8, 9, 69, 42, 43, 13,
58, 10, 41, 52, 49, 41, 52, 41, 41, 8,
9, 39, 11, 12, 13, 8, 9, 10, 11, 12,
13, 49, 20, 41, 34, 35, 175, 65, 34, 35,
65, 180, 52, 11, 8, 9, 98, 11, 12, 13,
98, 52, 81, 79, 258, 79, 79, 56, 34, 35,
35, 34, 58, 31, 32, 33, 31, 0, 33, 73,
78, 78, 20, 49, 8, 9, 10, 11, 12, 13,
283, 283, 58, 19, 73, 61, 41, 19, 77, 6,
73, 11, 20, 111, 30, 31, 49, 33, 30, 58,
36, 33, 58, 309, 122, 123, 124, 125, 61, 73,
29, 31, 32, 33, 309, 150, 151, 152, 153, 154,
155, 156, 157, 158, 159, 160, 161, 162, 163, 164,
165, 166, 167, 168, 169, 170, 171, 172, 190, 73,
188, 68, 49, 178, 179, 68, 31, 175, 33, 78,
175, 33, 180, 79, 61, 180, 208, 185, 19, 52,
185, 68, 69, 68, 69, 33, 201, 176, 33, 30,
68, 69, 33, 79, 202, 33, 33, 202, 81, 8,
3, 4, 5, 6, 7, 8, 9, 61, 11, 12,
13, 61, 20, 79, 229, 18, 214, 20, 78, 78,
33, 53, 25, 26, 27, 28, 53, 67, 68, 69,
70, 71, 72, 53, 37, 53, 39, 40, 33, 33,
33, 10, 41, 258, 79, 10, 49, 20, 276, 78,
69, 79, 267, 79, 69, 270, 59, 60, 61, 69,
183, 64, 65, 53, 69, 319, 69, 193, 195, 23,
73, 74, 177, 76, 77, 17, 208, 80, -1, 294,
-1, 289, -1, -1, 289, -1, -1, -1, -1, -1,
305, 319, 58, 59, 60, 61, 62, 63, 64, 65,
-1, 67, 68, 69, 70, 71, 72, -1, 323, 324,
325, 326, 310, 3, 4, 5, 6, 7, 8, 9,
-1, 11, 12, 13, 14, 15, 16, 17, 18, 19,
20, 21, -1, -1, -1, 25, 26, 27, 28, -1,
30, 31, 32, 33, 34, 35, 36, 37, -1, 39,
40, -1, 59, 60, 61, 62, 63, 64, 65, 49,
67, 68, 69, 70, 71, 72, -1, -1, 58, 59,
60, 61, -1, -1, 64, 65, -1, -1, -1, 69,
-1, -1, -1, 73, 74, -1, 76, 77, -1, -1,
80, 3, 4, 5, 6, 7, 8, 9, -1, 11,
12, 13, 14, 15, 16, 17, 18, 19, 20, 21,
-1, -1, -1, 25, 26, 27, 28, -1, 30, 31,
32, 33, 34, 35, 36, 37, -1, 39, 40, -1,
-1, -1, 61, 62, 63, 64, 65, 49, 67, 68,
69, 70, 71, 72, -1, -1, -1, 59, 60, 61,
-1, -1, 64, 65, -1, -1, -1, 69, -1, -1,
-1, 73, 74, -1, 76, 77, -1, -1, 80, 3,
4, 5, 6, 7, 8, 9, -1, 11, 12, 13,
-1, -1, -1, -1, 18, -1, 20, -1, -1, -1,
-1, 25, 26, 27, 28, -1, -1, -1, -1, -1,
-1, -1, -1, 37, -1, 39, 40, -1, -1, -1,
-1, -1, -1, 64, 65, 49, 67, 68, 69, 70,
71, 72, -1, -1, -1, 59, 60, 61, -1, -1,
64, 65, -1, -1, -1, 69, -1, -1, -1, 73,
74, -1, 76, 77, -1, -1, 80, 3, 4, 5,
6, 7, 8, 9, -1, 11, 12, 13, -1, -1,
-1, -1, 18, -1, 20, -1, -1, -1, -1, 25,
26, 27, 28, -1, -1, -1, -1, -1, -1, -1,
-1, 37, 11, 39, 40, 14, 15, 16, 17, -1,
19, -1, 21, -1, -1, -1, -1, -1, -1, -1,
-1, 30, 31, 32, 33, 34, 35, 36, 64, 65,
-1, -1, -1, 69, -1, -1, -1, 73, 74, -1,
76, 77, 11, -1, 80, 14, 15, 16, 17, -1,
19, -1, 21, -1, -1, -1, -1, -1, -1, -1,
-1, 30, 31, 32, 33, 34, 35, 36, -1, -1,
79, -1, -1, -1, -1, -1, -1, -1, -1, -1,
49, -1, 56, 57, 58, 59, 60, 61, 62, 63,
64, 65, 61, 67, 68, 69, 70, 71, 72, 68,
69, 11, -1, -1, 14, 15, 16, 17, -1, 19,
79, 21, -1, 23, 24, -1, -1, -1, -1, -1,
30, 31, 32, 33, 34, 35, 36, -1, 38, -1,
-1, 41, -1, 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,
-1, 71, 72, -1, -1, 11, 76, 77, 14, 15,
16, 17, -1, 19, -1, 21, -1, -1, -1, -1,
-1, -1, -1, -1, 30, 31, 32, 33, 34, 35,
36, 11, -1, -1, 14, 15, 16, 17, -1, 19,
-1, 21, -1, -1, -1, -1, -1, -1, -1, -1,
30, 31, 32, 33, 34, 35, 36, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 75,
-1, -1, -1, -1, 38, -1, -1, -1, 58, 43,
44, 45, 46, 47, 48, 49, 50, 51, 52, 53,
54, 55, 56, 57, 58, 59, 60, 61, 62, 63,
64, 65, -1, 67, 68, 69, 70, 71, 72, -1,
-1, -1, -1, -1, 38, -1, -1, -1, 82, 43,
44, 45, 46, 47, 48, 49, 50, 51, 52, 53,
54, 55, 56, 57, 58, 59, 60, 61, 62, 63,
64, 65, -1, 67, 68, 69, 70, 71, 72, -1,
-1, 38, -1, -1, -1, 79, 43, 44, 45, 46,
47, 48, 49, 50, 51, 52, 53, 54, 55, 56,
57, 58, 59, 60, 61, 62, 63, 64, 65, -1,
67, 68, 69, 70, 71, 72, -1, -1, 38, -1,
-1, -1, 79, 43, 44, 45, 46, 47, 48, 49,
50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
60, 61, 62, 63, 64, 65, -1, 67, 68, 69,
70, 71, 72, -1, -1, 38, -1, -1, -1, 79,
43, 44, 45, 46, 47, 48, 49, 50, 51, 52,
53, 54, 55, 56, 57, 58, 59, 60, 61, 62,
63, 64, 65, -1, 67, 68, 69, 70, 71, 72,
-1, -1, 38, -1, -1, -1, 79, 43, 44, 45,
46, 47, 48, 49, 50, 51, 52, 53, 54, 55,
56, 57, 58, 59, 60, 61, 62, 63, 64, 65,
-1, 67, 68, 69, 70, 71, 72, 44, 45, 46,
47, 48, 49, 50, 51, 52, 53, 54, 55, 56,
57, 58, 59, 60, 61, 62, 63, 64, 65, -1,
67, 68, 69, 70, 71, 72, 46, 47, 48, 49,
50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
60, 61, 62, 63, 64, 65, -1, 67, 68, 69,
70, 71, 72, 47, 48, 49, 50, 51, 52, 53,
54, 55, 56, 57, 58, 59, 60, 61, 62, 63,
64, 65, -1, 67, 68, 69, 70, 71, 72, 11,
-1, -1, 14, 15, 16, 17, -1, 19, -1, 21,
-1, -1, -1, -1, -1, -1, -1, -1, 30, 31,
32, 33, 34, 35, 36, 48, 49, 50, 51, 52,
53, 54, 55, 56, 57, 58, 59, 60, 61, 62,
63, 64, 65, -1, 67, 68, 69, 70, 71, 72,
49, 50, 51, 52, 53, 54, 55, 56, 57, 58,
59, 60, 61, 62, 63, 64, 65, -1, 67, 68,
69, 70, 71, 72, 50, 51, 52, 53, 54, 55,
56, 57, 58, 59, 60, 61, 62, 63, 64, 65,
-1, 67, 68, 69, 70, 71, 72, 52, 53, 54,
55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
65, -1, 67, 68, 69, 70, 71, 72
};
/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
symbol of state STATE-NUM. */
static const unsigned char yystos[] =
{
0, 3, 4, 5, 6, 7, 8, 9, 11, 12,
13, 14, 15, 16, 17, 18, 19, 20, 21, 25,
26, 27, 28, 30, 31, 32, 33, 34, 35, 36,
37, 39, 40, 49, 59, 60, 61, 64, 65, 69,
73, 74, 76, 77, 80, 84, 85, 86, 87, 90,
93, 94, 95, 96, 98, 99, 100, 110, 111, 115,
118, 119, 120, 122, 69, 20, 11, 23, 24, 38,
41, 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, 76, 77, 111, 116,
8, 9, 11, 12, 73, 120, 121, 121, 121, 121,
11, 69, 87, 11, 31, 32, 33, 112, 9, 73,
122, 121, 52, 52, 52, 52, 31, 32, 112, 19,
30, 31, 33, 36, 19, 30, 33, 35, 34, 87,
87, 87, 87, 87, 87, 86, 110, 87, 87, 0,
41, 38, 43, 44, 45, 46, 47, 48, 49, 50,
51, 52, 53, 54, 55, 56, 57, 58, 59, 60,
61, 62, 63, 64, 65, 67, 68, 69, 70, 71,
72, 87, 91, 110, 6, 20, 58, 97, 111, 100,
49, 61, 68, 69, 102, 105, 106, 107, 108, 109,
29, 89, 77, 121, 68, 68, 78, 79, 102, 117,
110, 31, 33, 33, 52, 110, 110, 110, 110, 31,
33, 33, 33, 19, 30, 33, 33, 33, 79, 79,
87, 87, 87, 87, 87, 87, 87, 87, 87, 87,
87, 87, 87, 87, 87, 87, 87, 87, 87, 87,
87, 87, 87, 10, 11, 96, 121, 86, 88, 110,
113, 114, 87, 87, 10, 96, 121, 41, 81, 92,
92, 121, 8, 98, 119, 102, 104, 3, 78, 79,
106, 113, 61, 107, 69, 108, 109, 91, 121, 20,
78, 78, 61, 117, 79, 33, 110, 53, 53, 53,
53, 33, 33, 33, 87, 82, 10, 78, 91, 79,
41, 10, 87, 87, 100, 101, 78, 79, 79, 103,
79, 121, 53, 69, 69, 69, 69, 87, 79, 98,
75, 110, 101, 87, 87, 87, 87, 79, 79, 79,
79
};
#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 4:
#line 268 "c-exp.y"
{ write_exp_elt_opcode(OP_TYPE);
write_exp_elt_type(yyvsp[0].tval);
write_exp_elt_opcode(OP_TYPE);}
break;
case 6:
#line 276 "c-exp.y"
{ write_exp_elt_opcode (BINOP_COMMA); }
break;
case 7:
#line 281 "c-exp.y"
{ write_exp_elt_opcode (UNOP_IND); }
break;
case 8:
#line 285 "c-exp.y"
{ write_exp_elt_opcode (UNOP_ADDR); }
break;
case 9:
#line 289 "c-exp.y"
{ write_exp_elt_opcode (UNOP_NEG); }
break;
case 10:
#line 293 "c-exp.y"
{ write_exp_elt_opcode (UNOP_PLUS); }
break;
case 11:
#line 297 "c-exp.y"
{ write_exp_elt_opcode (UNOP_LOGICAL_NOT); }
break;
case 12:
#line 301 "c-exp.y"
{ write_exp_elt_opcode (UNOP_COMPLEMENT); }
break;
case 13:
#line 305 "c-exp.y"
{ write_exp_elt_opcode (UNOP_PREINCREMENT); }
break;
case 14:
#line 309 "c-exp.y"
{ write_exp_elt_opcode (UNOP_PREDECREMENT); }
break;
case 15:
#line 313 "c-exp.y"
{ write_exp_elt_opcode (UNOP_POSTINCREMENT); }
break;
case 16:
#line 317 "c-exp.y"
{ write_exp_elt_opcode (UNOP_POSTDECREMENT); }
break;
case 17:
#line 321 "c-exp.y"
{ write_exp_elt_opcode (UNOP_SIZEOF); }
break;
case 18:
#line 325 "c-exp.y"
{ write_exp_elt_opcode (STRUCTOP_PTR);
write_exp_string (yyvsp[0].sval);
write_exp_elt_opcode (STRUCTOP_PTR); }
break;
case 19:
#line 331 "c-exp.y"
{ mark_struct_expression ();
write_exp_elt_opcode (STRUCTOP_PTR);
write_exp_string (yyvsp[-1].sval);
write_exp_elt_opcode (STRUCTOP_PTR); }
break;
case 20:
#line 338 "c-exp.y"
{ struct stoken s;
mark_struct_expression ();
write_exp_elt_opcode (STRUCTOP_PTR);
s.ptr = "";
s.length = 0;
write_exp_string (s);
write_exp_elt_opcode (STRUCTOP_PTR); }
break;
case 21:
#line 348 "c-exp.y"
{ /* exp->type::name becomes exp->*(&type::name) */
/* Note: this doesn't work if name is a
static member! FIXME */
write_exp_elt_opcode (UNOP_ADDR);
write_exp_elt_opcode (STRUCTOP_MPTR); }
break;
case 22:
#line 356 "c-exp.y"
{ write_exp_elt_opcode (STRUCTOP_MPTR); }
break;
case 23:
#line 360 "c-exp.y"
{ write_exp_elt_opcode (STRUCTOP_STRUCT);
write_exp_string (yyvsp[0].sval);
write_exp_elt_opcode (STRUCTOP_STRUCT); }
break;
case 24:
#line 366 "c-exp.y"
{ mark_struct_expression ();
write_exp_elt_opcode (STRUCTOP_STRUCT);
write_exp_string (yyvsp[-1].sval);
write_exp_elt_opcode (STRUCTOP_STRUCT); }
break;
case 25:
#line 373 "c-exp.y"
{ struct stoken s;
mark_struct_expression ();
write_exp_elt_opcode (STRUCTOP_STRUCT);
s.ptr = "";
s.length = 0;
write_exp_string (s);
write_exp_elt_opcode (STRUCTOP_STRUCT); }
break;
case 26:
#line 383 "c-exp.y"
{ /* exp.type::name becomes exp.*(&type::name) */
/* Note: this doesn't work if name is a
static member! FIXME */
write_exp_elt_opcode (UNOP_ADDR);
write_exp_elt_opcode (STRUCTOP_MEMBER); }
break;
case 27:
#line 391 "c-exp.y"
{ write_exp_elt_opcode (STRUCTOP_MEMBER); }
break;
case 28:
#line 395 "c-exp.y"
{ write_exp_elt_opcode (BINOP_SUBSCRIPT); }
break;
case 29:
#line 401 "c-exp.y"
{ start_arglist (); }