mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-21 14:41:11 -04:00
6414 lines
212 KiB
Plaintext
6414 lines
212 KiB
Plaintext
/* A Bison parser, made by GNU Bison 2.1. */
|
||
|
||
/* Skeleton parser for Yacc-like parsing with Bison,
|
||
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
|
||
|
||
This program is free software; you can redistribute it and/or modify
|
||
it under the terms of the GNU General Public License as published by
|
||
the Free Software Foundation; either version 2, or (at your option)
|
||
any later version.
|
||
|
||
This program is distributed in the hope that it will be useful,
|
||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
GNU General Public License for more details.
|
||
|
||
You should have received a copy of the GNU General Public License
|
||
along with this program; if not, write to the Free Software
|
||
Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||
Boston, MA 02110-1301, USA. */
|
||
|
||
/* As a special exception, when this file is copied by Bison into a
|
||
Bison output file, you may use that output file without restriction.
|
||
This special exception was added by the Free Software Foundation
|
||
in version 1.24 of Bison. */
|
||
|
||
/* Written by Richard Stallman by simplifying the original so called
|
||
``semantic'' parser. */
|
||
|
||
/* All symbols defined below should begin with yy or YY, to avoid
|
||
infringing on user name space. This should be done even for local
|
||
variables, as they might otherwise be expanded by user macros.
|
||
There are some unavoidable exceptions within include files to
|
||
define necessary library symbols; they are noted "INFRINGES ON
|
||
USER NAME SPACE" below. */
|
||
|
||
/* Identify Bison output. */
|
||
#define YYBISON 1
|
||
|
||
/* Bison version. */
|
||
#define YYBISON_VERSION "2.1"
|
||
|
||
/* Skeleton name. */
|
||
#define YYSKELETON_NAME "yacc.c"
|
||
|
||
/* Pure parsers. */
|
||
#define YYPURE 1
|
||
|
||
/* Using locations. */
|
||
#define YYLSP_NEEDED 1
|
||
|
||
/* Substitute the variable and function names. */
|
||
#define yyparse cppyyparse
|
||
#define yylex cppyylex
|
||
#define yyerror cppyyerror
|
||
#define yylval cppyylval
|
||
#define yychar cppyychar
|
||
#define yydebug cppyydebug
|
||
#define yynerrs cppyynerrs
|
||
#define yylloc cppyylloc
|
||
|
||
/* Tokens. */
|
||
#ifndef YYTOKENTYPE
|
||
# define YYTOKENTYPE
|
||
/* Put the tokens into the symbol table, so that GDB and other debuggers
|
||
know about them. */
|
||
enum yytokentype {
|
||
REAL = 258,
|
||
INTEGER = 259,
|
||
CHAR_TOK = 260,
|
||
STRING = 261,
|
||
SIMPLE_IDENTIFIER = 262,
|
||
IDENTIFIER = 263,
|
||
TYPENAME_IDENTIFIER = 264,
|
||
SCOPING = 265,
|
||
TYPEDEFNAME = 266,
|
||
ELLIPSIS = 267,
|
||
OROR = 268,
|
||
ANDAND = 269,
|
||
EQCOMPARE = 270,
|
||
NECOMPARE = 271,
|
||
LECOMPARE = 272,
|
||
GECOMPARE = 273,
|
||
LSHIFT = 274,
|
||
RSHIFT = 275,
|
||
POINTSAT_STAR = 276,
|
||
DOT_STAR = 277,
|
||
UNARY = 278,
|
||
UNARY_NOT = 279,
|
||
UNARY_NEGATE = 280,
|
||
UNARY_MINUS = 281,
|
||
UNARY_STAR = 282,
|
||
UNARY_REF = 283,
|
||
POINTSAT = 284,
|
||
SCOPE = 285,
|
||
PLUSPLUS = 286,
|
||
MINUSMINUS = 287,
|
||
TIMESEQUAL = 288,
|
||
DIVIDEEQUAL = 289,
|
||
MODEQUAL = 290,
|
||
PLUSEQUAL = 291,
|
||
MINUSEQUAL = 292,
|
||
OREQUAL = 293,
|
||
ANDEQUAL = 294,
|
||
XOREQUAL = 295,
|
||
LSHIFTEQUAL = 296,
|
||
RSHIFTEQUAL = 297,
|
||
TOKENPASTE = 298,
|
||
KW_BEGIN_PUBLISH = 299,
|
||
KW_BOOL = 300,
|
||
KW_CATCH = 301,
|
||
KW_CHAR = 302,
|
||
KW_WCHAR_T = 303,
|
||
KW_CLASS = 304,
|
||
KW_CONST = 305,
|
||
KW_DELETE = 306,
|
||
KW_DOUBLE = 307,
|
||
KW_DYNAMIC_CAST = 308,
|
||
KW_ELSE = 309,
|
||
KW_END_PUBLISH = 310,
|
||
KW_ENUM = 311,
|
||
KW_EXTERN = 312,
|
||
KW_EXPLICIT = 313,
|
||
KW_PUBLISHED = 314,
|
||
KW_FALSE = 315,
|
||
KW_FLOAT = 316,
|
||
KW_FRIEND = 317,
|
||
KW_FOR = 318,
|
||
KW_GOTO = 319,
|
||
KW_IF = 320,
|
||
KW_INLINE = 321,
|
||
KW_INT = 322,
|
||
KW_LONG = 323,
|
||
KW_LONGLONG = 324,
|
||
KW_MUTABLE = 325,
|
||
KW_NAMESPACE = 326,
|
||
KW_NEW = 327,
|
||
KW_OPERATOR = 328,
|
||
KW_PRIVATE = 329,
|
||
KW_PROTECTED = 330,
|
||
KW_PUBLIC = 331,
|
||
KW_REGISTER = 332,
|
||
KW_RETURN = 333,
|
||
KW_SHORT = 334,
|
||
KW_SIGNED = 335,
|
||
KW_SIZEOF = 336,
|
||
KW_STATIC = 337,
|
||
KW_STATIC_CAST = 338,
|
||
KW_STRUCT = 339,
|
||
KW_TEMPLATE = 340,
|
||
KW_THROW = 341,
|
||
KW_TRUE = 342,
|
||
KW_TRY = 343,
|
||
KW_TYPEDEF = 344,
|
||
KW_TYPENAME = 345,
|
||
KW_UNION = 346,
|
||
KW_UNSIGNED = 347,
|
||
KW_USING = 348,
|
||
KW_VIRTUAL = 349,
|
||
KW_VOID = 350,
|
||
KW_VOLATILE = 351,
|
||
KW_WHILE = 352,
|
||
START_CPP = 353,
|
||
START_CONST_EXPR = 354,
|
||
START_TYPE = 355
|
||
};
|
||
#endif
|
||
/* Tokens. */
|
||
#define REAL 258
|
||
#define INTEGER 259
|
||
#define CHAR_TOK 260
|
||
#define STRING 261
|
||
#define SIMPLE_IDENTIFIER 262
|
||
#define IDENTIFIER 263
|
||
#define TYPENAME_IDENTIFIER 264
|
||
#define SCOPING 265
|
||
#define TYPEDEFNAME 266
|
||
#define ELLIPSIS 267
|
||
#define OROR 268
|
||
#define ANDAND 269
|
||
#define EQCOMPARE 270
|
||
#define NECOMPARE 271
|
||
#define LECOMPARE 272
|
||
#define GECOMPARE 273
|
||
#define LSHIFT 274
|
||
#define RSHIFT 275
|
||
#define POINTSAT_STAR 276
|
||
#define DOT_STAR 277
|
||
#define UNARY 278
|
||
#define UNARY_NOT 279
|
||
#define UNARY_NEGATE 280
|
||
#define UNARY_MINUS 281
|
||
#define UNARY_STAR 282
|
||
#define UNARY_REF 283
|
||
#define POINTSAT 284
|
||
#define SCOPE 285
|
||
#define PLUSPLUS 286
|
||
#define MINUSMINUS 287
|
||
#define TIMESEQUAL 288
|
||
#define DIVIDEEQUAL 289
|
||
#define MODEQUAL 290
|
||
#define PLUSEQUAL 291
|
||
#define MINUSEQUAL 292
|
||
#define OREQUAL 293
|
||
#define ANDEQUAL 294
|
||
#define XOREQUAL 295
|
||
#define LSHIFTEQUAL 296
|
||
#define RSHIFTEQUAL 297
|
||
#define TOKENPASTE 298
|
||
#define KW_BEGIN_PUBLISH 299
|
||
#define KW_BOOL 300
|
||
#define KW_CATCH 301
|
||
#define KW_CHAR 302
|
||
#define KW_WCHAR_T 303
|
||
#define KW_CLASS 304
|
||
#define KW_CONST 305
|
||
#define KW_DELETE 306
|
||
#define KW_DOUBLE 307
|
||
#define KW_DYNAMIC_CAST 308
|
||
#define KW_ELSE 309
|
||
#define KW_END_PUBLISH 310
|
||
#define KW_ENUM 311
|
||
#define KW_EXTERN 312
|
||
#define KW_EXPLICIT 313
|
||
#define KW_PUBLISHED 314
|
||
#define KW_FALSE 315
|
||
#define KW_FLOAT 316
|
||
#define KW_FRIEND 317
|
||
#define KW_FOR 318
|
||
#define KW_GOTO 319
|
||
#define KW_IF 320
|
||
#define KW_INLINE 321
|
||
#define KW_INT 322
|
||
#define KW_LONG 323
|
||
#define KW_LONGLONG 324
|
||
#define KW_MUTABLE 325
|
||
#define KW_NAMESPACE 326
|
||
#define KW_NEW 327
|
||
#define KW_OPERATOR 328
|
||
#define KW_PRIVATE 329
|
||
#define KW_PROTECTED 330
|
||
#define KW_PUBLIC 331
|
||
#define KW_REGISTER 332
|
||
#define KW_RETURN 333
|
||
#define KW_SHORT 334
|
||
#define KW_SIGNED 335
|
||
#define KW_SIZEOF 336
|
||
#define KW_STATIC 337
|
||
#define KW_STATIC_CAST 338
|
||
#define KW_STRUCT 339
|
||
#define KW_TEMPLATE 340
|
||
#define KW_THROW 341
|
||
#define KW_TRUE 342
|
||
#define KW_TRY 343
|
||
#define KW_TYPEDEF 344
|
||
#define KW_TYPENAME 345
|
||
#define KW_UNION 346
|
||
#define KW_UNSIGNED 347
|
||
#define KW_USING 348
|
||
#define KW_VIRTUAL 349
|
||
#define KW_VOID 350
|
||
#define KW_VOLATILE 351
|
||
#define KW_WHILE 352
|
||
#define START_CPP 353
|
||
#define START_CONST_EXPR 354
|
||
#define START_TYPE 355
|
||
|
||
|
||
|
||
|
||
/* Copy the first part of user declarations. */
|
||
#line 6 "cppBison.yxx"
|
||
|
||
|
||
#include "cppBisonDefs.h"
|
||
#include "cppParser.h"
|
||
#include "cppExpression.h"
|
||
#include "cppSimpleType.h"
|
||
#include "cppExtensionType.h"
|
||
#include "cppStructType.h"
|
||
#include "cppEnumType.h"
|
||
#include "cppFunctionType.h"
|
||
#include "cppTBDType.h"
|
||
#include "cppParameterList.h"
|
||
#include "cppInstance.h"
|
||
#include "cppClassTemplateParameter.h"
|
||
#include "cppTemplateParameterList.h"
|
||
#include "cppInstanceIdentifier.h"
|
||
#include "cppTypedef.h"
|
||
#include "cppTypeDeclaration.h"
|
||
#include "cppVisibility.h"
|
||
#include "cppIdentifier.h"
|
||
#include "cppScope.h"
|
||
#include "cppTemplateScope.h"
|
||
#include "cppNamespace.h"
|
||
#include "cppUsing.h"
|
||
|
||
////////////////////////////////////////////////////////////////////
|
||
// Defining the interface to the parser.
|
||
////////////////////////////////////////////////////////////////////
|
||
|
||
CPPScope *current_scope = NULL;
|
||
CPPScope *global_scope = NULL;
|
||
CPPPreprocessor *current_lexer = NULL;
|
||
|
||
static CPPStructType *current_struct = NULL;
|
||
static CPPEnumType *current_enum = NULL;
|
||
static int current_storage_class = 0;
|
||
static CPPType *current_type = NULL;
|
||
static CPPExpression *current_expr = NULL;
|
||
static int publish_nest_level = 0;
|
||
static CPPVisibility publish_previous;
|
||
static YYLTYPE publish_loc;
|
||
|
||
static vector<CPPScope *> last_scopes;
|
||
static vector<int> last_storage_classes;
|
||
static vector<CPPStructType *> last_structs;
|
||
|
||
int yyparse();
|
||
|
||
#define YYERROR_VERBOSE
|
||
|
||
static void
|
||
yyerror(const string &msg) {
|
||
current_lexer->error(msg);
|
||
}
|
||
|
||
static void
|
||
yyerror(const string &msg, YYLTYPE &loc) {
|
||
current_lexer->error(msg, loc.first_line, loc.first_column);
|
||
}
|
||
|
||
static void
|
||
yywarning(const string &msg, YYLTYPE &loc) {
|
||
current_lexer->warning(msg, loc.first_line, loc.first_column);
|
||
}
|
||
|
||
static int
|
||
yylex(YYSTYPE *lval, YYLTYPE *lloc) {
|
||
CPPToken token = current_lexer->get_next_token();
|
||
*lval = token._lval;
|
||
*lloc = token._lloc;
|
||
return token._token;
|
||
}
|
||
|
||
void
|
||
parse_cpp(CPPParser *cp) {
|
||
CPPScope *old_scope = current_scope;
|
||
CPPScope *old_global_scope = global_scope;
|
||
CPPPreprocessor *old_lexer = current_lexer;
|
||
|
||
current_scope = cp;
|
||
global_scope = cp;
|
||
current_lexer = cp;
|
||
publish_nest_level = 0;
|
||
yyparse();
|
||
|
||
if (publish_nest_level != 0) {
|
||
yyerror("Unclosed __begin_publish", publish_loc);
|
||
publish_nest_level = 0;
|
||
}
|
||
|
||
current_scope = old_scope;
|
||
global_scope = old_global_scope;
|
||
current_lexer = old_lexer;
|
||
|
||
}
|
||
|
||
CPPExpression *
|
||
parse_const_expr(CPPPreprocessor *pp, CPPScope *new_current_scope,
|
||
CPPScope *new_global_scope) {
|
||
CPPScope *old_scope = current_scope;
|
||
CPPScope *old_global_scope = global_scope;
|
||
CPPPreprocessor *old_lexer = current_lexer;
|
||
CPPExpression *old_expr = current_expr;
|
||
|
||
current_scope = new_current_scope;
|
||
global_scope = new_global_scope;
|
||
current_expr = (CPPExpression *)NULL;
|
||
current_lexer = pp;
|
||
yyparse();
|
||
|
||
CPPExpression *result = current_expr;
|
||
|
||
current_scope = old_scope;
|
||
global_scope = old_global_scope;
|
||
current_lexer = old_lexer;
|
||
current_expr = old_expr;
|
||
|
||
return result;
|
||
}
|
||
|
||
CPPType *
|
||
parse_type(CPPPreprocessor *pp, CPPScope *new_current_scope,
|
||
CPPScope *new_global_scope) {
|
||
CPPScope *old_scope = current_scope;
|
||
CPPScope *old_global_scope = global_scope;
|
||
CPPPreprocessor *old_lexer = current_lexer;
|
||
CPPType *old_type = current_type;
|
||
|
||
current_scope = new_current_scope;
|
||
global_scope = new_global_scope;
|
||
current_type = (CPPType *)NULL;
|
||
current_lexer = pp;
|
||
yyparse();
|
||
|
||
CPPType *result = current_type;
|
||
|
||
current_scope = old_scope;
|
||
global_scope = old_global_scope;
|
||
current_lexer = old_lexer;
|
||
current_type = old_type;
|
||
|
||
return result;
|
||
}
|
||
|
||
static void
|
||
push_scope(CPPScope *new_scope) {
|
||
last_scopes.push_back(current_scope);
|
||
if (new_scope != NULL) {
|
||
current_scope = new_scope;
|
||
}
|
||
}
|
||
|
||
static void
|
||
pop_scope() {
|
||
assert(!last_scopes.empty());
|
||
current_scope = last_scopes.back();
|
||
last_scopes.pop_back();
|
||
}
|
||
|
||
static void
|
||
push_storage_class(int new_storage_class) {
|
||
last_storage_classes.push_back(current_storage_class);
|
||
current_storage_class = new_storage_class;
|
||
}
|
||
|
||
static void
|
||
pop_storage_class() {
|
||
assert(!last_storage_classes.empty());
|
||
current_storage_class = last_storage_classes.back();
|
||
last_storage_classes.pop_back();
|
||
}
|
||
|
||
static void
|
||
push_struct(CPPStructType *new_struct) {
|
||
last_structs.push_back(current_struct);
|
||
current_struct = new_struct;
|
||
}
|
||
|
||
static void
|
||
pop_struct() {
|
||
assert(!last_structs.empty());
|
||
current_struct = last_structs.back();
|
||
last_structs.pop_back();
|
||
}
|
||
|
||
|
||
|
||
/* Enabling traces. */
|
||
#ifndef YYDEBUG
|
||
# define YYDEBUG 0
|
||
#endif
|
||
|
||
/* Enabling verbose error messages. */
|
||
#ifdef YYERROR_VERBOSE
|
||
# undef YYERROR_VERBOSE
|
||
# define YYERROR_VERBOSE 1
|
||
#else
|
||
# define YYERROR_VERBOSE 0
|
||
#endif
|
||
|
||
/* Enabling the token table. */
|
||
#ifndef YYTOKEN_TABLE
|
||
# define YYTOKEN_TABLE 0
|
||
#endif
|
||
|
||
#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
|
||
typedef int YYSTYPE;
|
||
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
|
||
# define YYSTYPE_IS_DECLARED 1
|
||
# define YYSTYPE_IS_TRIVIAL 1
|
||
#endif
|
||
|
||
#if ! defined (YYLTYPE) && ! defined (YYLTYPE_IS_DECLARED)
|
||
typedef struct YYLTYPE
|
||
{
|
||
int first_line;
|
||
int first_column;
|
||
int last_line;
|
||
int last_column;
|
||
} YYLTYPE;
|
||
# define yyltype YYLTYPE /* obsolescent; will be withdrawn */
|
||
# define YYLTYPE_IS_DECLARED 1
|
||
# define YYLTYPE_IS_TRIVIAL 1
|
||
#endif
|
||
|
||
|
||
/* Copy the second part of user declarations. */
|
||
|
||
|
||
/* Line 219 of yacc.c. */
|
||
#line 503 "y.tab.c"
|
||
|
||
#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) && (defined (__STDC__) || defined (__cplusplus))
|
||
# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
|
||
# define YYSIZE_T size_t
|
||
#endif
|
||
#if ! defined (YYSIZE_T)
|
||
# define YYSIZE_T unsigned int
|
||
#endif
|
||
|
||
#ifndef YY_
|
||
# if YYENABLE_NLS
|
||
# if ENABLE_NLS
|
||
# include <libintl.h> /* INFRINGES ON USER NAME SPACE */
|
||
# define YY_(msgid) dgettext ("bison-runtime", msgid)
|
||
# endif
|
||
# endif
|
||
# ifndef YY_
|
||
# define YY_(msgid) msgid
|
||
# endif
|
||
#endif
|
||
|
||
#if ! defined (yyoverflow) || YYERROR_VERBOSE
|
||
|
||
/* The parser invokes alloca or malloc; define the necessary symbols. */
|
||
|
||
# ifdef YYSTACK_USE_ALLOCA
|
||
# if YYSTACK_USE_ALLOCA
|
||
# ifdef __GNUC__
|
||
# define YYSTACK_ALLOC __builtin_alloca
|
||
# else
|
||
# define YYSTACK_ALLOC alloca
|
||
# if defined (__STDC__) || defined (__cplusplus)
|
||
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
|
||
# define YYINCLUDED_STDLIB_H
|
||
# endif
|
||
# endif
|
||
# endif
|
||
# endif
|
||
|
||
# ifdef YYSTACK_ALLOC
|
||
/* Pacify GCC's `empty if-body' warning. */
|
||
# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
|
||
# ifndef YYSTACK_ALLOC_MAXIMUM
|
||
/* The OS might guarantee only one guard page at the bottom of the stack,
|
||
and a page size can be as small as 4096 bytes. So we cannot safely
|
||
invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
|
||
to allow for a few compiler-allocated temporary stack slots. */
|
||
# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2005 */
|
||
# endif
|
||
# else
|
||
# define YYSTACK_ALLOC YYMALLOC
|
||
# define YYSTACK_FREE YYFREE
|
||
# ifndef YYSTACK_ALLOC_MAXIMUM
|
||
# define YYSTACK_ALLOC_MAXIMUM ((YYSIZE_T) -1)
|
||
# endif
|
||
# ifdef __cplusplus
|
||
extern "C" {
|
||
# endif
|
||
# ifndef YYMALLOC
|
||
# define YYMALLOC malloc
|
||
# if (! defined (malloc) && ! defined (YYINCLUDED_STDLIB_H) \
|
||
&& (defined (__STDC__) || defined (__cplusplus)))
|
||
void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
|
||
# endif
|
||
# endif
|
||
# ifndef YYFREE
|
||
# define YYFREE free
|
||
# if (! defined (free) && ! defined (YYINCLUDED_STDLIB_H) \
|
||
&& (defined (__STDC__) || defined (__cplusplus)))
|
||
void free (void *); /* INFRINGES ON USER NAME SPACE */
|
||
# endif
|
||
# endif
|
||
# ifdef __cplusplus
|
||
}
|
||
# endif
|
||
# endif
|
||
#endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */
|
||
|
||
|
||
#if (! defined (yyoverflow) \
|
||
&& (! defined (__cplusplus) \
|
||
|| (defined (YYLTYPE_IS_TRIVIAL) && YYLTYPE_IS_TRIVIAL \
|
||
&& defined (YYSTYPE_IS_TRIVIAL) && YYSTYPE_IS_TRIVIAL)))
|
||
|
||
/* A type that is properly aligned for any stack member. */
|
||
union yyalloc
|
||
{
|
||
short int yyss;
|
||
YYSTYPE yyvs;
|
||
YYLTYPE yyls;
|
||
};
|
||
|
||
/* The size of the maximum gap between one aligned stack and the next. */
|
||
# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
|
||
|
||
/* The size of an array large to enough to hold all stacks, each with
|
||
N elements. */
|
||
# define YYSTACK_BYTES(N) \
|
||
((N) * (sizeof (short int) + sizeof (YYSTYPE) + sizeof (YYLTYPE)) \
|
||
+ 2 * YYSTACK_GAP_MAXIMUM)
|
||
|
||
/* Copy COUNT objects from FROM to TO. The source and destination do
|
||
not overlap. */
|
||
# ifndef YYCOPY
|
||
# if defined (__GNUC__) && 1 < __GNUC__
|
||
# define YYCOPY(To, From, Count) \
|
||
__builtin_memcpy (To, From, (Count) * sizeof (*(From)))
|
||
# else
|
||
# define YYCOPY(To, From, Count) \
|
||
do \
|
||
{ \
|
||
YYSIZE_T yyi; \
|
||
for (yyi = 0; yyi < (Count); yyi++) \
|
||
(To)[yyi] = (From)[yyi]; \
|
||
} \
|
||
while (0)
|
||
# endif
|
||
# endif
|
||
|
||
/* Relocate STACK from its old location to the new one. The
|
||
local variables YYSIZE and YYSTACKSIZE give the old and new number of
|
||
elements in the stack, and YYPTR gives the new location of the
|
||
stack. Advance YYPTR to a properly aligned location for the next
|
||
stack. */
|
||
# define YYSTACK_RELOCATE(Stack) \
|
||
do \
|
||
{ \
|
||
YYSIZE_T yynewbytes; \
|
||
YYCOPY (&yyptr->Stack, Stack, yysize); \
|
||
Stack = &yyptr->Stack; \
|
||
yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
|
||
yyptr += yynewbytes / sizeof (*yyptr); \
|
||
} \
|
||
while (0)
|
||
|
||
#endif
|
||
|
||
#if defined (__STDC__) || defined (__cplusplus)
|
||
typedef signed char yysigned_char;
|
||
#else
|
||
typedef short int yysigned_char;
|
||
#endif
|
||
|
||
/* YYFINAL -- State number of the termination state. */
|
||
#define YYFINAL 69
|
||
/* YYLAST -- Last index in YYTABLE. */
|
||
#define YYLAST 3373
|
||
|
||
/* YYNTOKENS -- Number of terminals. */
|
||
#define YYNTOKENS 125
|
||
/* YYNNTS -- Number of nonterminals. */
|
||
#define YYNNTS 94
|
||
/* YYNRULES -- Number of rules. */
|
||
#define YYNRULES 528
|
||
/* YYNRULES -- Number of states. */
|
||
#define YYNSTATES 941
|
||
|
||
/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
|
||
#define YYUNDEFTOK 2
|
||
#define YYMAXUTOK 355
|
||
|
||
#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, 123, 2, 2, 2, 116, 109, 2,
|
||
119, 121, 114, 112, 102, 113, 118, 115, 2, 2,
|
||
2, 2, 2, 2, 2, 2, 2, 2, 104, 103,
|
||
110, 105, 111, 106, 2, 2, 2, 2, 2, 2,
|
||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||
2, 120, 2, 124, 108, 2, 2, 2, 2, 2,
|
||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||
2, 2, 2, 101, 107, 122, 117, 2, 2, 2,
|
||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||
2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
|
||
5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
|
||
15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
|
||
25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
|
||
35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
|
||
45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
|
||
55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
|
||
65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
|
||
75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
|
||
85, 86, 87, 88, 89, 90, 91, 92, 93, 94,
|
||
95, 96, 97, 98, 99, 100
|
||
};
|
||
|
||
#if YYDEBUG
|
||
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
|
||
YYRHS. */
|
||
static const unsigned short int yyprhs[] =
|
||
{
|
||
0, 0, 3, 6, 9, 12, 14, 17, 20, 22,
|
||
26, 31, 32, 38, 40, 42, 44, 46, 48, 50,
|
||
53, 55, 57, 60, 63, 66, 69, 70, 74, 76,
|
||
79, 83, 86, 89, 92, 95, 98, 101, 104, 106,
|
||
110, 114, 115, 120, 121, 127, 130, 135, 138, 143,
|
||
144, 149, 150, 156, 160, 163, 168, 171, 176, 177,
|
||
184, 185, 192, 193, 201, 202, 213, 214, 226, 227,
|
||
236, 237, 247, 249, 251, 253, 258, 264, 266, 268,
|
||
270, 272, 274, 276, 278, 280, 282, 284, 286, 288,
|
||
290, 292, 294, 296, 298, 300, 302, 304, 306, 308,
|
||
310, 312, 314, 316, 318, 320, 322, 324, 326, 328,
|
||
330, 332, 334, 337, 340, 342, 344, 346, 348, 349,
|
||
356, 358, 360, 362, 366, 369, 374, 378, 383, 385,
|
||
387, 389, 392, 394, 397, 400, 403, 406, 410, 415,
|
||
419, 423, 424, 431, 433, 435, 437, 441, 444, 446,
|
||
450, 452, 455, 457, 460, 462, 466, 472, 476, 481,
|
||
483, 485, 488, 490, 494, 498, 504, 508, 512, 517,
|
||
519, 521, 523, 525, 528, 531, 534, 538, 543, 545,
|
||
547, 549, 552, 555, 558, 562, 567, 575, 579, 581,
|
||
584, 587, 590, 594, 599, 607, 609, 611, 614, 616,
|
||
618, 620, 622, 625, 628, 630, 632, 635, 637, 639,
|
||
641, 643, 646, 649, 651, 653, 656, 659, 662, 665,
|
||
669, 670, 676, 677, 685, 687, 689, 692, 696, 699,
|
||
702, 705, 709, 713, 717, 721, 725, 729, 730, 736,
|
||
737, 744, 746, 748, 751, 753, 757, 761, 767, 769,
|
||
771, 773, 775, 776, 783, 788, 791, 795, 797, 799,
|
||
801, 803, 805, 807, 809, 811, 813, 815, 817, 819,
|
||
822, 825, 828, 831, 833, 836, 838, 842, 845, 847,
|
||
848, 851, 853, 856, 858, 860, 862, 864, 866, 868,
|
||
870, 872, 874, 876, 878, 880, 882, 884, 886, 888,
|
||
890, 892, 894, 896, 898, 900, 902, 904, 906, 908,
|
||
910, 912, 914, 916, 918, 920, 922, 924, 926, 928,
|
||
930, 932, 934, 936, 938, 940, 942, 944, 946, 948,
|
||
950, 952, 954, 956, 958, 960, 962, 964, 966, 968,
|
||
970, 972, 974, 976, 978, 980, 982, 984, 986, 988,
|
||
990, 992, 994, 996, 998, 1000, 1002, 1004, 1006, 1008,
|
||
1010, 1012, 1014, 1016, 1018, 1020, 1022, 1024, 1026, 1028,
|
||
1030, 1032, 1034, 1036, 1038, 1040, 1042, 1044, 1046, 1048,
|
||
1050, 1052, 1054, 1056, 1058, 1060, 1062, 1064, 1068, 1070,
|
||
1072, 1074, 1076, 1078, 1082, 1084, 1089, 1097, 1105, 1110,
|
||
1113, 1116, 1119, 1122, 1125, 1129, 1133, 1137, 1141, 1145,
|
||
1149, 1153, 1157, 1161, 1165, 1169, 1173, 1177, 1181, 1185,
|
||
1191, 1196, 1201, 1205, 1209, 1213, 1217, 1219, 1224, 1232,
|
||
1240, 1245, 1250, 1255, 1260, 1265, 1270, 1275, 1280, 1285,
|
||
1290, 1295, 1300, 1303, 1309, 1312, 1315, 1318, 1321, 1324,
|
||
1328, 1332, 1336, 1340, 1344, 1348, 1352, 1356, 1360, 1364,
|
||
1368, 1372, 1376, 1380, 1384, 1388, 1392, 1398, 1403, 1408,
|
||
1412, 1416, 1420, 1424, 1426, 1428, 1430, 1432, 1434, 1436,
|
||
1438, 1440, 1445, 1453, 1461, 1466, 1469, 1475, 1478, 1481,
|
||
1484, 1487, 1491, 1495, 1499, 1503, 1507, 1511, 1515, 1519,
|
||
1523, 1527, 1531, 1535, 1539, 1543, 1547, 1551, 1555, 1561,
|
||
1566, 1571, 1575, 1579, 1583, 1587, 1589, 1591, 1593, 1595,
|
||
1597, 1599, 1601, 1604, 1607, 1609, 1611, 1613, 1616
|
||
};
|
||
|
||
/* YYRHS -- A `-1'-separated list of the rules' RHS. */
|
||
static const short int yyrhs[] =
|
||
{
|
||
126, 0, -1, 98, 127, -1, 99, 211, -1, 100,
|
||
180, -1, 218, -1, 127, 103, -1, 127, 132, -1,
|
||
129, -1, 128, 102, 129, -1, 216, 119, 208, 121,
|
||
-1, -1, 135, 101, 131, 127, 122, -1, 136, -1,
|
||
158, -1, 130, -1, 196, -1, 198, -1, 133, -1,
|
||
89, 142, -1, 44, -1, 55, -1, 59, 104, -1,
|
||
76, 104, -1, 75, 104, -1, 74, 104, -1, -1,
|
||
62, 134, 132, -1, 218, -1, 135, 57, -1, 135,
|
||
57, 217, -1, 135, 82, -1, 135, 66, -1, 135,
|
||
94, -1, 135, 58, -1, 135, 96, -1, 135, 70,
|
||
-1, 135, 77, -1, 137, -1, 135, 178, 103, -1,
|
||
135, 147, 170, -1, -1, 135, 178, 138, 140, -1,
|
||
-1, 135, 50, 177, 139, 141, -1, 164, 170, -1,
|
||
164, 169, 102, 140, -1, 164, 170, -1, 164, 169,
|
||
102, 141, -1, -1, 135, 178, 143, 145, -1, -1,
|
||
135, 50, 177, 144, 146, -1, 135, 147, 170, -1,
|
||
164, 170, -1, 164, 169, 102, 145, -1, 164, 170,
|
||
-1, 164, 169, 102, 146, -1, -1, 8, 119, 148,
|
||
166, 121, 155, -1, -1, 9, 119, 149, 166, 121,
|
||
155, -1, -1, 117, 216, 119, 150, 166, 121, 155,
|
||
-1, -1, 9, 119, 114, 164, 121, 119, 151, 166,
|
||
121, 155, -1, -1, 9, 119, 10, 114, 164, 121,
|
||
119, 152, 166, 121, 155, -1, -1, 73, 177, 174,
|
||
119, 153, 166, 121, 155, -1, -1, 73, 50, 177,
|
||
174, 119, 154, 166, 121, 155, -1, 8, -1, 218,
|
||
-1, 50, -1, 155, 86, 119, 121, -1, 155, 86,
|
||
119, 216, 121, -1, 123, -1, 117, -1, 114, -1,
|
||
115, -1, 116, -1, 112, -1, 113, -1, 107, -1,
|
||
109, -1, 108, -1, 13, -1, 14, -1, 15, -1,
|
||
16, -1, 17, -1, 18, -1, 110, -1, 111, -1,
|
||
19, -1, 20, -1, 105, -1, 102, -1, 31, -1,
|
||
32, -1, 33, -1, 34, -1, 35, -1, 36, -1,
|
||
37, -1, 38, -1, 39, -1, 40, -1, 41, -1,
|
||
42, -1, 29, -1, 120, 124, -1, 119, 121, -1,
|
||
72, -1, 51, -1, 136, -1, 158, -1, -1, 85,
|
||
159, 110, 160, 111, 157, -1, 218, -1, 161, -1,
|
||
162, -1, 161, 102, 162, -1, 49, 216, -1, 49,
|
||
216, 105, 180, -1, 163, 175, 168, -1, 50, 163,
|
||
175, 168, -1, 199, -1, 8, -1, 9, -1, 90,
|
||
216, -1, 216, -1, 73, 156, -1, 50, 164, -1,
|
||
114, 164, -1, 109, 164, -1, 10, 114, 164, -1,
|
||
164, 120, 207, 124, -1, 164, 104, 4, -1, 119,
|
||
164, 121, -1, -1, 164, 119, 165, 166, 121, 155,
|
||
-1, 218, -1, 12, -1, 167, -1, 167, 102, 12,
|
||
-1, 167, 12, -1, 173, -1, 167, 102, 173, -1,
|
||
218, -1, 105, 210, -1, 218, -1, 105, 211, -1,
|
||
103, -1, 101, 203, 122, -1, 104, 128, 101, 203,
|
||
122, -1, 105, 211, 103, -1, 105, 101, 171, 122,
|
||
-1, 218, -1, 172, -1, 172, 102, -1, 211, -1,
|
||
101, 171, 122, -1, 172, 102, 211, -1, 172, 102,
|
||
101, 171, 122, -1, 177, 175, 169, -1, 8, 175,
|
||
169, -1, 50, 177, 175, 169, -1, 213, -1, 218,
|
||
-1, 8, -1, 9, -1, 50, 174, -1, 114, 174,
|
||
-1, 109, 174, -1, 10, 114, 174, -1, 174, 120,
|
||
207, 124, -1, 218, -1, 8, -1, 9, -1, 50,
|
||
175, -1, 114, 175, -1, 109, 175, -1, 10, 114,
|
||
175, -1, 175, 120, 207, 124, -1, 119, 175, 121,
|
||
119, 166, 121, 155, -1, 119, 175, 121, -1, 218,
|
||
-1, 50, 176, -1, 114, 176, -1, 109, 176, -1,
|
||
10, 114, 176, -1, 176, 120, 207, 124, -1, 119,
|
||
176, 121, 119, 166, 121, 155, -1, 199, -1, 9,
|
||
-1, 90, 216, -1, 181, -1, 183, -1, 188, -1,
|
||
190, -1, 195, 216, -1, 194, 216, -1, 199, -1,
|
||
9, -1, 90, 216, -1, 181, -1, 183, -1, 188,
|
||
-1, 190, -1, 195, 216, -1, 194, 216, -1, 199,
|
||
-1, 9, -1, 90, 216, -1, 195, 216, -1, 194,
|
||
216, -1, 177, 176, -1, 50, 177, 176, -1, -1,
|
||
195, 101, 182, 127, 122, -1, -1, 195, 216, 184,
|
||
185, 101, 127, 122, -1, 218, -1, 186, -1, 104,
|
||
187, -1, 186, 102, 187, -1, 76, 215, -1, 75,
|
||
215, -1, 74, 215, -1, 94, 76, 215, -1, 94,
|
||
75, 215, -1, 94, 74, 215, -1, 76, 94, 215,
|
||
-1, 75, 94, 215, -1, 74, 94, 215, -1, -1,
|
||
194, 101, 189, 192, 122, -1, -1, 194, 216, 101,
|
||
191, 192, 122, -1, 218, -1, 193, -1, 193, 102,
|
||
-1, 216, -1, 216, 105, 211, -1, 193, 102, 216,
|
||
-1, 193, 102, 216, 105, 211, -1, 56, -1, 49,
|
||
-1, 84, -1, 91, -1, -1, 71, 216, 101, 197,
|
||
127, 122, -1, 71, 101, 127, 122, -1, 93, 216,
|
||
-1, 93, 71, 216, -1, 200, -1, 201, -1, 202,
|
||
-1, 45, -1, 47, -1, 48, -1, 79, -1, 68,
|
||
-1, 69, -1, 92, -1, 80, -1, 67, -1, 79,
|
||
200, -1, 68, 200, -1, 92, 200, -1, 80, 200,
|
||
-1, 61, -1, 68, 61, -1, 52, -1, 68, 68,
|
||
61, -1, 68, 52, -1, 95, -1, -1, 204, 205,
|
||
-1, 218, -1, 205, 206, -1, 3, -1, 4, -1,
|
||
6, -1, 5, -1, 8, -1, 9, -1, 10, -1,
|
||
7, -1, 12, -1, 13, -1, 14, -1, 15, -1,
|
||
16, -1, 17, -1, 18, -1, 19, -1, 20, -1,
|
||
21, -1, 22, -1, 29, -1, 30, -1, 31, -1,
|
||
32, -1, 33, -1, 34, -1, 35, -1, 36, -1,
|
||
37, -1, 38, -1, 39, -1, 40, -1, 41, -1,
|
||
42, -1, 45, -1, 46, -1, 47, -1, 48, -1,
|
||
49, -1, 50, -1, 51, -1, 52, -1, 53, -1,
|
||
54, -1, 56, -1, 57, -1, 58, -1, 60, -1,
|
||
61, -1, 62, -1, 63, -1, 64, -1, 65, -1,
|
||
66, -1, 67, -1, 68, -1, 70, -1, 72, -1,
|
||
74, -1, 75, -1, 76, -1, 59, -1, 77, -1,
|
||
78, -1, 79, -1, 80, -1, 81, -1, 82, -1,
|
||
83, -1, 84, -1, 86, -1, 87, -1, 88, -1,
|
||
89, -1, 90, -1, 91, -1, 92, -1, 94, -1,
|
||
95, -1, 96, -1, 97, -1, 43, -1, 73, -1,
|
||
112, -1, 113, -1, 114, -1, 115, -1, 109, -1,
|
||
107, -1, 108, -1, 123, -1, 117, -1, 105, -1,
|
||
116, -1, 110, -1, 111, -1, 119, -1, 121, -1,
|
||
118, -1, 102, -1, 103, -1, 104, -1, 120, -1,
|
||
124, -1, 106, -1, 101, 205, 122, -1, 218, -1,
|
||
211, -1, 218, -1, 209, -1, 211, -1, 209, 102,
|
||
211, -1, 212, -1, 119, 180, 121, 210, -1, 83,
|
||
110, 180, 111, 119, 209, 121, -1, 53, 110, 180,
|
||
111, 119, 209, 121, -1, 81, 119, 180, 121, -1,
|
||
123, 210, -1, 117, 210, -1, 113, 210, -1, 114,
|
||
210, -1, 109, 210, -1, 210, 114, 210, -1, 210,
|
||
115, 210, -1, 210, 116, 210, -1, 210, 112, 210,
|
||
-1, 210, 113, 210, -1, 210, 107, 210, -1, 210,
|
||
109, 210, -1, 210, 13, 210, -1, 210, 14, 210,
|
||
-1, 210, 15, 210, -1, 210, 16, 210, -1, 210,
|
||
17, 210, -1, 210, 18, 210, -1, 210, 19, 210,
|
||
-1, 210, 20, 210, -1, 210, 106, 210, 104, 210,
|
||
-1, 210, 120, 211, 124, -1, 210, 119, 209, 121,
|
||
-1, 210, 119, 121, -1, 210, 118, 210, -1, 210,
|
||
29, 210, -1, 119, 209, 121, -1, 212, -1, 119,
|
||
180, 121, 211, -1, 83, 110, 180, 111, 119, 209,
|
||
121, -1, 53, 110, 180, 111, 119, 209, 121, -1,
|
||
9, 119, 208, 121, -1, 67, 119, 208, 121, -1,
|
||
47, 119, 208, 121, -1, 48, 119, 208, 121, -1,
|
||
45, 119, 208, 121, -1, 79, 119, 208, 121, -1,
|
||
68, 119, 208, 121, -1, 92, 119, 208, 121, -1,
|
||
80, 119, 208, 121, -1, 61, 119, 208, 121, -1,
|
||
52, 119, 208, 121, -1, 81, 119, 180, 121, -1,
|
||
72, 179, -1, 72, 179, 119, 208, 121, -1, 123,
|
||
211, -1, 117, 211, -1, 113, 211, -1, 114, 211,
|
||
-1, 109, 211, -1, 211, 114, 211, -1, 211, 115,
|
||
211, -1, 211, 116, 211, -1, 211, 112, 211, -1,
|
||
211, 113, 211, -1, 211, 107, 211, -1, 211, 109,
|
||
211, -1, 211, 13, 211, -1, 211, 14, 211, -1,
|
||
211, 15, 211, -1, 211, 16, 211, -1, 211, 17,
|
||
211, -1, 211, 18, 211, -1, 211, 110, 211, -1,
|
||
211, 111, 211, -1, 211, 19, 211, -1, 211, 20,
|
||
211, -1, 211, 106, 211, 104, 211, -1, 211, 120,
|
||
211, 124, -1, 211, 119, 209, 121, -1, 211, 119,
|
||
121, -1, 211, 118, 211, -1, 211, 29, 211, -1,
|
||
119, 209, 121, -1, 4, -1, 87, -1, 60, -1,
|
||
5, -1, 3, -1, 217, -1, 8, -1, 214, -1,
|
||
119, 180, 121, 211, -1, 83, 110, 180, 111, 119,
|
||
209, 121, -1, 53, 110, 180, 111, 119, 209, 121,
|
||
-1, 81, 119, 180, 121, -1, 72, 179, -1, 72,
|
||
179, 119, 208, 121, -1, 123, 211, -1, 117, 211,
|
||
-1, 113, 211, -1, 109, 211, -1, 213, 114, 211,
|
||
-1, 213, 115, 211, -1, 213, 116, 211, -1, 213,
|
||
112, 211, -1, 213, 113, 211, -1, 213, 107, 211,
|
||
-1, 213, 109, 211, -1, 213, 13, 211, -1, 213,
|
||
14, 211, -1, 213, 15, 211, -1, 213, 16, 211,
|
||
-1, 213, 17, 211, -1, 213, 18, 211, -1, 213,
|
||
110, 211, -1, 213, 111, 211, -1, 213, 19, 211,
|
||
-1, 213, 20, 211, -1, 213, 106, 211, 104, 211,
|
||
-1, 213, 120, 211, 124, -1, 213, 119, 209, 121,
|
||
-1, 213, 119, 121, -1, 213, 118, 211, -1, 213,
|
||
29, 211, -1, 119, 209, 121, -1, 4, -1, 87,
|
||
-1, 60, -1, 5, -1, 3, -1, 217, -1, 216,
|
||
-1, 195, 216, -1, 90, 216, -1, 8, -1, 9,
|
||
-1, 6, -1, 217, 6, -1, -1
|
||
};
|
||
|
||
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
|
||
static const unsigned short int yyrline[] =
|
||
{
|
||
0, 378, 378, 379, 383, 390, 391, 392, 396, 397,
|
||
401, 414, 413, 425, 426, 427, 428, 429, 430, 431,
|
||
432, 445, 454, 458, 462, 466, 474, 473, 488, 492,
|
||
496, 507, 511, 515, 519, 523, 527, 531, 538, 542,
|
||
551, 563, 562, 578, 577, 595, 603, 614, 623, 637,
|
||
636, 652, 651, 662, 676, 684, 695, 704, 719, 718,
|
||
741, 740, 765, 764, 795, 794, 810, 809, 827, 826,
|
||
858, 857, 883, 896, 900, 904, 908, 915, 919, 923,
|
||
927, 931, 935, 939, 943, 947, 951, 955, 959, 963,
|
||
967, 971, 975, 979, 983, 987, 991, 995, 999, 1003,
|
||
1007, 1011, 1015, 1019, 1023, 1027, 1031, 1035, 1039, 1043,
|
||
1047, 1051, 1055, 1059, 1063, 1067, 1074, 1075, 1080, 1079,
|
||
1090, 1091, 1095, 1101, 1110, 1114, 1118, 1124, 1134, 1138,
|
||
1143, 1148, 1156, 1160, 1174, 1179, 1184, 1189, 1194, 1199,
|
||
1204, 1210, 1209, 1231, 1235, 1240, 1244, 1249, 1257, 1262,
|
||
1270, 1274, 1281, 1285, 1292, 1296, 1300, 1304, 1308, 1315,
|
||
1316, 1317, 1321, 1324, 1325, 1326, 1330, 1335, 1343, 1349,
|
||
1359, 1363, 1367, 1371, 1376, 1381, 1386, 1391, 1399, 1403,
|
||
1407, 1411, 1416, 1421, 1426, 1431, 1436, 1442, 1450, 1454,
|
||
1459, 1464, 1469, 1474, 1479, 1488, 1492, 1497, 1501, 1505,
|
||
1509, 1513, 1517, 1533, 1552, 1556, 1561, 1565, 1569, 1573,
|
||
1577, 1581, 1597, 1616, 1620, 1625, 1629, 1645, 1664, 1670,
|
||
1681, 1680, 1705, 1704, 1734, 1735, 1739, 1740, 1744, 1748,
|
||
1752, 1756, 1760, 1764, 1768, 1772, 1776, 1784, 1783, 1796,
|
||
1795, 1807, 1808, 1809, 1813, 1818, 1823, 1828, 1836, 1843,
|
||
1847, 1851, 1859, 1858, 1880, 1884, 1890, 1899, 1900, 1901,
|
||
1905, 1909, 1913, 1917, 1922, 1927, 1932, 1937, 1942, 1946,
|
||
1951, 1960, 1965, 1973, 1977, 1982, 1986, 1991, 1999, 2009,
|
||
2009, 2019, 2020, 2024, 2027, 2030, 2033, 2036, 2039, 2042,
|
||
2045, 2048, 2048, 2048, 2049, 2049, 2049, 2049, 2050, 2050,
|
||
2050, 2050, 2050, 2051, 2051, 2051, 2052, 2052, 2052, 2052,
|
||
2052, 2053, 2053, 2053, 2053, 2053, 2054, 2054, 2054, 2054,
|
||
2054, 2054, 2055, 2055, 2055, 2055, 2055, 2056, 2056, 2056,
|
||
2057, 2057, 2057, 2057, 2058, 2058, 2058, 2059, 2059, 2059,
|
||
2059, 2059, 2060, 2060, 2060, 2060, 2061, 2061, 2061, 2061,
|
||
2061, 2062, 2062, 2062, 2062, 2062, 2062, 2063, 2063, 2063,
|
||
2063, 2063, 2064, 2064, 2065, 2068, 2068, 2068, 2068, 2068,
|
||
2068, 2068, 2068, 2068, 2068, 2068, 2069, 2069, 2069, 2069,
|
||
2069, 2069, 2069, 2069, 2069, 2069, 2070, 2070, 2074, 2078,
|
||
2085, 2089, 2096, 2100, 2107, 2111, 2115, 2119, 2123, 2127,
|
||
2131, 2135, 2147, 2151, 2155, 2159, 2163, 2167, 2171, 2175,
|
||
2179, 2183, 2187, 2191, 2195, 2199, 2203, 2207, 2211, 2215,
|
||
2219, 2223, 2227, 2231, 2235, 2239, 2247, 2251, 2255, 2259,
|
||
2263, 2270, 2276, 2282, 2288, 2294, 2301, 2308, 2315, 2322,
|
||
2328, 2334, 2338, 2342, 2346, 2350, 2354, 2366, 2370, 2374,
|
||
2378, 2382, 2386, 2390, 2394, 2398, 2402, 2406, 2410, 2414,
|
||
2418, 2422, 2426, 2430, 2434, 2438, 2442, 2446, 2450, 2454,
|
||
2458, 2462, 2466, 2473, 2477, 2481, 2485, 2489, 2493, 2497,
|
||
2511, 2515, 2519, 2523, 2527, 2531, 2535, 2539, 2543, 2547,
|
||
2559, 2563, 2567, 2571, 2575, 2579, 2583, 2587, 2591, 2595,
|
||
2599, 2603, 2607, 2611, 2615, 2619, 2623, 2627, 2631, 2635,
|
||
2639, 2643, 2647, 2651, 2655, 2662, 2666, 2670, 2674, 2678,
|
||
2682, 2689, 2697, 2705, 2728, 2732, 2739, 2743, 2749
|
||
};
|
||
#endif
|
||
|
||
#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
|
||
/* YYTNAME[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", "REAL", "INTEGER", "CHAR_TOK", "STRING",
|
||
"SIMPLE_IDENTIFIER", "IDENTIFIER", "TYPENAME_IDENTIFIER", "SCOPING",
|
||
"TYPEDEFNAME", "ELLIPSIS", "OROR", "ANDAND", "EQCOMPARE", "NECOMPARE",
|
||
"LECOMPARE", "GECOMPARE", "LSHIFT", "RSHIFT", "POINTSAT_STAR",
|
||
"DOT_STAR", "UNARY", "UNARY_NOT", "UNARY_NEGATE", "UNARY_MINUS",
|
||
"UNARY_STAR", "UNARY_REF", "POINTSAT", "SCOPE", "PLUSPLUS", "MINUSMINUS",
|
||
"TIMESEQUAL", "DIVIDEEQUAL", "MODEQUAL", "PLUSEQUAL", "MINUSEQUAL",
|
||
"OREQUAL", "ANDEQUAL", "XOREQUAL", "LSHIFTEQUAL", "RSHIFTEQUAL",
|
||
"TOKENPASTE", "KW_BEGIN_PUBLISH", "KW_BOOL", "KW_CATCH", "KW_CHAR",
|
||
"KW_WCHAR_T", "KW_CLASS", "KW_CONST", "KW_DELETE", "KW_DOUBLE",
|
||
"KW_DYNAMIC_CAST", "KW_ELSE", "KW_END_PUBLISH", "KW_ENUM", "KW_EXTERN",
|
||
"KW_EXPLICIT", "KW_PUBLISHED", "KW_FALSE", "KW_FLOAT", "KW_FRIEND",
|
||
"KW_FOR", "KW_GOTO", "KW_IF", "KW_INLINE", "KW_INT", "KW_LONG",
|
||
"KW_LONGLONG", "KW_MUTABLE", "KW_NAMESPACE", "KW_NEW", "KW_OPERATOR",
|
||
"KW_PRIVATE", "KW_PROTECTED", "KW_PUBLIC", "KW_REGISTER", "KW_RETURN",
|
||
"KW_SHORT", "KW_SIGNED", "KW_SIZEOF", "KW_STATIC", "KW_STATIC_CAST",
|
||
"KW_STRUCT", "KW_TEMPLATE", "KW_THROW", "KW_TRUE", "KW_TRY",
|
||
"KW_TYPEDEF", "KW_TYPENAME", "KW_UNION", "KW_UNSIGNED", "KW_USING",
|
||
"KW_VIRTUAL", "KW_VOID", "KW_VOLATILE", "KW_WHILE", "START_CPP",
|
||
"START_CONST_EXPR", "START_TYPE", "'{'", "','", "';'", "':'", "'='",
|
||
"'?'", "'|'", "'^'", "'&'", "'<'", "'>'", "'+'", "'-'", "'*'", "'/'",
|
||
"'%'", "'~'", "'.'", "'('", "'['", "')'", "'}'", "'!'", "']'", "$accept",
|
||
"grammar", "cpp", "constructor_inits", "constructor_init", "extern_c",
|
||
"@1", "declaration", "friend_declaration", "@2", "storage_class",
|
||
"type_like_declaration", "multiple_var_declaration", "@3", "@4",
|
||
"multiple_instance_identifiers", "multiple_const_instance_identifiers",
|
||
"typedef_declaration", "@5", "@6", "typedef_instance_identifiers",
|
||
"typedef_const_instance_identifiers", "function_prototype", "@7", "@8",
|
||
"@9", "@10", "@11", "@12", "@13", "function_post", "function_operator",
|
||
"more_template_declaration", "template_declaration", "@14",
|
||
"template_formal_parameters", "template_nonempty_formal_parameters",
|
||
"template_formal_parameter", "template_formal_parameter_type",
|
||
"instance_identifier", "@15", "formal_parameter_list",
|
||
"formal_parameters", "template_parameter_maybe_initialize",
|
||
"maybe_initialize", "maybe_initialize_or_function_body",
|
||
"structure_init", "structure_init_body", "formal_parameter",
|
||
"not_paren_formal_parameter_identifier", "formal_parameter_identifier",
|
||
"empty_instance_identifier", "type", "type_decl", "predefined_type",
|
||
"full_type", "anonymous_struct", "@16", "named_struct", "@17",
|
||
"maybe_class_derivation", "class_derivation", "base_specification",
|
||
"anonymous_enum", "@18", "named_enum", "@19", "enum_body",
|
||
"enum_body_no_trailing_comma", "enum_keyword", "struct_keyword",
|
||
"namespace_declaration", "@20", "using_declaration", "simple_type",
|
||
"simple_int_type", "simple_float_type", "simple_void_type", "code",
|
||
"@21", "code_block", "element", "optional_const_expr",
|
||
"optional_const_expr_comma", "const_expr_comma",
|
||
"no_angle_bracket_const_expr", "const_expr", "const_operand",
|
||
"formal_const_expr", "formal_const_operand", "class_derivation_name",
|
||
"name", "string", "empty", 0
|
||
};
|
||
#endif
|
||
|
||
# ifdef YYPRINT
|
||
/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
|
||
token YYLEX-NUM. */
|
||
static const unsigned short int 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, 296, 297, 298, 299, 300, 301, 302, 303, 304,
|
||
305, 306, 307, 308, 309, 310, 311, 312, 313, 314,
|
||
315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
|
||
325, 326, 327, 328, 329, 330, 331, 332, 333, 334,
|
||
335, 336, 337, 338, 339, 340, 341, 342, 343, 344,
|
||
345, 346, 347, 348, 349, 350, 351, 352, 353, 354,
|
||
355, 123, 44, 59, 58, 61, 63, 124, 94, 38,
|
||
60, 62, 43, 45, 42, 47, 37, 126, 46, 40,
|
||
91, 41, 125, 33, 93
|
||
};
|
||
# endif
|
||
|
||
/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
|
||
static const unsigned char yyr1[] =
|
||
{
|
||
0, 125, 126, 126, 126, 127, 127, 127, 128, 128,
|
||
129, 131, 130, 132, 132, 132, 132, 132, 132, 132,
|
||
132, 132, 132, 132, 132, 132, 134, 133, 135, 135,
|
||
135, 135, 135, 135, 135, 135, 135, 135, 136, 136,
|
||
136, 138, 137, 139, 137, 140, 140, 141, 141, 143,
|
||
142, 144, 142, 142, 145, 145, 146, 146, 148, 147,
|
||
149, 147, 150, 147, 151, 147, 152, 147, 153, 147,
|
||
154, 147, 147, 155, 155, 155, 155, 156, 156, 156,
|
||
156, 156, 156, 156, 156, 156, 156, 156, 156, 156,
|
||
156, 156, 156, 156, 156, 156, 156, 156, 156, 156,
|
||
156, 156, 156, 156, 156, 156, 156, 156, 156, 156,
|
||
156, 156, 156, 156, 156, 156, 157, 157, 159, 158,
|
||
160, 160, 161, 161, 162, 162, 162, 162, 163, 163,
|
||
163, 163, 164, 164, 164, 164, 164, 164, 164, 164,
|
||
164, 165, 164, 166, 166, 166, 166, 166, 167, 167,
|
||
168, 168, 169, 169, 170, 170, 170, 170, 170, 171,
|
||
171, 171, 172, 172, 172, 172, 173, 173, 173, 173,
|
||
174, 174, 174, 174, 174, 174, 174, 174, 175, 175,
|
||
175, 175, 175, 175, 175, 175, 175, 175, 176, 176,
|
||
176, 176, 176, 176, 176, 177, 177, 177, 177, 177,
|
||
177, 177, 177, 177, 178, 178, 178, 178, 178, 178,
|
||
178, 178, 178, 179, 179, 179, 179, 179, 180, 180,
|
||
182, 181, 184, 183, 185, 185, 186, 186, 187, 187,
|
||
187, 187, 187, 187, 187, 187, 187, 189, 188, 191,
|
||
190, 192, 192, 192, 193, 193, 193, 193, 194, 195,
|
||
195, 195, 197, 196, 196, 198, 198, 199, 199, 199,
|
||
200, 200, 200, 200, 200, 200, 200, 200, 200, 200,
|
||
200, 200, 200, 201, 201, 201, 201, 201, 202, 204,
|
||
203, 205, 205, 206, 206, 206, 206, 206, 206, 206,
|
||
206, 206, 206, 206, 206, 206, 206, 206, 206, 206,
|
||
206, 206, 206, 206, 206, 206, 206, 206, 206, 206,
|
||
206, 206, 206, 206, 206, 206, 206, 206, 206, 206,
|
||
206, 206, 206, 206, 206, 206, 206, 206, 206, 206,
|
||
206, 206, 206, 206, 206, 206, 206, 206, 206, 206,
|
||
206, 206, 206, 206, 206, 206, 206, 206, 206, 206,
|
||
206, 206, 206, 206, 206, 206, 206, 206, 206, 206,
|
||
206, 206, 206, 206, 206, 206, 206, 206, 206, 206,
|
||
206, 206, 206, 206, 206, 206, 206, 206, 206, 206,
|
||
206, 206, 206, 206, 206, 206, 206, 206, 207, 207,
|
||
208, 208, 209, 209, 210, 210, 210, 210, 210, 210,
|
||
210, 210, 210, 210, 210, 210, 210, 210, 210, 210,
|
||
210, 210, 210, 210, 210, 210, 210, 210, 210, 210,
|
||
210, 210, 210, 210, 210, 210, 211, 211, 211, 211,
|
||
211, 211, 211, 211, 211, 211, 211, 211, 211, 211,
|
||
211, 211, 211, 211, 211, 211, 211, 211, 211, 211,
|
||
211, 211, 211, 211, 211, 211, 211, 211, 211, 211,
|
||
211, 211, 211, 211, 211, 211, 211, 211, 211, 211,
|
||
211, 211, 211, 212, 212, 212, 212, 212, 212, 212,
|
||
213, 213, 213, 213, 213, 213, 213, 213, 213, 213,
|
||
213, 213, 213, 213, 213, 213, 213, 213, 213, 213,
|
||
213, 213, 213, 213, 213, 213, 213, 213, 213, 213,
|
||
213, 213, 213, 213, 213, 214, 214, 214, 214, 214,
|
||
214, 215, 215, 215, 216, 216, 217, 217, 218
|
||
};
|
||
|
||
/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
|
||
static const unsigned char yyr2[] =
|
||
{
|
||
0, 2, 2, 2, 2, 1, 2, 2, 1, 3,
|
||
4, 0, 5, 1, 1, 1, 1, 1, 1, 2,
|
||
1, 1, 2, 2, 2, 2, 0, 3, 1, 2,
|
||
3, 2, 2, 2, 2, 2, 2, 2, 1, 3,
|
||
3, 0, 4, 0, 5, 2, 4, 2, 4, 0,
|
||
4, 0, 5, 3, 2, 4, 2, 4, 0, 6,
|
||
0, 6, 0, 7, 0, 10, 0, 11, 0, 8,
|
||
0, 9, 1, 1, 1, 4, 5, 1, 1, 1,
|
||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||
1, 1, 2, 2, 1, 1, 1, 1, 0, 6,
|
||
1, 1, 1, 3, 2, 4, 3, 4, 1, 1,
|
||
1, 2, 1, 2, 2, 2, 2, 3, 4, 3,
|
||
3, 0, 6, 1, 1, 1, 3, 2, 1, 3,
|
||
1, 2, 1, 2, 1, 3, 5, 3, 4, 1,
|
||
1, 2, 1, 3, 3, 5, 3, 3, 4, 1,
|
||
1, 1, 1, 2, 2, 2, 3, 4, 1, 1,
|
||
1, 2, 2, 2, 3, 4, 7, 3, 1, 2,
|
||
2, 2, 3, 4, 7, 1, 1, 2, 1, 1,
|
||
1, 1, 2, 2, 1, 1, 2, 1, 1, 1,
|
||
1, 2, 2, 1, 1, 2, 2, 2, 2, 3,
|
||
0, 5, 0, 7, 1, 1, 2, 3, 2, 2,
|
||
2, 3, 3, 3, 3, 3, 3, 0, 5, 0,
|
||
6, 1, 1, 2, 1, 3, 3, 5, 1, 1,
|
||
1, 1, 0, 6, 4, 2, 3, 1, 1, 1,
|
||
1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
|
||
2, 2, 2, 1, 2, 1, 3, 2, 1, 0,
|
||
2, 1, 2, 1, 1, 1, 1, 1, 1, 1,
|
||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||
1, 1, 1, 1, 1, 1, 1, 3, 1, 1,
|
||
1, 1, 1, 3, 1, 4, 7, 7, 4, 2,
|
||
2, 2, 2, 2, 3, 3, 3, 3, 3, 3,
|
||
3, 3, 3, 3, 3, 3, 3, 3, 3, 5,
|
||
4, 4, 3, 3, 3, 3, 1, 4, 7, 7,
|
||
4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
|
||
4, 4, 2, 5, 2, 2, 2, 2, 2, 3,
|
||
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
||
3, 3, 3, 3, 3, 3, 5, 4, 4, 3,
|
||
3, 3, 3, 1, 1, 1, 1, 1, 1, 1,
|
||
1, 4, 7, 7, 4, 2, 5, 2, 2, 2,
|
||
2, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
||
3, 3, 3, 3, 3, 3, 3, 3, 5, 4,
|
||
4, 3, 3, 3, 3, 1, 1, 1, 1, 1,
|
||
1, 1, 2, 2, 1, 1, 1, 2, 0
|
||
};
|
||
|
||
/* 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 short int yydefact[] =
|
||
{
|
||
0, 528, 0, 0, 0, 528, 5, 477, 473, 476,
|
||
526, 479, 0, 0, 0, 0, 0, 0, 475, 0,
|
||
0, 0, 0, 0, 0, 0, 0, 474, 0, 0,
|
||
0, 0, 0, 0, 0, 3, 426, 478, 196, 260,
|
||
261, 262, 249, 0, 275, 248, 273, 268, 264, 265,
|
||
263, 267, 250, 0, 251, 266, 278, 528, 4, 198,
|
||
199, 200, 201, 0, 0, 195, 257, 258, 259, 1,
|
||
20, 21, 0, 26, 0, 0, 0, 0, 118, 528,
|
||
0, 6, 15, 7, 18, 0, 13, 38, 14, 16,
|
||
17, 28, 528, 528, 528, 528, 528, 0, 528, 528,
|
||
528, 214, 0, 442, 0, 0, 213, 528, 528, 0,
|
||
0, 528, 448, 446, 447, 445, 196, 260, 261, 262,
|
||
275, 273, 268, 264, 263, 267, 266, 0, 0, 392,
|
||
444, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||
0, 0, 0, 527, 528, 277, 274, 264, 270, 264,
|
||
269, 272, 524, 525, 197, 271, 0, 528, 528, 528,
|
||
528, 218, 188, 237, 203, 220, 202, 22, 528, 528,
|
||
0, 25, 24, 23, 0, 0, 19, 0, 255, 72,
|
||
205, 0, 29, 34, 32, 36, 0, 37, 31, 0,
|
||
33, 35, 11, 0, 0, 41, 207, 208, 209, 210,
|
||
0, 0, 204, 0, 391, 390, 0, 0, 0, 0,
|
||
0, 0, 0, 0, 215, 528, 217, 216, 0, 0,
|
||
0, 0, 0, 0, 0, 472, 456, 457, 458, 459,
|
||
460, 461, 464, 465, 471, 0, 454, 455, 462, 463,
|
||
452, 453, 449, 450, 451, 470, 469, 0, 0, 219,
|
||
276, 528, 189, 191, 190, 0, 528, 528, 239, 528,
|
||
528, 27, 528, 252, 528, 0, 0, 49, 256, 58,
|
||
60, 43, 30, 0, 528, 206, 528, 0, 279, 154,
|
||
0, 0, 40, 39, 0, 212, 211, 430, 434, 432,
|
||
433, 440, 0, 439, 431, 436, 0, 435, 438, 441,
|
||
0, 437, 427, 393, 0, 468, 467, 192, 0, 0,
|
||
389, 388, 0, 242, 244, 241, 528, 528, 0, 0,
|
||
225, 224, 254, 528, 129, 130, 0, 0, 0, 0,
|
||
121, 122, 528, 128, 120, 51, 53, 0, 528, 0,
|
||
0, 528, 0, 528, 171, 172, 0, 528, 528, 528,
|
||
0, 170, 528, 62, 0, 528, 0, 8, 0, 528,
|
||
0, 0, 0, 0, 0, 0, 0, 42, 528, 132,
|
||
0, 443, 0, 466, 528, 193, 238, 243, 0, 0,
|
||
221, 0, 0, 0, 0, 226, 528, 0, 528, 124,
|
||
528, 131, 528, 0, 179, 180, 0, 528, 528, 528,
|
||
528, 528, 178, 0, 50, 528, 519, 515, 518, 528,
|
||
144, 0, 0, 517, 0, 0, 0, 516, 0, 0,
|
||
0, 0, 0, 0, 145, 148, 528, 169, 480, 520,
|
||
143, 0, 0, 0, 44, 528, 0, 528, 173, 175,
|
||
174, 68, 528, 12, 528, 155, 280, 281, 279, 0,
|
||
528, 528, 0, 160, 162, 159, 157, 0, 134, 87,
|
||
88, 89, 90, 91, 92, 95, 96, 111, 99, 100,
|
||
101, 102, 103, 104, 105, 106, 107, 108, 109, 110,
|
||
115, 114, 98, 97, 84, 86, 85, 93, 94, 82,
|
||
83, 79, 80, 81, 78, 0, 0, 77, 133, 136,
|
||
135, 0, 0, 0, 141, 528, 0, 45, 152, 0,
|
||
0, 0, 246, 245, 240, 0, 0, 0, 230, 521,
|
||
0, 229, 0, 228, 0, 0, 0, 528, 227, 253,
|
||
0, 528, 0, 116, 119, 117, 123, 528, 181, 183,
|
||
182, 0, 0, 528, 126, 150, 52, 528, 0, 54,
|
||
528, 528, 0, 485, 0, 0, 490, 489, 488, 0,
|
||
0, 487, 528, 147, 0, 528, 0, 0, 0, 0,
|
||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||
0, 528, 0, 47, 70, 176, 528, 0, 0, 283,
|
||
284, 286, 285, 290, 287, 288, 289, 291, 292, 293,
|
||
294, 295, 296, 297, 298, 299, 300, 301, 302, 303,
|
||
304, 305, 306, 307, 308, 309, 310, 311, 312, 313,
|
||
314, 315, 363, 316, 317, 318, 319, 320, 321, 322,
|
||
323, 324, 325, 326, 327, 328, 343, 329, 330, 331,
|
||
332, 333, 334, 335, 336, 337, 338, 339, 364, 340,
|
||
341, 342, 344, 345, 346, 347, 348, 349, 350, 351,
|
||
352, 353, 354, 355, 356, 357, 358, 359, 360, 361,
|
||
362, 528, 381, 382, 383, 374, 386, 370, 371, 369,
|
||
376, 377, 365, 366, 367, 368, 375, 373, 380, 378,
|
||
384, 379, 372, 385, 282, 0, 9, 0, 0, 158,
|
||
161, 137, 113, 112, 140, 139, 153, 528, 0, 0,
|
||
429, 428, 528, 0, 523, 236, 522, 235, 234, 233,
|
||
232, 231, 223, 125, 127, 184, 187, 0, 0, 0,
|
||
0, 0, 0, 0, 0, 0, 151, 394, 0, 0,
|
||
56, 0, 0, 167, 528, 0, 528, 0, 0, 0,
|
||
514, 74, 59, 73, 146, 149, 166, 498, 499, 500,
|
||
501, 502, 503, 506, 507, 513, 0, 496, 497, 504,
|
||
505, 494, 495, 491, 492, 493, 512, 511, 0, 0,
|
||
0, 64, 61, 0, 528, 0, 177, 528, 0, 156,
|
||
10, 163, 528, 164, 0, 138, 46, 194, 247, 528,
|
||
0, 0, 0, 403, 401, 402, 400, 0, 0, 399,
|
||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||
185, 0, 55, 153, 168, 0, 0, 484, 0, 481,
|
||
0, 0, 510, 509, 66, 528, 48, 0, 528, 63,
|
||
387, 0, 528, 0, 0, 0, 0, 0, 425, 411,
|
||
412, 413, 414, 415, 416, 417, 418, 424, 0, 409,
|
||
410, 407, 408, 404, 405, 406, 423, 422, 0, 0,
|
||
57, 0, 486, 0, 0, 508, 528, 0, 528, 69,
|
||
165, 142, 528, 0, 398, 0, 395, 0, 421, 420,
|
||
0, 0, 75, 0, 0, 528, 71, 186, 0, 0,
|
||
419, 483, 482, 76, 528, 65, 0, 0, 67, 397,
|
||
396
|
||
};
|
||
|
||
/* YYDEFGOTO[NTERM-NUM]. */
|
||
static const short int yydefgoto[] =
|
||
{
|
||
-1, 4, 5, 366, 367, 82, 286, 83, 84, 178,
|
||
85, 86, 87, 294, 352, 377, 444, 186, 347, 413,
|
||
414, 556, 204, 348, 351, 454, 865, 906, 606, 804,
|
||
772, 508, 544, 88, 184, 339, 340, 341, 342, 378,
|
||
727, 433, 434, 554, 516, 292, 462, 463, 435, 360,
|
||
411, 171, 57, 205, 103, 58, 59, 269, 60, 270,
|
||
329, 330, 395, 61, 267, 62, 326, 322, 323, 63,
|
||
64, 89, 333, 90, 65, 66, 67, 68, 364, 365,
|
||
456, 714, 319, 213, 214, 756, 129, 36, 437, 438,
|
||
528, 379, 37, 215
|
||
};
|
||
|
||
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
|
||
STATE-NUM. */
|
||
#define YYPACT_NINF -573
|
||
static const short int yypact[] =
|
||
{
|
||
367, -573, 2032, 2922, 45, 1488, -573, -573, -573, -573,
|
||
-573, -573, -34, -22, 3, 23, 38, -2, -573, 43,
|
||
56, 63, 3032, 73, 98, 109, 24, -573, 121, 2032,
|
||
2032, 2032, 2032, 911, 2032, 2600, -573, 108, -573, -573,
|
||
-573, -573, -573, 3081, -573, -573, -573, -573, 3266, -573,
|
||
1720, 1720, -573, 44, -573, 1720, -573, 27, -573, -573,
|
||
-573, -573, -573, 46, 93, -573, -573, -573, -573, -573,
|
||
-573, -573, 61, -573, 124, 175, 183, 195, -573, -573,
|
||
83, -573, -573, -573, -573, 2351, -573, -573, -573, -573,
|
||
-573, -573, 2032, 2032, 2032, 2032, 2032, 2922, 2032, 2032,
|
||
2032, -573, 44, 125, 44, 44, -573, 2032, 2032, 2922,
|
||
2922, 2032, 130, 130, 130, 130, -34, -22, 3, 23,
|
||
38, 43, 56, 3220, 907, 1550, 1635, 143, -37, 2600,
|
||
130, 2032, 2032, 2032, 2032, 2032, 2032, 2032, 2032, 2032,
|
||
2032, 2032, 2032, 2032, 2032, 2032, 2032, 2032, 2032, 2032,
|
||
2032, 1522, 2032, -573, 27, -573, -573, 3281, -573, 1720,
|
||
-573, -573, -573, -573, -573, -573, 163, 27, 27, 27,
|
||
27, 207, -573, -573, 228, -573, 15, -573, 3231, -573,
|
||
236, -573, -573, -573, 232, 2406, -573, 44, -573, 225,
|
||
226, 3081, 353, -573, -573, -573, 2983, -573, -573, 44,
|
||
-573, -573, -573, 44, 126, 257, -573, -573, -573, -573,
|
||
46, 93, -573, 242, 264, -573, 246, 252, 255, 268,
|
||
261, 272, 273, 275, -573, 2032, -573, -573, 281, 296,
|
||
298, 276, 304, 2032, 2032, -573, 2741, 2756, 724, 724,
|
||
392, 392, 369, 369, -573, 2545, 2771, 2786, 392, 392,
|
||
266, 266, 130, 130, 130, -573, -573, -35, 2113, 207,
|
||
-573, 27, 207, 207, 207, -63, 2032, 44, -573, -573,
|
||
325, -573, 806, -573, 2885, 3081, 126, -573, -573, -573,
|
||
10, -573, 108, 3081, 224, -573, -573, 315, -573, -573,
|
||
44, 1607, -573, -573, 26, 228, 15, -573, -573, -573,
|
||
-573, -573, 317, -573, -573, -573, 321, -573, -573, -573,
|
||
324, -573, 130, 2600, 2032, -573, -573, 207, 326, 323,
|
||
2600, -573, 328, 346, 349, -573, 44, 3092, 37, 358,
|
||
359, -573, -573, -573, -573, -573, 44, 2275, 44, 352,
|
||
366, -573, 71, -573, -573, -573, -573, 26, 1336, 365,
|
||
26, 1336, 26, 224, -573, -573, 372, 224, 224, 224,
|
||
9, -573, 3131, -573, 368, -573, 70, -573, 378, 1692,
|
||
2566, 377, 26, 2274, 26, 26, 26, -573, 319, -573,
|
||
2032, -573, 2032, 2600, 1336, -573, -573, 44, 2032, 376,
|
||
-573, 738, 763, 772, 402, -573, -573, 37, 3156, 394,
|
||
71, -573, 416, 2885, -573, -573, 389, 71, 71, 71,
|
||
71, -77, -573, 26, -573, 319, -573, -573, -573, 71,
|
||
-573, 3081, 399, -573, 3032, 396, 407, -573, 2032, 2032,
|
||
2032, 911, 2032, 397, 21, -573, 71, 2617, -573, 108,
|
||
-573, 26, 271, 398, -573, 319, 135, 224, 409, 409,
|
||
409, -573, 2032, -573, 1336, -573, 1214, -573, -573, 44,
|
||
2032, 1692, 410, 428, 2600, -573, -573, 26, 200, -573,
|
||
-573, -573, -573, -573, -573, -573, -573, -573, -573, -573,
|
||
-573, -573, -573, -573, -573, -573, -573, -573, -573, -573,
|
||
-573, -573, -573, -573, -573, -573, -573, -573, -573, -573,
|
||
-573, -573, -573, -573, -573, 412, 415, -573, -573, 200,
|
||
200, 311, 280, 1607, -573, 2032, 432, -573, -573, -14,
|
||
4, 421, 438, 2600, -573, 44, 244, 44, -573, -573,
|
||
244, -573, 244, -573, 244, 244, 244, 3181, -573, -573,
|
||
2922, -77, 2461, -573, -573, -573, -573, 71, 425, 425,
|
||
425, 202, 732, 2032, -573, -573, -573, 319, 445, -573,
|
||
-30, 71, 2922, 439, 2922, 2922, 130, 130, 130, 436,
|
||
35, 130, 511, -573, 1429, -30, 2032, 2032, 2032, 2032,
|
||
2032, 2032, 2032, 2032, 2032, 2032, 2032, 2032, 2032, 2032,
|
||
2032, 2032, 2032, 2032, 2032, 2032, 1777, 2032, 336, 559,
|
||
443, 511, 462, -573, -573, 409, 1336, 442, 446, -573,
|
||
-573, -573, -573, -573, -573, -573, -573, -573, -573, -573,
|
||
-573, -573, -573, -573, -573, -573, -573, -573, -573, -573,
|
||
-573, -573, -573, -573, -573, -573, -573, -573, -573, -573,
|
||
-573, -573, -573, -573, -573, -573, -573, -573, -573, -573,
|
||
-573, -573, -573, -573, -573, -573, -573, -573, -573, -573,
|
||
-573, -573, -573, -573, -573, -573, -573, -573, -573, -573,
|
||
-573, -573, -573, -573, -573, -573, -573, -573, -573, -573,
|
||
-573, -573, -573, -573, -573, -573, -573, -573, -573, -573,
|
||
-573, -573, -573, -573, -573, -573, -573, -573, -573, -573,
|
||
-573, -573, -573, -573, -573, -573, -573, -573, -573, -573,
|
||
-573, -573, -573, -573, -573, 448, -573, 447, 450, -573,
|
||
1862, 200, -573, -573, -573, -573, 2566, 1336, 449, 26,
|
||
-573, -573, 511, 2032, -573, -573, -573, -573, -573, -573,
|
||
-573, -573, -573, -573, -573, 425, 456, 466, 459, 470,
|
||
732, 732, 732, 732, 911, 732, 1351, -573, 457, 488,
|
||
-573, 26, 2032, -573, -30, 480, 2032, 471, 482, 2032,
|
||
-573, -573, 509, -573, -573, -573, -573, 2741, 2756, 724,
|
||
724, 392, 392, 369, 369, -573, 2583, 2771, 2786, 392,
|
||
392, 266, 266, 130, 130, 130, -573, -573, 49, 2143,
|
||
477, -573, 509, 26, 1336, 476, -573, 511, 1092, -573,
|
||
-573, -573, 1692, 2600, 478, -573, -573, 509, 2600, 1336,
|
||
2922, 2922, 2922, 251, 251, 251, 251, 481, 118, 251,
|
||
732, 732, 732, 732, 732, 732, 732, 732, 732, 732,
|
||
732, 732, 732, 732, 732, 732, 732, 732, 1947, 2032,
|
||
-573, 26, -573, 2600, -573, 484, 485, -573, 496, 130,
|
||
497, 2032, -573, -573, -573, 1336, -573, 486, 511, 509,
|
||
-573, 505, 511, 498, 507, 508, 519, 732, -573, 569,
|
||
924, 2088, 2088, 408, 408, 580, 580, -573, 2725, 2801,
|
||
2907, 435, 435, 251, 251, 251, -573, -573, 140, 2162,
|
||
-573, 2032, -573, 2032, 22, 2600, 1336, 510, 511, 509,
|
||
-573, 509, 511, 514, -573, 515, 251, 732, -573, -573,
|
||
160, 165, -573, 516, 518, 511, 509, 509, 2032, 2032,
|
||
1351, -573, -573, -573, 511, 509, 170, 173, 509, -573,
|
||
-573
|
||
};
|
||
|
||
/* YYPGOTO[NTERM-NUM]. */
|
||
static const short int yypgoto[] =
|
||
{
|
||
-573, -573, -160, -573, 176, -573, -573, 458, -573, -573,
|
||
-78, 262, -573, -573, -573, -64, -137, -573, -573, -573,
|
||
-94, -183, 487, -573, -573, -573, -573, -573, -573, -573,
|
||
-572, -573, -573, 267, -573, -573, -573, 270, 333, -303,
|
||
-573, -324, -573, 134, -399, -226, -458, -573, 100, -209,
|
||
-368, -106, -5, 492, 277, -27, -80, -573, -70, -573,
|
||
-573, -573, 282, -68, -573, -67, -573, 371, -573, -11,
|
||
78, -573, -573, -573, 2, 133, -573, -573, 233, -573,
|
||
11, -573, -426, -86, -31, -127, 64, -529, -573, -573,
|
||
-289, 558, -133, -1
|
||
};
|
||
|
||
/* 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 -223
|
||
static const short int yytable[] =
|
||
{
|
||
6, 185, 128, 718, 91, 206, 127, 216, 217, 218,
|
||
219, 104, 221, 222, 223, 207, 558, 208, 209, 272,
|
||
349, 228, 229, 757, 106, 232, 607, 443, 552, 802,
|
||
162, 163, 541, 573, 162, 163, 371, 166, 154, 548,
|
||
549, 550, 551, 553, 415, 69, 602, 442, 259, 445,
|
||
346, 560, 162, 163, 162, 163, 172, 266, 318, 282,
|
||
521, 262, 263, 264, 265, 234, 35, 234, 575, 468,
|
||
220, 509, 510, 511, 210, 762, 372, 167, 91, 404,
|
||
405, 406, 230, 231, 235, 92, 315, 212, 234, 728,
|
||
553, 162, 163, 112, 113, 114, 115, 93, 130, 373,
|
||
105, 162, 163, 531, 533, 206, 234, 730, 97, 327,
|
||
557, 391, 392, 393, 153, 207, -222, 208, 209, -222,
|
||
257, 407, 94, 574, 350, 731, 362, 758, 451, 452,
|
||
608, 394, 162, 163, 110, 374, 168, 234, 598, 306,
|
||
375, 169, 95, 922, 446, 376, 170, 173, 448, 449,
|
||
450, 234, 517, 172, 187, 317, 770, 96, 759, 139,
|
||
817, 763, 98, 211, 721, 177, 172, 172, 172, 172,
|
||
862, 458, 459, 398, 210, 99, 776, 91, 6, 745,
|
||
408, 158, 100, 160, 161, 409, 281, 212, 165, 559,
|
||
410, 284, 107, 764, 175, 236, 237, 238, 239, 240,
|
||
241, 242, 243, 244, 245, 246, 247, 248, 249, 250,
|
||
251, 252, 253, 254, 255, 439, 258, 108, 439, 603,
|
||
234, 757, 757, 757, 757, 179, 757, 288, 109, 289,
|
||
290, 291, 354, 355, 356, 869, 537, 735, 605, 878,
|
||
111, 737, 234, 738, 225, 739, 740, 741, 150, 151,
|
||
152, 439, 162, 163, 604, 452, 158, 160, 161, 165,
|
||
172, 918, 234, 211, 233, 321, 325, 234, 6, 331,
|
||
345, 91, 234, 344, 357, 234, 343, 261, 353, 181,
|
||
838, 931, 805, 361, 725, 6, 932, 182, 162, 163,
|
||
158, 939, 158, 42, 940, 139, 909, 312, 313, 183,
|
||
911, 757, 757, 757, 757, 757, 757, 757, 757, 757,
|
||
757, 757, 757, 757, 757, 757, 757, 757, 757, 514,
|
||
515, 439, 553, 746, 542, 325, 91, 266, 52, 268,
|
||
320, 760, 6, 358, 525, 54, 926, 273, 359, 343,
|
||
927, 412, 274, 436, 279, 280, 436, 440, 757, 519,
|
||
440, 520, 361, 935, 871, 370, 361, 361, 361, 10,
|
||
293, 91, 938, 297, 457, 854, 234, 298, 465, 847,
|
||
848, 849, 302, 299, 717, 599, 300, 518, 383, 436,
|
||
147, 148, 149, 440, 150, 151, 152, 310, 757, 301,
|
||
514, 515, 600, 303, 304, 6, 305, 91, 139, 412,
|
||
570, 91, 307, 814, 569, 343, 412, 412, 412, 412,
|
||
555, 137, 138, 104, 518, 599, 561, 308, 412, 309,
|
||
288, 139, 289, 512, 513, 311, 106, 836, 837, 328,
|
||
514, 515, 724, 464, 363, 412, 380, 838, 514, 515,
|
||
599, 439, 381, 382, 518, 384, 361, 385, 387, 436,
|
||
386, 321, 523, 440, 388, 514, 515, 800, 415, 396,
|
||
465, 397, 206, 402, 838, 1, 2, 3, 403, 527,
|
||
527, 527, 207, 439, 208, 209, 534, 535, 536, 441,
|
||
867, 145, 146, 147, 148, 149, 447, 150, 151, 152,
|
||
455, 467, 566, 567, 568, 873, 571, 460, 524, 540,
|
||
445, 78, 105, 547, 145, 146, 147, 148, 149, 562,
|
||
150, 151, 152, 743, 321, 564, 320, 565, 572, 601,
|
||
842, 843, 844, 845, 846, 464, 847, 848, 849, 452,
|
||
720, 210, 719, 722, 729, 765, 91, 767, 768, 723,
|
||
555, 907, 732, 733, 212, 553, 412, 761, 557, 844,
|
||
845, 846, 321, 847, 848, 849, 518, 769, 766, 518,
|
||
412, 771, 801, 725, 803, 798, 806, 807, 810, 436,
|
||
809, 773, 811, 815, 518, 819, 820, 726, 821, 320,
|
||
822, 850, 924, 831, 832, 833, 834, 835, 836, 837,
|
||
851, 855, 857, 858, 439, 860, 864, 868, 838, 872,
|
||
773, 436, 877, 901, 527, 440, 902, 908, 527, 838,
|
||
527, 164, 527, 527, 527, 903, 904, 320, 913, 912,
|
||
211, 174, 176, 823, 824, 825, 826, 910, 829, 914,
|
||
915, 925, 180, 928, 929, 716, 271, 933, 188, 934,
|
||
777, 778, 779, 780, 781, 782, 783, 784, 785, 786,
|
||
787, 788, 789, 790, 791, 792, 793, 794, 795, 796,
|
||
224, 799, 226, 227, 543, 816, 866, 852, 900, 545,
|
||
400, 439, 276, 546, 775, 744, 840, 277, 841, 538,
|
||
856, 842, 843, 844, 845, 846, 439, 847, 848, 849,
|
||
457, 715, 842, 843, 844, 845, 846, 389, 847, 848,
|
||
849, 563, 808, 879, 880, 881, 882, 883, 884, 885,
|
||
886, 887, 888, 889, 890, 891, 892, 893, 894, 895,
|
||
896, 0, 436, 828, 0, 0, 440, 827, 0, 0,
|
||
0, 773, 439, 0, 0, 7, 8, 9, 10, 0,
|
||
11, 135, 136, 137, 138, 278, 162, 163, 0, 0,
|
||
916, 0, 0, 139, 0, 0, 0, 285, 0, 0,
|
||
0, 287, 0, 518, 0, 0, 0, 0, 295, 296,
|
||
0, 162, 163, 439, 0, 0, 0, 0, 0, 0,
|
||
162, 163, 0, 0, 813, 747, 0, 42, 0, 0,
|
||
930, 0, 18, 874, 875, 876, 0, 818, 0, 436,
|
||
0, 0, 0, 440, 0, 0, 773, 0, 0, 0,
|
||
0, 465, 42, 748, 436, 749, 0, 898, 440, 27,
|
||
0, 42, 52, 0, 0, 324, 853, 0, 525, 54,
|
||
0, 0, 526, 859, 143, 144, 145, 146, 147, 148,
|
||
149, 750, 150, 151, 152, 751, 752, 52, 368, 753,
|
||
70, 754, 0, 525, 54, 755, 52, 530, 0, 0,
|
||
436, 71, 525, 54, 440, 72, 532, 773, 73, 0,
|
||
920, 773, 921, 0, 0, 0, 464, 74, 0, 0,
|
||
75, 76, 77, 0, 324, 0, 0, 0, 0, 0,
|
||
0, 78, 0, 0, 399, 79, 401, 936, 937, 80,
|
||
0, 436, 0, 0, 0, 440, 0, 773, 0, 81,
|
||
0, 773, 0, 899, 7, 8, 9, 10, 0, 11,
|
||
116, 0, 0, 0, 773, 905, 0, 0, 332, 0,
|
||
0, 0, 0, 773, 0, 0, 0, 0, 0, 832,
|
||
833, 834, 835, 836, 837, 522, 0, 0, 0, 529,
|
||
529, 529, 39, 838, 40, 41, 117, 0, 118, 119,
|
||
42, 43, 0, 120, 17, 0, 0, 45, 0, 0,
|
||
0, 18, 121, 0, 47, 159, 49, 0, 122, 123,
|
||
49, 0, 0, 22, 0, 0, 50, 51, 0, 0,
|
||
124, 125, 25, 0, 26, 52, 0, 0, 27, 55,
|
||
0, 53, 54, 126, 0, 0, 56, 0, 0, 0,
|
||
0, 0, 0, 0, 0, 0, 0, 368, 0, 0,
|
||
29, 0, 0, 0, 30, 31, 107, 0, 32, 0,
|
||
33, 840, 0, 841, 34, 0, 842, 843, 844, 845,
|
||
846, 0, 847, 848, 849, 0, 0, 0, 0, 0,
|
||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||
368, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||
0, 0, 0, 734, 529, 736, 0, 0, 529, 0,
|
||
529, 0, 529, 529, 529, 609, 610, 611, 612, 613,
|
||
614, 615, 616, 0, 617, 618, 619, 620, 621, 622,
|
||
623, 624, 625, 626, 627, 0, 0, 0, 0, 0,
|
||
0, 628, 629, 630, 631, 632, 633, 634, 635, 636,
|
||
637, 638, 639, 640, 641, 642, 0, 643, 644, 645,
|
||
646, 647, 648, 649, 650, 651, 652, 0, 653, 654,
|
||
655, 656, 657, 658, 659, 660, 661, 662, 663, 664,
|
||
665, 0, 666, 0, 667, 668, 669, 670, 671, 672,
|
||
673, 674, 675, 676, 677, 678, 679, 0, 680, 681,
|
||
682, 683, 684, 685, 686, 0, 687, 688, 689, 690,
|
||
0, 0, 0, 691, 692, 693, 694, 695, 696, 697,
|
||
698, 699, 700, 701, 702, 703, 704, 705, 706, 707,
|
||
708, 709, 710, 711, 870, 712, 713, 609, 610, 611,
|
||
612, 613, 614, 615, 616, 0, 617, 618, 619, 620,
|
||
621, 622, 623, 624, 625, 626, 627, 0, 0, 0,
|
||
0, 0, 0, 628, 629, 630, 631, 632, 633, 634,
|
||
635, 636, 637, 638, 639, 640, 641, 642, 0, 643,
|
||
644, 645, 646, 647, 648, 649, 650, 651, 652, 0,
|
||
653, 654, 655, 656, 657, 658, 659, 660, 661, 662,
|
||
663, 664, 665, 0, 666, 0, 667, 668, 669, 670,
|
||
671, 672, 673, 674, 675, 676, 677, 678, 679, 0,
|
||
680, 681, 682, 683, 684, 685, 686, 0, 687, 688,
|
||
689, 690, 0, 0, 0, 691, 692, 693, 694, 695,
|
||
696, 697, 698, 699, 700, 701, 702, 703, 704, 705,
|
||
706, 707, 708, 709, 710, 711, 0, 712, 713, 416,
|
||
417, 418, 10, 0, 419, 38, 0, 0, 420, 0,
|
||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||
0, 0, 0, 0, 830, 831, 832, 833, 834, 835,
|
||
836, 837, 0, 0, 0, 0, 0, 0, 0, 0,
|
||
838, 39, 0, 40, 41, 42, 421, 0, 44, 422,
|
||
0, 0, 45, 0, 0, 0, 423, 46, 0, 0,
|
||
0, 0, 0, 47, 48, 49, 0, 0, 424, 0,
|
||
0, 0, 0, 0, 0, 50, 51, 425, 0, 426,
|
||
52, 0, 0, 427, 0, 0, 53, 54, 55, 0,
|
||
0, 56, 416, 417, 418, 10, 0, 419, 38, 0,
|
||
0, 774, 0, 0, 0, 428, 0, 0, 0, 429,
|
||
0, 0, 0, 430, 0, 431, 0, 839, 840, 432,
|
||
841, 0, 923, 842, 843, 844, 845, 846, 0, 847,
|
||
848, 849, 0, 0, 39, 0, 40, 41, 42, 421,
|
||
0, 44, 422, 0, 0, 45, 0, 0, -2, 423,
|
||
46, 0, 0, 0, 0, 0, 47, 48, 49, 0,
|
||
0, 424, 0, 0, 0, 0, 0, 0, 50, 51,
|
||
425, 0, 426, 52, 0, 0, 427, 0, 0, 53,
|
||
54, 55, 0, 0, 56, 7, 8, 9, 10, 0,
|
||
11, 12, 70, 0, 0, 0, 0, 0, 428, 0,
|
||
0, 0, 429, 71, 0, 0, 430, 72, 431, 0,
|
||
73, 0, 432, 0, 0, 0, 0, 0, 0, 74,
|
||
0, 0, 75, 76, 77, 0, 0, 13, 0, 14,
|
||
15, 0, 0, 78, 16, 17, 0, 79, 0, 0,
|
||
0, 80, 18, 19, 0, 0, 0, 0, 0, 20,
|
||
21, 81, 0, 0, 22, 39, 0, 40, 41, 0,
|
||
0, 23, 24, 25, 0, 26, 0, 0, 0, 27,
|
||
7, 8, 9, 10, 28, 11, 12, 47, 159, 49,
|
||
0, 0, 0, 0, 0, 0, 0, 0, 0, 50,
|
||
51, 29, 0, 0, 0, 30, 31, 0, 0, 32,
|
||
0, 33, 55, 256, 0, 34, 0, 0, 0, 0,
|
||
0, 0, 13, 0, 14, 15, 0, 0, 0, 16,
|
||
17, 0, 0, 0, 0, 0, 0, 18, 19, 108,
|
||
0, 0, 0, 0, 20, 21, 0, 0, 0, 22,
|
||
39, 0, 40, 41, 0, 0, 23, 24, 25, 0,
|
||
26, 0, 0, 0, 27, 7, 8, 9, 10, 28,
|
||
11, 12, 47, 159, 49, 0, 0, 0, 369, 0,
|
||
0, 0, 0, 0, 50, 51, 29, 0, 0, 0,
|
||
30, 31, 0, 0, 32, 0, 33, 55, 0, 0,
|
||
34, 0, 0, 0, 0, 0, 0, 13, 0, 14,
|
||
15, 0, 0, 0, 16, 17, 0, 0, 0, 0,
|
||
0, 0, 18, 19, 111, 0, 0, 0, 0, 20,
|
||
21, 0, 0, 0, 22, 39, 0, 40, 41, 0,
|
||
0, 23, 24, 25, 0, 26, 0, 0, 0, 27,
|
||
7, 8, 9, 10, 28, 11, 12, 47, 159, 49,
|
||
0, 0, 0, 461, 0, 0, 0, 0, 0, 50,
|
||
51, 29, 0, 0, 0, 30, 31, 0, 0, 32,
|
||
0, 33, 55, 0, 0, 34, 0, 0, 0, 0,
|
||
0, 0, 13, 0, 14, 15, 0, 0, 0, 16,
|
||
17, 0, 0, 0, 0, 0, 0, 18, 19, 0,
|
||
0, 0, 0, 0, 20, 21, 0, 0, 0, 22,
|
||
0, 0, 0, 0, 0, 0, 23, 24, 25, 0,
|
||
26, 0, 0, 0, 27, 7, 8, 9, 10, 28,
|
||
11, 12, 0, 0, 0, 0, 0, 0, 0, 0,
|
||
0, 0, 0, 0, 0, 0, 29, 0, 0, 0,
|
||
30, 31, 0, 0, 32, 0, 33, 0, 797, 0,
|
||
34, 0, 0, 0, 0, 0, 0, 13, 0, 14,
|
||
15, 0, 0, 0, 16, 17, 0, 0, 0, 0,
|
||
0, 0, 18, 19, 0, 0, 0, 0, 0, 20,
|
||
21, 0, 0, 0, 22, 0, 0, 0, 0, 0,
|
||
0, 23, 24, 25, 0, 26, 0, 0, 0, 27,
|
||
7, 8, 9, 10, 28, 11, 12, 0, 0, 0,
|
||
0, 0, 0, 812, 0, 0, 0, 0, 0, 0,
|
||
0, 29, 0, 0, 0, 30, 31, 0, 0, 32,
|
||
0, 33, 0, 0, 0, 34, 0, 0, 0, 0,
|
||
0, 0, 13, 0, 14, 15, 0, 0, 0, 16,
|
||
17, 0, 0, 0, 0, 0, 0, 18, 19, 0,
|
||
0, 0, 0, 0, 20, 21, 0, 0, 0, 22,
|
||
0, 0, 0, 0, 0, 0, 23, 24, 25, 0,
|
||
26, 0, 0, 0, 27, 7, 8, 9, 10, 28,
|
||
11, 12, 0, 0, 0, 0, 0, 0, 0, 0,
|
||
0, 0, 0, 0, 0, 0, 29, 0, 0, 0,
|
||
30, 31, 0, 0, 32, 0, 33, 0, 897, 0,
|
||
34, 0, 0, 0, 0, 0, 0, 13, 0, 14,
|
||
15, 0, 0, 0, 16, 17, 0, 0, 0, 0,
|
||
0, 0, 18, 19, 0, 0, 0, 0, 0, 20,
|
||
21, 0, 0, 0, 22, 834, 835, 836, 837, 0,
|
||
0, 23, 24, 25, 0, 26, 0, 838, 0, 27,
|
||
0, 0, 0, 0, 28, 0, 131, 132, 133, 134,
|
||
135, 136, 137, 138, 0, 0, 0, 0, 0, 0,
|
||
0, 29, 139, 0, 0, 30, 31, 0, 0, 32,
|
||
0, 33, 0, 0, 0, 34, 131, 132, 133, 134,
|
||
135, 136, 137, 138, 0, 0, 0, 0, 0, 0,
|
||
0, 0, 139, 0, 0, 131, 132, 133, 134, 135,
|
||
136, 137, 138, 0, 0, 0, 0, 0, 0, 0,
|
||
0, 139, 0, 0, 0, 0, 0, 0, 0, 0,
|
||
842, 843, 844, 845, 846, 0, 847, 848, 849, 0,
|
||
0, 0, 0, 0, 0, 0, 0, 0, 0, 140,
|
||
141, 0, 142, 143, 144, 145, 146, 147, 148, 149,
|
||
0, 150, 151, 152, 0, 0, 0, 316, 0, 0,
|
||
0, 0, 0, 0, 0, 0, 0, 0, 0, 140,
|
||
141, 0, 142, 143, 144, 145, 146, 147, 148, 149,
|
||
0, 150, 151, 152, 0, 0, 0, 863, 140, 141,
|
||
0, 142, 143, 144, 145, 146, 147, 148, 149, 0,
|
||
150, 151, 152, 334, 335, 0, 919, 469, 470, 471,
|
||
472, 473, 474, 475, 476, 0, 0, 0, 0, 0,
|
||
0, 0, 0, 477, 0, 478, 479, 480, 481, 482,
|
||
483, 484, 485, 486, 487, 488, 489, 0, 0, 0,
|
||
39, 0, 40, 41, 0, 490, 0, 44, 0, 0,
|
||
0, 0, 0, 0, 0, 0, 46, 0, 0, 0,
|
||
0, 0, 47, 48, 49, 0, 491, 0, 0, 0,
|
||
0, 0, 0, 0, 50, 51, 0, 0, 0, 189,
|
||
190, 0, 0, 0, 0, 338, 0, 55, 0, 0,
|
||
56, 0, 0, 0, 0, 0, 492, 0, 0, 493,
|
||
0, 494, 495, 496, 497, 498, 499, 500, 501, 502,
|
||
503, 504, 0, 505, 506, 0, 39, 507, 40, 41,
|
||
42, 191, 0, 44, 0, 0, 0, 45, 192, 193,
|
||
0, 0, 46, 0, 189, 190, 0, 194, 47, 48,
|
||
49, 195, 0, 0, 196, 0, 0, 0, 197, 0,
|
||
50, 51, 0, 198, 0, 52, 0, 0, 0, 0,
|
||
0, 199, 54, 55, 0, 200, 56, 201, 0, 0,
|
||
0, 39, 202, 40, 41, 42, 275, 0, 44, 0,
|
||
0, 0, 45, 192, 193, 0, 0, 46, 203, 189,
|
||
190, 0, 194, 47, 48, 49, 195, 0, 0, 196,
|
||
0, 0, 0, 197, 0, 50, 51, 0, 198, 0,
|
||
52, 0, 0, 0, 0, 0, 199, 54, 55, 0,
|
||
200, 56, 201, 0, 0, 0, 39, 0, 40, 41,
|
||
42, 191, 0, 44, 0, 0, 0, 45, 192, 193,
|
||
0, 0, 46, 203, 0, 0, 0, 194, 47, 48,
|
||
49, 195, 0, 0, 196, 0, 0, 0, 197, 0,
|
||
50, 51, 0, 198, 0, 52, 0, 0, 0, 0,
|
||
0, 199, 54, 55, 0, 200, 56, 201, 131, 132,
|
||
133, 134, 135, 136, 137, 138, 0, 0, 0, 0,
|
||
0, 0, 0, 0, 139, 0, 0, 0, 203, 131,
|
||
132, 133, 134, 135, 136, 137, 138, 0, 0, 0,
|
||
0, 0, 0, 0, 0, 139, 131, 132, 133, 134,
|
||
135, 136, 137, 138, 0, 0, 0, 0, 0, 0,
|
||
0, 0, 139, 131, 132, 133, 134, 135, 136, 137,
|
||
138, 0, 0, 0, 0, 0, 0, 0, 0, 139,
|
||
576, 577, 578, 579, 580, 581, 582, 583, 0, 0,
|
||
0, 0, 0, 0, 0, 0, 584, 0, 0, 314,
|
||
0, 140, 141, 0, 142, 143, 144, 145, 146, 147,
|
||
148, 149, 0, 150, 151, 152, 0, 0, 0, 466,
|
||
0, 0, 140, 141, 0, 142, 143, 144, 145, 146,
|
||
147, 148, 149, 0, 150, 151, 152, 861, 0, 140,
|
||
141, 0, 142, 143, 144, 145, 146, 147, 148, 149,
|
||
0, 150, 151, 152, 0, 0, 140, 141, 0, 142,
|
||
143, 144, 145, 146, 147, 148, 149, 0, 150, 151,
|
||
152, 0, 0, 585, 586, 0, 587, 588, 589, 590,
|
||
591, 592, 593, 594, 0, 595, 596, 597, 830, 831,
|
||
832, 833, 834, 835, 836, 837, 0, 0, 0, 0,
|
||
0, 0, 0, 0, 838, 132, 133, 134, 135, 136,
|
||
137, 138, 0, 0, 0, 0, 0, 0, 0, 0,
|
||
139, 133, 134, 135, 136, 137, 138, 0, 0, 0,
|
||
0, 0, 0, 0, 0, 139, 133, 134, 135, 136,
|
||
137, 138, 0, 0, 0, 0, 0, 0, 0, 0,
|
||
139, 133, 134, 135, 136, 137, 138, 0, 0, 0,
|
||
0, 0, 0, 0, 0, 139, 832, 833, 834, 835,
|
||
836, 837, 0, 0, 0, 0, 0, 0, 0, 917,
|
||
838, 839, 840, 0, 841, 0, 0, 842, 843, 844,
|
||
845, 846, 0, 847, 848, 849, 0, 0, 141, 0,
|
||
142, 143, 144, 145, 146, 147, 148, 149, 0, 150,
|
||
151, 152, 0, 141, 0, 142, 143, 144, 145, 146,
|
||
147, 148, 149, 0, 150, 151, 152, 0, 0, 0,
|
||
142, 143, 144, 145, 146, 147, 148, 149, 0, 150,
|
||
151, 152, 0, 334, 335, 0, 143, 144, 145, 146,
|
||
147, 148, 149, 0, 150, 151, 152, 0, 0, 0,
|
||
841, 0, 0, 842, 843, 844, 845, 846, 0, 847,
|
||
848, 849, 832, 833, 834, 835, 836, 837, 0, 0,
|
||
39, 38, 40, 41, 336, 337, 838, 44, 0, 0,
|
||
0, 0, 0, 0, 0, 0, 46, 0, 0, 0,
|
||
0, 0, 47, 48, 49, 0, 0, 0, 0, 0,
|
||
0, 0, 0, 0, 50, 51, 0, 39, 0, 40,
|
||
41, 42, 43, 0, 44, 338, 0, 55, 45, 0,
|
||
56, 0, 0, 46, 0, 0, 0, 0, 0, 47,
|
||
48, 49, 38, 0, 0, 0, 0, 0, 0, 0,
|
||
0, 50, 51, 0, 0, 0, 52, 0, 0, 0,
|
||
0, 0, 53, 54, 55, 0, 0, 56, 0, 842,
|
||
843, 844, 845, 846, 0, 847, 848, 849, 39, 0,
|
||
40, 41, 42, 283, 0, 44, 0, 0, 0, 45,
|
||
0, 101, 0, 0, 46, 0, 0, 0, 0, 0,
|
||
47, 48, 49, 0, 0, 0, 0, 0, 0, 0,
|
||
0, 0, 50, 51, 0, 0, 0, 52, 0, 0,
|
||
0, 0, 0, 53, 54, 55, 0, 39, 56, 40,
|
||
41, 42, 0, 0, 44, 0, 0, 0, 45, 0,
|
||
38, 0, 0, 46, 0, 0, 0, 0, 0, 47,
|
||
48, 49, 0, 0, 0, 0, 0, 0, 0, 0,
|
||
0, 50, 51, 0, 0, 0, 52, 0, 0, 0,
|
||
0, 0, 102, 54, 55, 0, 39, 56, 40, 41,
|
||
42, 0, 0, 44, 0, 0, 70, 45, 0, 0,
|
||
0, 0, 46, 0, 0, 0, 0, 71, 47, 48,
|
||
49, 72, 0, 0, 73, 0, 0, 0, 0, 0,
|
||
50, 51, 0, 74, 0, 52, 75, 76, 77, 0,
|
||
0, 53, 54, 55, 0, 70, 56, 78, 0, 0,
|
||
0, 79, 0, 0, 0, 80, 71, 0, 0, 0,
|
||
72, 0, 0, 73, 0, 81, 0, 0, 0, 0,
|
||
70, 0, 74, 0, 0, 75, 76, 77, 0, 0,
|
||
0, 71, 0, 0, 390, 72, 78, 0, 73, 0,
|
||
79, 0, 0, 0, 80, 70, 0, 74, 0, 0,
|
||
75, 76, 77, 0, 81, 0, 71, 0, 0, 0,
|
||
72, 78, 0, 73, 0, 79, 0, 0, 0, 80,
|
||
0, 0, 74, 453, 0, 75, 76, 77, 0, 81,
|
||
0, 0, 0, 0, 0, 39, 78, 40, 41, 0,
|
||
79, 0, 155, 0, 80, 70, 0, 0, 539, 0,
|
||
0, 156, 0, 0, 81, 0, 71, 47, 157, 49,
|
||
72, 0, 0, 73, 0, 0, 0, 0, 0, 50,
|
||
51, 0, 74, 742, 0, 75, 76, 77, 0, 0,
|
||
0, 39, 55, 40, 41, 0, 78, 0, 155, 0,
|
||
79, 0, 0, 0, 80, 0, 39, 156, 40, 41,
|
||
0, 0, 0, 47, 157, 49, 0, 0, 0, 100,
|
||
0, 0, 260, 0, 0, 50, 51, 0, 47, 159,
|
||
49, 0, 0, 0, 0, 0, 0, 0, 55, 0,
|
||
50, 51, 0, 0, 0, 0, 0, 0, 0, 0,
|
||
0, 0, 0, 55
|
||
};
|
||
|
||
static const short int yycheck[] =
|
||
{
|
||
1, 79, 33, 461, 5, 85, 33, 93, 94, 95,
|
||
96, 22, 98, 99, 100, 85, 415, 85, 85, 179,
|
||
10, 107, 108, 552, 22, 111, 452, 351, 105, 601,
|
||
8, 9, 400, 12, 8, 9, 10, 10, 43, 407,
|
||
408, 409, 410, 120, 347, 0, 445, 350, 154, 352,
|
||
276, 419, 8, 9, 8, 9, 57, 120, 121, 192,
|
||
384, 167, 168, 169, 170, 102, 2, 102, 436, 372,
|
||
97, 374, 375, 376, 85, 105, 50, 50, 79, 8,
|
||
9, 10, 109, 110, 121, 119, 121, 85, 102, 515,
|
||
120, 8, 9, 29, 30, 31, 32, 119, 34, 73,
|
||
22, 8, 9, 392, 393, 185, 102, 121, 110, 269,
|
||
413, 74, 75, 76, 6, 185, 101, 185, 185, 104,
|
||
151, 50, 119, 102, 114, 121, 286, 553, 119, 120,
|
||
454, 94, 8, 9, 110, 109, 109, 102, 441, 225,
|
||
114, 114, 119, 121, 353, 119, 119, 101, 357, 358,
|
||
359, 102, 378, 154, 71, 261, 121, 119, 557, 29,
|
||
732, 560, 119, 85, 467, 104, 167, 168, 169, 170,
|
||
121, 101, 102, 333, 185, 119, 575, 178, 179, 547,
|
||
109, 48, 119, 50, 51, 114, 191, 185, 55, 415,
|
||
119, 196, 119, 561, 101, 131, 132, 133, 134, 135,
|
||
136, 137, 138, 139, 140, 141, 142, 143, 144, 145,
|
||
146, 147, 148, 149, 150, 348, 152, 119, 351, 445,
|
||
102, 750, 751, 752, 753, 101, 755, 101, 119, 103,
|
||
104, 105, 8, 9, 10, 807, 396, 526, 447, 121,
|
||
119, 530, 102, 532, 119, 534, 535, 536, 118, 119,
|
||
120, 384, 8, 9, 119, 120, 123, 124, 125, 126,
|
||
261, 121, 102, 185, 121, 266, 267, 102, 269, 270,
|
||
275, 272, 102, 274, 50, 102, 274, 114, 283, 104,
|
||
29, 121, 606, 284, 4, 286, 121, 104, 8, 9,
|
||
157, 121, 159, 49, 121, 29, 868, 233, 234, 104,
|
||
872, 830, 831, 832, 833, 834, 835, 836, 837, 838,
|
||
839, 840, 841, 842, 843, 844, 845, 846, 847, 119,
|
||
120, 454, 120, 121, 402, 326, 327, 120, 84, 101,
|
||
266, 557, 333, 109, 90, 91, 908, 101, 114, 337,
|
||
912, 342, 110, 348, 119, 119, 351, 348, 877, 380,
|
||
351, 382, 353, 925, 812, 291, 357, 358, 359, 6,
|
||
103, 362, 934, 121, 365, 764, 102, 121, 369, 118,
|
||
119, 120, 111, 121, 460, 104, 121, 378, 314, 384,
|
||
114, 115, 116, 384, 118, 119, 120, 111, 917, 121,
|
||
119, 120, 121, 121, 121, 396, 121, 398, 29, 400,
|
||
431, 402, 121, 727, 431, 403, 407, 408, 409, 410,
|
||
411, 19, 20, 424, 415, 104, 421, 121, 419, 121,
|
||
101, 29, 103, 104, 105, 121, 424, 19, 20, 104,
|
||
119, 120, 121, 369, 119, 436, 119, 29, 119, 120,
|
||
104, 574, 121, 119, 445, 119, 447, 124, 102, 454,
|
||
122, 452, 388, 454, 105, 119, 120, 121, 761, 101,
|
||
461, 102, 542, 111, 29, 98, 99, 100, 102, 391,
|
||
392, 393, 542, 606, 542, 542, 74, 75, 76, 114,
|
||
804, 112, 113, 114, 115, 116, 114, 118, 119, 120,
|
||
122, 114, 428, 429, 430, 819, 432, 119, 122, 105,
|
||
803, 85, 424, 114, 112, 113, 114, 115, 116, 110,
|
||
118, 119, 120, 540, 515, 119, 452, 110, 121, 121,
|
||
112, 113, 114, 115, 116, 461, 118, 119, 120, 120,
|
||
102, 542, 122, 121, 102, 562, 537, 564, 565, 124,
|
||
541, 865, 121, 105, 542, 120, 547, 102, 851, 114,
|
||
115, 116, 553, 118, 119, 120, 557, 121, 119, 560,
|
||
561, 50, 119, 4, 102, 596, 124, 121, 121, 574,
|
||
122, 572, 122, 124, 575, 119, 110, 513, 119, 515,
|
||
110, 124, 906, 14, 15, 16, 17, 18, 19, 20,
|
||
102, 111, 121, 111, 727, 86, 119, 121, 29, 121,
|
||
601, 606, 121, 119, 526, 606, 121, 121, 530, 29,
|
||
532, 53, 534, 535, 536, 119, 119, 553, 111, 121,
|
||
542, 63, 64, 750, 751, 752, 753, 122, 755, 121,
|
||
111, 121, 74, 119, 119, 459, 178, 121, 80, 121,
|
||
576, 577, 578, 579, 580, 581, 582, 583, 584, 585,
|
||
586, 587, 588, 589, 590, 591, 592, 593, 594, 595,
|
||
102, 597, 104, 105, 402, 729, 803, 761, 851, 402,
|
||
337, 804, 185, 403, 574, 541, 107, 185, 109, 397,
|
||
766, 112, 113, 114, 115, 116, 819, 118, 119, 120,
|
||
691, 458, 112, 113, 114, 115, 116, 326, 118, 119,
|
||
120, 424, 691, 830, 831, 832, 833, 834, 835, 836,
|
||
837, 838, 839, 840, 841, 842, 843, 844, 845, 846,
|
||
847, -1, 727, 754, -1, -1, 727, 754, -1, -1,
|
||
-1, 732, 865, -1, -1, 3, 4, 5, 6, -1,
|
||
8, 17, 18, 19, 20, 187, 8, 9, -1, -1,
|
||
877, -1, -1, 29, -1, -1, -1, 199, -1, -1,
|
||
-1, 203, -1, 764, -1, -1, -1, -1, 210, 211,
|
||
-1, 8, 9, 906, -1, -1, -1, -1, -1, -1,
|
||
8, 9, -1, -1, 720, 53, -1, 49, -1, -1,
|
||
917, -1, 60, 820, 821, 822, -1, 733, -1, 804,
|
||
-1, -1, -1, 804, -1, -1, 807, -1, -1, -1,
|
||
-1, 812, 49, 81, 819, 83, -1, 848, 819, 87,
|
||
-1, 49, 84, -1, -1, 267, 762, -1, 90, 91,
|
||
-1, -1, 94, 769, 110, 111, 112, 113, 114, 115,
|
||
116, 109, 118, 119, 120, 113, 114, 84, 290, 117,
|
||
44, 119, -1, 90, 91, 123, 84, 94, -1, -1,
|
||
865, 55, 90, 91, 865, 59, 94, 868, 62, -1,
|
||
901, 872, 903, -1, -1, -1, 812, 71, -1, -1,
|
||
74, 75, 76, -1, 326, -1, -1, -1, -1, -1,
|
||
-1, 85, -1, -1, 336, 89, 338, 928, 929, 93,
|
||
-1, 906, -1, -1, -1, 906, -1, 908, -1, 103,
|
||
-1, 912, -1, 849, 3, 4, 5, 6, -1, 8,
|
||
9, -1, -1, -1, 925, 861, -1, -1, 122, -1,
|
||
-1, -1, -1, 934, -1, -1, -1, -1, -1, 15,
|
||
16, 17, 18, 19, 20, 387, -1, -1, -1, 391,
|
||
392, 393, 45, 29, 47, 48, 45, -1, 47, 48,
|
||
49, 50, -1, 52, 53, -1, -1, 56, -1, -1,
|
||
-1, 60, 61, -1, 67, 68, 69, -1, 67, 68,
|
||
69, -1, -1, 72, -1, -1, 79, 80, -1, -1,
|
||
79, 80, 81, -1, 83, 84, -1, -1, 87, 92,
|
||
-1, 90, 91, 92, -1, -1, 95, -1, -1, -1,
|
||
-1, -1, -1, -1, -1, -1, -1, 459, -1, -1,
|
||
109, -1, -1, -1, 113, 114, 119, -1, 117, -1,
|
||
119, 107, -1, 109, 123, -1, 112, 113, 114, 115,
|
||
116, -1, 118, 119, 120, -1, -1, -1, -1, -1,
|
||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||
512, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||
-1, -1, -1, 525, 526, 527, -1, -1, 530, -1,
|
||
532, -1, 534, 535, 536, 3, 4, 5, 6, 7,
|
||
8, 9, 10, -1, 12, 13, 14, 15, 16, 17,
|
||
18, 19, 20, 21, 22, -1, -1, -1, -1, -1,
|
||
-1, 29, 30, 31, 32, 33, 34, 35, 36, 37,
|
||
38, 39, 40, 41, 42, 43, -1, 45, 46, 47,
|
||
48, 49, 50, 51, 52, 53, 54, -1, 56, 57,
|
||
58, 59, 60, 61, 62, 63, 64, 65, 66, 67,
|
||
68, -1, 70, -1, 72, 73, 74, 75, 76, 77,
|
||
78, 79, 80, 81, 82, 83, 84, -1, 86, 87,
|
||
88, 89, 90, 91, 92, -1, 94, 95, 96, 97,
|
||
-1, -1, -1, 101, 102, 103, 104, 105, 106, 107,
|
||
108, 109, 110, 111, 112, 113, 114, 115, 116, 117,
|
||
118, 119, 120, 121, 122, 123, 124, 3, 4, 5,
|
||
6, 7, 8, 9, 10, -1, 12, 13, 14, 15,
|
||
16, 17, 18, 19, 20, 21, 22, -1, -1, -1,
|
||
-1, -1, -1, 29, 30, 31, 32, 33, 34, 35,
|
||
36, 37, 38, 39, 40, 41, 42, 43, -1, 45,
|
||
46, 47, 48, 49, 50, 51, 52, 53, 54, -1,
|
||
56, 57, 58, 59, 60, 61, 62, 63, 64, 65,
|
||
66, 67, 68, -1, 70, -1, 72, 73, 74, 75,
|
||
76, 77, 78, 79, 80, 81, 82, 83, 84, -1,
|
||
86, 87, 88, 89, 90, 91, 92, -1, 94, 95,
|
||
96, 97, -1, -1, -1, 101, 102, 103, 104, 105,
|
||
106, 107, 108, 109, 110, 111, 112, 113, 114, 115,
|
||
116, 117, 118, 119, 120, 121, -1, 123, 124, 3,
|
||
4, 5, 6, -1, 8, 9, -1, -1, 12, -1,
|
||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||
-1, -1, -1, -1, 13, 14, 15, 16, 17, 18,
|
||
19, 20, -1, -1, -1, -1, -1, -1, -1, -1,
|
||
29, 45, -1, 47, 48, 49, 50, -1, 52, 53,
|
||
-1, -1, 56, -1, -1, -1, 60, 61, -1, -1,
|
||
-1, -1, -1, 67, 68, 69, -1, -1, 72, -1,
|
||
-1, -1, -1, -1, -1, 79, 80, 81, -1, 83,
|
||
84, -1, -1, 87, -1, -1, 90, 91, 92, -1,
|
||
-1, 95, 3, 4, 5, 6, -1, 8, 9, -1,
|
||
-1, 12, -1, -1, -1, 109, -1, -1, -1, 113,
|
||
-1, -1, -1, 117, -1, 119, -1, 106, 107, 123,
|
||
109, -1, 904, 112, 113, 114, 115, 116, -1, 118,
|
||
119, 120, -1, -1, 45, -1, 47, 48, 49, 50,
|
||
-1, 52, 53, -1, -1, 56, -1, -1, 0, 60,
|
||
61, -1, -1, -1, -1, -1, 67, 68, 69, -1,
|
||
-1, 72, -1, -1, -1, -1, -1, -1, 79, 80,
|
||
81, -1, 83, 84, -1, -1, 87, -1, -1, 90,
|
||
91, 92, -1, -1, 95, 3, 4, 5, 6, -1,
|
||
8, 9, 44, -1, -1, -1, -1, -1, 109, -1,
|
||
-1, -1, 113, 55, -1, -1, 117, 59, 119, -1,
|
||
62, -1, 123, -1, -1, -1, -1, -1, -1, 71,
|
||
-1, -1, 74, 75, 76, -1, -1, 45, -1, 47,
|
||
48, -1, -1, 85, 52, 53, -1, 89, -1, -1,
|
||
-1, 93, 60, 61, -1, -1, -1, -1, -1, 67,
|
||
68, 103, -1, -1, 72, 45, -1, 47, 48, -1,
|
||
-1, 79, 80, 81, -1, 83, -1, -1, -1, 87,
|
||
3, 4, 5, 6, 92, 8, 9, 67, 68, 69,
|
||
-1, -1, -1, -1, -1, -1, -1, -1, -1, 79,
|
||
80, 109, -1, -1, -1, 113, 114, -1, -1, 117,
|
||
-1, 119, 92, 121, -1, 123, -1, -1, -1, -1,
|
||
-1, -1, 45, -1, 47, 48, -1, -1, -1, 52,
|
||
53, -1, -1, -1, -1, -1, -1, 60, 61, 119,
|
||
-1, -1, -1, -1, 67, 68, -1, -1, -1, 72,
|
||
45, -1, 47, 48, -1, -1, 79, 80, 81, -1,
|
||
83, -1, -1, -1, 87, 3, 4, 5, 6, 92,
|
||
8, 9, 67, 68, 69, -1, -1, -1, 101, -1,
|
||
-1, -1, -1, -1, 79, 80, 109, -1, -1, -1,
|
||
113, 114, -1, -1, 117, -1, 119, 92, -1, -1,
|
||
123, -1, -1, -1, -1, -1, -1, 45, -1, 47,
|
||
48, -1, -1, -1, 52, 53, -1, -1, -1, -1,
|
||
-1, -1, 60, 61, 119, -1, -1, -1, -1, 67,
|
||
68, -1, -1, -1, 72, 45, -1, 47, 48, -1,
|
||
-1, 79, 80, 81, -1, 83, -1, -1, -1, 87,
|
||
3, 4, 5, 6, 92, 8, 9, 67, 68, 69,
|
||
-1, -1, -1, 101, -1, -1, -1, -1, -1, 79,
|
||
80, 109, -1, -1, -1, 113, 114, -1, -1, 117,
|
||
-1, 119, 92, -1, -1, 123, -1, -1, -1, -1,
|
||
-1, -1, 45, -1, 47, 48, -1, -1, -1, 52,
|
||
53, -1, -1, -1, -1, -1, -1, 60, 61, -1,
|
||
-1, -1, -1, -1, 67, 68, -1, -1, -1, 72,
|
||
-1, -1, -1, -1, -1, -1, 79, 80, 81, -1,
|
||
83, -1, -1, -1, 87, 3, 4, 5, 6, 92,
|
||
8, 9, -1, -1, -1, -1, -1, -1, -1, -1,
|
||
-1, -1, -1, -1, -1, -1, 109, -1, -1, -1,
|
||
113, 114, -1, -1, 117, -1, 119, -1, 121, -1,
|
||
123, -1, -1, -1, -1, -1, -1, 45, -1, 47,
|
||
48, -1, -1, -1, 52, 53, -1, -1, -1, -1,
|
||
-1, -1, 60, 61, -1, -1, -1, -1, -1, 67,
|
||
68, -1, -1, -1, 72, -1, -1, -1, -1, -1,
|
||
-1, 79, 80, 81, -1, 83, -1, -1, -1, 87,
|
||
3, 4, 5, 6, 92, 8, 9, -1, -1, -1,
|
||
-1, -1, -1, 101, -1, -1, -1, -1, -1, -1,
|
||
-1, 109, -1, -1, -1, 113, 114, -1, -1, 117,
|
||
-1, 119, -1, -1, -1, 123, -1, -1, -1, -1,
|
||
-1, -1, 45, -1, 47, 48, -1, -1, -1, 52,
|
||
53, -1, -1, -1, -1, -1, -1, 60, 61, -1,
|
||
-1, -1, -1, -1, 67, 68, -1, -1, -1, 72,
|
||
-1, -1, -1, -1, -1, -1, 79, 80, 81, -1,
|
||
83, -1, -1, -1, 87, 3, 4, 5, 6, 92,
|
||
8, 9, -1, -1, -1, -1, -1, -1, -1, -1,
|
||
-1, -1, -1, -1, -1, -1, 109, -1, -1, -1,
|
||
113, 114, -1, -1, 117, -1, 119, -1, 121, -1,
|
||
123, -1, -1, -1, -1, -1, -1, 45, -1, 47,
|
||
48, -1, -1, -1, 52, 53, -1, -1, -1, -1,
|
||
-1, -1, 60, 61, -1, -1, -1, -1, -1, 67,
|
||
68, -1, -1, -1, 72, 17, 18, 19, 20, -1,
|
||
-1, 79, 80, 81, -1, 83, -1, 29, -1, 87,
|
||
-1, -1, -1, -1, 92, -1, 13, 14, 15, 16,
|
||
17, 18, 19, 20, -1, -1, -1, -1, -1, -1,
|
||
-1, 109, 29, -1, -1, 113, 114, -1, -1, 117,
|
||
-1, 119, -1, -1, -1, 123, 13, 14, 15, 16,
|
||
17, 18, 19, 20, -1, -1, -1, -1, -1, -1,
|
||
-1, -1, 29, -1, -1, 13, 14, 15, 16, 17,
|
||
18, 19, 20, -1, -1, -1, -1, -1, -1, -1,
|
||
-1, 29, -1, -1, -1, -1, -1, -1, -1, -1,
|
||
112, 113, 114, 115, 116, -1, 118, 119, 120, -1,
|
||
-1, -1, -1, -1, -1, -1, -1, -1, -1, 106,
|
||
107, -1, 109, 110, 111, 112, 113, 114, 115, 116,
|
||
-1, 118, 119, 120, -1, -1, -1, 124, -1, -1,
|
||
-1, -1, -1, -1, -1, -1, -1, -1, -1, 106,
|
||
107, -1, 109, 110, 111, 112, 113, 114, 115, 116,
|
||
-1, 118, 119, 120, -1, -1, -1, 124, 106, 107,
|
||
-1, 109, 110, 111, 112, 113, 114, 115, 116, -1,
|
||
118, 119, 120, 8, 9, -1, 124, 13, 14, 15,
|
||
16, 17, 18, 19, 20, -1, -1, -1, -1, -1,
|
||
-1, -1, -1, 29, -1, 31, 32, 33, 34, 35,
|
||
36, 37, 38, 39, 40, 41, 42, -1, -1, -1,
|
||
45, -1, 47, 48, -1, 51, -1, 52, -1, -1,
|
||
-1, -1, -1, -1, -1, -1, 61, -1, -1, -1,
|
||
-1, -1, 67, 68, 69, -1, 72, -1, -1, -1,
|
||
-1, -1, -1, -1, 79, 80, -1, -1, -1, 8,
|
||
9, -1, -1, -1, -1, 90, -1, 92, -1, -1,
|
||
95, -1, -1, -1, -1, -1, 102, -1, -1, 105,
|
||
-1, 107, 108, 109, 110, 111, 112, 113, 114, 115,
|
||
116, 117, -1, 119, 120, -1, 45, 123, 47, 48,
|
||
49, 50, -1, 52, -1, -1, -1, 56, 57, 58,
|
||
-1, -1, 61, -1, 8, 9, -1, 66, 67, 68,
|
||
69, 70, -1, -1, 73, -1, -1, -1, 77, -1,
|
||
79, 80, -1, 82, -1, 84, -1, -1, -1, -1,
|
||
-1, 90, 91, 92, -1, 94, 95, 96, -1, -1,
|
||
-1, 45, 101, 47, 48, 49, 50, -1, 52, -1,
|
||
-1, -1, 56, 57, 58, -1, -1, 61, 117, 8,
|
||
9, -1, 66, 67, 68, 69, 70, -1, -1, 73,
|
||
-1, -1, -1, 77, -1, 79, 80, -1, 82, -1,
|
||
84, -1, -1, -1, -1, -1, 90, 91, 92, -1,
|
||
94, 95, 96, -1, -1, -1, 45, -1, 47, 48,
|
||
49, 50, -1, 52, -1, -1, -1, 56, 57, 58,
|
||
-1, -1, 61, 117, -1, -1, -1, 66, 67, 68,
|
||
69, 70, -1, -1, 73, -1, -1, -1, 77, -1,
|
||
79, 80, -1, 82, -1, 84, -1, -1, -1, -1,
|
||
-1, 90, 91, 92, -1, 94, 95, 96, 13, 14,
|
||
15, 16, 17, 18, 19, 20, -1, -1, -1, -1,
|
||
-1, -1, -1, -1, 29, -1, -1, -1, 117, 13,
|
||
14, 15, 16, 17, 18, 19, 20, -1, -1, -1,
|
||
-1, -1, -1, -1, -1, 29, 13, 14, 15, 16,
|
||
17, 18, 19, 20, -1, -1, -1, -1, -1, -1,
|
||
-1, -1, 29, 13, 14, 15, 16, 17, 18, 19,
|
||
20, -1, -1, -1, -1, -1, -1, -1, -1, 29,
|
||
13, 14, 15, 16, 17, 18, 19, 20, -1, -1,
|
||
-1, -1, -1, -1, -1, -1, 29, -1, -1, 104,
|
||
-1, 106, 107, -1, 109, 110, 111, 112, 113, 114,
|
||
115, 116, -1, 118, 119, 120, -1, -1, -1, 103,
|
||
-1, -1, 106, 107, -1, 109, 110, 111, 112, 113,
|
||
114, 115, 116, -1, 118, 119, 120, 104, -1, 106,
|
||
107, -1, 109, 110, 111, 112, 113, 114, 115, 116,
|
||
-1, 118, 119, 120, -1, -1, 106, 107, -1, 109,
|
||
110, 111, 112, 113, 114, 115, 116, -1, 118, 119,
|
||
120, -1, -1, 106, 107, -1, 109, 110, 111, 112,
|
||
113, 114, 115, 116, -1, 118, 119, 120, 13, 14,
|
||
15, 16, 17, 18, 19, 20, -1, -1, -1, -1,
|
||
-1, -1, -1, -1, 29, 14, 15, 16, 17, 18,
|
||
19, 20, -1, -1, -1, -1, -1, -1, -1, -1,
|
||
29, 15, 16, 17, 18, 19, 20, -1, -1, -1,
|
||
-1, -1, -1, -1, -1, 29, 15, 16, 17, 18,
|
||
19, 20, -1, -1, -1, -1, -1, -1, -1, -1,
|
||
29, 15, 16, 17, 18, 19, 20, -1, -1, -1,
|
||
-1, -1, -1, -1, -1, 29, 15, 16, 17, 18,
|
||
19, 20, -1, -1, -1, -1, -1, -1, -1, 104,
|
||
29, 106, 107, -1, 109, -1, -1, 112, 113, 114,
|
||
115, 116, -1, 118, 119, 120, -1, -1, 107, -1,
|
||
109, 110, 111, 112, 113, 114, 115, 116, -1, 118,
|
||
119, 120, -1, 107, -1, 109, 110, 111, 112, 113,
|
||
114, 115, 116, -1, 118, 119, 120, -1, -1, -1,
|
||
109, 110, 111, 112, 113, 114, 115, 116, -1, 118,
|
||
119, 120, -1, 8, 9, -1, 110, 111, 112, 113,
|
||
114, 115, 116, -1, 118, 119, 120, -1, -1, -1,
|
||
109, -1, -1, 112, 113, 114, 115, 116, -1, 118,
|
||
119, 120, 15, 16, 17, 18, 19, 20, -1, -1,
|
||
45, 9, 47, 48, 49, 50, 29, 52, -1, -1,
|
||
-1, -1, -1, -1, -1, -1, 61, -1, -1, -1,
|
||
-1, -1, 67, 68, 69, -1, -1, -1, -1, -1,
|
||
-1, -1, -1, -1, 79, 80, -1, 45, -1, 47,
|
||
48, 49, 50, -1, 52, 90, -1, 92, 56, -1,
|
||
95, -1, -1, 61, -1, -1, -1, -1, -1, 67,
|
||
68, 69, 9, -1, -1, -1, -1, -1, -1, -1,
|
||
-1, 79, 80, -1, -1, -1, 84, -1, -1, -1,
|
||
-1, -1, 90, 91, 92, -1, -1, 95, -1, 112,
|
||
113, 114, 115, 116, -1, 118, 119, 120, 45, -1,
|
||
47, 48, 49, 50, -1, 52, -1, -1, -1, 56,
|
||
-1, 9, -1, -1, 61, -1, -1, -1, -1, -1,
|
||
67, 68, 69, -1, -1, -1, -1, -1, -1, -1,
|
||
-1, -1, 79, 80, -1, -1, -1, 84, -1, -1,
|
||
-1, -1, -1, 90, 91, 92, -1, 45, 95, 47,
|
||
48, 49, -1, -1, 52, -1, -1, -1, 56, -1,
|
||
9, -1, -1, 61, -1, -1, -1, -1, -1, 67,
|
||
68, 69, -1, -1, -1, -1, -1, -1, -1, -1,
|
||
-1, 79, 80, -1, -1, -1, 84, -1, -1, -1,
|
||
-1, -1, 90, 91, 92, -1, 45, 95, 47, 48,
|
||
49, -1, -1, 52, -1, -1, 44, 56, -1, -1,
|
||
-1, -1, 61, -1, -1, -1, -1, 55, 67, 68,
|
||
69, 59, -1, -1, 62, -1, -1, -1, -1, -1,
|
||
79, 80, -1, 71, -1, 84, 74, 75, 76, -1,
|
||
-1, 90, 91, 92, -1, 44, 95, 85, -1, -1,
|
||
-1, 89, -1, -1, -1, 93, 55, -1, -1, -1,
|
||
59, -1, -1, 62, -1, 103, -1, -1, -1, -1,
|
||
44, -1, 71, -1, -1, 74, 75, 76, -1, -1,
|
||
-1, 55, -1, -1, 122, 59, 85, -1, 62, -1,
|
||
89, -1, -1, -1, 93, 44, -1, 71, -1, -1,
|
||
74, 75, 76, -1, 103, -1, 55, -1, -1, -1,
|
||
59, 85, -1, 62, -1, 89, -1, -1, -1, 93,
|
||
-1, -1, 71, 122, -1, 74, 75, 76, -1, 103,
|
||
-1, -1, -1, -1, -1, 45, 85, 47, 48, -1,
|
||
89, -1, 52, -1, 93, 44, -1, -1, 122, -1,
|
||
-1, 61, -1, -1, 103, -1, 55, 67, 68, 69,
|
||
59, -1, -1, 62, -1, -1, -1, -1, -1, 79,
|
||
80, -1, 71, 122, -1, 74, 75, 76, -1, -1,
|
||
-1, 45, 92, 47, 48, -1, 85, -1, 52, -1,
|
||
89, -1, -1, -1, 93, -1, 45, 61, 47, 48,
|
||
-1, -1, -1, 67, 68, 69, -1, -1, -1, 119,
|
||
-1, -1, 61, -1, -1, 79, 80, -1, 67, 68,
|
||
69, -1, -1, -1, -1, -1, -1, -1, 92, -1,
|
||
79, 80, -1, -1, -1, -1, -1, -1, -1, -1,
|
||
-1, -1, -1, 92
|
||
};
|
||
|
||
/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
|
||
symbol of state STATE-NUM. */
|
||
static const unsigned char yystos[] =
|
||
{
|
||
0, 98, 99, 100, 126, 127, 218, 3, 4, 5,
|
||
6, 8, 9, 45, 47, 48, 52, 53, 60, 61,
|
||
67, 68, 72, 79, 80, 81, 83, 87, 92, 109,
|
||
113, 114, 117, 119, 123, 211, 212, 217, 9, 45,
|
||
47, 48, 49, 50, 52, 56, 61, 67, 68, 69,
|
||
79, 80, 84, 90, 91, 92, 95, 177, 180, 181,
|
||
183, 188, 190, 194, 195, 199, 200, 201, 202, 0,
|
||
44, 55, 59, 62, 71, 74, 75, 76, 85, 89,
|
||
93, 103, 130, 132, 133, 135, 136, 137, 158, 196,
|
||
198, 218, 119, 119, 119, 119, 119, 110, 119, 119,
|
||
119, 9, 90, 179, 194, 195, 199, 119, 119, 119,
|
||
110, 119, 211, 211, 211, 211, 9, 45, 47, 48,
|
||
52, 61, 67, 68, 79, 80, 92, 180, 209, 211,
|
||
211, 13, 14, 15, 16, 17, 18, 19, 20, 29,
|
||
106, 107, 109, 110, 111, 112, 113, 114, 115, 116,
|
||
118, 119, 120, 6, 177, 52, 61, 68, 200, 68,
|
||
200, 200, 8, 9, 216, 200, 10, 50, 109, 114,
|
||
119, 176, 218, 101, 216, 101, 216, 104, 134, 101,
|
||
216, 104, 104, 104, 159, 135, 142, 71, 216, 8,
|
||
9, 50, 57, 58, 66, 70, 73, 77, 82, 90,
|
||
94, 96, 101, 117, 147, 178, 181, 183, 188, 190,
|
||
194, 195, 199, 208, 209, 218, 208, 208, 208, 208,
|
||
180, 208, 208, 208, 216, 119, 216, 216, 208, 208,
|
||
180, 180, 208, 121, 102, 121, 211, 211, 211, 211,
|
||
211, 211, 211, 211, 211, 211, 211, 211, 211, 211,
|
||
211, 211, 211, 211, 211, 211, 121, 209, 211, 176,
|
||
61, 114, 176, 176, 176, 176, 120, 189, 101, 182,
|
||
184, 132, 127, 101, 110, 50, 147, 178, 216, 119,
|
||
119, 177, 217, 50, 177, 216, 131, 216, 101, 103,
|
||
104, 105, 170, 103, 138, 216, 216, 121, 121, 121,
|
||
121, 121, 111, 121, 121, 121, 208, 121, 121, 121,
|
||
111, 121, 211, 211, 104, 121, 124, 176, 121, 207,
|
||
211, 218, 192, 193, 216, 218, 191, 127, 104, 185,
|
||
186, 218, 122, 197, 8, 9, 49, 50, 90, 160,
|
||
161, 162, 163, 199, 218, 177, 170, 143, 148, 10,
|
||
114, 149, 139, 177, 8, 9, 10, 50, 109, 114,
|
||
174, 218, 127, 119, 203, 204, 128, 129, 216, 101,
|
||
211, 10, 50, 73, 109, 114, 119, 140, 164, 216,
|
||
119, 121, 119, 211, 119, 124, 122, 102, 105, 192,
|
||
122, 74, 75, 76, 94, 187, 101, 102, 127, 216,
|
||
163, 216, 111, 102, 8, 9, 10, 50, 109, 114,
|
||
119, 175, 218, 144, 145, 164, 3, 4, 5, 8,
|
||
12, 50, 53, 60, 72, 81, 83, 87, 109, 113,
|
||
117, 119, 123, 166, 167, 173, 177, 213, 214, 217,
|
||
218, 114, 164, 166, 141, 164, 174, 114, 174, 174,
|
||
174, 119, 120, 122, 150, 122, 205, 218, 101, 102,
|
||
119, 101, 171, 172, 211, 218, 103, 114, 164, 13,
|
||
14, 15, 16, 17, 18, 19, 20, 29, 31, 32,
|
||
33, 34, 35, 36, 37, 38, 39, 40, 41, 42,
|
||
51, 72, 102, 105, 107, 108, 109, 110, 111, 112,
|
||
113, 114, 115, 116, 117, 119, 120, 123, 156, 164,
|
||
164, 164, 104, 105, 119, 120, 169, 170, 218, 209,
|
||
209, 166, 216, 211, 122, 90, 94, 195, 215, 216,
|
||
94, 215, 94, 215, 74, 75, 76, 127, 187, 122,
|
||
105, 175, 135, 136, 157, 158, 162, 114, 175, 175,
|
||
175, 175, 105, 120, 168, 218, 146, 164, 169, 170,
|
||
175, 177, 110, 179, 119, 110, 211, 211, 211, 180,
|
||
209, 211, 121, 12, 102, 175, 13, 14, 15, 16,
|
||
17, 18, 19, 20, 29, 106, 107, 109, 110, 111,
|
||
112, 113, 114, 115, 116, 118, 119, 120, 164, 104,
|
||
121, 121, 169, 170, 119, 174, 153, 207, 166, 3,
|
||
4, 5, 6, 7, 8, 9, 10, 12, 13, 14,
|
||
15, 16, 17, 18, 19, 20, 21, 22, 29, 30,
|
||
31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
|
||
41, 42, 43, 45, 46, 47, 48, 49, 50, 51,
|
||
52, 53, 54, 56, 57, 58, 59, 60, 61, 62,
|
||
63, 64, 65, 66, 67, 68, 70, 72, 73, 74,
|
||
75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
|
||
86, 87, 88, 89, 90, 91, 92, 94, 95, 96,
|
||
97, 101, 102, 103, 104, 105, 106, 107, 108, 109,
|
||
110, 111, 112, 113, 114, 115, 116, 117, 118, 119,
|
||
120, 121, 123, 124, 206, 203, 129, 208, 171, 122,
|
||
102, 164, 121, 124, 121, 4, 211, 165, 207, 102,
|
||
121, 121, 121, 105, 216, 215, 216, 215, 215, 215,
|
||
215, 215, 122, 180, 168, 175, 121, 53, 81, 83,
|
||
109, 113, 114, 117, 119, 123, 210, 212, 207, 169,
|
||
170, 102, 105, 169, 175, 180, 119, 180, 180, 121,
|
||
121, 50, 155, 218, 12, 173, 169, 211, 211, 211,
|
||
211, 211, 211, 211, 211, 211, 211, 211, 211, 211,
|
||
211, 211, 211, 211, 211, 211, 211, 121, 209, 211,
|
||
121, 119, 155, 102, 154, 166, 124, 121, 205, 122,
|
||
121, 122, 101, 211, 166, 124, 140, 155, 211, 119,
|
||
110, 119, 110, 210, 210, 210, 210, 180, 209, 210,
|
||
13, 14, 15, 16, 17, 18, 19, 20, 29, 106,
|
||
107, 109, 112, 113, 114, 115, 116, 118, 119, 120,
|
||
124, 102, 145, 211, 169, 111, 208, 121, 111, 211,
|
||
86, 104, 121, 124, 119, 151, 141, 166, 121, 155,
|
||
122, 171, 121, 166, 180, 180, 180, 121, 121, 210,
|
||
210, 210, 210, 210, 210, 210, 210, 210, 210, 210,
|
||
210, 210, 210, 210, 210, 210, 210, 121, 209, 211,
|
||
146, 119, 121, 119, 119, 211, 152, 166, 121, 155,
|
||
122, 155, 121, 111, 121, 111, 210, 104, 121, 124,
|
||
209, 209, 121, 216, 166, 121, 155, 155, 119, 119,
|
||
210, 121, 121, 121, 121, 155, 209, 209, 155, 121,
|
||
121
|
||
};
|
||
|
||
#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 (YY_("syntax error: cannot back up")); \
|
||
YYERROR; \
|
||
} \
|
||
while (0)
|
||
|
||
|
||
#define YYTERROR 1
|
||
#define YYERRCODE 256
|
||
|
||
|
||
/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
|
||
If N is 0, then set CURRENT to the empty location which ends
|
||
the previous symbol: RHS[0] (always defined). */
|
||
|
||
#define YYRHSLOC(Rhs, K) ((Rhs)[K])
|
||
#ifndef YYLLOC_DEFAULT
|
||
# define YYLLOC_DEFAULT(Current, Rhs, N) \
|
||
do \
|
||
if (N) \
|
||
{ \
|
||
(Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
|
||
(Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
|
||
(Current).last_line = YYRHSLOC (Rhs, N).last_line; \
|
||
(Current).last_column = YYRHSLOC (Rhs, N).last_column; \
|
||
} \
|
||
else \
|
||
{ \
|
||
(Current).first_line = (Current).last_line = \
|
||
YYRHSLOC (Rhs, 0).last_line; \
|
||
(Current).first_column = (Current).last_column = \
|
||
YYRHSLOC (Rhs, 0).last_column; \
|
||
} \
|
||
while (0)
|
||
#endif
|
||
|
||
|
||
/* YY_LOCATION_PRINT -- Print the location on the stream.
|
||
This macro was not mandated originally: define only if we know
|
||
we won't break user code: when these are the locations we know. */
|
||
|
||
#ifndef YY_LOCATION_PRINT
|
||
# if YYLTYPE_IS_TRIVIAL
|
||
# define YY_LOCATION_PRINT(File, Loc) \
|
||
fprintf (File, "%d.%d-%d.%d", \
|
||
(Loc).first_line, (Loc).first_column, \
|
||
(Loc).last_line, (Loc).last_column)
|
||
# else
|
||
# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
|
||
# endif
|
||
#endif
|
||
|
||
|
||
/* YYLEX -- calling `yylex' with the right arguments. */
|
||
|
||
#ifdef YYLEX_PARAM
|
||
# define YYLEX yylex (&yylval, &yylloc, YYLEX_PARAM)
|
||
#else
|
||
# define YYLEX yylex (&yylval, &yylloc)
|
||
#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 YY_SYMBOL_PRINT(Title, Type, Value, Location) \
|
||
do { \
|
||
if (yydebug) \
|
||
{ \
|
||
YYFPRINTF (stderr, "%s ", Title); \
|
||
yysymprint (stderr, \
|
||
Type, Value, Location); \
|
||
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 int *bottom, short int *top)
|
||
#else
|
||
static void
|
||
yy_stack_print (bottom, top)
|
||
short int *bottom;
|
||
short int *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 long int yylno = yyrline[yyrule];
|
||
YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu), ",
|
||
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 YY_SYMBOL_PRINT(Title, Type, 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
|
||
YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
|
||
evaluated with infinite-precision integer arithmetic. */
|
||
|
||
#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
|
||
{
|
||
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
|
||
{
|
||
char *yyd = yydest;
|
||
const char *yys = yysrc;
|
||
|
||
while ((*yyd++ = *yys++) != '\0')
|
||
continue;
|
||
|
||
return yyd - 1;
|
||
}
|
||
# endif
|
||
# endif
|
||
|
||
# ifndef yytnamerr
|
||
/* Copy to YYRES the contents of YYSTR after stripping away unnecessary
|
||
quotes and backslashes, so that it's suitable for yyerror. The
|
||
heuristic is that double-quoting is unnecessary unless the string
|
||
contains an apostrophe, a comma, or backslash (other than
|
||
backslash-backslash). YYSTR is taken from yytname. If YYRES is
|
||
null, do not copy; instead, return the length of what the result
|
||
would have been. */
|
||
static YYSIZE_T
|
||
yytnamerr (char *yyres, const char *yystr)
|
||
{
|
||
if (*yystr == '"')
|
||
{
|
||
size_t yyn = 0;
|
||
char const *yyp = yystr;
|
||
|
||
for (;;)
|
||
switch (*++yyp)
|
||
{
|
||
case '\'':
|
||
case ',':
|
||
goto do_not_strip_quotes;
|
||
|
||
case '\\':
|
||
if (*++yyp != '\\')
|
||
goto do_not_strip_quotes;
|
||
/* Fall through. */
|
||
default:
|
||
if (yyres)
|
||
yyres[yyn] = *yyp;
|
||
yyn++;
|
||
break;
|
||
|
||
case '"':
|
||
if (yyres)
|
||
yyres[yyn] = '\0';
|
||
return yyn;
|
||
}
|
||
do_not_strip_quotes: ;
|
||
}
|
||
|
||
if (! yyres)
|
||
return yystrlen (yystr);
|
||
|
||
return yystpcpy (yyres, yystr) - yyres;
|
||
}
|
||
# 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, YYLTYPE *yylocationp)
|
||
#else
|
||
static void
|
||
yysymprint (yyoutput, yytype, yyvaluep, yylocationp)
|
||
FILE *yyoutput;
|
||
int yytype;
|
||
YYSTYPE *yyvaluep;
|
||
YYLTYPE *yylocationp;
|
||
#endif
|
||
{
|
||
/* Pacify ``unused variable'' warnings. */
|
||
(void) yyvaluep;
|
||
(void) yylocationp;
|
||
|
||
if (yytype < YYNTOKENS)
|
||
YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
|
||
else
|
||
YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
|
||
|
||
YY_LOCATION_PRINT (yyoutput, *yylocationp);
|
||
YYFPRINTF (yyoutput, ": ");
|
||
|
||
# ifdef YYPRINT
|
||
if (yytype < YYNTOKENS)
|
||
YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
|
||
# endif
|
||
switch (yytype)
|
||
{
|
||
default:
|
||
break;
|
||
}
|
||
YYFPRINTF (yyoutput, ")");
|
||
}
|
||
|
||
#endif /* ! YYDEBUG */
|
||
/*-----------------------------------------------.
|
||
| Release the memory associated to this symbol. |
|
||
`-----------------------------------------------*/
|
||
|
||
#if defined (__STDC__) || defined (__cplusplus)
|
||
static void
|
||
yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, YYLTYPE *yylocationp)
|
||
#else
|
||
static void
|
||
yydestruct (yymsg, yytype, yyvaluep, yylocationp)
|
||
const char *yymsg;
|
||
int yytype;
|
||
YYSTYPE *yyvaluep;
|
||
YYLTYPE *yylocationp;
|
||
#endif
|
||
{
|
||
/* Pacify ``unused variable'' warnings. */
|
||
(void) yyvaluep;
|
||
(void) yylocationp;
|
||
|
||
if (!yymsg)
|
||
yymsg = "Deleting";
|
||
YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
|
||
|
||
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 */
|
||
|
||
|
||
|
||
|
||
|
||
|
||
/*----------.
|
||
| 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
|
||
{
|
||
/* The look-ahead symbol. */
|
||
int yychar;
|
||
|
||
/* The semantic value of the look-ahead symbol. */
|
||
YYSTYPE yylval;
|
||
|
||
/* Number of syntax errors so far. */
|
||
int yynerrs;
|
||
/* Location data for the look-ahead symbol. */
|
||
YYLTYPE yylloc;
|
||
|
||
int yystate;
|
||
int yyn;
|
||
int yyresult;
|
||
/* Number of tokens to shift before error messages enabled. */
|
||
int yyerrstatus;
|
||
/* Look-ahead 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 reallocate them elsewhere. */
|
||
|
||
/* The state stack. */
|
||
short int yyssa[YYINITDEPTH];
|
||
short int *yyss = yyssa;
|
||
short int *yyssp;
|
||
|
||
/* The semantic value stack. */
|
||
YYSTYPE yyvsa[YYINITDEPTH];
|
||
YYSTYPE *yyvs = yyvsa;
|
||
YYSTYPE *yyvsp;
|
||
|
||
/* The location stack. */
|
||
YYLTYPE yylsa[YYINITDEPTH];
|
||
YYLTYPE *yyls = yylsa;
|
||
YYLTYPE *yylsp;
|
||
/* The locations where the error started and ended. */
|
||
YYLTYPE yyerror_range[2];
|
||
|
||
#define YYPOPSTACK (yyvsp--, yyssp--, yylsp--)
|
||
|
||
YYSIZE_T yystacksize = YYINITDEPTH;
|
||
|
||
/* The variables used to return semantic value and location from the
|
||
action routines. */
|
||
YYSTYPE yyval;
|
||
YYLTYPE yyloc;
|
||
|
||
/* 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;
|
||
yylsp = yyls;
|
||
#if YYLTYPE_IS_TRIVIAL
|
||
/* Initialize the default location before parsing starts. */
|
||
yylloc.first_line = yylloc.last_line = 1;
|
||
yylloc.first_column = yylloc.last_column = 0;
|
||
#endif
|
||
|
||
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 reallocate the stack. Use copies of
|
||
these so that the &'s don't force the real ones into
|
||
memory. */
|
||
YYSTYPE *yyvs1 = yyvs;
|
||
short int *yyss1 = yyss;
|
||
YYLTYPE *yyls1 = yyls;
|
||
|
||
/* 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 (YY_("memory exhausted"),
|
||
&yyss1, yysize * sizeof (*yyssp),
|
||
&yyvs1, yysize * sizeof (*yyvsp),
|
||
&yyls1, yysize * sizeof (*yylsp),
|
||
&yystacksize);
|
||
yyls = yyls1;
|
||
yyss = yyss1;
|
||
yyvs = yyvs1;
|
||
}
|
||
#else /* no yyoverflow */
|
||
# ifndef YYSTACK_RELOCATE
|
||
goto yyexhaustedlab;
|
||
# else
|
||
/* Extend the stack our own way. */
|
||
if (YYMAXDEPTH <= yystacksize)
|
||
goto yyexhaustedlab;
|
||
yystacksize *= 2;
|
||
if (YYMAXDEPTH < yystacksize)
|
||
yystacksize = YYMAXDEPTH;
|
||
|
||
{
|
||
short int *yyss1 = yyss;
|
||
union yyalloc *yyptr =
|
||
(union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
|
||
if (! yyptr)
|
||
goto yyexhaustedlab;
|
||
YYSTACK_RELOCATE (yyss);
|
||
YYSTACK_RELOCATE (yyvs);
|
||
YYSTACK_RELOCATE (yyls);
|
||
# undef YYSTACK_RELOCATE
|
||
if (yyss1 != yyssa)
|
||
YYSTACK_FREE (yyss1);
|
||
}
|
||
# endif
|
||
#endif /* no yyoverflow */
|
||
|
||
yyssp = yyss + yysize - 1;
|
||
yyvsp = yyvs + yysize - 1;
|
||
yylsp = yyls + 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 look-ahead token if we need one and don't already have one. */
|
||
/* yyresume: */
|
||
|
||
/* First try to decide what to do without reference to look-ahead token. */
|
||
|
||
yyn = yypact[yystate];
|
||
if (yyn == YYPACT_NINF)
|
||
goto yydefault;
|
||
|
||
/* Not known => get a look-ahead token if don't already have one. */
|
||
|
||
/* YYCHAR is either YYEMPTY or YYEOF or a valid look-ahead 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);
|
||
YY_SYMBOL_PRINT ("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 look-ahead token. */
|
||
YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
|
||
|
||
/* Discard the token being shifted unless it is eof. */
|
||
if (yychar != YYEOF)
|
||
yychar = YYEMPTY;
|
||
|
||
*++yyvsp = yylval;
|
||
*++yylsp = yylloc;
|
||
|
||
/* 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];
|
||
|
||
/* Default location. */
|
||
YYLLOC_DEFAULT (yyloc, yylsp - yylen, yylen);
|
||
YY_REDUCE_PRINT (yyn);
|
||
switch (yyn)
|
||
{
|
||
case 3:
|
||
#line 380 "cppBison.yxx"
|
||
{
|
||
current_expr = (yyvsp[0].u.expr);
|
||
}
|
||
break;
|
||
|
||
case 4:
|
||
#line 384 "cppBison.yxx"
|
||
{
|
||
current_type = (yyvsp[0].u.type);
|
||
}
|
||
break;
|
||
|
||
case 10:
|
||
#line 402 "cppBison.yxx"
|
||
{
|
||
delete (yyvsp[-1].u.expr);
|
||
}
|
||
break;
|
||
|
||
case 11:
|
||
#line 414 "cppBison.yxx"
|
||
{
|
||
push_storage_class((current_storage_class & ~CPPInstance::SC_c_binding) |
|
||
((yyvsp[-1].u.integer) & CPPInstance::SC_c_binding));
|
||
}
|
||
break;
|
||
|
||
case 12:
|
||
#line 419 "cppBison.yxx"
|
||
{
|
||
pop_storage_class();
|
||
}
|
||
break;
|
||
|
||
case 20:
|
||
#line 433 "cppBison.yxx"
|
||
{
|
||
if (publish_nest_level != 0) {
|
||
yyerror("Unclosed __begin_publish", publish_loc);
|
||
publish_nest_level = 0;
|
||
current_scope->set_current_vis(V_public);
|
||
}
|
||
|
||
publish_previous = current_scope->get_current_vis();
|
||
publish_loc = (yylsp[0]);
|
||
publish_nest_level++;
|
||
current_scope->set_current_vis(V_published);
|
||
}
|
||
break;
|
||
|
||
case 21:
|
||
#line 446 "cppBison.yxx"
|
||
{
|
||
if (publish_nest_level != 1) {
|
||
yyerror("Unmatched __end_publish", (yylsp[0]));
|
||
} else {
|
||
current_scope->set_current_vis(publish_previous);
|
||
}
|
||
publish_nest_level = 0;
|
||
}
|
||
break;
|
||
|
||
case 22:
|
||
#line 455 "cppBison.yxx"
|
||
{
|
||
current_scope->set_current_vis(V_published);
|
||
}
|
||
break;
|
||
|
||
case 23:
|
||
#line 459 "cppBison.yxx"
|
||
{
|
||
current_scope->set_current_vis(V_public);
|
||
}
|
||
break;
|
||
|
||
case 24:
|
||
#line 463 "cppBison.yxx"
|
||
{
|
||
current_scope->set_current_vis(V_protected);
|
||
}
|
||
break;
|
||
|
||
case 25:
|
||
#line 467 "cppBison.yxx"
|
||
{
|
||
current_scope->set_current_vis(V_private);
|
||
}
|
||
break;
|
||
|
||
case 26:
|
||
#line 474 "cppBison.yxx"
|
||
{
|
||
CPPScope *new_scope = new CPPScope(current_scope, CPPNameComponent("temp"),
|
||
V_public);
|
||
push_scope(new_scope);
|
||
}
|
||
break;
|
||
|
||
case 27:
|
||
#line 480 "cppBison.yxx"
|
||
{
|
||
delete current_scope;
|
||
pop_scope();
|
||
}
|
||
break;
|
||
|
||
case 28:
|
||
#line 489 "cppBison.yxx"
|
||
{
|
||
(yyval.u.integer) = 0;
|
||
}
|
||
break;
|
||
|
||
case 29:
|
||
#line 493 "cppBison.yxx"
|
||
{
|
||
(yyval.u.integer) = (yyvsp[-1].u.integer) | (int)CPPInstance::SC_extern;
|
||
}
|
||
break;
|
||
|
||
case 30:
|
||
#line 497 "cppBison.yxx"
|
||
{
|
||
(yyval.u.integer) = (yyvsp[-2].u.integer) | (int)CPPInstance::SC_extern;
|
||
if ((yyvsp[0].str) == "C") {
|
||
(yyval.u.integer) |= (int)CPPInstance::SC_c_binding;
|
||
} else if ((yyvsp[0].str) == "C++") {
|
||
(yyval.u.integer) &= ~(int)CPPInstance::SC_c_binding;
|
||
} else {
|
||
yywarning("Ignoring unknown linkage type \"" + (yyvsp[0].str) + "\"", (yylsp[0]));
|
||
}
|
||
}
|
||
break;
|
||
|
||
case 31:
|
||
#line 508 "cppBison.yxx"
|
||
{
|
||
(yyval.u.integer) = (yyvsp[-1].u.integer) | (int)CPPInstance::SC_static;
|
||
}
|
||
break;
|
||
|
||
case 32:
|
||
#line 512 "cppBison.yxx"
|
||
{
|
||
(yyval.u.integer) = (yyvsp[-1].u.integer) | (int)CPPInstance::SC_inline;
|
||
}
|
||
break;
|
||
|
||
case 33:
|
||
#line 516 "cppBison.yxx"
|
||
{
|
||
(yyval.u.integer) = (yyvsp[-1].u.integer) | (int)CPPInstance::SC_virtual;
|
||
}
|
||
break;
|
||
|
||
case 34:
|
||
#line 520 "cppBison.yxx"
|
||
{
|
||
(yyval.u.integer) = (yyvsp[-1].u.integer) | (int)CPPInstance::SC_explicit;
|
||
}
|
||
break;
|
||
|
||
case 35:
|
||
#line 524 "cppBison.yxx"
|
||
{
|
||
(yyval.u.integer) = (yyvsp[-1].u.integer) | (int)CPPInstance::SC_volatile;
|
||
}
|
||
break;
|
||
|
||
case 36:
|
||
#line 528 "cppBison.yxx"
|
||
{
|
||
(yyval.u.integer) = (yyvsp[-1].u.integer) | (int)CPPInstance::SC_mutable;
|
||
}
|
||
break;
|
||
|
||
case 37:
|
||
#line 532 "cppBison.yxx"
|
||
{
|
||
(yyval.u.integer) = (yyvsp[-1].u.integer) | (int)CPPInstance::SC_register;
|
||
}
|
||
break;
|
||
|
||
case 38:
|
||
#line 539 "cppBison.yxx"
|
||
{
|
||
/* multiple_var_declaration adds itself to the scope. */
|
||
}
|
||
break;
|
||
|
||
case 39:
|
||
#line 543 "cppBison.yxx"
|
||
{
|
||
// We don't really care about the storage class here. In fact, it's
|
||
// not actually legal to define a class or struct using a particular
|
||
// storage class, but we require it just to help yacc out in its
|
||
// parsing.
|
||
|
||
current_scope->add_declaration((yyvsp[-1].u.decl), global_scope, current_lexer, (yylsp[-1]));
|
||
}
|
||
break;
|
||
|
||
case 40:
|
||
#line 552 "cppBison.yxx"
|
||
{
|
||
if ((yyvsp[-1].u.instance) != (CPPInstance *)NULL) {
|
||
(yyvsp[-1].u.instance)->_storage_class |= (current_storage_class | (yyvsp[-2].u.integer));
|
||
current_scope->add_declaration((yyvsp[-1].u.instance), global_scope, current_lexer, (yylsp[-1]));
|
||
(yyvsp[-1].u.instance)->set_initializer((yyvsp[0].u.expr));
|
||
}
|
||
}
|
||
break;
|
||
|
||
case 41:
|
||
#line 563 "cppBison.yxx"
|
||
{
|
||
// We don't need to push/pop type, because we can't nest
|
||
// multiple_var_declarations.
|
||
if ((yyvsp[0].u.decl)->as_type_declaration()) {
|
||
current_type = (yyvsp[0].u.decl)->as_type_declaration()->_type;
|
||
} else {
|
||
current_type = (yyvsp[0].u.decl)->as_type();
|
||
}
|
||
push_storage_class((yyvsp[-1].u.integer));
|
||
}
|
||
break;
|
||
|
||
case 42:
|
||
#line 574 "cppBison.yxx"
|
||
{
|
||
pop_storage_class();
|
||
}
|
||
break;
|
||
|
||
case 43:
|
||
#line 578 "cppBison.yxx"
|
||
{
|
||
// We don't need to push/pop type, because we can't nest
|
||
// multiple_var_declarations.
|
||
current_type = (yyvsp[0].u.type);
|
||
push_storage_class((yyvsp[-2].u.integer));
|
||
}
|
||
break;
|
||
|
||
case 44:
|
||
#line 585 "cppBison.yxx"
|
||
{
|
||
pop_storage_class();
|
||
}
|
||
break;
|
||
|
||
case 45:
|
||
#line 596 "cppBison.yxx"
|
||
{
|
||
CPPInstance *inst = new CPPInstance(current_type, (yyvsp[-1].u.inst_ident),
|
||
current_storage_class,
|
||
(yylsp[-1]).file);
|
||
inst->set_initializer((yyvsp[0].u.expr));
|
||
current_scope->add_declaration(inst, global_scope, current_lexer, (yylsp[-1]));
|
||
}
|
||
break;
|
||
|
||
case 46:
|
||
#line 604 "cppBison.yxx"
|
||
{
|
||
CPPInstance *inst = new CPPInstance(current_type, (yyvsp[-3].u.inst_ident),
|
||
current_storage_class,
|
||
(yylsp[-3]).file);
|
||
inst->set_initializer((yyvsp[-2].u.expr));
|
||
current_scope->add_declaration(inst, global_scope, current_lexer, (yylsp[-3]));
|
||
}
|
||
break;
|
||
|
||
case 47:
|
||
#line 615 "cppBison.yxx"
|
||
{
|
||
(yyvsp[-1].u.inst_ident)->add_modifier(IIT_const);
|
||
CPPInstance *inst = new CPPInstance(current_type, (yyvsp[-1].u.inst_ident),
|
||
current_storage_class,
|
||
(yylsp[-1]).file);
|
||
inst->set_initializer((yyvsp[0].u.expr));
|
||
current_scope->add_declaration(inst, global_scope, current_lexer, (yylsp[-1]));
|
||
}
|
||
break;
|
||
|
||
case 48:
|
||
#line 624 "cppBison.yxx"
|
||
{
|
||
(yyvsp[-3].u.inst_ident)->add_modifier(IIT_const);
|
||
CPPInstance *inst = new CPPInstance(current_type, (yyvsp[-3].u.inst_ident),
|
||
current_storage_class,
|
||
(yylsp[-3]).file);
|
||
inst->set_initializer((yyvsp[-2].u.expr));
|
||
current_scope->add_declaration(inst, global_scope, current_lexer, (yylsp[-3]));
|
||
}
|
||
break;
|
||
|
||
case 49:
|
||
#line 637 "cppBison.yxx"
|
||
{
|
||
// We don't need to push/pop type, because we can't nest
|
||
// multiple_var_declarations.
|
||
if ((yyvsp[0].u.decl)->as_type_declaration()) {
|
||
current_type = (yyvsp[0].u.decl)->as_type_declaration()->_type;
|
||
} else {
|
||
current_type = (yyvsp[0].u.decl)->as_type();
|
||
}
|
||
push_storage_class((yyvsp[-1].u.integer));
|
||
}
|
||
break;
|
||
|
||
case 50:
|
||
#line 648 "cppBison.yxx"
|
||
{
|
||
pop_storage_class();
|
||
}
|
||
break;
|
||
|
||
case 51:
|
||
#line 652 "cppBison.yxx"
|
||
{
|
||
// We don't need to push/pop type, because we can't nest
|
||
// multiple_var_declarations.
|
||
current_type = (yyvsp[0].u.type);
|
||
push_storage_class((yyvsp[-2].u.integer));
|
||
}
|
||
break;
|
||
|
||
case 52:
|
||
#line 659 "cppBison.yxx"
|
||
{
|
||
pop_storage_class();
|
||
}
|
||
break;
|
||
|
||
case 53:
|
||
#line 663 "cppBison.yxx"
|
||
{
|
||
if ((yyvsp[-1].u.instance) != (CPPDeclaration *)NULL) {
|
||
CPPInstance *inst = (yyvsp[-1].u.instance)->as_instance();
|
||
if (inst != (CPPInstance *)NULL) {
|
||
inst->_storage_class |= (current_storage_class | (yyvsp[-2].u.integer));
|
||
current_scope->add_declaration(inst, global_scope, current_lexer, (yylsp[-1]));
|
||
current_scope->add_declaration(new CPPTypedef(inst, current_scope == global_scope), global_scope, current_lexer, (yylsp[-1]));
|
||
}
|
||
}
|
||
}
|
||
break;
|
||
|
||
case 54:
|
||
#line 677 "cppBison.yxx"
|
||
{
|
||
CPPInstance *inst = new CPPInstance(current_type, (yyvsp[-1].u.inst_ident),
|
||
current_storage_class,
|
||
(yylsp[-1]).file);
|
||
inst->set_initializer((yyvsp[0].u.expr));
|
||
current_scope->add_declaration(new CPPTypedef(inst, current_scope == global_scope), global_scope, current_lexer, (yylsp[-1]));
|
||
}
|
||
break;
|
||
|
||
case 55:
|
||
#line 685 "cppBison.yxx"
|
||
{
|
||
CPPInstance *inst = new CPPInstance(current_type, (yyvsp[-3].u.inst_ident),
|
||
current_storage_class,
|
||
(yylsp[-3]).file);
|
||
inst->set_initializer((yyvsp[-2].u.expr));
|
||
current_scope->add_declaration(new CPPTypedef(inst, current_scope == global_scope), global_scope, current_lexer, (yylsp[-3]));
|
||
}
|
||
break;
|
||
|
||
case 56:
|
||
#line 696 "cppBison.yxx"
|
||
{
|
||
(yyvsp[-1].u.inst_ident)->add_modifier(IIT_const);
|
||
CPPInstance *inst = new CPPInstance(current_type, (yyvsp[-1].u.inst_ident),
|
||
current_storage_class,
|
||
(yylsp[-1]).file);
|
||
inst->set_initializer((yyvsp[0].u.expr));
|
||
current_scope->add_declaration(new CPPTypedef(inst, current_scope == global_scope), global_scope, current_lexer, (yylsp[-1]));
|
||
}
|
||
break;
|
||
|
||
case 57:
|
||
#line 705 "cppBison.yxx"
|
||
{
|
||
(yyvsp[-3].u.inst_ident)->add_modifier(IIT_const);
|
||
CPPInstance *inst = new CPPInstance(current_type, (yyvsp[-3].u.inst_ident),
|
||
current_storage_class,
|
||
(yylsp[-3]).file);
|
||
inst->set_initializer((yyvsp[-2].u.expr));
|
||
current_scope->add_declaration(new CPPTypedef(inst, current_scope == global_scope), global_scope, current_lexer, (yylsp[-3]));
|
||
}
|
||
break;
|
||
|
||
case 58:
|
||
#line 719 "cppBison.yxx"
|
||
{
|
||
push_scope((yyvsp[-1].u.identifier)->get_scope(current_scope, global_scope));
|
||
}
|
||
break;
|
||
|
||
case 59:
|
||
#line 723 "cppBison.yxx"
|
||
{
|
||
pop_scope();
|
||
CPPType *type;
|
||
if ((yyvsp[-5].u.identifier)->get_simple_name() == current_scope->get_simple_name()) {
|
||
// This is a constructor, and has no return.
|
||
type = new CPPSimpleType(CPPSimpleType::T_void);
|
||
} else {
|
||
// This isn't a constructor, so it has an implicit return type of
|
||
// int.
|
||
type = new CPPSimpleType(CPPSimpleType::T_int);
|
||
}
|
||
|
||
CPPInstanceIdentifier *ii = new CPPInstanceIdentifier((yyvsp[-5].u.identifier));
|
||
ii->add_func_modifier((yyvsp[-2].u.param_list), (yyvsp[0].u.integer));
|
||
|
||
(yyval.u.instance) = new CPPInstance(type, ii, 0, (yylsp[-5]).file);
|
||
}
|
||
break;
|
||
|
||
case 60:
|
||
#line 741 "cppBison.yxx"
|
||
{
|
||
push_scope((yyvsp[-1].u.identifier)->get_scope(current_scope, global_scope));
|
||
}
|
||
break;
|
||
|
||
case 61:
|
||
#line 745 "cppBison.yxx"
|
||
{
|
||
pop_scope();
|
||
CPPType *type;
|
||
if ((yyvsp[-5].u.identifier)->get_simple_name() == current_scope->get_simple_name()) {
|
||
// This is a constructor, and has no return.
|
||
type = new CPPSimpleType(CPPSimpleType::T_void);
|
||
} else {
|
||
// This isn't a constructor, so it has an implicit return type of
|
||
// int.
|
||
type = new CPPSimpleType(CPPSimpleType::T_int);
|
||
}
|
||
|
||
CPPInstanceIdentifier *ii = new CPPInstanceIdentifier((yyvsp[-5].u.identifier));
|
||
ii->add_func_modifier((yyvsp[-2].u.param_list), (yyvsp[0].u.integer));
|
||
|
||
(yyval.u.instance) = new CPPInstance(type, ii, 0, (yylsp[-5]).file);
|
||
}
|
||
break;
|
||
|
||
case 62:
|
||
#line 765 "cppBison.yxx"
|
||
{
|
||
push_scope((yyvsp[-1].u.identifier)->get_scope(current_scope, global_scope));
|
||
}
|
||
break;
|
||
|
||
case 63:
|
||
#line 769 "cppBison.yxx"
|
||
{
|
||
pop_scope();
|
||
if ((yyvsp[-5].u.identifier)->is_scoped()) {
|
||
yyerror("Invalid destructor name: ~" + (yyvsp[-5].u.identifier)->get_fully_scoped_name(), (yylsp[-5]));
|
||
} else {
|
||
CPPIdentifier *ident =
|
||
new CPPIdentifier("~" + (yyvsp[-5].u.identifier)->get_simple_name(), (yylsp[-5]).file);
|
||
delete (yyvsp[-5].u.identifier);
|
||
|
||
CPPType *type;
|
||
type = new CPPSimpleType(CPPSimpleType::T_void);
|
||
|
||
CPPInstanceIdentifier *ii = new CPPInstanceIdentifier(ident);
|
||
ii->add_func_modifier((yyvsp[-2].u.param_list), (yyvsp[0].u.integer));
|
||
|
||
(yyval.u.instance) = new CPPInstance(type, ii, 0, (yylsp[-5]).file);
|
||
}
|
||
}
|
||
break;
|
||
|
||
case 64:
|
||
#line 795 "cppBison.yxx"
|
||
{
|
||
push_scope((yyvsp[-2].u.inst_ident)->get_scope(current_scope, global_scope));
|
||
}
|
||
break;
|
||
|
||
case 65:
|
||
#line 799 "cppBison.yxx"
|
||
{
|
||
pop_scope();
|
||
CPPType *type = (yyvsp[-9].u.identifier)->find_type(current_scope, global_scope, false, current_lexer);
|
||
assert(type != NULL);
|
||
|
||
CPPInstanceIdentifier *ii = (yyvsp[-6].u.inst_ident);
|
||
ii->add_modifier(IIT_pointer);
|
||
ii->add_func_modifier((yyvsp[-2].u.param_list), (yyvsp[0].u.integer));
|
||
(yyval.u.instance) = new CPPInstance(type, ii, 0, (yylsp[-9]).file);
|
||
}
|
||
break;
|
||
|
||
case 66:
|
||
#line 810 "cppBison.yxx"
|
||
{
|
||
push_scope((yyvsp[-2].u.inst_ident)->get_scope(current_scope, global_scope));
|
||
}
|
||
break;
|
||
|
||
case 67:
|
||
#line 814 "cppBison.yxx"
|
||
{
|
||
pop_scope();
|
||
CPPType *type = (yyvsp[-10].u.identifier)->find_type(current_scope, global_scope, false, current_lexer);
|
||
assert(type != NULL);
|
||
|
||
CPPInstanceIdentifier *ii = (yyvsp[-6].u.inst_ident);
|
||
ii->add_scoped_pointer_modifier((yyvsp[-8].u.identifier));
|
||
ii->add_func_modifier((yyvsp[-2].u.param_list), (yyvsp[0].u.integer));
|
||
(yyval.u.instance) = new CPPInstance(type, ii, 0, (yylsp[-10]).file);
|
||
}
|
||
break;
|
||
|
||
case 68:
|
||
#line 827 "cppBison.yxx"
|
||
{
|
||
if ((yyvsp[-3].u.identifier) != NULL) {
|
||
push_scope((yyvsp[-3].u.identifier)->get_scope(current_scope, global_scope));
|
||
}
|
||
}
|
||
break;
|
||
|
||
case 69:
|
||
#line 833 "cppBison.yxx"
|
||
{
|
||
if ((yyvsp[-7].u.identifier) != NULL) {
|
||
pop_scope();
|
||
}
|
||
|
||
// We use formal_parameter_identifier, because that can match a type
|
||
// name with or without an identifier, but especially without, which
|
||
// is what follows the keyword "operator" in a typecast function.
|
||
// As an added bonus, the type of the formal_parameter will be the
|
||
// typecast type, i.e. the return type of the typecast function.
|
||
|
||
// We give all typecast operators the name "operator typecast".
|
||
// Only their return type will differentiate them. (Naturally, this
|
||
// violates actual C++ rules, but we're not an actual C++ compiler
|
||
// so we don't care. And this is the easiest way to do it.)
|
||
CPPIdentifier *ident = (yyvsp[-7].u.identifier);
|
||
if (ident == NULL) {
|
||
ident = new CPPIdentifier("operator typecast", (yylsp[-7]).file);
|
||
} else {
|
||
ident->add_name("operator typecast");
|
||
}
|
||
(yyval.u.instance) = CPPInstance::make_typecast_function
|
||
(new CPPInstance((yyvsp[-6].u.type), (yyvsp[-5].u.inst_ident), 0, (yylsp[-5]).file), ident, (yyvsp[-2].u.param_list), (yyvsp[0].u.integer));
|
||
}
|
||
break;
|
||
|
||
case 70:
|
||
#line 858 "cppBison.yxx"
|
||
{
|
||
if ((yyvsp[-4].u.identifier) != NULL) {
|
||
push_scope((yyvsp[-4].u.identifier)->get_scope(current_scope, global_scope));
|
||
}
|
||
}
|
||
break;
|
||
|
||
case 71:
|
||
#line 864 "cppBison.yxx"
|
||
{
|
||
if ((yyvsp[-8].u.identifier) != NULL) {
|
||
pop_scope();
|
||
}
|
||
|
||
CPPIdentifier *ident = (yyvsp[-8].u.identifier);
|
||
if (ident == NULL) {
|
||
ident = new CPPIdentifier("operator typecast", (yylsp[-8]).file);
|
||
} else {
|
||
ident->add_name("operator typecast");
|
||
}
|
||
(yyvsp[-5].u.inst_ident)->add_modifier(IIT_const);
|
||
(yyval.u.instance) = CPPInstance::make_typecast_function
|
||
(new CPPInstance((yyvsp[-6].u.type), (yyvsp[-5].u.inst_ident), 0, (yylsp[-5]).file), ident, (yyvsp[-2].u.param_list), (yyvsp[0].u.integer));
|
||
}
|
||
break;
|
||
|
||
case 72:
|
||
#line 884 "cppBison.yxx"
|
||
{
|
||
CPPDeclaration *decl =
|
||
(yyvsp[0].u.identifier)->find_symbol(current_scope, global_scope, current_lexer);
|
||
if (decl != (CPPDeclaration *)NULL) {
|
||
(yyval.u.instance) = decl->as_instance();
|
||
} else {
|
||
(yyval.u.instance) = (CPPInstance *)NULL;
|
||
}
|
||
}
|
||
break;
|
||
|
||
case 73:
|
||
#line 897 "cppBison.yxx"
|
||
{
|
||
(yyval.u.integer) = 0;
|
||
}
|
||
break;
|
||
|
||
case 74:
|
||
#line 901 "cppBison.yxx"
|
||
{
|
||
(yyval.u.integer) = (int)CPPFunctionType::F_const_method;
|
||
}
|
||
break;
|
||
|
||
case 75:
|
||
#line 905 "cppBison.yxx"
|
||
{
|
||
(yyval.u.integer) = (yyvsp[-3].u.integer);
|
||
}
|
||
break;
|
||
|
||
case 76:
|
||
#line 909 "cppBison.yxx"
|
||
{
|
||
(yyval.u.integer) = (yyvsp[-4].u.integer);
|
||
}
|
||
break;
|
||
|
||
case 77:
|
||
#line 916 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = "!";
|
||
}
|
||
break;
|
||
|
||
case 78:
|
||
#line 920 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = "~";
|
||
}
|
||
break;
|
||
|
||
case 79:
|
||
#line 924 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = "*";
|
||
}
|
||
break;
|
||
|
||
case 80:
|
||
#line 928 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = "/";
|
||
}
|
||
break;
|
||
|
||
case 81:
|
||
#line 932 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = "%";
|
||
}
|
||
break;
|
||
|
||
case 82:
|
||
#line 936 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = "+";
|
||
}
|
||
break;
|
||
|
||
case 83:
|
||
#line 940 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = "-";
|
||
}
|
||
break;
|
||
|
||
case 84:
|
||
#line 944 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = "|";
|
||
}
|
||
break;
|
||
|
||
case 85:
|
||
#line 948 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = "&";
|
||
}
|
||
break;
|
||
|
||
case 86:
|
||
#line 952 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = "^";
|
||
}
|
||
break;
|
||
|
||
case 87:
|
||
#line 956 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = "||";
|
||
}
|
||
break;
|
||
|
||
case 88:
|
||
#line 960 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = "&&";
|
||
}
|
||
break;
|
||
|
||
case 89:
|
||
#line 964 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = "==";
|
||
}
|
||
break;
|
||
|
||
case 90:
|
||
#line 968 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = "!=";
|
||
}
|
||
break;
|
||
|
||
case 91:
|
||
#line 972 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = "<=";
|
||
}
|
||
break;
|
||
|
||
case 92:
|
||
#line 976 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = ">=";
|
||
}
|
||
break;
|
||
|
||
case 93:
|
||
#line 980 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = "<";
|
||
}
|
||
break;
|
||
|
||
case 94:
|
||
#line 984 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = ">";
|
||
}
|
||
break;
|
||
|
||
case 95:
|
||
#line 988 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = "<<";
|
||
}
|
||
break;
|
||
|
||
case 96:
|
||
#line 992 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = ">>";
|
||
}
|
||
break;
|
||
|
||
case 97:
|
||
#line 996 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = "=";
|
||
}
|
||
break;
|
||
|
||
case 98:
|
||
#line 1000 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = ",";
|
||
}
|
||
break;
|
||
|
||
case 99:
|
||
#line 1004 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = "++";
|
||
}
|
||
break;
|
||
|
||
case 100:
|
||
#line 1008 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = "--";
|
||
}
|
||
break;
|
||
|
||
case 101:
|
||
#line 1012 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = "*=";
|
||
}
|
||
break;
|
||
|
||
case 102:
|
||
#line 1016 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = "/=";
|
||
}
|
||
break;
|
||
|
||
case 103:
|
||
#line 1020 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = "%=";
|
||
}
|
||
break;
|
||
|
||
case 104:
|
||
#line 1024 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = "+=";
|
||
}
|
||
break;
|
||
|
||
case 105:
|
||
#line 1028 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = "-=";
|
||
}
|
||
break;
|
||
|
||
case 106:
|
||
#line 1032 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = "|=";
|
||
}
|
||
break;
|
||
|
||
case 107:
|
||
#line 1036 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = "&=";
|
||
}
|
||
break;
|
||
|
||
case 108:
|
||
#line 1040 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = "^=";
|
||
}
|
||
break;
|
||
|
||
case 109:
|
||
#line 1044 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = "<<=";
|
||
}
|
||
break;
|
||
|
||
case 110:
|
||
#line 1048 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = ">>=";
|
||
}
|
||
break;
|
||
|
||
case 111:
|
||
#line 1052 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = "->";
|
||
}
|
||
break;
|
||
|
||
case 112:
|
||
#line 1056 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = "[]";
|
||
}
|
||
break;
|
||
|
||
case 113:
|
||
#line 1060 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = "()";
|
||
}
|
||
break;
|
||
|
||
case 114:
|
||
#line 1064 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = "new";
|
||
}
|
||
break;
|
||
|
||
case 115:
|
||
#line 1068 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = "delete";
|
||
}
|
||
break;
|
||
|
||
case 118:
|
||
#line 1080 "cppBison.yxx"
|
||
{
|
||
push_scope(new CPPTemplateScope(current_scope));
|
||
}
|
||
break;
|
||
|
||
case 119:
|
||
#line 1084 "cppBison.yxx"
|
||
{
|
||
pop_scope();
|
||
}
|
||
break;
|
||
|
||
case 122:
|
||
#line 1096 "cppBison.yxx"
|
||
{
|
||
CPPTemplateScope *ts = current_scope->as_template_scope();
|
||
assert(ts != NULL);
|
||
ts->add_template_parameter((yyvsp[0].u.decl));
|
||
}
|
||
break;
|
||
|
||
case 123:
|
||
#line 1102 "cppBison.yxx"
|
||
{
|
||
CPPTemplateScope *ts = current_scope->as_template_scope();
|
||
assert(ts != NULL);
|
||
ts->add_template_parameter((yyvsp[0].u.decl));
|
||
}
|
||
break;
|
||
|
||
case 124:
|
||
#line 1111 "cppBison.yxx"
|
||
{
|
||
(yyval.u.decl) = CPPType::new_type(new CPPClassTemplateParameter((yyvsp[0].u.identifier)));
|
||
}
|
||
break;
|
||
|
||
case 125:
|
||
#line 1115 "cppBison.yxx"
|
||
{
|
||
(yyval.u.decl) = CPPType::new_type(new CPPClassTemplateParameter((yyvsp[-2].u.identifier), (yyvsp[0].u.type)));
|
||
}
|
||
break;
|
||
|
||
case 126:
|
||
#line 1119 "cppBison.yxx"
|
||
{
|
||
CPPInstance *inst = new CPPInstance((yyvsp[-2].u.type), (yyvsp[-1].u.inst_ident), 0, (yylsp[-1]).file);
|
||
inst->set_initializer((yyvsp[0].u.expr));
|
||
(yyval.u.decl) = inst;
|
||
}
|
||
break;
|
||
|
||
case 127:
|
||
#line 1125 "cppBison.yxx"
|
||
{
|
||
(yyvsp[-1].u.inst_ident)->add_modifier(IIT_const);
|
||
CPPInstance *inst = new CPPInstance((yyvsp[-2].u.type), (yyvsp[-1].u.inst_ident), 0, (yylsp[-1]).file);
|
||
inst->set_initializer((yyvsp[0].u.expr));
|
||
(yyval.u.decl) = inst;
|
||
}
|
||
break;
|
||
|
||
case 128:
|
||
#line 1135 "cppBison.yxx"
|
||
{
|
||
(yyval.u.type) = CPPType::new_type((yyvsp[0].u.simple_type));
|
||
}
|
||
break;
|
||
|
||
case 129:
|
||
#line 1139 "cppBison.yxx"
|
||
{
|
||
yywarning("Not a type: " + (yyvsp[0].u.identifier)->get_fully_scoped_name(), (yylsp[0]));
|
||
(yyval.u.type) = CPPType::new_type(new CPPSimpleType(CPPSimpleType::T_unknown));
|
||
}
|
||
break;
|
||
|
||
case 130:
|
||
#line 1144 "cppBison.yxx"
|
||
{
|
||
(yyval.u.type) = (yyvsp[0].u.identifier)->find_type(current_scope, global_scope, false, current_lexer);
|
||
assert((yyval.u.type) != NULL);
|
||
}
|
||
break;
|
||
|
||
case 131:
|
||
#line 1149 "cppBison.yxx"
|
||
{
|
||
(yyval.u.type) = CPPType::new_type(new CPPTBDType((yyvsp[0].u.identifier)));
|
||
}
|
||
break;
|
||
|
||
case 132:
|
||
#line 1157 "cppBison.yxx"
|
||
{
|
||
(yyval.u.inst_ident) = new CPPInstanceIdentifier((yyvsp[0].u.identifier));
|
||
}
|
||
break;
|
||
|
||
case 133:
|
||
#line 1161 "cppBison.yxx"
|
||
{
|
||
// For an operator function. We implement this simply by building a
|
||
// ficticious name for the function; in other respects it's just
|
||
// like a regular function.
|
||
CPPIdentifier *ident = (yyvsp[-1].u.identifier);
|
||
if (ident == NULL) {
|
||
ident = new CPPIdentifier("operator "+(yyvsp[0].str), (yylsp[0]).file);
|
||
} else {
|
||
ident->_names.push_back("operator "+(yyvsp[0].str));
|
||
}
|
||
|
||
(yyval.u.inst_ident) = new CPPInstanceIdentifier(ident);
|
||
}
|
||
break;
|
||
|
||
case 134:
|
||
#line 1175 "cppBison.yxx"
|
||
{
|
||
(yyval.u.inst_ident) = (yyvsp[0].u.inst_ident);
|
||
(yyval.u.inst_ident)->add_modifier(IIT_const);
|
||
}
|
||
break;
|
||
|
||
case 135:
|
||
#line 1180 "cppBison.yxx"
|
||
{
|
||
(yyval.u.inst_ident) = (yyvsp[0].u.inst_ident);
|
||
(yyval.u.inst_ident)->add_modifier(IIT_pointer);
|
||
}
|
||
break;
|
||
|
||
case 136:
|
||
#line 1185 "cppBison.yxx"
|
||
{
|
||
(yyval.u.inst_ident) = (yyvsp[0].u.inst_ident);
|
||
(yyval.u.inst_ident)->add_modifier(IIT_reference);
|
||
}
|
||
break;
|
||
|
||
case 137:
|
||
#line 1190 "cppBison.yxx"
|
||
{
|
||
(yyval.u.inst_ident) = (yyvsp[0].u.inst_ident);
|
||
(yyval.u.inst_ident)->add_scoped_pointer_modifier((yyvsp[-2].u.identifier));
|
||
}
|
||
break;
|
||
|
||
case 138:
|
||
#line 1195 "cppBison.yxx"
|
||
{
|
||
(yyval.u.inst_ident) = (yyvsp[-3].u.inst_ident);
|
||
(yyval.u.inst_ident)->add_array_modifier((yyvsp[-1].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 139:
|
||
#line 1200 "cppBison.yxx"
|
||
{
|
||
// bitfield definition. We ignore the bitfield for now.
|
||
(yyval.u.inst_ident) = (yyvsp[-2].u.inst_ident);
|
||
}
|
||
break;
|
||
|
||
case 140:
|
||
#line 1205 "cppBison.yxx"
|
||
{
|
||
(yyval.u.inst_ident) = (yyvsp[-1].u.inst_ident);
|
||
(yyval.u.inst_ident)->add_modifier(IIT_paren);
|
||
}
|
||
break;
|
||
|
||
case 141:
|
||
#line 1210 "cppBison.yxx"
|
||
{
|
||
push_scope((yyvsp[-1].u.inst_ident)->get_scope(current_scope, global_scope));
|
||
}
|
||
break;
|
||
|
||
case 142:
|
||
#line 1214 "cppBison.yxx"
|
||
{
|
||
pop_scope();
|
||
(yyval.u.inst_ident) = (yyvsp[-5].u.inst_ident);
|
||
if ((yyvsp[-2].u.param_list)->is_parameter_expr() && (yyvsp[0].u.integer) == 0) {
|
||
// Oops, this must have been an instance declaration with a
|
||
// parameter list, not a function prototype.
|
||
(yyval.u.inst_ident)->add_initializer_modifier((yyvsp[-2].u.param_list));
|
||
|
||
} else {
|
||
// This was (probably) a function prototype.
|
||
(yyval.u.inst_ident)->add_func_modifier((yyvsp[-2].u.param_list), (yyvsp[0].u.integer));
|
||
}
|
||
}
|
||
break;
|
||
|
||
case 143:
|
||
#line 1232 "cppBison.yxx"
|
||
{
|
||
(yyval.u.param_list) = new CPPParameterList;
|
||
}
|
||
break;
|
||
|
||
case 144:
|
||
#line 1236 "cppBison.yxx"
|
||
{
|
||
(yyval.u.param_list) = new CPPParameterList;
|
||
(yyval.u.param_list)->_includes_ellipsis = true;
|
||
}
|
||
break;
|
||
|
||
case 145:
|
||
#line 1241 "cppBison.yxx"
|
||
{
|
||
(yyval.u.param_list) = (yyvsp[0].u.param_list);
|
||
}
|
||
break;
|
||
|
||
case 146:
|
||
#line 1245 "cppBison.yxx"
|
||
{
|
||
(yyval.u.param_list) = (yyvsp[-2].u.param_list);
|
||
(yyval.u.param_list)->_includes_ellipsis = true;
|
||
}
|
||
break;
|
||
|
||
case 147:
|
||
#line 1250 "cppBison.yxx"
|
||
{
|
||
(yyval.u.param_list) = (yyvsp[-1].u.param_list);
|
||
(yyval.u.param_list)->_includes_ellipsis = true;
|
||
}
|
||
break;
|
||
|
||
case 148:
|
||
#line 1258 "cppBison.yxx"
|
||
{
|
||
(yyval.u.param_list) = new CPPParameterList;
|
||
(yyval.u.param_list)->_parameters.push_back((yyvsp[0].u.instance));
|
||
}
|
||
break;
|
||
|
||
case 149:
|
||
#line 1263 "cppBison.yxx"
|
||
{
|
||
(yyval.u.param_list) = (yyvsp[-2].u.param_list);
|
||
(yyval.u.param_list)->_parameters.push_back((yyvsp[0].u.instance));
|
||
}
|
||
break;
|
||
|
||
case 150:
|
||
#line 1271 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = (CPPExpression *)NULL;
|
||
}
|
||
break;
|
||
|
||
case 151:
|
||
#line 1275 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = (yyvsp[0].u.expr);
|
||
}
|
||
break;
|
||
|
||
case 152:
|
||
#line 1282 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = (CPPExpression *)NULL;
|
||
}
|
||
break;
|
||
|
||
case 153:
|
||
#line 1286 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = (yyvsp[0].u.expr);
|
||
}
|
||
break;
|
||
|
||
case 154:
|
||
#line 1293 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = (CPPExpression *)NULL;
|
||
}
|
||
break;
|
||
|
||
case 155:
|
||
#line 1297 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = (CPPExpression *)NULL;
|
||
}
|
||
break;
|
||
|
||
case 156:
|
||
#line 1301 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = (CPPExpression *)NULL;
|
||
}
|
||
break;
|
||
|
||
case 157:
|
||
#line 1305 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = (yyvsp[-1].u.expr);
|
||
}
|
||
break;
|
||
|
||
case 158:
|
||
#line 1309 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = (CPPExpression *)NULL;
|
||
}
|
||
break;
|
||
|
||
case 162:
|
||
#line 1322 "cppBison.yxx"
|
||
{
|
||
}
|
||
break;
|
||
|
||
case 166:
|
||
#line 1331 "cppBison.yxx"
|
||
{
|
||
(yyval.u.instance) = new CPPInstance((yyvsp[-2].u.type), (yyvsp[-1].u.inst_ident), 0, (yylsp[-1]).file);
|
||
(yyval.u.instance)->set_initializer((yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 167:
|
||
#line 1336 "cppBison.yxx"
|
||
{
|
||
yywarning("Not a type: " + (yyvsp[-2].u.identifier)->get_fully_scoped_name(), (yylsp[-2]));
|
||
CPPType *type =
|
||
CPPType::new_type(new CPPSimpleType(CPPSimpleType::T_unknown));
|
||
(yyval.u.instance) = new CPPInstance(type, (yyvsp[-1].u.inst_ident), 0, (yylsp[-1]).file);
|
||
(yyval.u.instance)->set_initializer((yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 168:
|
||
#line 1344 "cppBison.yxx"
|
||
{
|
||
(yyvsp[-1].u.inst_ident)->add_modifier(IIT_const);
|
||
(yyval.u.instance) = new CPPInstance((yyvsp[-2].u.type), (yyvsp[-1].u.inst_ident), 0, (yylsp[-1]).file);
|
||
(yyval.u.instance)->set_initializer((yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 169:
|
||
#line 1350 "cppBison.yxx"
|
||
{
|
||
CPPType *type =
|
||
CPPType::new_type(new CPPSimpleType(CPPSimpleType::T_parameter));
|
||
(yyval.u.instance) = new CPPInstance(type, "expr");
|
||
(yyval.u.instance)->set_initializer((yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 170:
|
||
#line 1360 "cppBison.yxx"
|
||
{
|
||
(yyval.u.inst_ident) = new CPPInstanceIdentifier((CPPIdentifier *)NULL);
|
||
}
|
||
break;
|
||
|
||
case 171:
|
||
#line 1364 "cppBison.yxx"
|
||
{
|
||
(yyval.u.inst_ident) = new CPPInstanceIdentifier((yyvsp[0].u.identifier));
|
||
}
|
||
break;
|
||
|
||
case 172:
|
||
#line 1368 "cppBison.yxx"
|
||
{
|
||
(yyval.u.inst_ident) = new CPPInstanceIdentifier((yyvsp[0].u.identifier));
|
||
}
|
||
break;
|
||
|
||
case 173:
|
||
#line 1372 "cppBison.yxx"
|
||
{
|
||
(yyval.u.inst_ident) = (yyvsp[0].u.inst_ident);
|
||
(yyval.u.inst_ident)->add_modifier(IIT_const);
|
||
}
|
||
break;
|
||
|
||
case 174:
|
||
#line 1377 "cppBison.yxx"
|
||
{
|
||
(yyval.u.inst_ident) = (yyvsp[0].u.inst_ident);
|
||
(yyval.u.inst_ident)->add_modifier(IIT_pointer);
|
||
}
|
||
break;
|
||
|
||
case 175:
|
||
#line 1382 "cppBison.yxx"
|
||
{
|
||
(yyval.u.inst_ident) = (yyvsp[0].u.inst_ident);
|
||
(yyval.u.inst_ident)->add_modifier(IIT_reference);
|
||
}
|
||
break;
|
||
|
||
case 176:
|
||
#line 1387 "cppBison.yxx"
|
||
{
|
||
(yyval.u.inst_ident) = (yyvsp[0].u.inst_ident);
|
||
(yyval.u.inst_ident)->add_scoped_pointer_modifier((yyvsp[-2].u.identifier));
|
||
}
|
||
break;
|
||
|
||
case 177:
|
||
#line 1392 "cppBison.yxx"
|
||
{
|
||
(yyval.u.inst_ident) = (yyvsp[-3].u.inst_ident);
|
||
(yyval.u.inst_ident)->add_array_modifier((yyvsp[-1].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 178:
|
||
#line 1400 "cppBison.yxx"
|
||
{
|
||
(yyval.u.inst_ident) = new CPPInstanceIdentifier((CPPIdentifier *)NULL);
|
||
}
|
||
break;
|
||
|
||
case 179:
|
||
#line 1404 "cppBison.yxx"
|
||
{
|
||
(yyval.u.inst_ident) = new CPPInstanceIdentifier((yyvsp[0].u.identifier));
|
||
}
|
||
break;
|
||
|
||
case 180:
|
||
#line 1408 "cppBison.yxx"
|
||
{
|
||
(yyval.u.inst_ident) = new CPPInstanceIdentifier((yyvsp[0].u.identifier));
|
||
}
|
||
break;
|
||
|
||
case 181:
|
||
#line 1412 "cppBison.yxx"
|
||
{
|
||
(yyval.u.inst_ident) = (yyvsp[0].u.inst_ident);
|
||
(yyval.u.inst_ident)->add_modifier(IIT_const);
|
||
}
|
||
break;
|
||
|
||
case 182:
|
||
#line 1417 "cppBison.yxx"
|
||
{
|
||
(yyval.u.inst_ident) = (yyvsp[0].u.inst_ident);
|
||
(yyval.u.inst_ident)->add_modifier(IIT_pointer);
|
||
}
|
||
break;
|
||
|
||
case 183:
|
||
#line 1422 "cppBison.yxx"
|
||
{
|
||
(yyval.u.inst_ident) = (yyvsp[0].u.inst_ident);
|
||
(yyval.u.inst_ident)->add_modifier(IIT_reference);
|
||
}
|
||
break;
|
||
|
||
case 184:
|
||
#line 1427 "cppBison.yxx"
|
||
{
|
||
(yyval.u.inst_ident) = (yyvsp[0].u.inst_ident);
|
||
(yyval.u.inst_ident)->add_scoped_pointer_modifier((yyvsp[-2].u.identifier));
|
||
}
|
||
break;
|
||
|
||
case 185:
|
||
#line 1432 "cppBison.yxx"
|
||
{
|
||
(yyval.u.inst_ident) = (yyvsp[-3].u.inst_ident);
|
||
(yyval.u.inst_ident)->add_array_modifier((yyvsp[-1].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 186:
|
||
#line 1437 "cppBison.yxx"
|
||
{
|
||
(yyval.u.inst_ident) = (yyvsp[-5].u.inst_ident);
|
||
(yyval.u.inst_ident)->add_modifier(IIT_paren);
|
||
(yyval.u.inst_ident)->add_func_modifier((yyvsp[-2].u.param_list), (yyvsp[0].u.integer));
|
||
}
|
||
break;
|
||
|
||
case 187:
|
||
#line 1443 "cppBison.yxx"
|
||
{
|
||
(yyval.u.inst_ident) = (yyvsp[-1].u.inst_ident);
|
||
(yyval.u.inst_ident)->add_modifier(IIT_paren);
|
||
}
|
||
break;
|
||
|
||
case 188:
|
||
#line 1451 "cppBison.yxx"
|
||
{
|
||
(yyval.u.inst_ident) = new CPPInstanceIdentifier((CPPIdentifier *)NULL);
|
||
}
|
||
break;
|
||
|
||
case 189:
|
||
#line 1455 "cppBison.yxx"
|
||
{
|
||
(yyval.u.inst_ident) = (yyvsp[0].u.inst_ident);
|
||
(yyval.u.inst_ident)->add_modifier(IIT_const);
|
||
}
|
||
break;
|
||
|
||
case 190:
|
||
#line 1460 "cppBison.yxx"
|
||
{
|
||
(yyval.u.inst_ident) = (yyvsp[0].u.inst_ident);
|
||
(yyval.u.inst_ident)->add_modifier(IIT_pointer);
|
||
}
|
||
break;
|
||
|
||
case 191:
|
||
#line 1465 "cppBison.yxx"
|
||
{
|
||
(yyval.u.inst_ident) = (yyvsp[0].u.inst_ident);
|
||
(yyval.u.inst_ident)->add_modifier(IIT_reference);
|
||
}
|
||
break;
|
||
|
||
case 192:
|
||
#line 1470 "cppBison.yxx"
|
||
{
|
||
(yyval.u.inst_ident) = (yyvsp[0].u.inst_ident);
|
||
(yyval.u.inst_ident)->add_scoped_pointer_modifier((yyvsp[-2].u.identifier));
|
||
}
|
||
break;
|
||
|
||
case 193:
|
||
#line 1475 "cppBison.yxx"
|
||
{
|
||
(yyval.u.inst_ident) = (yyvsp[-3].u.inst_ident);
|
||
(yyval.u.inst_ident)->add_array_modifier((yyvsp[-1].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 194:
|
||
#line 1480 "cppBison.yxx"
|
||
{
|
||
(yyval.u.inst_ident) = (yyvsp[-5].u.inst_ident);
|
||
(yyval.u.inst_ident)->add_modifier(IIT_paren);
|
||
(yyval.u.inst_ident)->add_func_modifier((yyvsp[-2].u.param_list), (yyvsp[0].u.integer));
|
||
}
|
||
break;
|
||
|
||
case 195:
|
||
#line 1489 "cppBison.yxx"
|
||
{
|
||
(yyval.u.type) = CPPType::new_type((yyvsp[0].u.simple_type));
|
||
}
|
||
break;
|
||
|
||
case 196:
|
||
#line 1493 "cppBison.yxx"
|
||
{
|
||
(yyval.u.type) = (yyvsp[0].u.identifier)->find_type(current_scope, global_scope, false, current_lexer);
|
||
assert((yyval.u.type) != NULL);
|
||
}
|
||
break;
|
||
|
||
case 197:
|
||
#line 1498 "cppBison.yxx"
|
||
{
|
||
(yyval.u.type) = CPPType::new_type(new CPPTBDType((yyvsp[0].u.identifier)));
|
||
}
|
||
break;
|
||
|
||
case 198:
|
||
#line 1502 "cppBison.yxx"
|
||
{
|
||
(yyval.u.type) = CPPType::new_type((yyvsp[0].u.struct_type));
|
||
}
|
||
break;
|
||
|
||
case 199:
|
||
#line 1506 "cppBison.yxx"
|
||
{
|
||
(yyval.u.type) = CPPType::new_type((yyvsp[0].u.struct_type));
|
||
}
|
||
break;
|
||
|
||
case 200:
|
||
#line 1510 "cppBison.yxx"
|
||
{
|
||
(yyval.u.type) = CPPType::new_type((yyvsp[0].u.enum_type));
|
||
}
|
||
break;
|
||
|
||
case 201:
|
||
#line 1514 "cppBison.yxx"
|
||
{
|
||
(yyval.u.type) = CPPType::new_type((yyvsp[0].u.enum_type));
|
||
}
|
||
break;
|
||
|
||
case 202:
|
||
#line 1518 "cppBison.yxx"
|
||
{
|
||
CPPType *type = (yyvsp[0].u.identifier)->find_type(current_scope, global_scope, false, current_lexer);
|
||
if (type != NULL) {
|
||
(yyval.u.type) = type;
|
||
} else {
|
||
CPPExtensionType *et =
|
||
CPPType::new_type(new CPPExtensionType((yyvsp[-1].u.extension_enum), (yyvsp[0].u.identifier), current_scope, (yylsp[-1]).file))
|
||
->as_extension_type();
|
||
CPPScope *scope = (yyvsp[0].u.identifier)->get_scope(current_scope, global_scope);
|
||
if (scope != NULL) {
|
||
scope->define_extension_type(et);
|
||
}
|
||
(yyval.u.type) = et;
|
||
}
|
||
}
|
||
break;
|
||
|
||
case 203:
|
||
#line 1534 "cppBison.yxx"
|
||
{
|
||
CPPType *type = (yyvsp[0].u.identifier)->find_type(current_scope, global_scope, false, current_lexer);
|
||
if (type != NULL) {
|
||
(yyval.u.type) = type;
|
||
} else {
|
||
CPPExtensionType *et =
|
||
CPPType::new_type(new CPPExtensionType((yyvsp[-1].u.extension_enum), (yyvsp[0].u.identifier), current_scope, (yylsp[-1]).file))
|
||
->as_extension_type();
|
||
CPPScope *scope = (yyvsp[0].u.identifier)->get_scope(current_scope, global_scope);
|
||
if (scope != NULL) {
|
||
scope->define_extension_type(et);
|
||
}
|
||
(yyval.u.type) = et;
|
||
}
|
||
}
|
||
break;
|
||
|
||
case 204:
|
||
#line 1553 "cppBison.yxx"
|
||
{
|
||
(yyval.u.decl) = CPPType::new_type((yyvsp[0].u.simple_type));
|
||
}
|
||
break;
|
||
|
||
case 205:
|
||
#line 1557 "cppBison.yxx"
|
||
{
|
||
(yyval.u.decl) = (yyvsp[0].u.identifier)->find_type(current_scope, global_scope, false, current_lexer);
|
||
assert((yyval.u.decl) != NULL);
|
||
}
|
||
break;
|
||
|
||
case 206:
|
||
#line 1562 "cppBison.yxx"
|
||
{
|
||
(yyval.u.decl) = CPPType::new_type(new CPPTBDType((yyvsp[0].u.identifier)));
|
||
}
|
||
break;
|
||
|
||
case 207:
|
||
#line 1566 "cppBison.yxx"
|
||
{
|
||
(yyval.u.decl) = CPPType::new_type((yyvsp[0].u.struct_type));
|
||
}
|
||
break;
|
||
|
||
case 208:
|
||
#line 1570 "cppBison.yxx"
|
||
{
|
||
(yyval.u.decl) = new CPPTypeDeclaration(CPPType::new_type((yyvsp[0].u.struct_type)));
|
||
}
|
||
break;
|
||
|
||
case 209:
|
||
#line 1574 "cppBison.yxx"
|
||
{
|
||
(yyval.u.decl) = CPPType::new_type((yyvsp[0].u.enum_type));
|
||
}
|
||
break;
|
||
|
||
case 210:
|
||
#line 1578 "cppBison.yxx"
|
||
{
|
||
(yyval.u.decl) = new CPPTypeDeclaration(CPPType::new_type((yyvsp[0].u.enum_type)));
|
||
}
|
||
break;
|
||
|
||
case 211:
|
||
#line 1582 "cppBison.yxx"
|
||
{
|
||
CPPType *type = (yyvsp[0].u.identifier)->find_type(current_scope, global_scope, false, current_lexer);
|
||
if (type != NULL) {
|
||
(yyval.u.decl) = type;
|
||
} else {
|
||
CPPExtensionType *et =
|
||
CPPType::new_type(new CPPExtensionType((yyvsp[-1].u.extension_enum), (yyvsp[0].u.identifier), current_scope, (yylsp[-1]).file))
|
||
->as_extension_type();
|
||
CPPScope *scope = (yyvsp[0].u.identifier)->get_scope(current_scope, global_scope);
|
||
if (scope != NULL) {
|
||
scope->define_extension_type(et);
|
||
}
|
||
(yyval.u.decl) = et;
|
||
}
|
||
}
|
||
break;
|
||
|
||
case 212:
|
||
#line 1598 "cppBison.yxx"
|
||
{
|
||
CPPType *type = (yyvsp[0].u.identifier)->find_type(current_scope, global_scope, false, current_lexer);
|
||
if (type != NULL) {
|
||
(yyval.u.decl) = type;
|
||
} else {
|
||
CPPExtensionType *et =
|
||
CPPType::new_type(new CPPExtensionType((yyvsp[-1].u.extension_enum), (yyvsp[0].u.identifier), current_scope, (yylsp[-1]).file))
|
||
->as_extension_type();
|
||
CPPScope *scope = (yyvsp[0].u.identifier)->get_scope(current_scope, global_scope);
|
||
if (scope != NULL) {
|
||
scope->define_extension_type(et);
|
||
}
|
||
(yyval.u.decl) = et;
|
||
}
|
||
}
|
||
break;
|
||
|
||
case 213:
|
||
#line 1617 "cppBison.yxx"
|
||
{
|
||
(yyval.u.type) = CPPType::new_type((yyvsp[0].u.simple_type));
|
||
}
|
||
break;
|
||
|
||
case 214:
|
||
#line 1621 "cppBison.yxx"
|
||
{
|
||
(yyval.u.type) = (yyvsp[0].u.identifier)->find_type(current_scope, global_scope, false, current_lexer);
|
||
assert((yyval.u.type) != NULL);
|
||
}
|
||
break;
|
||
|
||
case 215:
|
||
#line 1626 "cppBison.yxx"
|
||
{
|
||
(yyval.u.type) = CPPType::new_type(new CPPTBDType((yyvsp[0].u.identifier)));
|
||
}
|
||
break;
|
||
|
||
case 216:
|
||
#line 1630 "cppBison.yxx"
|
||
{
|
||
CPPType *type = (yyvsp[0].u.identifier)->find_type(current_scope, global_scope, false, current_lexer);
|
||
if (type != NULL) {
|
||
(yyval.u.type) = type;
|
||
} else {
|
||
CPPExtensionType *et =
|
||
CPPType::new_type(new CPPExtensionType((yyvsp[-1].u.extension_enum), (yyvsp[0].u.identifier), current_scope, (yylsp[-1]).file))
|
||
->as_extension_type();
|
||
CPPScope *scope = (yyvsp[0].u.identifier)->get_scope(current_scope, global_scope);
|
||
if (scope != NULL) {
|
||
scope->define_extension_type(et);
|
||
}
|
||
(yyval.u.type) = et;
|
||
}
|
||
}
|
||
break;
|
||
|
||
case 217:
|
||
#line 1646 "cppBison.yxx"
|
||
{
|
||
CPPType *type = (yyvsp[0].u.identifier)->find_type(current_scope, global_scope, false, current_lexer);
|
||
if (type != NULL) {
|
||
(yyval.u.type) = type;
|
||
} else {
|
||
CPPExtensionType *et =
|
||
CPPType::new_type(new CPPExtensionType((yyvsp[-1].u.extension_enum), (yyvsp[0].u.identifier), current_scope, (yylsp[-1]).file))
|
||
->as_extension_type();
|
||
CPPScope *scope = (yyvsp[0].u.identifier)->get_scope(current_scope, global_scope);
|
||
if (scope != NULL) {
|
||
scope->define_extension_type(et);
|
||
}
|
||
(yyval.u.type) = et;
|
||
}
|
||
}
|
||
break;
|
||
|
||
case 218:
|
||
#line 1665 "cppBison.yxx"
|
||
{
|
||
CPPInstance *inst = new CPPInstance((yyvsp[-1].u.type), (yyvsp[0].u.inst_ident), 0, (yylsp[-1]).file);
|
||
(yyval.u.type) = inst->_type;
|
||
delete inst;
|
||
}
|
||
break;
|
||
|
||
case 219:
|
||
#line 1671 "cppBison.yxx"
|
||
{
|
||
(yyvsp[0].u.inst_ident)->add_modifier(IIT_const);
|
||
CPPInstance *inst = new CPPInstance((yyvsp[-1].u.type), (yyvsp[0].u.inst_ident), 0, (yylsp[-2]).file);
|
||
(yyval.u.type) = inst->_type;
|
||
delete inst;
|
||
}
|
||
break;
|
||
|
||
case 220:
|
||
#line 1681 "cppBison.yxx"
|
||
{
|
||
CPPVisibility starting_vis =
|
||
((yyvsp[-1].u.extension_enum) == CPPExtensionType::T_class) ? V_private : V_public;
|
||
|
||
CPPScope *new_scope = new CPPScope(current_scope, CPPNameComponent("anon"),
|
||
starting_vis);
|
||
CPPStructType *st = new CPPStructType((yyvsp[-1].u.extension_enum), NULL, current_scope,
|
||
new_scope, (yylsp[-1]).file);
|
||
new_scope->set_struct_type(st);
|
||
|
||
push_scope(new_scope);
|
||
push_struct(st);
|
||
}
|
||
break;
|
||
|
||
case 221:
|
||
#line 1695 "cppBison.yxx"
|
||
{
|
||
(yyval.u.struct_type) = current_struct;
|
||
current_struct->_incomplete = false;
|
||
pop_struct();
|
||
pop_scope();
|
||
}
|
||
break;
|
||
|
||
case 222:
|
||
#line 1705 "cppBison.yxx"
|
||
{
|
||
CPPVisibility starting_vis =
|
||
((yyvsp[-1].u.extension_enum) == CPPExtensionType::T_class) ? V_private : V_public;
|
||
|
||
CPPScope *scope = (yyvsp[0].u.identifier)->get_scope(current_scope, global_scope, current_lexer);
|
||
if (scope == NULL) {
|
||
scope = current_scope;
|
||
}
|
||
CPPScope *new_scope = new CPPScope(scope, (yyvsp[0].u.identifier)->_names.back(),
|
||
starting_vis);
|
||
|
||
CPPStructType *st = new CPPStructType((yyvsp[-1].u.extension_enum), (yyvsp[0].u.identifier), current_scope,
|
||
new_scope, (yylsp[-1]).file);
|
||
new_scope->set_struct_type(st);
|
||
current_scope->define_extension_type(st);
|
||
|
||
push_scope(new_scope);
|
||
push_struct(st);
|
||
}
|
||
break;
|
||
|
||
case 223:
|
||
#line 1725 "cppBison.yxx"
|
||
{
|
||
(yyval.u.struct_type) = current_struct;
|
||
current_struct->_incomplete = false;
|
||
pop_struct();
|
||
pop_scope();
|
||
}
|
||
break;
|
||
|
||
case 228:
|
||
#line 1745 "cppBison.yxx"
|
||
{
|
||
current_struct->append_derivation((yyvsp[0].u.type), V_public, false);
|
||
}
|
||
break;
|
||
|
||
case 229:
|
||
#line 1749 "cppBison.yxx"
|
||
{
|
||
current_struct->append_derivation((yyvsp[0].u.type), V_protected, false);
|
||
}
|
||
break;
|
||
|
||
case 230:
|
||
#line 1753 "cppBison.yxx"
|
||
{
|
||
current_struct->append_derivation((yyvsp[0].u.type), V_private, false);
|
||
}
|
||
break;
|
||
|
||
case 231:
|
||
#line 1757 "cppBison.yxx"
|
||
{
|
||
current_struct->append_derivation((yyvsp[0].u.type), V_public, true);
|
||
}
|
||
break;
|
||
|
||
case 232:
|
||
#line 1761 "cppBison.yxx"
|
||
{
|
||
current_struct->append_derivation((yyvsp[0].u.type), V_protected, true);
|
||
}
|
||
break;
|
||
|
||
case 233:
|
||
#line 1765 "cppBison.yxx"
|
||
{
|
||
current_struct->append_derivation((yyvsp[0].u.type), V_private, true);
|
||
}
|
||
break;
|
||
|
||
case 234:
|
||
#line 1769 "cppBison.yxx"
|
||
{
|
||
current_struct->append_derivation((yyvsp[0].u.type), V_public, true);
|
||
}
|
||
break;
|
||
|
||
case 235:
|
||
#line 1773 "cppBison.yxx"
|
||
{
|
||
current_struct->append_derivation((yyvsp[0].u.type), V_protected, true);
|
||
}
|
||
break;
|
||
|
||
case 236:
|
||
#line 1777 "cppBison.yxx"
|
||
{
|
||
current_struct->append_derivation((yyvsp[0].u.type), V_private, true);
|
||
}
|
||
break;
|
||
|
||
case 237:
|
||
#line 1784 "cppBison.yxx"
|
||
{
|
||
current_enum = new CPPEnumType(NULL, current_scope, (yylsp[-1]).file);
|
||
}
|
||
break;
|
||
|
||
case 238:
|
||
#line 1788 "cppBison.yxx"
|
||
{
|
||
(yyval.u.enum_type) = current_enum;
|
||
current_enum = NULL;
|
||
}
|
||
break;
|
||
|
||
case 239:
|
||
#line 1796 "cppBison.yxx"
|
||
{
|
||
current_enum = new CPPEnumType((yyvsp[-1].u.identifier), current_scope, (yylsp[-2]).file);
|
||
}
|
||
break;
|
||
|
||
case 240:
|
||
#line 1800 "cppBison.yxx"
|
||
{
|
||
(yyval.u.enum_type) = current_enum;
|
||
current_enum = NULL;
|
||
}
|
||
break;
|
||
|
||
case 244:
|
||
#line 1814 "cppBison.yxx"
|
||
{
|
||
assert(current_enum != NULL);
|
||
current_enum->add_element((yyvsp[0].u.identifier)->get_simple_name(), current_scope);
|
||
}
|
||
break;
|
||
|
||
case 245:
|
||
#line 1819 "cppBison.yxx"
|
||
{
|
||
assert(current_enum != NULL);
|
||
current_enum->add_element((yyvsp[-2].u.identifier)->get_simple_name(), current_scope, (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 246:
|
||
#line 1824 "cppBison.yxx"
|
||
{
|
||
assert(current_enum != NULL);
|
||
current_enum->add_element((yyvsp[0].u.identifier)->get_simple_name(), current_scope);
|
||
}
|
||
break;
|
||
|
||
case 247:
|
||
#line 1829 "cppBison.yxx"
|
||
{
|
||
assert(current_enum != NULL);
|
||
current_enum->add_element((yyvsp[-2].u.identifier)->get_simple_name(), current_scope, (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 248:
|
||
#line 1837 "cppBison.yxx"
|
||
{
|
||
(yyval.u.extension_enum) = CPPExtensionType::T_enum;
|
||
}
|
||
break;
|
||
|
||
case 249:
|
||
#line 1844 "cppBison.yxx"
|
||
{
|
||
(yyval.u.extension_enum) = CPPExtensionType::T_class;
|
||
}
|
||
break;
|
||
|
||
case 250:
|
||
#line 1848 "cppBison.yxx"
|
||
{
|
||
(yyval.u.extension_enum) = CPPExtensionType::T_struct;
|
||
}
|
||
break;
|
||
|
||
case 251:
|
||
#line 1852 "cppBison.yxx"
|
||
{
|
||
(yyval.u.extension_enum) = CPPExtensionType::T_union;
|
||
}
|
||
break;
|
||
|
||
case 252:
|
||
#line 1859 "cppBison.yxx"
|
||
{
|
||
CPPScope *scope = (yyvsp[-1].u.identifier)->find_scope(current_scope, global_scope, current_lexer);
|
||
if (scope == NULL) {
|
||
// This must be a new namespace declaration.
|
||
CPPScope *parent_scope =
|
||
(yyvsp[-1].u.identifier)->get_scope(current_scope, global_scope, current_lexer);
|
||
if (parent_scope == NULL) {
|
||
parent_scope = current_scope;
|
||
}
|
||
scope = new CPPScope(parent_scope, (yyvsp[-1].u.identifier)->_names.back(), V_public);
|
||
}
|
||
|
||
CPPNamespace *nspace = new CPPNamespace((yyvsp[-1].u.identifier), scope, (yylsp[-2]).file);
|
||
current_scope->add_declaration(nspace, global_scope, current_lexer, (yylsp[-2]));
|
||
current_scope->define_namespace(nspace);
|
||
push_scope(scope);
|
||
}
|
||
break;
|
||
|
||
case 253:
|
||
#line 1877 "cppBison.yxx"
|
||
{
|
||
pop_scope();
|
||
}
|
||
break;
|
||
|
||
case 255:
|
||
#line 1885 "cppBison.yxx"
|
||
{
|
||
CPPUsing *using_decl = new CPPUsing((yyvsp[0].u.identifier), false, (yylsp[-1]).file);
|
||
current_scope->add_declaration(using_decl, global_scope, current_lexer, (yylsp[-1]));
|
||
current_scope->add_using(using_decl, global_scope, current_lexer);
|
||
}
|
||
break;
|
||
|
||
case 256:
|
||
#line 1891 "cppBison.yxx"
|
||
{
|
||
CPPUsing *using_decl = new CPPUsing((yyvsp[0].u.identifier), true, (yylsp[-2]).file);
|
||
current_scope->add_declaration(using_decl, global_scope, current_lexer, (yylsp[-2]));
|
||
current_scope->add_using(using_decl, global_scope, current_lexer);
|
||
}
|
||
break;
|
||
|
||
case 260:
|
||
#line 1906 "cppBison.yxx"
|
||
{
|
||
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_bool);
|
||
}
|
||
break;
|
||
|
||
case 261:
|
||
#line 1910 "cppBison.yxx"
|
||
{
|
||
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_char);
|
||
}
|
||
break;
|
||
|
||
case 262:
|
||
#line 1914 "cppBison.yxx"
|
||
{
|
||
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_wchar_t);
|
||
}
|
||
break;
|
||
|
||
case 263:
|
||
#line 1918 "cppBison.yxx"
|
||
{
|
||
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_int,
|
||
CPPSimpleType::F_short);
|
||
}
|
||
break;
|
||
|
||
case 264:
|
||
#line 1923 "cppBison.yxx"
|
||
{
|
||
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_int,
|
||
CPPSimpleType::F_long);
|
||
}
|
||
break;
|
||
|
||
case 265:
|
||
#line 1928 "cppBison.yxx"
|
||
{
|
||
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_int,
|
||
CPPSimpleType::F_longlong);
|
||
}
|
||
break;
|
||
|
||
case 266:
|
||
#line 1933 "cppBison.yxx"
|
||
{
|
||
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_int,
|
||
CPPSimpleType::F_unsigned);
|
||
}
|
||
break;
|
||
|
||
case 267:
|
||
#line 1938 "cppBison.yxx"
|
||
{
|
||
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_int,
|
||
CPPSimpleType::F_signed);
|
||
}
|
||
break;
|
||
|
||
case 268:
|
||
#line 1943 "cppBison.yxx"
|
||
{
|
||
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_int);
|
||
}
|
||
break;
|
||
|
||
case 269:
|
||
#line 1947 "cppBison.yxx"
|
||
{
|
||
(yyval.u.simple_type) = (yyvsp[0].u.simple_type);
|
||
(yyval.u.simple_type)->_flags |= CPPSimpleType::F_short;
|
||
}
|
||
break;
|
||
|
||
case 270:
|
||
#line 1952 "cppBison.yxx"
|
||
{
|
||
(yyval.u.simple_type) = (yyvsp[0].u.simple_type);
|
||
if ((yyval.u.simple_type)->_flags & CPPSimpleType::F_long) {
|
||
(yyval.u.simple_type)->_flags |= CPPSimpleType::F_longlong;
|
||
} else {
|
||
(yyval.u.simple_type)->_flags |= CPPSimpleType::F_long;
|
||
}
|
||
}
|
||
break;
|
||
|
||
case 271:
|
||
#line 1961 "cppBison.yxx"
|
||
{
|
||
(yyval.u.simple_type) = (yyvsp[0].u.simple_type);
|
||
(yyval.u.simple_type)->_flags |= CPPSimpleType::F_unsigned;
|
||
}
|
||
break;
|
||
|
||
case 272:
|
||
#line 1966 "cppBison.yxx"
|
||
{
|
||
(yyval.u.simple_type) = (yyvsp[0].u.simple_type);
|
||
(yyval.u.simple_type)->_flags |= CPPSimpleType::F_signed;
|
||
}
|
||
break;
|
||
|
||
case 273:
|
||
#line 1974 "cppBison.yxx"
|
||
{
|
||
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_float);
|
||
}
|
||
break;
|
||
|
||
case 274:
|
||
#line 1978 "cppBison.yxx"
|
||
{
|
||
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_float,
|
||
CPPSimpleType::F_long);
|
||
}
|
||
break;
|
||
|
||
case 275:
|
||
#line 1983 "cppBison.yxx"
|
||
{
|
||
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_double);
|
||
}
|
||
break;
|
||
|
||
case 276:
|
||
#line 1987 "cppBison.yxx"
|
||
{
|
||
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_float,
|
||
CPPSimpleType::F_longlong);
|
||
}
|
||
break;
|
||
|
||
case 277:
|
||
#line 1992 "cppBison.yxx"
|
||
{
|
||
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_double,
|
||
CPPSimpleType::F_long);
|
||
}
|
||
break;
|
||
|
||
case 278:
|
||
#line 2000 "cppBison.yxx"
|
||
{
|
||
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_void);
|
||
}
|
||
break;
|
||
|
||
case 279:
|
||
#line 2009 "cppBison.yxx"
|
||
{
|
||
current_lexer->_resolve_identifiers = false;
|
||
}
|
||
break;
|
||
|
||
case 280:
|
||
#line 2013 "cppBison.yxx"
|
||
{
|
||
current_lexer->_resolve_identifiers = true;
|
||
}
|
||
break;
|
||
|
||
case 283:
|
||
#line 2025 "cppBison.yxx"
|
||
{
|
||
}
|
||
break;
|
||
|
||
case 284:
|
||
#line 2028 "cppBison.yxx"
|
||
{
|
||
}
|
||
break;
|
||
|
||
case 285:
|
||
#line 2031 "cppBison.yxx"
|
||
{
|
||
}
|
||
break;
|
||
|
||
case 286:
|
||
#line 2034 "cppBison.yxx"
|
||
{
|
||
}
|
||
break;
|
||
|
||
case 287:
|
||
#line 2037 "cppBison.yxx"
|
||
{
|
||
}
|
||
break;
|
||
|
||
case 288:
|
||
#line 2040 "cppBison.yxx"
|
||
{
|
||
}
|
||
break;
|
||
|
||
case 289:
|
||
#line 2043 "cppBison.yxx"
|
||
{
|
||
}
|
||
break;
|
||
|
||
case 290:
|
||
#line 2046 "cppBison.yxx"
|
||
{
|
||
}
|
||
break;
|
||
|
||
case 364:
|
||
#line 2066 "cppBison.yxx"
|
||
{
|
||
}
|
||
break;
|
||
|
||
case 388:
|
||
#line 2075 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = (CPPExpression *)NULL;
|
||
}
|
||
break;
|
||
|
||
case 389:
|
||
#line 2079 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = (yyvsp[0].u.expr);
|
||
}
|
||
break;
|
||
|
||
case 390:
|
||
#line 2086 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = (CPPExpression *)NULL;
|
||
}
|
||
break;
|
||
|
||
case 391:
|
||
#line 2090 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = (yyvsp[0].u.expr);
|
||
}
|
||
break;
|
||
|
||
case 392:
|
||
#line 2097 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = (yyvsp[0].u.expr);
|
||
}
|
||
break;
|
||
|
||
case 393:
|
||
#line 2101 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(',', (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 394:
|
||
#line 2108 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = (yyvsp[0].u.expr);
|
||
}
|
||
break;
|
||
|
||
case 395:
|
||
#line 2112 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(CPPExpression::typecast_op((yyvsp[-2].u.type), (yyvsp[0].u.expr)));
|
||
}
|
||
break;
|
||
|
||
case 396:
|
||
#line 2116 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(CPPExpression::typecast_op((yyvsp[-4].u.type), (yyvsp[-1].u.expr)));
|
||
}
|
||
break;
|
||
|
||
case 397:
|
||
#line 2120 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(CPPExpression::typecast_op((yyvsp[-4].u.type), (yyvsp[-1].u.expr)));
|
||
}
|
||
break;
|
||
|
||
case 398:
|
||
#line 2124 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(CPPExpression::sizeof_func((yyvsp[-1].u.type)));
|
||
}
|
||
break;
|
||
|
||
case 399:
|
||
#line 2128 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(UNARY_NOT, (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 400:
|
||
#line 2132 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(UNARY_NEGATE, (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 401:
|
||
#line 2136 "cppBison.yxx"
|
||
{
|
||
if ((yyvsp[0].u.expr)->_type == CPPExpression::T_integer) {
|
||
(yyval.u.expr) = (yyvsp[0].u.expr);
|
||
(yyval.u.expr)->_u._integer = -(yyval.u.expr)->_u._integer;
|
||
} else if ((yyvsp[0].u.expr)->_type == CPPExpression::T_real) {
|
||
(yyval.u.expr) = (yyvsp[0].u.expr);
|
||
(yyval.u.expr)->_u._real = -(yyval.u.expr)->_u._real;
|
||
} else {
|
||
(yyval.u.expr) = new CPPExpression(UNARY_MINUS, (yyvsp[0].u.expr));
|
||
}
|
||
}
|
||
break;
|
||
|
||
case 402:
|
||
#line 2148 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(UNARY_STAR, (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 403:
|
||
#line 2152 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(UNARY_REF, (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 404:
|
||
#line 2156 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression('*', (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 405:
|
||
#line 2160 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression('/', (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 406:
|
||
#line 2164 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression('%', (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 407:
|
||
#line 2168 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression('+', (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 408:
|
||
#line 2172 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression('-', (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 409:
|
||
#line 2176 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression('|', (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 410:
|
||
#line 2180 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression('&', (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 411:
|
||
#line 2184 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(OROR, (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 412:
|
||
#line 2188 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(ANDAND, (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 413:
|
||
#line 2192 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(EQCOMPARE, (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 414:
|
||
#line 2196 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(NECOMPARE, (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 415:
|
||
#line 2200 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(LECOMPARE, (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 416:
|
||
#line 2204 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(GECOMPARE, (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 417:
|
||
#line 2208 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(LSHIFT, (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 418:
|
||
#line 2212 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(RSHIFT, (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 419:
|
||
#line 2216 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression('?', (yyvsp[-4].u.expr), (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 420:
|
||
#line 2220 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression('[', (yyvsp[-3].u.expr), (yyvsp[-1].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 421:
|
||
#line 2224 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression('f', (yyvsp[-3].u.expr), (yyvsp[-1].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 422:
|
||
#line 2228 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression('f', (yyvsp[-2].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 423:
|
||
#line 2232 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression('.', (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 424:
|
||
#line 2236 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(POINTSAT, (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 425:
|
||
#line 2240 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = (yyvsp[-1].u.expr);
|
||
}
|
||
break;
|
||
|
||
case 426:
|
||
#line 2248 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = (yyvsp[0].u.expr);
|
||
}
|
||
break;
|
||
|
||
case 427:
|
||
#line 2252 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(CPPExpression::typecast_op((yyvsp[-2].u.type), (yyvsp[0].u.expr)));
|
||
}
|
||
break;
|
||
|
||
case 428:
|
||
#line 2256 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(CPPExpression::typecast_op((yyvsp[-4].u.type), (yyvsp[-1].u.expr)));
|
||
}
|
||
break;
|
||
|
||
case 429:
|
||
#line 2260 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(CPPExpression::typecast_op((yyvsp[-4].u.type), (yyvsp[-1].u.expr)));
|
||
}
|
||
break;
|
||
|
||
case 430:
|
||
#line 2264 "cppBison.yxx"
|
||
{
|
||
// A constructor call.
|
||
CPPType *type = (yyvsp[-3].u.identifier)->find_type(current_scope, global_scope, false, current_lexer);
|
||
assert(type != NULL);
|
||
(yyval.u.expr) = new CPPExpression(CPPExpression::construct_op(type, (yyvsp[-1].u.expr)));
|
||
}
|
||
break;
|
||
|
||
case 431:
|
||
#line 2271 "cppBison.yxx"
|
||
{
|
||
CPPType *type =
|
||
CPPType::new_type(new CPPSimpleType(CPPSimpleType::T_int));
|
||
(yyval.u.expr) = new CPPExpression(CPPExpression::construct_op(type, (yyvsp[-1].u.expr)));
|
||
}
|
||
break;
|
||
|
||
case 432:
|
||
#line 2277 "cppBison.yxx"
|
||
{
|
||
CPPType *type =
|
||
CPPType::new_type(new CPPSimpleType(CPPSimpleType::T_char));
|
||
(yyval.u.expr) = new CPPExpression(CPPExpression::construct_op(type, (yyvsp[-1].u.expr)));
|
||
}
|
||
break;
|
||
|
||
case 433:
|
||
#line 2283 "cppBison.yxx"
|
||
{
|
||
CPPType *type =
|
||
CPPType::new_type(new CPPSimpleType(CPPSimpleType::T_wchar_t));
|
||
(yyval.u.expr) = new CPPExpression(CPPExpression::construct_op(type, (yyvsp[-1].u.expr)));
|
||
}
|
||
break;
|
||
|
||
case 434:
|
||
#line 2289 "cppBison.yxx"
|
||
{
|
||
CPPType *type =
|
||
CPPType::new_type(new CPPSimpleType(CPPSimpleType::T_bool));
|
||
(yyval.u.expr) = new CPPExpression(CPPExpression::construct_op(type, (yyvsp[-1].u.expr)));
|
||
}
|
||
break;
|
||
|
||
case 435:
|
||
#line 2295 "cppBison.yxx"
|
||
{
|
||
CPPType *type =
|
||
CPPType::new_type(new CPPSimpleType(CPPSimpleType::T_int,
|
||
CPPSimpleType::F_short));
|
||
(yyval.u.expr) = new CPPExpression(CPPExpression::construct_op(type, (yyvsp[-1].u.expr)));
|
||
}
|
||
break;
|
||
|
||
case 436:
|
||
#line 2302 "cppBison.yxx"
|
||
{
|
||
CPPType *type =
|
||
CPPType::new_type(new CPPSimpleType(CPPSimpleType::T_int,
|
||
CPPSimpleType::F_long));
|
||
(yyval.u.expr) = new CPPExpression(CPPExpression::construct_op(type, (yyvsp[-1].u.expr)));
|
||
}
|
||
break;
|
||
|
||
case 437:
|
||
#line 2309 "cppBison.yxx"
|
||
{
|
||
CPPType *type =
|
||
CPPType::new_type(new CPPSimpleType(CPPSimpleType::T_int,
|
||
CPPSimpleType::F_unsigned));
|
||
(yyval.u.expr) = new CPPExpression(CPPExpression::construct_op(type, (yyvsp[-1].u.expr)));
|
||
}
|
||
break;
|
||
|
||
case 438:
|
||
#line 2316 "cppBison.yxx"
|
||
{
|
||
CPPType *type =
|
||
CPPType::new_type(new CPPSimpleType(CPPSimpleType::T_int,
|
||
CPPSimpleType::F_signed));
|
||
(yyval.u.expr) = new CPPExpression(CPPExpression::construct_op(type, (yyvsp[-1].u.expr)));
|
||
}
|
||
break;
|
||
|
||
case 439:
|
||
#line 2323 "cppBison.yxx"
|
||
{
|
||
CPPType *type =
|
||
CPPType::new_type(new CPPSimpleType(CPPSimpleType::T_float));
|
||
(yyval.u.expr) = new CPPExpression(CPPExpression::construct_op(type, (yyvsp[-1].u.expr)));
|
||
}
|
||
break;
|
||
|
||
case 440:
|
||
#line 2329 "cppBison.yxx"
|
||
{
|
||
CPPType *type =
|
||
CPPType::new_type(new CPPSimpleType(CPPSimpleType::T_double));
|
||
(yyval.u.expr) = new CPPExpression(CPPExpression::construct_op(type, (yyvsp[-1].u.expr)));
|
||
}
|
||
break;
|
||
|
||
case 441:
|
||
#line 2335 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(CPPExpression::sizeof_func((yyvsp[-1].u.type)));
|
||
}
|
||
break;
|
||
|
||
case 442:
|
||
#line 2339 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(CPPExpression::new_op((yyvsp[0].u.type)));
|
||
}
|
||
break;
|
||
|
||
case 443:
|
||
#line 2343 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(CPPExpression::new_op((yyvsp[-3].u.type), (yyvsp[-1].u.expr)));
|
||
}
|
||
break;
|
||
|
||
case 444:
|
||
#line 2347 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(UNARY_NOT, (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 445:
|
||
#line 2351 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(UNARY_NEGATE, (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 446:
|
||
#line 2355 "cppBison.yxx"
|
||
{
|
||
if ((yyvsp[0].u.expr)->_type == CPPExpression::T_integer) {
|
||
(yyval.u.expr) = (yyvsp[0].u.expr);
|
||
(yyval.u.expr)->_u._integer = -(yyval.u.expr)->_u._integer;
|
||
} else if ((yyvsp[0].u.expr)->_type == CPPExpression::T_real) {
|
||
(yyval.u.expr) = (yyvsp[0].u.expr);
|
||
(yyval.u.expr)->_u._real = -(yyval.u.expr)->_u._real;
|
||
} else {
|
||
(yyval.u.expr) = new CPPExpression(UNARY_MINUS, (yyvsp[0].u.expr));
|
||
}
|
||
}
|
||
break;
|
||
|
||
case 447:
|
||
#line 2367 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(UNARY_STAR, (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 448:
|
||
#line 2371 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(UNARY_REF, (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 449:
|
||
#line 2375 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression('*', (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 450:
|
||
#line 2379 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression('/', (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 451:
|
||
#line 2383 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression('%', (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 452:
|
||
#line 2387 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression('+', (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 453:
|
||
#line 2391 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression('-', (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 454:
|
||
#line 2395 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression('|', (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 455:
|
||
#line 2399 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression('&', (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 456:
|
||
#line 2403 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(OROR, (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 457:
|
||
#line 2407 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(ANDAND, (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 458:
|
||
#line 2411 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(EQCOMPARE, (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 459:
|
||
#line 2415 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(NECOMPARE, (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 460:
|
||
#line 2419 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(LECOMPARE, (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 461:
|
||
#line 2423 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(GECOMPARE, (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 462:
|
||
#line 2427 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression('<', (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 463:
|
||
#line 2431 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression('>', (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 464:
|
||
#line 2435 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(LSHIFT, (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 465:
|
||
#line 2439 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(RSHIFT, (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 466:
|
||
#line 2443 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression('?', (yyvsp[-4].u.expr), (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 467:
|
||
#line 2447 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression('[', (yyvsp[-3].u.expr), (yyvsp[-1].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 468:
|
||
#line 2451 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression('f', (yyvsp[-3].u.expr), (yyvsp[-1].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 469:
|
||
#line 2455 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression('f', (yyvsp[-2].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 470:
|
||
#line 2459 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression('.', (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 471:
|
||
#line 2463 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(POINTSAT, (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 472:
|
||
#line 2467 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = (yyvsp[-1].u.expr);
|
||
}
|
||
break;
|
||
|
||
case 473:
|
||
#line 2474 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression((yyvsp[0].u.integer));
|
||
}
|
||
break;
|
||
|
||
case 474:
|
||
#line 2478 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(true);
|
||
}
|
||
break;
|
||
|
||
case 475:
|
||
#line 2482 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(false);
|
||
}
|
||
break;
|
||
|
||
case 476:
|
||
#line 2486 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression((yyvsp[0].u.integer));
|
||
}
|
||
break;
|
||
|
||
case 477:
|
||
#line 2490 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression((yyvsp[0].u.real));
|
||
}
|
||
break;
|
||
|
||
case 478:
|
||
#line 2494 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression((yyvsp[0].str));
|
||
}
|
||
break;
|
||
|
||
case 479:
|
||
#line 2498 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression((yyvsp[0].u.identifier), current_scope, global_scope, current_lexer);
|
||
}
|
||
break;
|
||
|
||
case 480:
|
||
#line 2512 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = (yyvsp[0].u.expr);
|
||
}
|
||
break;
|
||
|
||
case 481:
|
||
#line 2516 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(CPPExpression::typecast_op((yyvsp[-2].u.type), (yyvsp[0].u.expr)));
|
||
}
|
||
break;
|
||
|
||
case 482:
|
||
#line 2520 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(CPPExpression::typecast_op((yyvsp[-4].u.type), (yyvsp[-1].u.expr)));
|
||
}
|
||
break;
|
||
|
||
case 483:
|
||
#line 2524 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(CPPExpression::typecast_op((yyvsp[-4].u.type), (yyvsp[-1].u.expr)));
|
||
}
|
||
break;
|
||
|
||
case 484:
|
||
#line 2528 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(CPPExpression::sizeof_func((yyvsp[-1].u.type)));
|
||
}
|
||
break;
|
||
|
||
case 485:
|
||
#line 2532 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(CPPExpression::new_op((yyvsp[0].u.type)));
|
||
}
|
||
break;
|
||
|
||
case 486:
|
||
#line 2536 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(CPPExpression::new_op((yyvsp[-3].u.type), (yyvsp[-1].u.expr)));
|
||
}
|
||
break;
|
||
|
||
case 487:
|
||
#line 2540 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(UNARY_NOT, (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 488:
|
||
#line 2544 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(UNARY_NEGATE, (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 489:
|
||
#line 2548 "cppBison.yxx"
|
||
{
|
||
if ((yyvsp[0].u.expr)->_type == CPPExpression::T_integer) {
|
||
(yyval.u.expr) = (yyvsp[0].u.expr);
|
||
(yyval.u.expr)->_u._integer = -(yyval.u.expr)->_u._integer;
|
||
} else if ((yyvsp[0].u.expr)->_type == CPPExpression::T_real) {
|
||
(yyval.u.expr) = (yyvsp[0].u.expr);
|
||
(yyval.u.expr)->_u._real = -(yyval.u.expr)->_u._real;
|
||
} else {
|
||
(yyval.u.expr) = new CPPExpression(UNARY_MINUS, (yyvsp[0].u.expr));
|
||
}
|
||
}
|
||
break;
|
||
|
||
case 490:
|
||
#line 2560 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(UNARY_REF, (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 491:
|
||
#line 2564 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression('*', (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 492:
|
||
#line 2568 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression('/', (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 493:
|
||
#line 2572 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression('%', (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 494:
|
||
#line 2576 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression('+', (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 495:
|
||
#line 2580 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression('-', (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 496:
|
||
#line 2584 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression('|', (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 497:
|
||
#line 2588 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression('&', (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 498:
|
||
#line 2592 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(OROR, (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 499:
|
||
#line 2596 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(ANDAND, (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 500:
|
||
#line 2600 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(EQCOMPARE, (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 501:
|
||
#line 2604 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(NECOMPARE, (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 502:
|
||
#line 2608 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(LECOMPARE, (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 503:
|
||
#line 2612 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(GECOMPARE, (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 504:
|
||
#line 2616 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression('<', (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 505:
|
||
#line 2620 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression('>', (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 506:
|
||
#line 2624 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(LSHIFT, (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 507:
|
||
#line 2628 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(RSHIFT, (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 508:
|
||
#line 2632 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression('?', (yyvsp[-4].u.expr), (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 509:
|
||
#line 2636 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression('[', (yyvsp[-3].u.expr), (yyvsp[-1].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 510:
|
||
#line 2640 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression('f', (yyvsp[-3].u.expr), (yyvsp[-1].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 511:
|
||
#line 2644 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression('f', (yyvsp[-2].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 512:
|
||
#line 2648 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression('.', (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 513:
|
||
#line 2652 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(POINTSAT, (yyvsp[-2].u.expr), (yyvsp[0].u.expr));
|
||
}
|
||
break;
|
||
|
||
case 514:
|
||
#line 2656 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = (yyvsp[-1].u.expr);
|
||
}
|
||
break;
|
||
|
||
case 515:
|
||
#line 2663 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression((yyvsp[0].u.integer));
|
||
}
|
||
break;
|
||
|
||
case 516:
|
||
#line 2667 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(true);
|
||
}
|
||
break;
|
||
|
||
case 517:
|
||
#line 2671 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression(false);
|
||
}
|
||
break;
|
||
|
||
case 518:
|
||
#line 2675 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression((yyvsp[0].u.integer));
|
||
}
|
||
break;
|
||
|
||
case 519:
|
||
#line 2679 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression((yyvsp[0].u.real));
|
||
}
|
||
break;
|
||
|
||
case 520:
|
||
#line 2683 "cppBison.yxx"
|
||
{
|
||
(yyval.u.expr) = new CPPExpression((yyvsp[0].str));
|
||
}
|
||
break;
|
||
|
||
case 521:
|
||
#line 2690 "cppBison.yxx"
|
||
{
|
||
CPPType *type = (yyvsp[0].u.identifier)->find_type(current_scope, global_scope, true);
|
||
if (type == NULL) {
|
||
type = CPPType::new_type(new CPPTBDType((yyvsp[0].u.identifier)));
|
||
}
|
||
(yyval.u.type) = type;
|
||
}
|
||
break;
|
||
|
||
case 522:
|
||
#line 2698 "cppBison.yxx"
|
||
{
|
||
CPPType *type = (yyvsp[0].u.identifier)->find_type(current_scope, global_scope, true, current_lexer);
|
||
if (type == NULL) {
|
||
type = CPPType::new_type(new CPPTBDType((yyvsp[0].u.identifier)));
|
||
}
|
||
(yyval.u.type) = type;
|
||
}
|
||
break;
|
||
|
||
case 523:
|
||
#line 2706 "cppBison.yxx"
|
||
{
|
||
(yyval.u.type) = CPPType::new_type(new CPPTBDType((yyvsp[0].u.identifier)));
|
||
}
|
||
break;
|
||
|
||
case 524:
|
||
#line 2729 "cppBison.yxx"
|
||
{
|
||
(yyval.u.identifier) = (yyvsp[0].u.identifier);
|
||
}
|
||
break;
|
||
|
||
case 525:
|
||
#line 2733 "cppBison.yxx"
|
||
{
|
||
(yyval.u.identifier) = (yyvsp[0].u.identifier);
|
||
}
|
||
break;
|
||
|
||
case 526:
|
||
#line 2740 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = (yyvsp[0].str);
|
||
}
|
||
break;
|
||
|
||
case 527:
|
||
#line 2744 "cppBison.yxx"
|
||
{
|
||
(yyval.str) = (yyvsp[-1].str) + (yyvsp[0].str);
|
||
}
|
||
break;
|
||
|
||
|
||
default: break;
|
||
}
|
||
|
||
/* Line 1126 of yacc.c. */
|
||
#line 6139 "y.tab.c"
|
||
|
||
yyvsp -= yylen;
|
||
yyssp -= yylen;
|
||
yylsp -= yylen;
|
||
|
||
YY_STACK_PRINT (yyss, yyssp);
|
||
|
||
*++yyvsp = yyval;
|
||
*++yylsp = yyloc;
|
||
|
||
/* Now `shift' the result of the reduction. Determine what state
|
||
that goes to, based on the state we popped back to and the rule
|
||
number reduced by. */
|
||
|
||
yyn = yyr1[yyn];
|
||
|
||
yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
|
||
if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
|
||
yystate = yytable[yystate];
|
||
else
|
||
yystate = yydefgoto[yyn - YYNTOKENS];
|
||
|
||
goto yynewstate;
|
||
|
||
|
||
/*------------------------------------.
|
||
| yyerrlab -- here on detecting error |
|
||
`------------------------------------*/
|
||
yyerrlab:
|
||
/* If not already recovering from an error, report this error. */
|
||
if (!yyerrstatus)
|
||
{
|
||
++yynerrs;
|
||
#if YYERROR_VERBOSE
|
||
yyn = yypact[yystate];
|
||
|
||
if (YYPACT_NINF < yyn && yyn < YYLAST)
|
||
{
|
||
int yytype = YYTRANSLATE (yychar);
|
||
YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]);
|
||
YYSIZE_T yysize = yysize0;
|
||
YYSIZE_T yysize1;
|
||
int yysize_overflow = 0;
|
||
char *yymsg = 0;
|
||
# define YYERROR_VERBOSE_ARGS_MAXIMUM 5
|
||
char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
|
||
int yyx;
|
||
|
||
#if 0
|
||
/* This is so xgettext sees the translatable formats that are
|
||
constructed on the fly. */
|
||
YY_("syntax error, unexpected %s");
|
||
YY_("syntax error, unexpected %s, expecting %s");
|
||
YY_("syntax error, unexpected %s, expecting %s or %s");
|
||
YY_("syntax error, unexpected %s, expecting %s or %s or %s");
|
||
YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s");
|
||
#endif
|
||
char *yyfmt;
|
||
char const *yyf;
|
||
static char const yyunexpected[] = "syntax error, unexpected %s";
|
||
static char const yyexpecting[] = ", expecting %s";
|
||
static char const yyor[] = " or %s";
|
||
char yyformat[sizeof yyunexpected
|
||
+ sizeof yyexpecting - 1
|
||
+ ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2)
|
||
* (sizeof yyor - 1))];
|
||
char const *yyprefix = yyexpecting;
|
||
|
||
/* Start YYX at -YYN if negative to avoid negative indexes in
|
||
YYCHECK. */
|
||
int yyxbegin = yyn < 0 ? -yyn : 0;
|
||
|
||
/* Stay within bounds of both yycheck and yytname. */
|
||
int yychecklim = YYLAST - yyn;
|
||
int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
|
||
int yycount = 1;
|
||
|
||
yyarg[0] = yytname[yytype];
|
||
yyfmt = yystpcpy (yyformat, yyunexpected);
|
||
|
||
for (yyx = yyxbegin; yyx < yyxend; ++yyx)
|
||
if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
|
||
{
|
||
if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
|
||
{
|
||
yycount = 1;
|
||
yysize = yysize0;
|
||
yyformat[sizeof yyunexpected - 1] = '\0';
|
||
break;
|
||
}
|
||
yyarg[yycount++] = yytname[yyx];
|
||
yysize1 = yysize + yytnamerr (0, yytname[yyx]);
|
||
yysize_overflow |= yysize1 < yysize;
|
||
yysize = yysize1;
|
||
yyfmt = yystpcpy (yyfmt, yyprefix);
|
||
yyprefix = yyor;
|
||
}
|
||
|
||
yyf = YY_(yyformat);
|
||
yysize1 = yysize + yystrlen (yyf);
|
||
yysize_overflow |= yysize1 < yysize;
|
||
yysize = yysize1;
|
||
|
||
if (!yysize_overflow && yysize <= YYSTACK_ALLOC_MAXIMUM)
|
||
yymsg = (char *) YYSTACK_ALLOC (yysize);
|
||
if (yymsg)
|
||
{
|
||
/* Avoid sprintf, as that infringes on the user's name space.
|
||
Don't have undefined behavior even if the translation
|
||
produced a string with the wrong number of "%s"s. */
|
||
char *yyp = yymsg;
|
||
int yyi = 0;
|
||
while ((*yyp = *yyf))
|
||
{
|
||
if (*yyp == '%' && yyf[1] == 's' && yyi < yycount)
|
||
{
|
||
yyp += yytnamerr (yyp, yyarg[yyi++]);
|
||
yyf += 2;
|
||
}
|
||
else
|
||
{
|
||
yyp++;
|
||
yyf++;
|
||
}
|
||
}
|
||
yyerror (yymsg);
|
||
YYSTACK_FREE (yymsg);
|
||
}
|
||
else
|
||
{
|
||
yyerror (YY_("syntax error"));
|
||
goto yyexhaustedlab;
|
||
}
|
||
}
|
||
else
|
||
#endif /* YYERROR_VERBOSE */
|
||
yyerror (YY_("syntax error"));
|
||
}
|
||
|
||
yyerror_range[0] = yylloc;
|
||
|
||
if (yyerrstatus == 3)
|
||
{
|
||
/* If just tried and failed to reuse look-ahead token after an
|
||
error, discard it. */
|
||
|
||
if (yychar <= YYEOF)
|
||
{
|
||
/* Return failure if at end of input. */
|
||
if (yychar == YYEOF)
|
||
YYABORT;
|
||
}
|
||
else
|
||
{
|
||
yydestruct ("Error: discarding", yytoken, &yylval, &yylloc);
|
||
yychar = YYEMPTY;
|
||
}
|
||
}
|
||
|
||
/* Else will try to reuse look-ahead token after shifting the error
|
||
token. */
|
||
goto yyerrlab1;
|
||
|
||
|
||
/*---------------------------------------------------.
|
||
| yyerrorlab -- error raised explicitly by YYERROR. |
|
||
`---------------------------------------------------*/
|
||
yyerrorlab:
|
||
|
||
/* Pacify compilers like GCC when the user code never invokes
|
||
YYERROR and the label yyerrorlab therefore never appears in user
|
||
code. */
|
||
if (0)
|
||
goto yyerrorlab;
|
||
|
||
yyerror_range[0] = yylsp[1-yylen];
|
||
yylsp -= yylen;
|
||
yyvsp -= yylen;
|
||
yyssp -= yylen;
|
||
yystate = *yyssp;
|
||
goto yyerrlab1;
|
||
|
||
|
||
/*-------------------------------------------------------------.
|
||
| yyerrlab1 -- common code for both syntax error and YYERROR. |
|
||
`-------------------------------------------------------------*/
|
||
yyerrlab1:
|
||
yyerrstatus = 3; /* Each real token shifted decrements this. */
|
||
|
||
for (;;)
|
||
{
|
||
yyn = yypact[yystate];
|
||
if (yyn != YYPACT_NINF)
|
||
{
|
||
yyn += YYTERROR;
|
||
if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
|
||
{
|
||
yyn = yytable[yyn];
|
||
if (0 < yyn)
|
||
break;
|
||
}
|
||
}
|
||
|
||
/* Pop the current state because it cannot handle the error token. */
|
||
if (yyssp == yyss)
|
||
YYABORT;
|
||
|
||
yyerror_range[0] = *yylsp;
|
||
yydestruct ("Error: popping", yystos[yystate], yyvsp, yylsp);
|
||
YYPOPSTACK;
|
||
yystate = *yyssp;
|
||
YY_STACK_PRINT (yyss, yyssp);
|
||
}
|
||
|
||
if (yyn == YYFINAL)
|
||
YYACCEPT;
|
||
|
||
*++yyvsp = yylval;
|
||
|
||
yyerror_range[1] = yylloc;
|
||
/* Using YYLLOC is tempting, but would change the location of
|
||
the look-ahead. YYLOC is available though. */
|
||
YYLLOC_DEFAULT (yyloc, yyerror_range - 1, 2);
|
||
*++yylsp = yyloc;
|
||
|
||
/* Shift the error token. */
|
||
YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
|
||
|
||
yystate = yyn;
|
||
goto yynewstate;
|
||
|
||
|
||
/*-------------------------------------.
|
||
| yyacceptlab -- YYACCEPT comes here. |
|
||
`-------------------------------------*/
|
||
yyacceptlab:
|
||
yyresult = 0;
|
||
goto yyreturn;
|
||
|
||
/*-----------------------------------.
|
||
| yyabortlab -- YYABORT comes here. |
|
||
`-----------------------------------*/
|
||
yyabortlab:
|
||
yyresult = 1;
|
||
goto yyreturn;
|
||
|
||
#ifndef yyoverflow
|
||
/*-------------------------------------------------.
|
||
| yyexhaustedlab -- memory exhaustion comes here. |
|
||
`-------------------------------------------------*/
|
||
yyexhaustedlab:
|
||
yyerror (YY_("memory exhausted"));
|
||
yyresult = 2;
|
||
/* Fall through. */
|
||
#endif
|
||
|
||
yyreturn:
|
||
if (yychar != YYEOF && yychar != YYEMPTY)
|
||
yydestruct ("Cleanup: discarding lookahead",
|
||
yytoken, &yylval, &yylloc);
|
||
while (yyssp != yyss)
|
||
{
|
||
yydestruct ("Cleanup: popping",
|
||
yystos[*yyssp], yyvsp, yylsp);
|
||
YYPOPSTACK;
|
||
}
|
||
#ifndef yyoverflow
|
||
if (yyss != yyssa)
|
||
YYSTACK_FREE (yyss);
|
||
#endif
|
||
return yyresult;
|
||
}
|
||
|
||
|
||
|