mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 11:28:17 -04:00

Conflicts: .travis.yml dtool/src/cppparser/cppBison.cxx.prebuilt dtool/src/cppparser/cppBison.yxx makepanda/makepanda.py
7925 lines
286 KiB
Plaintext
7925 lines
286 KiB
Plaintext
/* A Bison parser, made by GNU Bison 2.7. */
|
|
|
|
/* Bison implementation for Yacc-like parsers in C
|
|
|
|
Copyright (C) 1984, 1989-1990, 2000-2012 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 3 of the License, 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, see <http://www.gnu.org/licenses/>. */
|
|
|
|
/* As a special exception, you may create a larger work that contains
|
|
part or all of the Bison parser skeleton and distribute that work
|
|
under terms of your choice, so long as that work isn't itself a
|
|
parser generator using the skeleton or a modified version thereof
|
|
as a parser skeleton. Alternatively, if you modify or redistribute
|
|
the parser skeleton itself, you may (at your option) remove this
|
|
special exception, which will cause the skeleton and the resulting
|
|
Bison output files to be licensed under the GNU General Public
|
|
License without this special exception.
|
|
|
|
This special exception was added by the Free Software Foundation in
|
|
version 2.2 of Bison. */
|
|
|
|
/* C LALR(1) parser skeleton 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.7"
|
|
|
|
/* Skeleton name. */
|
|
#define YYSKELETON_NAME "yacc.c"
|
|
|
|
/* Pure parsers. */
|
|
#define YYPURE 2
|
|
|
|
/* Push parsers. */
|
|
#define YYPUSH 0
|
|
|
|
/* Pull parsers. */
|
|
#define YYPULL 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
|
|
|
|
/* Copy the first part of user declarations. */
|
|
/* Line 371 of yacc.c */
|
|
#line 6 "dtool/src/cppparser/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 "cppMakeProperty.h"
|
|
#include "cppMakeSeq.h"
|
|
#include "cppParameterList.h"
|
|
#include "cppInstance.h"
|
|
#include "cppClassTemplateParameter.h"
|
|
#include "cppTemplateParameterList.h"
|
|
#include "cppInstanceIdentifier.h"
|
|
#include "cppTypedefType.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, current_lexer->_last_token_loc);
|
|
}
|
|
|
|
static void
|
|
yyerror(YYLTYPE *loc, const string &msg) {
|
|
current_lexer->error(msg, *loc);
|
|
}
|
|
|
|
static void
|
|
yyerror(const string &msg, YYLTYPE &loc) {
|
|
current_lexer->error(msg, loc);
|
|
}
|
|
|
|
static void
|
|
yywarning(const string &msg, YYLTYPE &loc) {
|
|
current_lexer->warning(msg, loc);
|
|
}
|
|
|
|
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();
|
|
}
|
|
|
|
|
|
/* Line 371 of yacc.c */
|
|
#line 270 "built/tmp/cppBison.yxx.c"
|
|
|
|
# ifndef YY_NULL
|
|
# if defined __cplusplus && 201103L <= __cplusplus
|
|
# define YY_NULL nullptr
|
|
# else
|
|
# define YY_NULL 0
|
|
# endif
|
|
# endif
|
|
|
|
/* Enabling verbose error messages. */
|
|
#ifdef YYERROR_VERBOSE
|
|
# undef YYERROR_VERBOSE
|
|
# define YYERROR_VERBOSE 1
|
|
#else
|
|
# define YYERROR_VERBOSE 0
|
|
#endif
|
|
|
|
/* In a future release of Bison, this section will be replaced
|
|
by #include "cppBison.yxx.h". */
|
|
#ifndef YY_CPPYY_BUILT_TMP_CPPBISON_YXX_H_INCLUDED
|
|
# define YY_CPPYY_BUILT_TMP_CPPBISON_YXX_H_INCLUDED
|
|
/* Enabling traces. */
|
|
#ifndef YYDEBUG
|
|
# define YYDEBUG 0
|
|
#endif
|
|
#if YYDEBUG
|
|
extern int cppyydebug;
|
|
#endif
|
|
|
|
/* 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,
|
|
SIMPLE_STRING = 261,
|
|
SIMPLE_IDENTIFIER = 262,
|
|
STRING_LITERAL = 263,
|
|
CUSTOM_LITERAL = 264,
|
|
IDENTIFIER = 265,
|
|
TYPENAME_IDENTIFIER = 266,
|
|
SCOPING = 267,
|
|
TYPEDEFNAME = 268,
|
|
ELLIPSIS = 269,
|
|
OROR = 270,
|
|
ANDAND = 271,
|
|
EQCOMPARE = 272,
|
|
NECOMPARE = 273,
|
|
LECOMPARE = 274,
|
|
GECOMPARE = 275,
|
|
LSHIFT = 276,
|
|
RSHIFT = 277,
|
|
POINTSAT_STAR = 278,
|
|
DOT_STAR = 279,
|
|
UNARY = 280,
|
|
UNARY_NOT = 281,
|
|
UNARY_NEGATE = 282,
|
|
UNARY_MINUS = 283,
|
|
UNARY_STAR = 284,
|
|
UNARY_REF = 285,
|
|
POINTSAT = 286,
|
|
SCOPE = 287,
|
|
PLUSPLUS = 288,
|
|
MINUSMINUS = 289,
|
|
TIMESEQUAL = 290,
|
|
DIVIDEEQUAL = 291,
|
|
MODEQUAL = 292,
|
|
PLUSEQUAL = 293,
|
|
MINUSEQUAL = 294,
|
|
OREQUAL = 295,
|
|
ANDEQUAL = 296,
|
|
XOREQUAL = 297,
|
|
LSHIFTEQUAL = 298,
|
|
RSHIFTEQUAL = 299,
|
|
KW_ALIGNAS = 300,
|
|
KW_ALIGNOF = 301,
|
|
KW_AUTO = 302,
|
|
KW_BEGIN_PUBLISH = 303,
|
|
KW_BLOCKING = 304,
|
|
KW_BOOL = 305,
|
|
KW_CATCH = 306,
|
|
KW_CHAR = 307,
|
|
KW_CHAR16_T = 308,
|
|
KW_CHAR32_T = 309,
|
|
KW_CLASS = 310,
|
|
KW_CONST = 311,
|
|
KW_CONSTEXPR = 312,
|
|
KW_DECLTYPE = 313,
|
|
KW_DEFAULT = 314,
|
|
KW_DELETE = 315,
|
|
KW_DOUBLE = 316,
|
|
KW_DYNAMIC_CAST = 317,
|
|
KW_ELSE = 318,
|
|
KW_END_PUBLISH = 319,
|
|
KW_ENUM = 320,
|
|
KW_EXTENSION = 321,
|
|
KW_EXTERN = 322,
|
|
KW_EXPLICIT = 323,
|
|
KW_PUBLISHED = 324,
|
|
KW_FALSE = 325,
|
|
KW_FLOAT = 326,
|
|
KW_FRIEND = 327,
|
|
KW_FOR = 328,
|
|
KW_GOTO = 329,
|
|
KW_IF = 330,
|
|
KW_INLINE = 331,
|
|
KW_INT = 332,
|
|
KW_LONG = 333,
|
|
KW_LONGLONG = 334,
|
|
KW_MAKE_PROPERTY = 335,
|
|
KW_MAKE_SEQ = 336,
|
|
KW_MUTABLE = 337,
|
|
KW_NAMESPACE = 338,
|
|
KW_NEW = 339,
|
|
KW_NOEXCEPT = 340,
|
|
KW_NULLPTR = 341,
|
|
KW_OPERATOR = 342,
|
|
KW_PRIVATE = 343,
|
|
KW_PROTECTED = 344,
|
|
KW_PUBLIC = 345,
|
|
KW_REGISTER = 346,
|
|
KW_RETURN = 347,
|
|
KW_SHORT = 348,
|
|
KW_SIGNED = 349,
|
|
KW_SIZEOF = 350,
|
|
KW_STATIC = 351,
|
|
KW_STATIC_ASSERT = 352,
|
|
KW_STATIC_CAST = 353,
|
|
KW_STRUCT = 354,
|
|
KW_TEMPLATE = 355,
|
|
KW_THROW = 356,
|
|
KW_TRUE = 357,
|
|
KW_TRY = 358,
|
|
KW_TYPEDEF = 359,
|
|
KW_TYPENAME = 360,
|
|
KW_UNION = 361,
|
|
KW_UNSIGNED = 362,
|
|
KW_USING = 363,
|
|
KW_VIRTUAL = 364,
|
|
KW_VOID = 365,
|
|
KW_VOLATILE = 366,
|
|
KW_WCHAR_T = 367,
|
|
KW_WHILE = 368,
|
|
START_CPP = 369,
|
|
START_CONST_EXPR = 370,
|
|
START_TYPE = 371
|
|
};
|
|
#endif
|
|
/* Tokens. */
|
|
#define REAL 258
|
|
#define INTEGER 259
|
|
#define CHAR_TOK 260
|
|
#define SIMPLE_STRING 261
|
|
#define SIMPLE_IDENTIFIER 262
|
|
#define STRING_LITERAL 263
|
|
#define CUSTOM_LITERAL 264
|
|
#define IDENTIFIER 265
|
|
#define TYPENAME_IDENTIFIER 266
|
|
#define SCOPING 267
|
|
#define TYPEDEFNAME 268
|
|
#define ELLIPSIS 269
|
|
#define OROR 270
|
|
#define ANDAND 271
|
|
#define EQCOMPARE 272
|
|
#define NECOMPARE 273
|
|
#define LECOMPARE 274
|
|
#define GECOMPARE 275
|
|
#define LSHIFT 276
|
|
#define RSHIFT 277
|
|
#define POINTSAT_STAR 278
|
|
#define DOT_STAR 279
|
|
#define UNARY 280
|
|
#define UNARY_NOT 281
|
|
#define UNARY_NEGATE 282
|
|
#define UNARY_MINUS 283
|
|
#define UNARY_STAR 284
|
|
#define UNARY_REF 285
|
|
#define POINTSAT 286
|
|
#define SCOPE 287
|
|
#define PLUSPLUS 288
|
|
#define MINUSMINUS 289
|
|
#define TIMESEQUAL 290
|
|
#define DIVIDEEQUAL 291
|
|
#define MODEQUAL 292
|
|
#define PLUSEQUAL 293
|
|
#define MINUSEQUAL 294
|
|
#define OREQUAL 295
|
|
#define ANDEQUAL 296
|
|
#define XOREQUAL 297
|
|
#define LSHIFTEQUAL 298
|
|
#define RSHIFTEQUAL 299
|
|
#define KW_ALIGNAS 300
|
|
#define KW_ALIGNOF 301
|
|
#define KW_AUTO 302
|
|
#define KW_BEGIN_PUBLISH 303
|
|
#define KW_BLOCKING 304
|
|
#define KW_BOOL 305
|
|
#define KW_CATCH 306
|
|
#define KW_CHAR 307
|
|
#define KW_CHAR16_T 308
|
|
#define KW_CHAR32_T 309
|
|
#define KW_CLASS 310
|
|
#define KW_CONST 311
|
|
#define KW_CONSTEXPR 312
|
|
#define KW_DECLTYPE 313
|
|
#define KW_DEFAULT 314
|
|
#define KW_DELETE 315
|
|
#define KW_DOUBLE 316
|
|
#define KW_DYNAMIC_CAST 317
|
|
#define KW_ELSE 318
|
|
#define KW_END_PUBLISH 319
|
|
#define KW_ENUM 320
|
|
#define KW_EXTENSION 321
|
|
#define KW_EXTERN 322
|
|
#define KW_EXPLICIT 323
|
|
#define KW_PUBLISHED 324
|
|
#define KW_FALSE 325
|
|
#define KW_FLOAT 326
|
|
#define KW_FRIEND 327
|
|
#define KW_FOR 328
|
|
#define KW_GOTO 329
|
|
#define KW_IF 330
|
|
#define KW_INLINE 331
|
|
#define KW_INT 332
|
|
#define KW_LONG 333
|
|
#define KW_LONGLONG 334
|
|
#define KW_MAKE_PROPERTY 335
|
|
#define KW_MAKE_SEQ 336
|
|
#define KW_MUTABLE 337
|
|
#define KW_NAMESPACE 338
|
|
#define KW_NEW 339
|
|
#define KW_NOEXCEPT 340
|
|
#define KW_NULLPTR 341
|
|
#define KW_OPERATOR 342
|
|
#define KW_PRIVATE 343
|
|
#define KW_PROTECTED 344
|
|
#define KW_PUBLIC 345
|
|
#define KW_REGISTER 346
|
|
#define KW_RETURN 347
|
|
#define KW_SHORT 348
|
|
#define KW_SIGNED 349
|
|
#define KW_SIZEOF 350
|
|
#define KW_STATIC 351
|
|
#define KW_STATIC_ASSERT 352
|
|
#define KW_STATIC_CAST 353
|
|
#define KW_STRUCT 354
|
|
#define KW_TEMPLATE 355
|
|
#define KW_THROW 356
|
|
#define KW_TRUE 357
|
|
#define KW_TRY 358
|
|
#define KW_TYPEDEF 359
|
|
#define KW_TYPENAME 360
|
|
#define KW_UNION 361
|
|
#define KW_UNSIGNED 362
|
|
#define KW_USING 363
|
|
#define KW_VIRTUAL 364
|
|
#define KW_VOID 365
|
|
#define KW_VOLATILE 366
|
|
#define KW_WCHAR_T 367
|
|
#define KW_WHILE 368
|
|
#define START_CPP 369
|
|
#define START_CONST_EXPR 370
|
|
#define START_TYPE 371
|
|
|
|
|
|
|
|
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
|
|
|
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
|
|
# define YYSTYPE_IS_DECLARED 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
|
|
|
|
|
|
#ifdef YYPARSE_PARAM
|
|
#if defined __STDC__ || defined __cplusplus
|
|
int cppyyparse (void *YYPARSE_PARAM);
|
|
#else
|
|
int cppyyparse ();
|
|
#endif
|
|
#else /* ! YYPARSE_PARAM */
|
|
#if defined __STDC__ || defined __cplusplus
|
|
int cppyyparse (void);
|
|
#else
|
|
int cppyyparse ();
|
|
#endif
|
|
#endif /* ! YYPARSE_PARAM */
|
|
|
|
#endif /* !YY_CPPYY_BUILT_TMP_CPPBISON_YXX_H_INCLUDED */
|
|
|
|
/* Copy the second part of user declarations. */
|
|
|
|
/* Line 390 of yacc.c */
|
|
#line 579 "built/tmp/cppBison.yxx.c"
|
|
|
|
#ifdef short
|
|
# undef short
|
|
#endif
|
|
|
|
#ifdef YYTYPE_UINT8
|
|
typedef YYTYPE_UINT8 yytype_uint8;
|
|
#else
|
|
typedef unsigned char yytype_uint8;
|
|
#endif
|
|
|
|
#ifdef YYTYPE_INT8
|
|
typedef YYTYPE_INT8 yytype_int8;
|
|
#elif (defined __STDC__ || defined __C99__FUNC__ \
|
|
|| defined __cplusplus || defined _MSC_VER)
|
|
typedef signed char yytype_int8;
|
|
#else
|
|
typedef short int yytype_int8;
|
|
#endif
|
|
|
|
#ifdef YYTYPE_UINT16
|
|
typedef YYTYPE_UINT16 yytype_uint16;
|
|
#else
|
|
typedef unsigned short int yytype_uint16;
|
|
#endif
|
|
|
|
#ifdef YYTYPE_INT16
|
|
typedef YYTYPE_INT16 yytype_int16;
|
|
#else
|
|
typedef short int yytype_int16;
|
|
#endif
|
|
|
|
#ifndef YYSIZE_T
|
|
# ifdef __SIZE_TYPE__
|
|
# define YYSIZE_T __SIZE_TYPE__
|
|
# elif defined size_t
|
|
# define YYSIZE_T size_t
|
|
# elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
|
|
|| defined __cplusplus || defined _MSC_VER)
|
|
# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
|
|
# define YYSIZE_T size_t
|
|
# else
|
|
# define YYSIZE_T unsigned int
|
|
# endif
|
|
#endif
|
|
|
|
#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
|
|
|
|
#ifndef YY_
|
|
# if defined YYENABLE_NLS && 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
|
|
|
|
/* Suppress unused-variable warnings by "using" E. */
|
|
#if ! defined lint || defined __GNUC__
|
|
# define YYUSE(E) ((void) (E))
|
|
#else
|
|
# define YYUSE(E) /* empty */
|
|
#endif
|
|
|
|
/* Identity function, used to suppress warnings about constant conditions. */
|
|
#ifndef lint
|
|
# define YYID(N) (N)
|
|
#else
|
|
#if (defined __STDC__ || defined __C99__FUNC__ \
|
|
|| defined __cplusplus || defined _MSC_VER)
|
|
static int
|
|
YYID (int yyi)
|
|
#else
|
|
static int
|
|
YYID (yyi)
|
|
int yyi;
|
|
#endif
|
|
{
|
|
return yyi;
|
|
}
|
|
#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
|
|
# elif defined __BUILTIN_VA_ARG_INCR
|
|
# include <alloca.h> /* INFRINGES ON USER NAME SPACE */
|
|
# elif defined _AIX
|
|
# define YYSTACK_ALLOC __alloca
|
|
# elif defined _MSC_VER
|
|
# include <malloc.h> /* INFRINGES ON USER NAME SPACE */
|
|
# define alloca _alloca
|
|
# else
|
|
# define YYSTACK_ALLOC alloca
|
|
# if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
|
|
|| defined __cplusplus || defined _MSC_VER)
|
|
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
|
|
/* Use EXIT_SUCCESS as a witness for stdlib.h. */
|
|
# ifndef EXIT_SUCCESS
|
|
# define EXIT_SUCCESS 0
|
|
# endif
|
|
# endif
|
|
# endif
|
|
# endif
|
|
# endif
|
|
|
|
# ifdef YYSTACK_ALLOC
|
|
/* Pacify GCC's `empty if-body' warning. */
|
|
# define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (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 2006 */
|
|
# endif
|
|
# else
|
|
# define YYSTACK_ALLOC YYMALLOC
|
|
# define YYSTACK_FREE YYFREE
|
|
# ifndef YYSTACK_ALLOC_MAXIMUM
|
|
# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
|
|
# endif
|
|
# if (defined __cplusplus && ! defined EXIT_SUCCESS \
|
|
&& ! ((defined YYMALLOC || defined malloc) \
|
|
&& (defined YYFREE || defined free)))
|
|
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
|
|
# ifndef EXIT_SUCCESS
|
|
# define EXIT_SUCCESS 0
|
|
# endif
|
|
# endif
|
|
# ifndef YYMALLOC
|
|
# define YYMALLOC malloc
|
|
# if ! defined malloc && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
|
|
|| defined __cplusplus || defined _MSC_VER)
|
|
void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
|
|
# endif
|
|
# endif
|
|
# ifndef YYFREE
|
|
# define YYFREE free
|
|
# if ! defined free && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
|
|
|| defined __cplusplus || defined _MSC_VER)
|
|
void free (void *); /* INFRINGES ON USER NAME SPACE */
|
|
# endif
|
|
# 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
|
|
{
|
|
yytype_int16 yyss_alloc;
|
|
YYSTYPE yyvs_alloc;
|
|
YYLTYPE yyls_alloc;
|
|
};
|
|
|
|
/* 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 (yytype_int16) + sizeof (YYSTYPE) + sizeof (YYLTYPE)) \
|
|
+ 2 * YYSTACK_GAP_MAXIMUM)
|
|
|
|
# define YYCOPY_NEEDED 1
|
|
|
|
/* 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_alloc, Stack) \
|
|
do \
|
|
{ \
|
|
YYSIZE_T yynewbytes; \
|
|
YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
|
|
Stack = &yyptr->Stack_alloc; \
|
|
yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
|
|
yyptr += yynewbytes / sizeof (*yyptr); \
|
|
} \
|
|
while (YYID (0))
|
|
|
|
#endif
|
|
|
|
#if defined YYCOPY_NEEDED && YYCOPY_NEEDED
|
|
/* Copy COUNT objects from SRC to DST. The source and destination do
|
|
not overlap. */
|
|
# ifndef YYCOPY
|
|
# if defined __GNUC__ && 1 < __GNUC__
|
|
# define YYCOPY(Dst, Src, Count) \
|
|
__builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src)))
|
|
# else
|
|
# define YYCOPY(Dst, Src, Count) \
|
|
do \
|
|
{ \
|
|
YYSIZE_T yyi; \
|
|
for (yyi = 0; yyi < (Count); yyi++) \
|
|
(Dst)[yyi] = (Src)[yyi]; \
|
|
} \
|
|
while (YYID (0))
|
|
# endif
|
|
# endif
|
|
#endif /* !YYCOPY_NEEDED */
|
|
|
|
/* YYFINAL -- State number of the termination state. */
|
|
#define YYFINAL 79
|
|
/* YYLAST -- Last index in YYTABLE. */
|
|
#define YYLAST 4517
|
|
|
|
/* YYNTOKENS -- Number of terminals. */
|
|
#define YYNTOKENS 141
|
|
/* YYNNTS -- Number of nonterminals. */
|
|
#define YYNNTS 95
|
|
/* YYNRULES -- Number of rules. */
|
|
#define YYNRULES 589
|
|
/* YYNRULES -- Number of states. */
|
|
#define YYNSTATES 1082
|
|
|
|
/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
|
|
#define YYUNDEFTOK 2
|
|
#define YYMAXUTOK 371
|
|
|
|
#define YYTRANSLATE(YYX) \
|
|
((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
|
|
|
|
/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
|
|
static const yytype_uint8 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, 139, 2, 2, 2, 132, 125, 2,
|
|
135, 137, 130, 128, 118, 129, 134, 131, 2, 2,
|
|
2, 2, 2, 2, 2, 2, 2, 2, 120, 119,
|
|
126, 121, 127, 122, 2, 2, 2, 2, 2, 2,
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
2, 136, 2, 140, 124, 2, 2, 2, 2, 2,
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
2, 2, 2, 117, 123, 138, 133, 2, 2, 2,
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
2, 2, 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, 101, 102, 103, 104,
|
|
105, 106, 107, 108, 109, 110, 111, 112, 113, 114,
|
|
115, 116
|
|
};
|
|
|
|
#if YYDEBUG
|
|
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
|
|
YYRHS. */
|
|
static const yytype_uint16 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, 77, 87, 97,
|
|
104, 109, 110, 114, 116, 119, 123, 126, 129, 132,
|
|
135, 138, 141, 144, 147, 150, 153, 155, 159, 163,
|
|
164, 169, 170, 176, 179, 184, 187, 192, 193, 198,
|
|
199, 205, 209, 212, 217, 220, 225, 226, 233, 234,
|
|
241, 242, 250, 251, 262, 263, 275, 276, 285, 286,
|
|
296, 298, 300, 302, 305, 310, 316, 318, 320, 322,
|
|
324, 326, 328, 330, 332, 334, 336, 338, 340, 342,
|
|
344, 346, 348, 350, 352, 354, 356, 358, 360, 362,
|
|
364, 366, 368, 370, 372, 374, 376, 378, 380, 382,
|
|
384, 386, 389, 392, 394, 396, 398, 400, 401, 408,
|
|
411, 413, 415, 417, 421, 424, 429, 432, 437, 441,
|
|
446, 448, 450, 452, 454, 457, 461, 464, 467, 470,
|
|
473, 476, 480, 485, 489, 493, 494, 501, 503, 505,
|
|
507, 511, 514, 516, 520, 522, 525, 527, 530, 532,
|
|
536, 542, 546, 551, 553, 555, 558, 560, 564, 568,
|
|
574, 578, 583, 589, 592, 594, 596, 598, 600, 603,
|
|
606, 609, 612, 615, 619, 624, 626, 628, 630, 633,
|
|
636, 639, 642, 645, 649, 654, 662, 666, 668, 671,
|
|
674, 677, 680, 683, 687, 692, 700, 702, 704, 707,
|
|
709, 711, 713, 716, 721, 726, 728, 730, 732, 735,
|
|
737, 739, 741, 744, 749, 752, 757, 759, 761, 763,
|
|
766, 769, 772, 774, 776, 779, 783, 784, 790, 791,
|
|
799, 801, 803, 806, 810, 813, 816, 819, 823, 827,
|
|
831, 835, 839, 843, 848, 853, 856, 860, 862, 864,
|
|
866, 868, 872, 878, 880, 883, 888, 890, 892, 894,
|
|
896, 897, 904, 905, 913, 918, 924, 927, 931, 933,
|
|
935, 937, 939, 941, 943, 945, 947, 949, 951, 953,
|
|
955, 957, 959, 962, 965, 968, 971, 973, 976, 978,
|
|
982, 985, 987, 988, 991, 993, 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, 1066, 1068, 1070, 1072, 1074, 1076, 1078, 1080, 1082,
|
|
1084, 1086, 1088, 1090, 1092, 1094, 1096, 1098, 1100, 1102,
|
|
1104, 1106, 1108, 1110, 1112, 1114, 1116, 1118, 1120, 1122,
|
|
1124, 1126, 1128, 1130, 1132, 1134, 1136, 1138, 1140, 1142,
|
|
1144, 1146, 1148, 1150, 1152, 1154, 1156, 1158, 1160, 1162,
|
|
1164, 1166, 1168, 1170, 1172, 1174, 1176, 1178, 1180, 1182,
|
|
1184, 1186, 1188, 1190, 1192, 1194, 1196, 1198, 1200, 1202,
|
|
1204, 1206, 1208, 1210, 1212, 1214, 1216, 1218, 1220, 1222,
|
|
1224, 1226, 1228, 1230, 1234, 1236, 1238, 1240, 1242, 1244,
|
|
1248, 1250, 1255, 1263, 1271, 1276, 1281, 1284, 1287, 1290,
|
|
1293, 1296, 1300, 1304, 1308, 1312, 1316, 1320, 1324, 1328,
|
|
1332, 1336, 1340, 1344, 1348, 1352, 1356, 1360, 1366, 1371,
|
|
1376, 1380, 1384, 1388, 1392, 1394, 1399, 1407, 1415, 1420,
|
|
1425, 1430, 1435, 1440, 1445, 1450, 1455, 1460, 1465, 1470,
|
|
1475, 1480, 1485, 1490, 1493, 1499, 1502, 1505, 1508, 1511,
|
|
1514, 1518, 1522, 1526, 1530, 1534, 1538, 1542, 1546, 1550,
|
|
1554, 1558, 1562, 1566, 1570, 1574, 1578, 1582, 1586, 1592,
|
|
1597, 1602, 1606, 1610, 1614, 1618, 1620, 1622, 1624, 1626,
|
|
1628, 1630, 1632, 1634, 1636, 1638, 1643, 1651, 1659, 1664,
|
|
1669, 1672, 1678, 1681, 1684, 1687, 1690, 1694, 1698, 1702,
|
|
1706, 1710, 1714, 1718, 1722, 1726, 1730, 1734, 1738, 1742,
|
|
1746, 1750, 1754, 1758, 1762, 1768, 1773, 1778, 1782, 1786,
|
|
1790, 1794, 1796, 1798, 1800, 1802, 1804, 1806, 1808, 1810,
|
|
1812, 1814, 1817, 1820, 1822, 1824, 1826, 1828, 1831, 1834
|
|
};
|
|
|
|
/* YYRHS -- A `-1'-separated list of the rules' RHS. */
|
|
static const yytype_int16 yyrhs[] =
|
|
{
|
|
142, 0, -1, 114, 143, -1, 115, 228, -1, 116,
|
|
197, -1, 235, -1, 143, 119, -1, 143, 148, -1,
|
|
145, -1, 144, 118, 145, -1, 233, 135, 225, 137,
|
|
-1, -1, 151, 117, 147, 143, 138, -1, 152, -1,
|
|
174, -1, 146, -1, 212, -1, 215, -1, 149, -1,
|
|
104, 158, -1, 48, -1, 64, -1, 69, 120, -1,
|
|
90, 120, -1, 89, 120, -1, 88, 120, -1, 80,
|
|
135, 10, 118, 10, 137, 119, -1, 80, 135, 10,
|
|
118, 10, 118, 10, 137, 119, -1, 81, 135, 10,
|
|
118, 10, 118, 10, 137, 119, -1, 97, 135, 228,
|
|
118, 234, 137, -1, 97, 135, 228, 137, -1, -1,
|
|
72, 150, 148, -1, 235, -1, 67, 151, -1, 67,
|
|
6, 151, -1, 96, 151, -1, 76, 151, -1, 109,
|
|
151, -1, 68, 151, -1, 91, 151, -1, 111, 151,
|
|
-1, 82, 151, -1, 57, 151, -1, 49, 151, -1,
|
|
66, 151, -1, 153, -1, 151, 194, 119, -1, 151,
|
|
163, 186, -1, -1, 151, 196, 154, 156, -1, -1,
|
|
151, 56, 196, 155, 157, -1, 180, 186, -1, 180,
|
|
185, 118, 156, -1, 180, 186, -1, 180, 185, 118,
|
|
157, -1, -1, 151, 196, 159, 161, -1, -1, 151,
|
|
56, 196, 160, 162, -1, 151, 163, 186, -1, 180,
|
|
186, -1, 180, 185, 118, 161, -1, 180, 186, -1,
|
|
180, 185, 118, 162, -1, -1, 10, 135, 164, 182,
|
|
137, 171, -1, -1, 11, 135, 165, 182, 137, 171,
|
|
-1, -1, 133, 233, 135, 166, 182, 137, 171, -1,
|
|
-1, 11, 135, 130, 180, 137, 135, 167, 182, 137,
|
|
171, -1, -1, 11, 135, 12, 130, 180, 137, 135,
|
|
168, 182, 137, 171, -1, -1, 87, 193, 190, 135,
|
|
169, 182, 137, 171, -1, -1, 87, 56, 193, 190,
|
|
135, 170, 182, 137, 171, -1, 10, -1, 235, -1,
|
|
56, -1, 171, 85, -1, 171, 101, 135, 137, -1,
|
|
171, 101, 135, 233, 137, -1, 139, -1, 133, -1,
|
|
130, -1, 131, -1, 132, -1, 128, -1, 129, -1,
|
|
123, -1, 125, -1, 124, -1, 15, -1, 16, -1,
|
|
17, -1, 18, -1, 19, -1, 20, -1, 126, -1,
|
|
127, -1, 21, -1, 22, -1, 121, -1, 118, -1,
|
|
33, -1, 34, -1, 35, -1, 36, -1, 37, -1,
|
|
38, -1, 39, -1, 40, -1, 41, -1, 42, -1,
|
|
43, -1, 44, -1, 31, -1, 136, 140, -1, 135,
|
|
137, -1, 84, -1, 60, -1, 152, -1, 174, -1,
|
|
-1, 100, 175, 126, 176, 127, 173, -1, 100, 152,
|
|
-1, 235, -1, 177, -1, 178, -1, 177, 118, 178,
|
|
-1, 55, 233, -1, 55, 233, 121, 197, -1, 105,
|
|
233, -1, 105, 233, 121, 197, -1, 179, 191, 184,
|
|
-1, 56, 179, 191, 184, -1, 216, -1, 10, -1,
|
|
11, -1, 233, -1, 87, 172, -1, 87, 6, 10,
|
|
-1, 56, 180, -1, 111, 180, -1, 130, 180, -1,
|
|
125, 180, -1, 16, 180, -1, 12, 130, 180, -1,
|
|
180, 136, 224, 140, -1, 180, 120, 4, -1, 135,
|
|
180, 137, -1, -1, 180, 135, 181, 182, 137, 171,
|
|
-1, 235, -1, 14, -1, 183, -1, 183, 118, 14,
|
|
-1, 183, 14, -1, 189, -1, 183, 118, 189, -1,
|
|
235, -1, 121, 227, -1, 235, -1, 121, 228, -1,
|
|
119, -1, 117, 220, 138, -1, 120, 144, 117, 220,
|
|
138, -1, 121, 228, 119, -1, 121, 117, 187, 138,
|
|
-1, 235, -1, 188, -1, 188, 118, -1, 228, -1,
|
|
117, 187, 138, -1, 188, 118, 228, -1, 188, 118,
|
|
117, 187, 138, -1, 193, 191, 185, -1, 56, 193,
|
|
191, 185, -1, 56, 91, 193, 191, 185, -1, 91,
|
|
189, -1, 230, -1, 235, -1, 10, -1, 11, -1,
|
|
56, 190, -1, 111, 190, -1, 130, 190, -1, 125,
|
|
190, -1, 16, 190, -1, 12, 130, 190, -1, 190,
|
|
136, 224, 140, -1, 235, -1, 10, -1, 11, -1,
|
|
56, 191, -1, 111, 191, -1, 130, 191, -1, 125,
|
|
191, -1, 16, 191, -1, 12, 130, 191, -1, 191,
|
|
136, 224, 140, -1, 135, 191, 137, 135, 182, 137,
|
|
171, -1, 135, 191, 137, -1, 235, -1, 56, 192,
|
|
-1, 111, 192, -1, 130, 192, -1, 125, 192, -1,
|
|
16, 192, -1, 12, 130, 192, -1, 192, 136, 224,
|
|
140, -1, 135, 192, 137, 135, 182, 137, 171, -1,
|
|
216, -1, 11, -1, 105, 233, -1, 198, -1, 200,
|
|
-1, 205, -1, 211, 233, -1, 210, 233, 120, 207,
|
|
-1, 58, 135, 228, 137, -1, 47, -1, 216, -1,
|
|
11, -1, 105, 233, -1, 198, -1, 200, -1, 205,
|
|
-1, 211, 233, -1, 210, 233, 120, 207, -1, 210,
|
|
233, -1, 58, 135, 228, 137, -1, 47, -1, 216,
|
|
-1, 11, -1, 105, 233, -1, 211, 233, -1, 210,
|
|
233, -1, 194, -1, 10, -1, 193, 192, -1, 56,
|
|
193, 192, -1, -1, 211, 117, 199, 143, 138, -1,
|
|
-1, 211, 233, 201, 202, 117, 143, 138, -1, 235,
|
|
-1, 203, -1, 120, 204, -1, 203, 118, 204, -1,
|
|
90, 232, -1, 89, 232, -1, 88, 232, -1, 109,
|
|
90, 232, -1, 109, 89, 232, -1, 109, 88, 232,
|
|
-1, 90, 109, 232, -1, 89, 109, 232, -1, 88,
|
|
109, 232, -1, 206, 117, 209, 138, -1, 210, 233,
|
|
120, 207, -1, 210, 233, -1, 210, 120, 207, -1,
|
|
210, -1, 217, -1, 11, -1, 235, -1, 208, 233,
|
|
118, -1, 208, 233, 121, 228, 118, -1, 208, -1,
|
|
208, 233, -1, 208, 233, 121, 228, -1, 65, -1,
|
|
55, -1, 99, -1, 106, -1, -1, 83, 233, 117,
|
|
213, 143, 138, -1, -1, 76, 83, 233, 117, 214,
|
|
143, 138, -1, 83, 117, 143, 138, -1, 76, 83,
|
|
117, 143, 138, -1, 108, 233, -1, 108, 83, 233,
|
|
-1, 217, -1, 218, -1, 219, -1, 50, -1, 52,
|
|
-1, 112, -1, 53, -1, 54, -1, 93, -1, 78,
|
|
-1, 79, -1, 107, -1, 94, -1, 77, -1, 93,
|
|
217, -1, 78, 217, -1, 107, 217, -1, 94, 217,
|
|
-1, 71, -1, 78, 71, -1, 61, -1, 78, 78,
|
|
71, -1, 78, 61, -1, 110, -1, -1, 221, 222,
|
|
-1, 235, -1, 222, 223, -1, 3, -1, 4, -1,
|
|
6, -1, 8, -1, 9, -1, 5, -1, 10, -1,
|
|
11, -1, 12, -1, 7, -1, 14, -1, 15, -1,
|
|
16, -1, 17, -1, 18, -1, 19, -1, 20, -1,
|
|
21, -1, 22, -1, 23, -1, 24, -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, 43, -1, 44, -1, 45, -1, 46, -1,
|
|
47, -1, 50, -1, 51, -1, 52, -1, 53, -1,
|
|
54, -1, 55, -1, 56, -1, 57, -1, 58, -1,
|
|
59, -1, 60, -1, 61, -1, 62, -1, 63, -1,
|
|
65, -1, 67, -1, 68, -1, 70, -1, 71, -1,
|
|
72, -1, 73, -1, 74, -1, 75, -1, 76, -1,
|
|
77, -1, 78, -1, 82, -1, 83, -1, 84, -1,
|
|
86, -1, 87, -1, 88, -1, 89, -1, 90, -1,
|
|
69, -1, 91, -1, 92, -1, 93, -1, 94, -1,
|
|
95, -1, 96, -1, 97, -1, 98, -1, 99, -1,
|
|
101, -1, 102, -1, 103, -1, 104, -1, 105, -1,
|
|
106, -1, 107, -1, 108, -1, 109, -1, 110, -1,
|
|
111, -1, 112, -1, 113, -1, 128, -1, 129, -1,
|
|
130, -1, 131, -1, 125, -1, 123, -1, 124, -1,
|
|
139, -1, 133, -1, 121, -1, 132, -1, 126, -1,
|
|
127, -1, 135, -1, 137, -1, 134, -1, 118, -1,
|
|
119, -1, 120, -1, 136, -1, 140, -1, 122, -1,
|
|
117, 222, 138, -1, 235, -1, 228, -1, 235, -1,
|
|
226, -1, 228, -1, 226, 118, 228, -1, 229, -1,
|
|
135, 197, 137, 227, -1, 98, 126, 197, 127, 135,
|
|
226, 137, -1, 62, 126, 197, 127, 135, 226, 137,
|
|
-1, 95, 135, 197, 137, -1, 46, 135, 197, 137,
|
|
-1, 139, 227, -1, 133, 227, -1, 129, 227, -1,
|
|
130, 227, -1, 125, 227, -1, 227, 130, 227, -1,
|
|
227, 131, 227, -1, 227, 132, 227, -1, 227, 128,
|
|
227, -1, 227, 129, 227, -1, 227, 123, 227, -1,
|
|
227, 124, 227, -1, 227, 125, 227, -1, 227, 15,
|
|
227, -1, 227, 16, 227, -1, 227, 17, 227, -1,
|
|
227, 18, 227, -1, 227, 19, 227, -1, 227, 20,
|
|
227, -1, 227, 21, 227, -1, 227, 22, 227, -1,
|
|
227, 122, 227, 120, 227, -1, 227, 136, 228, 140,
|
|
-1, 227, 135, 226, 137, -1, 227, 135, 137, -1,
|
|
227, 134, 227, -1, 227, 31, 227, -1, 135, 226,
|
|
137, -1, 229, -1, 135, 197, 137, 228, -1, 98,
|
|
126, 197, 127, 135, 226, 137, -1, 62, 126, 197,
|
|
127, 135, 226, 137, -1, 11, 135, 225, 137, -1,
|
|
77, 135, 225, 137, -1, 52, 135, 225, 137, -1,
|
|
112, 135, 225, 137, -1, 53, 135, 225, 137, -1,
|
|
54, 135, 225, 137, -1, 50, 135, 225, 137, -1,
|
|
93, 135, 225, 137, -1, 78, 135, 225, 137, -1,
|
|
107, 135, 225, 137, -1, 94, 135, 225, 137, -1,
|
|
71, 135, 225, 137, -1, 61, 135, 225, 137, -1,
|
|
95, 135, 197, 137, -1, 46, 135, 197, 137, -1,
|
|
84, 195, -1, 84, 195, 135, 225, 137, -1, 139,
|
|
228, -1, 133, 228, -1, 129, 228, -1, 130, 228,
|
|
-1, 125, 228, -1, 228, 130, 228, -1, 228, 131,
|
|
228, -1, 228, 132, 228, -1, 228, 128, 228, -1,
|
|
228, 129, 228, -1, 228, 123, 228, -1, 228, 124,
|
|
228, -1, 228, 125, 228, -1, 228, 15, 228, -1,
|
|
228, 16, 228, -1, 228, 17, 228, -1, 228, 18,
|
|
228, -1, 228, 19, 228, -1, 228, 20, 228, -1,
|
|
228, 126, 228, -1, 228, 127, 228, -1, 228, 21,
|
|
228, -1, 228, 22, 228, -1, 228, 122, 228, 120,
|
|
228, -1, 228, 136, 228, 140, -1, 228, 135, 226,
|
|
137, -1, 228, 135, 137, -1, 228, 134, 228, -1,
|
|
228, 31, 228, -1, 135, 226, 137, -1, 4, -1,
|
|
102, -1, 70, -1, 5, -1, 3, -1, 234, -1,
|
|
9, -1, 10, -1, 86, -1, 231, -1, 135, 197,
|
|
137, 228, -1, 98, 126, 197, 127, 135, 226, 137,
|
|
-1, 62, 126, 197, 127, 135, 226, 137, -1, 95,
|
|
135, 197, 137, -1, 46, 135, 197, 137, -1, 84,
|
|
195, -1, 84, 195, 135, 225, 137, -1, 139, 228,
|
|
-1, 133, 228, -1, 129, 228, -1, 125, 228, -1,
|
|
230, 130, 228, -1, 230, 131, 228, -1, 230, 132,
|
|
228, -1, 230, 128, 228, -1, 230, 129, 228, -1,
|
|
230, 123, 228, -1, 230, 124, 228, -1, 230, 125,
|
|
228, -1, 230, 15, 228, -1, 230, 16, 228, -1,
|
|
230, 17, 228, -1, 230, 18, 228, -1, 230, 19,
|
|
228, -1, 230, 20, 228, -1, 230, 126, 228, -1,
|
|
230, 127, 228, -1, 230, 21, 228, -1, 230, 22,
|
|
228, -1, 230, 122, 228, 120, 228, -1, 230, 136,
|
|
228, 140, -1, 230, 135, 226, 137, -1, 230, 135,
|
|
137, -1, 230, 134, 228, -1, 230, 31, 228, -1,
|
|
135, 226, 137, -1, 4, -1, 102, -1, 70, -1,
|
|
5, -1, 3, -1, 234, -1, 9, -1, 10, -1,
|
|
86, -1, 233, -1, 211, 233, -1, 105, 233, -1,
|
|
10, -1, 11, -1, 6, -1, 8, -1, 234, 6,
|
|
-1, 234, 8, -1, -1
|
|
};
|
|
|
|
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
|
|
static const yytype_uint16 yyrline[] =
|
|
{
|
|
0, 405, 405, 406, 410, 417, 418, 419, 423, 424,
|
|
428, 441, 440, 452, 453, 454, 455, 456, 457, 458,
|
|
459, 472, 481, 485, 493, 497, 501, 512, 533, 555,
|
|
566, 580, 579, 594, 598, 602, 613, 617, 621, 625,
|
|
629, 633, 637, 641, 645, 649, 656, 660, 669, 681,
|
|
680, 696, 695, 717, 725, 736, 745, 759, 758, 774,
|
|
773, 788, 803, 809, 818, 825, 838, 837, 862, 861,
|
|
886, 885, 916, 915, 934, 933, 954, 953, 985, 984,
|
|
1010, 1023, 1027, 1031, 1035, 1039, 1046, 1050, 1054, 1058,
|
|
1062, 1066, 1070, 1074, 1078, 1082, 1086, 1090, 1094, 1098,
|
|
1102, 1106, 1110, 1114, 1118, 1122, 1126, 1130, 1134, 1138,
|
|
1142, 1146, 1150, 1154, 1158, 1162, 1166, 1170, 1174, 1178,
|
|
1182, 1186, 1190, 1194, 1198, 1205, 1206, 1211, 1210, 1218,
|
|
1222, 1223, 1227, 1233, 1242, 1246, 1250, 1254, 1258, 1264,
|
|
1274, 1278, 1283, 1295, 1299, 1313, 1328, 1333, 1338, 1343,
|
|
1348, 1353, 1358, 1363, 1368, 1374, 1373, 1395, 1399, 1404,
|
|
1408, 1413, 1421, 1426, 1434, 1438, 1445, 1449, 1456, 1460,
|
|
1464, 1468, 1472, 1479, 1480, 1481, 1485, 1488, 1489, 1490,
|
|
1494, 1499, 1505, 1511, 1515, 1525, 1529, 1533, 1537, 1542,
|
|
1547, 1552, 1557, 1562, 1567, 1575, 1579, 1583, 1587, 1592,
|
|
1597, 1602, 1607, 1612, 1617, 1622, 1628, 1636, 1640, 1645,
|
|
1650, 1655, 1660, 1665, 1670, 1675, 1684, 1688, 1696, 1700,
|
|
1704, 1708, 1712, 1728, 1744, 1753, 1760, 1764, 1772, 1776,
|
|
1780, 1784, 1788, 1804, 1820, 1838, 1847, 1854, 1858, 1866,
|
|
1870, 1886, 1905, 1909, 1917, 1923, 1934, 1933, 1958, 1957,
|
|
1987, 1988, 1992, 1993, 1997, 2001, 2005, 2009, 2013, 2017,
|
|
2021, 2025, 2029, 2036, 2044, 2048, 2052, 2056, 2063, 2067,
|
|
2074, 2075, 2081, 2089, 2090, 2096, 2105, 2112, 2116, 2120,
|
|
2128, 2127, 2150, 2149, 2172, 2173, 2177, 2183, 2192, 2193,
|
|
2194, 2198, 2202, 2206, 2210, 2214, 2218, 2223, 2228, 2233,
|
|
2238, 2243, 2247, 2252, 2261, 2266, 2274, 2278, 2283, 2287,
|
|
2292, 2300, 2310, 2310, 2320, 2321, 2325, 2326, 2327, 2328,
|
|
2329, 2330, 2331, 2332, 2333, 2334, 2335, 2335, 2335, 2336,
|
|
2336, 2336, 2336, 2337, 2337, 2337, 2337, 2337, 2338, 2338,
|
|
2338, 2339, 2339, 2339, 2339, 2339, 2340, 2340, 2340, 2340,
|
|
2340, 2341, 2341, 2341, 2341, 2341, 2342, 2342, 2342, 2343,
|
|
2343, 2343, 2343, 2343, 2344, 2344, 2344, 2344, 2344, 2345,
|
|
2345, 2345, 2346, 2346, 2346, 2346, 2346, 2346, 2347, 2347,
|
|
2347, 2347, 2348, 2348, 2348, 2348, 2348, 2349, 2349, 2349,
|
|
2349, 2350, 2350, 2350, 2350, 2350, 2351, 2351, 2351, 2351,
|
|
2351, 2352, 2352, 2352, 2352, 2352, 2353, 2353, 2353, 2353,
|
|
2353, 2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356, 2356,
|
|
2356, 2356, 2357, 2357, 2357, 2357, 2357, 2357, 2357, 2357,
|
|
2357, 2357, 2358, 2358, 2362, 2366, 2373, 2377, 2384, 2388,
|
|
2395, 2399, 2403, 2407, 2411, 2415, 2419, 2423, 2427, 2431,
|
|
2435, 2439, 2443, 2447, 2451, 2455, 2459, 2463, 2467, 2471,
|
|
2475, 2479, 2483, 2487, 2491, 2495, 2499, 2503, 2507, 2511,
|
|
2515, 2519, 2523, 2527, 2535, 2539, 2543, 2547, 2551, 2561,
|
|
2567, 2573, 2579, 2585, 2591, 2597, 2604, 2611, 2618, 2625,
|
|
2631, 2637, 2641, 2645, 2649, 2653, 2657, 2661, 2665, 2669,
|
|
2673, 2677, 2681, 2685, 2689, 2693, 2697, 2701, 2705, 2709,
|
|
2713, 2717, 2721, 2725, 2729, 2733, 2737, 2741, 2745, 2749,
|
|
2753, 2757, 2761, 2765, 2769, 2776, 2780, 2784, 2788, 2792,
|
|
2796, 2800, 2804, 2808, 2822, 2826, 2830, 2834, 2838, 2842,
|
|
2846, 2850, 2854, 2858, 2862, 2866, 2870, 2874, 2878, 2882,
|
|
2886, 2890, 2894, 2898, 2902, 2906, 2910, 2914, 2918, 2922,
|
|
2926, 2930, 2934, 2938, 2942, 2946, 2950, 2954, 2958, 2962,
|
|
2966, 2973, 2977, 2981, 2985, 2989, 2993, 2997, 3001, 3005,
|
|
3012, 3020, 3028, 3054, 3058, 3065, 3069, 3073, 3079, 3090
|
|
};
|
|
#endif
|
|
|
|
#if YYDEBUG || YYERROR_VERBOSE || 0
|
|
/* 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",
|
|
"SIMPLE_STRING", "SIMPLE_IDENTIFIER", "STRING_LITERAL", "CUSTOM_LITERAL",
|
|
"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", "KW_ALIGNAS",
|
|
"KW_ALIGNOF", "KW_AUTO", "KW_BEGIN_PUBLISH", "KW_BLOCKING", "KW_BOOL",
|
|
"KW_CATCH", "KW_CHAR", "KW_CHAR16_T", "KW_CHAR32_T", "KW_CLASS",
|
|
"KW_CONST", "KW_CONSTEXPR", "KW_DECLTYPE", "KW_DEFAULT", "KW_DELETE",
|
|
"KW_DOUBLE", "KW_DYNAMIC_CAST", "KW_ELSE", "KW_END_PUBLISH", "KW_ENUM",
|
|
"KW_EXTENSION", "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_MAKE_PROPERTY", "KW_MAKE_SEQ",
|
|
"KW_MUTABLE", "KW_NAMESPACE", "KW_NEW", "KW_NOEXCEPT", "KW_NULLPTR",
|
|
"KW_OPERATOR", "KW_PRIVATE", "KW_PROTECTED", "KW_PUBLIC", "KW_REGISTER",
|
|
"KW_RETURN", "KW_SHORT", "KW_SIGNED", "KW_SIZEOF", "KW_STATIC",
|
|
"KW_STATIC_ASSERT", "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_WCHAR_T", "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",
|
|
"var_type_decl", "full_type", "anonymous_struct", "$@16", "named_struct",
|
|
"$@17", "maybe_class_derivation", "class_derivation",
|
|
"base_specification", "enum", "enum_decl", "enum_element_type",
|
|
"enum_body_trailing_comma", "enum_body", "enum_keyword",
|
|
"struct_keyword", "namespace_declaration", "$@18", "$@19",
|
|
"using_declaration", "simple_type", "simple_int_type",
|
|
"simple_float_type", "simple_void_type", "code", "$@20", "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_literal", "empty", YY_NULL
|
|
};
|
|
#endif
|
|
|
|
# ifdef YYPRINT
|
|
/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
|
|
token YYLEX-NUM. */
|
|
static const yytype_uint16 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, 356, 357, 358, 359, 360, 361, 362, 363, 364,
|
|
365, 366, 367, 368, 369, 370, 371, 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 yytype_uint8 yyr1[] =
|
|
{
|
|
0, 141, 142, 142, 142, 143, 143, 143, 144, 144,
|
|
145, 147, 146, 148, 148, 148, 148, 148, 148, 148,
|
|
148, 148, 148, 148, 148, 148, 148, 148, 148, 148,
|
|
148, 150, 149, 151, 151, 151, 151, 151, 151, 151,
|
|
151, 151, 151, 151, 151, 151, 152, 152, 152, 154,
|
|
153, 155, 153, 156, 156, 157, 157, 159, 158, 160,
|
|
158, 158, 161, 161, 162, 162, 164, 163, 165, 163,
|
|
166, 163, 167, 163, 168, 163, 169, 163, 170, 163,
|
|
163, 171, 171, 171, 171, 171, 172, 172, 172, 172,
|
|
172, 172, 172, 172, 172, 172, 172, 172, 172, 172,
|
|
172, 172, 172, 172, 172, 172, 172, 172, 172, 172,
|
|
172, 172, 172, 172, 172, 172, 172, 172, 172, 172,
|
|
172, 172, 172, 172, 172, 173, 173, 175, 174, 174,
|
|
176, 176, 177, 177, 178, 178, 178, 178, 178, 178,
|
|
179, 179, 179, 180, 180, 180, 180, 180, 180, 180,
|
|
180, 180, 180, 180, 180, 181, 180, 182, 182, 182,
|
|
182, 182, 183, 183, 184, 184, 185, 185, 186, 186,
|
|
186, 186, 186, 187, 187, 187, 188, 188, 188, 188,
|
|
189, 189, 189, 189, 189, 190, 190, 190, 190, 190,
|
|
190, 190, 190, 190, 190, 191, 191, 191, 191, 191,
|
|
191, 191, 191, 191, 191, 191, 191, 192, 192, 192,
|
|
192, 192, 192, 192, 192, 192, 193, 193, 193, 193,
|
|
193, 193, 193, 193, 193, 193, 194, 194, 194, 194,
|
|
194, 194, 194, 194, 194, 194, 194, 195, 195, 195,
|
|
195, 195, 196, 196, 197, 197, 199, 198, 201, 200,
|
|
202, 202, 203, 203, 204, 204, 204, 204, 204, 204,
|
|
204, 204, 204, 205, 206, 206, 206, 206, 207, 207,
|
|
208, 208, 208, 209, 209, 209, 210, 211, 211, 211,
|
|
213, 212, 214, 212, 212, 212, 215, 215, 216, 216,
|
|
216, 217, 217, 217, 217, 217, 217, 217, 217, 217,
|
|
217, 217, 217, 217, 217, 217, 218, 218, 218, 218,
|
|
218, 219, 221, 220, 222, 222, 223, 223, 223, 223,
|
|
223, 223, 223, 223, 223, 223, 223, 223, 223, 223,
|
|
223, 223, 223, 223, 223, 223, 223, 223, 223, 223,
|
|
223, 223, 223, 223, 223, 223, 223, 223, 223, 223,
|
|
223, 223, 223, 223, 223, 223, 223, 223, 223, 223,
|
|
223, 223, 223, 223, 223, 223, 223, 223, 223, 223,
|
|
223, 223, 223, 223, 223, 223, 223, 223, 223, 223,
|
|
223, 223, 223, 223, 223, 223, 223, 223, 223, 223,
|
|
223, 223, 223, 223, 223, 223, 223, 223, 223, 223,
|
|
223, 223, 223, 223, 223, 223, 223, 223, 223, 223,
|
|
223, 223, 223, 223, 223, 223, 223, 223, 223, 223,
|
|
223, 223, 223, 223, 223, 223, 223, 223, 223, 223,
|
|
223, 223, 223, 223, 224, 224, 225, 225, 226, 226,
|
|
227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
|
|
227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
|
|
227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
|
|
227, 227, 227, 227, 228, 228, 228, 228, 228, 228,
|
|
228, 228, 228, 228, 228, 228, 228, 228, 228, 228,
|
|
228, 228, 228, 228, 228, 228, 228, 228, 228, 228,
|
|
228, 228, 228, 228, 228, 228, 228, 228, 228, 228,
|
|
228, 228, 228, 228, 228, 228, 228, 228, 228, 228,
|
|
228, 228, 228, 228, 228, 229, 229, 229, 229, 229,
|
|
229, 229, 229, 229, 230, 230, 230, 230, 230, 230,
|
|
230, 230, 230, 230, 230, 230, 230, 230, 230, 230,
|
|
230, 230, 230, 230, 230, 230, 230, 230, 230, 230,
|
|
230, 230, 230, 230, 230, 230, 230, 230, 230, 230,
|
|
230, 231, 231, 231, 231, 231, 231, 231, 231, 231,
|
|
232, 232, 232, 233, 233, 234, 234, 234, 234, 235
|
|
};
|
|
|
|
/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
|
|
static const yytype_uint8 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, 7, 9, 9, 6,
|
|
4, 0, 3, 1, 2, 3, 2, 2, 2, 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, 2, 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, 2,
|
|
1, 1, 1, 3, 2, 4, 2, 4, 3, 4,
|
|
1, 1, 1, 1, 2, 3, 2, 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, 4, 5, 2, 1, 1, 1, 1, 2, 2,
|
|
2, 2, 2, 3, 4, 1, 1, 1, 2, 2,
|
|
2, 2, 2, 3, 4, 7, 3, 1, 2, 2,
|
|
2, 2, 2, 3, 4, 7, 1, 1, 2, 1,
|
|
1, 1, 2, 4, 4, 1, 1, 1, 2, 1,
|
|
1, 1, 2, 4, 2, 4, 1, 1, 1, 2,
|
|
2, 2, 1, 1, 2, 3, 0, 5, 0, 7,
|
|
1, 1, 2, 3, 2, 2, 2, 3, 3, 3,
|
|
3, 3, 3, 4, 4, 2, 3, 1, 1, 1,
|
|
1, 3, 5, 1, 2, 4, 1, 1, 1, 1,
|
|
0, 6, 0, 7, 4, 5, 2, 3, 1, 1,
|
|
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,
|
|
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, 4, 2, 2, 2, 2,
|
|
2, 3, 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,
|
|
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, 3, 5, 4,
|
|
4, 3, 3, 3, 3, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 4, 7, 7, 4, 4,
|
|
2, 5, 2, 2, 2, 2, 3, 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, 1,
|
|
1, 2, 2, 1, 1, 1, 1, 2, 2, 0
|
|
};
|
|
|
|
/* YYDEFACT[STATE-NAME] -- Default reduction number in state STATE-NUM.
|
|
Performed when YYTABLE doesn't specify something else to do. Zero
|
|
means the default is an error. */
|
|
static const yytype_uint16 yydefact[] =
|
|
{
|
|
0, 589, 0, 0, 0, 589, 5, 529, 525, 528,
|
|
585, 586, 531, 532, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 527, 0, 0, 0, 0, 533, 0, 0,
|
|
0, 0, 526, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 3, 474, 530, 217, 225, 291, 292, 294, 295,
|
|
277, 0, 0, 308, 276, 306, 301, 297, 298, 296,
|
|
300, 278, 0, 279, 299, 311, 293, 589, 4, 219,
|
|
220, 221, 0, 267, 0, 216, 288, 289, 290, 1,
|
|
20, 589, 589, 21, 589, 589, 589, 0, 31, 589,
|
|
0, 0, 589, 0, 0, 0, 0, 589, 589, 0,
|
|
589, 589, 0, 589, 589, 6, 15, 7, 18, 0,
|
|
13, 46, 14, 16, 17, 33, 589, 0, 589, 589,
|
|
589, 589, 589, 0, 589, 589, 589, 238, 0, 493,
|
|
0, 0, 237, 589, 589, 0, 0, 589, 589, 499,
|
|
497, 498, 496, 217, 291, 292, 294, 295, 308, 306,
|
|
301, 297, 296, 300, 299, 293, 0, 0, 438, 495,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 587, 588, 589, 0, 310, 307, 297,
|
|
303, 297, 302, 305, 583, 584, 218, 304, 0, 589,
|
|
589, 589, 589, 589, 589, 244, 207, 589, 0, 265,
|
|
246, 222, 589, 44, 43, 45, 589, 34, 39, 22,
|
|
589, 0, 37, 0, 0, 42, 589, 0, 25, 24,
|
|
23, 40, 36, 0, 0, 129, 0, 0, 19, 0,
|
|
286, 38, 41, 243, 227, 236, 0, 0, 0, 0,
|
|
11, 0, 0, 242, 49, 229, 230, 231, 267, 0,
|
|
226, 0, 437, 436, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 239, 589, 241, 240, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 524, 508, 509, 510,
|
|
511, 512, 513, 516, 517, 523, 0, 505, 506, 507,
|
|
514, 515, 503, 504, 500, 501, 502, 522, 521, 0,
|
|
0, 245, 0, 309, 589, 212, 208, 209, 211, 210,
|
|
0, 589, 273, 0, 270, 269, 266, 268, 0, 589,
|
|
589, 35, 32, 589, 0, 0, 0, 589, 280, 0,
|
|
589, 0, 0, 242, 57, 287, 66, 68, 243, 227,
|
|
51, 0, 0, 589, 228, 589, 0, 312, 168, 0,
|
|
0, 48, 47, 0, 234, 232, 478, 492, 484, 480,
|
|
482, 483, 490, 0, 489, 479, 486, 0, 485, 488,
|
|
491, 0, 487, 481, 475, 439, 0, 520, 519, 224,
|
|
213, 0, 0, 435, 434, 274, 263, 223, 589, 0,
|
|
0, 251, 250, 589, 282, 0, 0, 284, 589, 0,
|
|
30, 141, 142, 0, 0, 0, 0, 131, 132, 589,
|
|
140, 130, 59, 61, 0, 589, 0, 0, 589, 0,
|
|
0, 589, 186, 187, 0, 589, 589, 589, 589, 589,
|
|
0, 185, 589, 70, 0, 589, 0, 8, 0, 589,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 50,
|
|
589, 143, 0, 0, 494, 0, 518, 589, 214, 271,
|
|
0, 247, 0, 0, 0, 0, 252, 589, 0, 285,
|
|
589, 0, 0, 589, 0, 134, 589, 136, 589, 0,
|
|
196, 197, 0, 589, 589, 589, 589, 589, 589, 589,
|
|
195, 0, 58, 589, 575, 571, 574, 577, 578, 158,
|
|
0, 0, 0, 573, 0, 579, 0, 0, 0, 572,
|
|
0, 0, 0, 0, 0, 0, 159, 162, 589, 184,
|
|
534, 576, 157, 0, 0, 0, 52, 589, 235, 0,
|
|
589, 192, 188, 189, 191, 190, 76, 589, 12, 589,
|
|
169, 313, 314, 312, 0, 589, 589, 0, 174, 176,
|
|
173, 171, 0, 150, 146, 0, 96, 97, 98, 99,
|
|
100, 101, 104, 105, 120, 108, 109, 110, 111, 112,
|
|
113, 114, 115, 116, 117, 118, 119, 124, 123, 107,
|
|
106, 93, 95, 94, 102, 103, 91, 92, 88, 89,
|
|
90, 87, 0, 0, 86, 144, 147, 149, 148, 0,
|
|
0, 0, 155, 589, 0, 53, 166, 233, 0, 0,
|
|
0, 275, 0, 0, 0, 256, 580, 0, 255, 0,
|
|
254, 0, 0, 0, 589, 253, 589, 0, 0, 0,
|
|
281, 29, 0, 589, 0, 125, 128, 126, 133, 589,
|
|
202, 198, 199, 201, 200, 0, 0, 589, 138, 164,
|
|
60, 589, 0, 62, 0, 0, 589, 0, 540, 183,
|
|
0, 0, 545, 544, 543, 0, 0, 542, 589, 161,
|
|
0, 589, 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, 0, 589, 0,
|
|
55, 78, 193, 589, 0, 0, 316, 317, 321, 318,
|
|
325, 319, 320, 322, 323, 324, 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, 356, 357, 358, 359,
|
|
360, 361, 362, 363, 364, 365, 366, 367, 368, 369,
|
|
370, 388, 371, 372, 373, 374, 375, 376, 377, 378,
|
|
379, 380, 381, 382, 383, 384, 385, 386, 387, 389,
|
|
390, 391, 392, 393, 394, 395, 396, 397, 398, 399,
|
|
400, 401, 402, 403, 404, 405, 406, 407, 408, 409,
|
|
410, 589, 427, 428, 429, 420, 432, 416, 417, 415,
|
|
422, 423, 411, 412, 413, 414, 421, 419, 426, 424,
|
|
430, 425, 418, 431, 315, 0, 9, 0, 0, 172,
|
|
175, 151, 145, 122, 121, 154, 153, 167, 589, 0,
|
|
0, 477, 476, 589, 272, 582, 262, 581, 261, 260,
|
|
259, 258, 257, 249, 283, 0, 26, 0, 135, 139,
|
|
137, 203, 206, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 165, 440, 0, 0, 64, 0, 0,
|
|
589, 589, 0, 589, 0, 0, 0, 570, 82, 67,
|
|
81, 160, 163, 0, 180, 554, 555, 556, 557, 558,
|
|
559, 562, 563, 569, 0, 551, 552, 553, 560, 561,
|
|
549, 550, 546, 547, 548, 568, 567, 0, 0, 0,
|
|
72, 69, 0, 589, 0, 194, 589, 0, 170, 10,
|
|
177, 589, 178, 0, 152, 54, 215, 0, 0, 589,
|
|
0, 0, 0, 0, 450, 448, 449, 447, 0, 0,
|
|
446, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 204, 0, 63, 539, 589, 181, 0, 0,
|
|
538, 0, 535, 83, 0, 167, 0, 566, 565, 74,
|
|
589, 56, 0, 589, 71, 433, 0, 589, 27, 28,
|
|
0, 0, 0, 0, 0, 0, 473, 459, 460, 461,
|
|
462, 463, 464, 465, 466, 472, 0, 456, 457, 458,
|
|
454, 455, 451, 452, 453, 471, 470, 0, 0, 65,
|
|
182, 0, 541, 0, 0, 564, 589, 0, 589, 77,
|
|
179, 156, 589, 445, 0, 444, 0, 441, 0, 469,
|
|
468, 0, 0, 84, 0, 0, 589, 79, 205, 0,
|
|
0, 467, 537, 536, 85, 589, 73, 0, 0, 75,
|
|
443, 442
|
|
};
|
|
|
|
/* YYDEFGOTO[NTERM-NUM]. */
|
|
static const yytype_int16 yydefgoto[] =
|
|
{
|
|
-1, 4, 5, 446, 447, 106, 355, 107, 108, 220,
|
|
109, 110, 111, 363, 429, 459, 536, 238, 424, 501,
|
|
502, 660, 252, 425, 428, 549, 1000, 1046, 713, 933,
|
|
899, 605, 646, 112, 236, 416, 417, 418, 419, 460,
|
|
848, 525, 526, 658, 614, 361, 557, 558, 527, 440,
|
|
499, 205, 67, 343, 129, 254, 68, 69, 329, 70,
|
|
330, 400, 401, 476, 71, 72, 326, 322, 323, 73,
|
|
74, 113, 408, 480, 114, 75, 76, 77, 78, 444,
|
|
445, 551, 834, 392, 261, 262, 883, 158, 42, 529,
|
|
530, 625, 461, 43, 115
|
|
};
|
|
|
|
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
|
|
STATE-NUM. */
|
|
#define YYPACT_NINF -698
|
|
static const yytype_int16 yypact[] =
|
|
{
|
|
259, -698, 2649, 3749, 13, 3327, -698, -698, -698, -698,
|
|
-698, -698, -698, -698, -128, -110, -46, -31, -5, 4,
|
|
24, -68, -698, 33, 45, 50, 3651, -698, 56, 61,
|
|
117, 97, -698, 141, 144, 2649, 2649, 2649, 2649, 1829,
|
|
2649, 3160, -698, 226, -698, -698, -698, -698, -698, -698,
|
|
-698, 3908, 149, -698, -698, -698, -698, 4391, -698, 2773,
|
|
2773, -698, 65, -698, 2773, -698, -698, 242, -698, -698,
|
|
-698, -698, 91, 32, 69, -698, -698, -698, -698, -698,
|
|
-698, 4406, 4406, -698, 4406, 3643, 4406, 109, -698, 1116,
|
|
151, 166, 4406, 71, 177, 194, 201, 4406, 4406, 189,
|
|
4293, 4406, 232, 4406, 4406, -698, -698, -698, -698, 2712,
|
|
-698, -698, -698, -698, -698, -698, 2649, 3749, 2649, 2649,
|
|
2649, 2649, 2649, 3749, 2649, 2649, 2649, -698, 65, 196,
|
|
65, 65, -698, 2649, 2649, 3749, 3749, 2649, 2649, 59,
|
|
59, 59, 59, -128, -46, -31, -5, 4, 24, 33,
|
|
45, 4285, 2038, 3601, 3738, 144, 205, -100, 3160, 59,
|
|
2649, 2649, 2649, 2649, 2649, 2649, 2649, 2649, 2649, 2649,
|
|
2649, 2649, 2649, 2649, 2649, 2649, 2649, 2649, 2649, 2649,
|
|
2649, 2049, 2649, -698, -698, 242, 2649, -698, -698, 915,
|
|
-698, 2773, -698, -698, -698, -698, -698, -698, 206, 242,
|
|
242, 242, 242, 242, 242, 202, -698, -698, 3918, 227,
|
|
-698, -7, 4406, -698, -698, -698, 4406, -698, -698, -698,
|
|
4342, 73, -698, 360, 369, -698, -698, 270, -698, -698,
|
|
-698, -698, -698, 2649, 2783, -698, 267, 2847, -698, 65,
|
|
-698, -698, -698, 280, 269, -698, 3688, 273, 3810, 65,
|
|
-698, 65, 403, 298, -698, -698, -698, -698, 32, 69,
|
|
-698, 276, 308, -698, 286, 292, 302, 313, 317, 323,
|
|
343, 335, 341, 344, -698, 2649, -698, -698, 346, 349,
|
|
351, 362, 354, 367, 2649, 2649, -698, 3227, 3422, 3511,
|
|
3511, 229, 229, 509, 509, -698, 2984, 3437, 3468, 932,
|
|
229, 229, 173, 173, 59, 59, 59, -698, -698, -64,
|
|
959, 202, 2945, -698, 242, 202, 202, 202, 202, 202,
|
|
28, 2649, 65, 374, -698, -698, -698, -698, 3918, -698,
|
|
385, -698, -698, -698, 397, 401, 408, 3960, -698, 1847,
|
|
1124, 3688, 403, -698, -698, -698, -698, 17, -698, -698,
|
|
-698, 2649, 3908, 255, -698, -698, 383, -698, -698, 65,
|
|
2149, -698, -698, 284, 18, -7, -698, -698, -698, -698,
|
|
-698, -698, -698, 396, -698, -698, -698, 395, -698, -698,
|
|
-698, 399, -698, -698, 59, 3160, 2649, -698, -698, -698,
|
|
202, 402, 398, 3160, -698, -12, -698, 427, 4006, 294,
|
|
428, 429, -698, 4052, -698, 540, 541, -698, -698, 262,
|
|
-698, -698, -698, 65, 771, 65, 425, 435, -698, 400,
|
|
-698, -698, -698, -698, 284, 1609, 431, 284, 1609, 284,
|
|
2966, 255, -698, -698, 433, 255, 255, 255, 255, 255,
|
|
82, -698, 4098, -698, 419, -698, 303, -698, 424, 2249,
|
|
3002, 434, 284, 284, 567, 284, 284, 284, 284, -698,
|
|
332, -698, 3918, 2649, -698, 2649, 3160, 1609, -698, -698,
|
|
2649, -698, 729, 789, 805, 453, -698, -698, 294, -698,
|
|
-698, -32, 448, 4144, 8, 457, 400, 458, 4399, 1124,
|
|
-698, -698, 460, 400, 400, 400, 400, 400, 400, -106,
|
|
-698, 284, -698, 332, -698, -698, -698, -698, -698, -698,
|
|
462, 3847, 469, -698, 3651, -698, 1939, 464, 487, -698,
|
|
2649, 2649, 2649, 1829, 2649, 477, -4, -698, 400, 3177,
|
|
-698, 226, -698, 284, 305, 478, -698, 332, -698, 296,
|
|
255, 480, 480, 480, 480, 480, -698, 2649, -698, 1609,
|
|
-698, 1471, -698, -698, 65, 2649, 2249, 479, 500, 3160,
|
|
-698, -698, 284, 311, 311, 612, -698, -698, -698, -698,
|
|
-698, -698, -698, -698, -698, -698, -698, -698, -698, -698,
|
|
-698, -698, -698, -698, -698, -698, -698, -698, -698, -698,
|
|
-698, -698, -698, -698, -698, -698, -698, -698, -698, -698,
|
|
-698, -698, 486, 484, -698, -698, 311, 311, 311, 338,
|
|
506, 2149, -698, 2649, 507, -698, -698, 427, -11, 120,
|
|
492, 3021, 65, 156, 65, -698, -698, 156, -698, 156,
|
|
-698, 156, 156, 156, 4190, -698, 4236, 620, 514, 625,
|
|
-698, -698, 3749, -106, 3749, -698, -698, -698, -698, 400,
|
|
498, 498, 498, 498, 498, 327, 741, 2649, -698, -698,
|
|
-698, 332, 518, -698, 3749, 3908, 400, 3749, 515, -698,
|
|
3749, 3749, 59, 59, 59, 516, 145, 59, 596, -698,
|
|
1719, 6, 2649, 2649, 2649, 2649, 2649, 2649, 2649, 2649,
|
|
2649, 2649, 2649, 2649, 2649, 2649, 2649, 2649, 2649, 2649,
|
|
2649, 2649, 2649, 2349, 2649, 364, 650, 522, 596, 543,
|
|
-698, -698, 480, 1609, 519, 533, -698, -698, -698, -698,
|
|
-698, -698, -698, -698, -698, -698, -698, -698, -698, -698,
|
|
-698, -698, -698, -698, -698, -698, -698, -698, -698, -698,
|
|
-698, -698, -698, -698, -698, -698, -698, -698, -698, -698,
|
|
-698, -698, -698, -698, -698, -698, -698, -698, -698, -698,
|
|
-698, -698, -698, -698, -698, -698, -698, -698, -698, -698,
|
|
-698, -698, -698, -698, -698, -698, -698, -698, -698, -698,
|
|
-698, -698, -698, -698, -698, -698, -698, -698, -698, -698,
|
|
-698, -698, -698, -698, -698, -698, -698, -698, -698, -698,
|
|
-698, -698, -698, -698, -698, -698, -698, -698, -698, -698,
|
|
-698, -698, -698, -698, -698, -698, -698, -698, -698, -698,
|
|
-698, -698, -698, -698, -698, -698, -698, -698, -698, -698,
|
|
-698, -698, -698, -698, -698, 535, -698, 534, 536, -698,
|
|
2449, 311, -698, -698, -698, -698, -698, 3002, 1609, 542,
|
|
284, -698, -698, 596, -698, -698, -698, -698, -698, -698,
|
|
-698, -698, -698, -698, -698, 544, -698, 547, -698, -698,
|
|
-698, 498, 551, 552, 563, 569, 579, 741, 741, 741,
|
|
741, 1829, 741, 3211, -698, 568, 591, -698, 284, 573,
|
|
400, 6, 584, 2649, 576, 587, 2649, -698, -698, -51,
|
|
-698, -698, -698, 2649, -698, 3227, 3422, 3511, 3511, 229,
|
|
229, 509, 509, -698, 3143, 3437, 3468, 932, 229, 229,
|
|
173, 173, 59, 59, 59, -698, -698, 162, 1140, 580,
|
|
-698, -51, 284, 1609, 600, -698, 596, 1280, -698, -698,
|
|
-698, 2249, 3160, 604, -698, -698, -51, 629, 642, 1609,
|
|
3749, 3749, 3749, 3749, 199, 199, 199, 199, 606, 204,
|
|
199, 741, 741, 741, 741, 741, 741, 741, 741, 741,
|
|
741, 741, 741, 741, 741, 741, 741, 741, 741, 741,
|
|
2549, 2649, -698, 284, -698, -698, 6, -698, 630, 635,
|
|
-698, 638, 59, -698, 640, 3160, 2649, -698, -698, -698,
|
|
1609, -698, 646, 596, -51, -698, 639, 596, -698, -698,
|
|
648, 649, 661, 653, 664, 741, -698, 3348, 3483, 3555,
|
|
3555, 440, 440, 624, 624, -698, 3194, 3498, 2062, 908,
|
|
632, 632, 199, 199, 199, -698, -698, 207, 1627, -698,
|
|
-698, 2649, -698, 2649, 52, 3160, 1609, 655, 596, -51,
|
|
-698, -51, 596, -698, 658, -698, 659, 199, 741, -698,
|
|
-698, 209, 212, -698, 660, 665, 596, -51, -51, 2649,
|
|
2649, 3211, -698, -698, -698, 596, -51, 219, 244, -51,
|
|
-698, -698
|
|
};
|
|
|
|
/* YYPGOTO[NTERM-NUM]. */
|
|
static const yytype_int16 yypgoto[] =
|
|
{
|
|
-698, -698, -221, -698, 247, -698, -698, 578, -698, -698,
|
|
-33, -99, -698, -698, -698, -54, -127, -698, -698, -698,
|
|
-84, -177, 570, -698, -698, -698, -698, -698, -698, -698,
|
|
-697, -698, -698, 320, -698, -698, -698, 324, 404, -355,
|
|
-698, -420, -698, 169, -499, -311, -553, -698, -504, -343,
|
|
-323, 88, -34, -103, 306, -191, 5, -77, -698, -22,
|
|
-698, -698, -698, 339, -18, -698, -319, -698, -698, 7,
|
|
35, -698, -698, -698, -698, -24, 94, -698, -698, 266,
|
|
-698, 11, -698, -502, -98, -20, 175, 556, 153, -698,
|
|
-698, -396, 147, -368, -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 YYTABLE_NINF, syntax error. */
|
|
#define YYTABLE_NINF -266
|
|
static const yytype_int16 yytable[] =
|
|
{
|
|
6, 235, 132, 838, 662, 337, 253, 116, 535, 397,
|
|
679, 931, 669, 79, 183, 656, 184, 185, 285, 157,
|
|
265, 266, 267, 268, 269, 117, 271, 272, 273, 426,
|
|
657, 423, 255, 130, 993, 278, 279, 286, 709, 282,
|
|
283, 484, 194, 195, 156, 714, 344, 620, 213, 214,
|
|
994, 215, 217, 218, 285, 350, 222, 531, 123, 225,
|
|
531, 131, 194, 195, 231, 232, 206, 234, 237, 503,
|
|
241, 242, 534, 387, 537, 194, 195, 628, 630, 194,
|
|
195, 194, 195, 194, 195, 260, 637, 256, 539, 118,
|
|
168, 257, 541, 542, 543, 544, 545, 563, 564, 531,
|
|
606, 607, 608, 609, 119, 638, 469, 285, 398, 470,
|
|
-248, 849, 403, -248, 680, 263, 258, 263, 263, 263,
|
|
263, 263, 264, 263, 263, 263, 851, 903, 270, 715,
|
|
120, 253, 263, 263, 442, -265, 263, 263, 462, 121,
|
|
280, 281, 657, 617, 259, 641, 661, 427, 531, 615,
|
|
422, 190, 208, 192, 193, 885, 946, 255, 197, 122,
|
|
255, 309, 886, 643, 321, 391, 194, 195, 124, 255,
|
|
650, 651, 652, 653, 654, 655, 902, 377, 705, 222,
|
|
125, 531, 904, 331, 206, 126, 210, 483, 226, 1063,
|
|
333, 133, 663, 180, 181, 182, 134, 712, 206, 206,
|
|
206, 206, 206, 206, 168, 681, 324, 841, 207, 196,
|
|
260, 50, 256, 260, 353, 256, 257, 546, 547, 257,
|
|
209, 211, 260, 136, 256, 6, 710, 856, 257, 219,
|
|
969, 858, 183, 859, 184, 860, 861, 862, 285, 1004,
|
|
227, 258, 194, 195, 258, 190, 192, 193, 197, 240,
|
|
166, 167, 135, 258, 198, 61, 634, 852, 199, 636,
|
|
168, 622, 63, 285, 255, 432, 433, 434, 10, 259,
|
|
11, 435, 259, 311, 263, 274, 137, 276, 277, 138,
|
|
285, 259, 897, 190, 186, 190, 223, 315, 316, 317,
|
|
318, 319, 320, 934, 194, 195, 451, 228, 200, 997,
|
|
452, 224, 327, 177, 178, 179, 1049, 180, 181, 182,
|
|
1051, 436, 531, 206, 229, 239, 420, 260, 431, 256,
|
|
394, 230, 285, 257, 233, 285, 871, 285, 6, 402,
|
|
285, 275, 6, 979, 980, 981, 314, 285, 321, 421,
|
|
453, 1016, 284, 891, 1059, 531, 1072, 328, 258, 1073,
|
|
887, 1067, 441, 201, 6, 1068, 1080, 175, 176, 177,
|
|
178, 179, 285, 180, 181, 182, 437, 202, 334, 1076,
|
|
335, 454, 203, 1, 2, 3, 259, 204, 1079, 336,
|
|
438, 1081, 472, 473, 474, 439, 345, 338, 1006, 645,
|
|
420, 528, 987, 340, 528, 455, 354, -80, 356, -80,
|
|
-80, -80, 390, 475, 347, 364, 365, 6, 351, 456,
|
|
490, 491, 492, 366, 457, 346, 493, 362, 500, 458,
|
|
553, 554, 327, 367, 532, 706, 285, 532, 943, 368,
|
|
441, 711, 547, 528, 441, 441, 441, 441, 441, 369,
|
|
612, 613, 707, 618, 552, 619, 612, 613, 560, 357,
|
|
370, 358, 610, 611, 371, 234, 494, 837, 706, 616,
|
|
372, 967, 968, 657, 872, 420, 532, 612, 613, 395,
|
|
373, 969, 374, 612, 613, 845, 6, 666, 375, 6,
|
|
531, 376, 528, 378, 706, 500, 379, 1040, 380, 381,
|
|
132, 382, 500, 500, 500, 500, 500, 500, 659, 612,
|
|
613, 929, 616, 676, 383, 399, 448, 624, 624, 624,
|
|
846, 495, 396, 1002, 404, 528, 194, 195, 443, 405,
|
|
357, 130, 358, 359, 360, 496, 406, 500, 675, 1010,
|
|
497, 463, 464, 503, 465, 498, 616, 467, 468, 441,
|
|
168, 631, 632, 633, -264, 477, 394, 478, 532, 131,
|
|
481, 482, 488, 489, 263, 560, 327, 550, 41, 555,
|
|
485, 533, 487, 540, 562, 531, 639, 986, 974, 975,
|
|
976, 977, 978, 565, 979, 980, 981, 537, 642, 644,
|
|
1047, 531, 566, 567, 568, 569, 570, 571, 572, 573,
|
|
649, 139, 140, 141, 142, 667, 159, 664, 574, 670,
|
|
575, 576, 577, 578, 579, 580, 581, 582, 583, 584,
|
|
585, 586, 394, 671, 678, 708, 547, 839, 840, 626,
|
|
626, 626, 842, 843, 844, 850, 1065, 587, 661, 853,
|
|
865, 890, 531, 866, 657, 867, 888, 175, 176, 177,
|
|
178, 179, 659, 180, 181, 182, 528, 868, 500, 870,
|
|
893, 588, 898, 896, 846, 969, 394, 930, 624, 935,
|
|
616, 932, 624, 969, 624, 500, 624, 624, 624, 889,
|
|
936, 939, 892, 938, 940, 894, 895, 900, 531, 528,
|
|
616, 947, 944, 927, 948, 589, 949, 950, 590, 951,
|
|
591, 592, 593, 594, 595, 596, 597, 598, 599, 600,
|
|
601, 448, 602, 603, 952, 953, 604, 900, 982, 983,
|
|
985, 988, 532, 990, 991, 999, 287, 288, 289, 290,
|
|
291, 292, 293, 294, 295, 296, 297, 298, 299, 300,
|
|
301, 302, 303, 304, 305, 306, 307, 1003, 310, 194,
|
|
195, 1007, 312, 1015, 7, 8, 9, 10, 1008, 11,
|
|
12, 13, 974, 975, 976, 977, 978, 448, 979, 980,
|
|
981, 1009, 976, 977, 978, 1041, 979, 980, 981, 855,
|
|
626, 857, 1042, 1043, 626, 1044, 626, 1050, 626, 626,
|
|
626, 411, 412, 1048, 50, 1052, 1053, 873, 1054, 339,
|
|
1055, 1056, 1066, 1069, 1070, 989, 945, 1074, 332, 194,
|
|
195, 836, 1075, 874, 984, 1001, 1039, 342, 647, 884,
|
|
552, 22, 869, 648, 528, 194, 195, 635, 486, 835,
|
|
668, 46, 937, 47, 48, 49, 0, 27, 61, 0,
|
|
0, 0, 53, 0, 622, 63, 875, 0, 623, 876,
|
|
384, 385, 55, 32, 50, 0, 0, 532, 56, 57,
|
|
58, 0, 900, 0, 0, 0, 0, 0, 0, 0,
|
|
50, 959, 0, 0, 59, 60, 877, 0, 0, 0,
|
|
878, 879, 0, 0, 880, 0, 881, 393, 64, 0,
|
|
882, 65, 0, 66, 0, 0, 958, 0, 61, 500,
|
|
616, 0, 263, 0, 622, 63, 0, 0, 627, 528,
|
|
0, 0, 0, 0, 61, 0, 0, 430, 0, 0,
|
|
622, 63, 0, 0, 629, 528, 450, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 963, 964, 965, 966, 967,
|
|
968, 0, 532, 0, 0, 900, 0, 0, 0, 969,
|
|
560, 0, 466, 0, 0, 0, 0, 0, 532, 162,
|
|
163, 164, 165, 166, 167, 1011, 1012, 1013, 1014, 0,
|
|
1037, 0, 0, 168, 0, 46, 528, 47, 48, 49,
|
|
0, 0, 0, 0, 160, 161, 162, 163, 164, 165,
|
|
166, 167, 0, 0, 0, 616, 313, 0, 0, 0,
|
|
168, 0, 56, 191, 58, 0, 0, 0, 0, 532,
|
|
0, 0, 900, 0, 0, 559, 900, 0, 59, 60,
|
|
0, 0, 528, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 1061, 64, 1062, 0, 0, 621, 66, 0, 0,
|
|
884, 884, 884, 884, 0, 884, 974, 975, 976, 977,
|
|
978, 0, 979, 980, 981, 532, 0, 900, 0, 1077,
|
|
1078, 900, 954, 955, 956, 957, 0, 960, 173, 174,
|
|
175, 176, 177, 178, 179, 900, 180, 181, 182, 0,
|
|
0, 0, 0, 0, 900, 0, 672, 673, 674, 0,
|
|
677, 169, 170, 171, 172, 173, 174, 175, 176, 177,
|
|
178, 179, 0, 180, 181, 182, 0, 0, 0, 388,
|
|
0, 0, 0, 393, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 559, 0, 884, 884, 884, 884, 884, 884,
|
|
884, 884, 884, 884, 884, 884, 884, 884, 884, 884,
|
|
884, 884, 884, 0, 411, 412, 1017, 1018, 1019, 1020,
|
|
1021, 1022, 1023, 1024, 1025, 1026, 1027, 1028, 1029, 1030,
|
|
1031, 1032, 1033, 1034, 1035, 160, 161, 162, 163, 164,
|
|
165, 166, 167, 0, 0, 81, 0, 847, 884, 393,
|
|
0, 168, 0, 82, 46, 0, 47, 48, 49, 413,
|
|
414, 0, 84, 85, 86, 53, 0, 0, 0, 0,
|
|
1057, 1064, 212, 0, 0, 55, 0, 0, 92, 221,
|
|
0, 56, 57, 58, 0, 0, 0, 97, 0, 0,
|
|
0, 884, 98, 393, 0, 0, 0, 59, 60, 0,
|
|
0, 0, 0, 0, 0, 103, 0, 104, 0, 415,
|
|
0, 64, 0, 1071, 65, 0, 66, 0, 905, 906,
|
|
907, 908, 909, 910, 911, 912, 913, 914, 915, 916,
|
|
917, 918, 919, 920, 921, 922, 923, 924, 925, 0,
|
|
928, 0, 169, 170, 171, 172, 173, 174, 175, 176,
|
|
177, 178, 179, 0, 180, 181, 182, 0, 0, 0,
|
|
998, 0, 0, 716, 717, 718, 719, 720, 721, 722,
|
|
723, 724, 725, 0, 726, 727, 728, 729, 730, 731,
|
|
732, 733, 734, 735, 736, 0, 0, 0, 0, 0,
|
|
0, 737, 738, 739, 740, 741, 742, 743, 744, 745,
|
|
746, 747, 748, 749, 750, 751, 752, 753, 0, 0,
|
|
754, 755, 756, 757, 758, 759, 760, 761, 762, 763,
|
|
764, 765, 766, 767, 0, 768, 0, 769, 770, 771,
|
|
772, 773, 774, 775, 776, 777, 778, 779, 780, 0,
|
|
0, 0, 781, 782, 783, 0, 784, 785, 786, 787,
|
|
788, 789, 790, 791, 792, 793, 794, 795, 796, 797,
|
|
0, 798, 799, 800, 801, 802, 803, 804, 805, 806,
|
|
807, 808, 809, 810, 0, 0, 942, 811, 812, 813,
|
|
814, 815, 816, 817, 818, 819, 820, 821, 822, 823,
|
|
824, 825, 826, 827, 828, 829, 830, 831, 1005, 832,
|
|
833, 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, 0, 0, 0, 0,
|
|
0, 0, 992, 0, 0, 0, 0, 0, 0, 995,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 716, 717, 718, 719, 720, 721,
|
|
722, 723, 724, 725, 0, 726, 727, 728, 729, 730,
|
|
731, 732, 733, 734, 735, 736, 0, 559, 0, 0,
|
|
0, 0, 737, 738, 739, 740, 741, 742, 743, 744,
|
|
745, 746, 747, 748, 749, 750, 751, 752, 753, 0,
|
|
0, 754, 755, 756, 757, 758, 759, 760, 761, 762,
|
|
763, 764, 765, 766, 767, 0, 768, 1038, 769, 770,
|
|
771, 772, 773, 774, 775, 776, 777, 778, 779, 780,
|
|
0, 0, 1045, 781, 782, 783, 0, 784, 785, 786,
|
|
787, 788, 789, 790, 791, 792, 793, 794, 795, 796,
|
|
797, 0, 798, 799, 800, 801, 802, 803, 804, 805,
|
|
806, 807, 808, 809, 810, 0, 0, 0, 811, 812,
|
|
813, 814, 815, 816, 817, 818, 819, 820, 821, 822,
|
|
823, 824, 825, 826, 827, 828, 829, 830, 831, 0,
|
|
832, 833, 504, 505, 506, 10, 0, 11, 507, 508,
|
|
44, 0, 0, 509, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 160, 161, 162, 163, 164, 165, 166, 167,
|
|
0, 0, 0, 0, 0, 510, 45, 0, 168, 46,
|
|
0, 47, 48, 49, 50, 511, 0, 52, 0, 0,
|
|
53, 512, 0, 0, 54, 0, 0, 0, 0, 513,
|
|
55, 0, 0, 0, 0, 0, 56, 57, 58, 0,
|
|
0, 0, 0, 514, 0, 515, 0, 0, 0, 0,
|
|
516, 0, 59, 60, 517, 0, 0, 518, 61, 0,
|
|
0, 519, 0, 0, 62, 63, 64, 0, 0, 65,
|
|
0, 66, 504, 505, 506, 10, 0, 11, 507, 508,
|
|
44, 0, 0, 901, 520, 0, 0, 0, 521, 0,
|
|
0, 0, 522, 0, 523, 0, 0, 0, 524, 169,
|
|
170, 171, 172, 173, 174, 175, 176, 177, 178, 179,
|
|
0, 180, 181, 182, 0, 510, 45, 1060, 0, 46,
|
|
0, 47, 48, 49, 50, 511, 0, 52, 0, 0,
|
|
53, 512, 0, 0, 54, 0, 0, 0, 0, 513,
|
|
55, 0, 0, 0, 0, 0, 56, 57, 58, 0,
|
|
0, 0, 0, 514, 0, 515, 0, 0, 0, 0,
|
|
516, 0, 59, 60, 517, 0, 0, 518, 61, 0,
|
|
0, 519, 0, 0, 62, 63, 64, 0, 0, 65,
|
|
0, 66, 7, 8, 9, 10, 0, 11, 12, 13,
|
|
143, 0, 0, 0, 520, 0, 0, 0, 521, 0,
|
|
0, 0, 522, 0, 523, 0, 0, 0, 524, 0,
|
|
0, 0, 160, 161, 162, 163, 164, 165, 166, 167,
|
|
0, 0, 0, 0, 0, 15, 45, 0, 168, 144,
|
|
0, 145, 146, 147, 50, 51, 0, 52, 0, 0,
|
|
148, 21, 0, 0, 54, 0, 0, 0, 0, 22,
|
|
149, 0, 0, 0, 0, 0, 150, 151, 58, 0,
|
|
0, 0, 0, 26, 0, 27, 0, 0, 0, 0,
|
|
0, 0, 152, 153, 30, 0, 0, 31, 61, 0,
|
|
0, 32, 0, 0, 62, 63, 154, 0, 0, 65,
|
|
0, 155, 504, 505, 506, 10, 0, 11, 507, 508,
|
|
44, 0, 0, 0, 35, 0, 0, 0, 36, 37,
|
|
0, 0, 38, 0, 39, 409, 0, 0, 40, 169,
|
|
170, 171, 172, 173, 174, 175, 176, 177, 178, 179,
|
|
0, 180, 181, 182, 410, 510, 45, 0, 0, 46,
|
|
0, 47, 48, 49, 50, 511, 0, 52, 0, 0,
|
|
53, 512, 0, 0, 54, 0, 0, 0, 0, 513,
|
|
55, 0, 0, 0, 0, 0, 56, 57, 58, 0,
|
|
0, 0, 0, 514, 0, 515, 0, 0, 0, 0,
|
|
516, 0, 59, 60, 517, 0, 0, 518, 61, 0,
|
|
0, 519, 0, 0, 62, 63, 64, 0, 0, 65,
|
|
0, 66, 7, 8, 9, 10, 0, 11, 12, 13,
|
|
14, 0, 0, 0, 520, 0, 0, 0, 521, 0,
|
|
0, 0, 522, 0, 523, 0, 0, 0, 524, 963,
|
|
964, 965, 966, 967, 968, 0, 0, 0, 46, 0,
|
|
47, 48, 49, 969, 0, 15, 0, 0, 0, 16,
|
|
0, 17, 18, 19, 0, 0, 0, 0, 0, 0,
|
|
20, 21, 0, 0, 0, 56, 191, 58, 0, 22,
|
|
23, 0, 0, 0, 0, 0, 24, 25, 0, 0,
|
|
0, 59, 60, 26, 0, 27, 0, 0, 0, 0,
|
|
0, 0, 28, 29, 30, 64, 0, 31, 0, 0,
|
|
66, 32, 7, 8, 9, 10, 33, 11, 12, 13,
|
|
14, 34, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 133, 35, 0, 0, 0, 36, 37,
|
|
0, 0, 38, 0, 39, 0, 308, 973, 40, 0,
|
|
974, 975, 976, 977, 978, 15, 979, 980, 981, 16,
|
|
0, 17, 18, 19, 0, 0, 0, 0, 0, 0,
|
|
20, 21, 0, 0, 0, 0, 0, 0, 0, 22,
|
|
23, 0, 0, 0, 0, 0, 24, 25, 0, 0,
|
|
0, 0, 0, 26, 0, 27, 0, 0, 0, 0,
|
|
0, 0, 28, 29, 30, 0, 0, 31, 0, 0,
|
|
0, 32, 7, 8, 9, 10, 33, 11, 12, 13,
|
|
14, 34, 0, 0, 0, 0, 449, 0, 0, 0,
|
|
0, 0, 0, 0, 35, 0, 0, 0, 36, 37,
|
|
0, 0, 38, 0, 39, 0, 0, 0, 40, 0,
|
|
0, 0, 0, 0, 0, 15, 0, 0, 0, 16,
|
|
0, 17, 18, 19, 0, 0, 0, 0, 0, 0,
|
|
20, 21, 0, 0, 0, 0, 0, 0, 0, 22,
|
|
23, 0, 0, 0, 0, 0, 24, 25, 0, 0,
|
|
0, 0, 0, 26, 0, 27, 0, 0, 0, 0,
|
|
0, 0, 28, 29, 30, 0, 0, 31, 0, 0,
|
|
0, 32, 7, 8, 9, 10, 33, 11, 12, 13,
|
|
14, 34, 0, 0, 0, 0, 556, 0, 0, 0,
|
|
0, 0, 0, 0, 35, 0, 0, 0, 36, 37,
|
|
0, 0, 38, 0, 39, 0, 0, 0, 40, 0,
|
|
0, 0, 0, 0, 0, 15, 0, 0, 0, 16,
|
|
0, 17, 18, 19, 0, 0, 0, 0, 0, 0,
|
|
20, 21, 0, 0, 0, 0, 0, 0, 0, 22,
|
|
23, 0, 0, 0, 0, 0, 24, 25, 0, 0,
|
|
0, 0, 0, 26, 0, 27, 0, 0, 0, 0,
|
|
0, 0, 28, 29, 30, 0, 0, 31, 0, 0,
|
|
0, 32, 7, 8, 9, 10, 33, 11, 12, 13,
|
|
14, 34, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 35, 0, 0, 0, 36, 37,
|
|
0, 0, 38, 0, 39, 0, 926, 0, 40, 0,
|
|
0, 0, 0, 0, 0, 15, 0, 0, 0, 16,
|
|
0, 17, 18, 19, 0, 0, 0, 0, 0, 0,
|
|
20, 21, 0, 0, 0, 0, 0, 0, 0, 22,
|
|
23, 0, 0, 0, 0, 0, 24, 25, 0, 0,
|
|
0, 0, 0, 26, 0, 27, 0, 0, 0, 0,
|
|
0, 0, 28, 29, 30, 0, 0, 31, 0, 0,
|
|
0, 32, 7, 8, 9, 10, 33, 11, 12, 13,
|
|
14, 34, 0, 0, 0, 0, 941, 0, 0, 0,
|
|
0, 0, 0, 0, 35, 0, 0, 0, 36, 37,
|
|
0, 0, 38, 0, 39, 0, 0, 0, 40, 0,
|
|
0, 0, 0, 0, 0, 15, 0, 0, 0, 16,
|
|
0, 17, 18, 19, 0, 0, 0, 0, 0, 0,
|
|
20, 21, 0, 0, 0, 0, 0, 0, 0, 22,
|
|
23, 0, 0, 0, 0, 0, 24, 25, 0, 0,
|
|
0, 0, 0, 26, 0, 27, 0, 0, 0, 0,
|
|
0, 0, 28, 29, 30, 0, 0, 31, 0, 0,
|
|
0, 32, 7, 8, 9, 10, 33, 11, 12, 13,
|
|
14, 34, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 35, 0, 0, 0, 36, 37,
|
|
0, 0, 38, 0, 39, 0, 1036, 0, 40, 0,
|
|
0, 0, 0, 0, 0, 15, 0, 0, 0, 16,
|
|
0, 17, 18, 19, 0, 0, 0, 0, 0, 0,
|
|
20, 21, 0, 0, 0, 0, 0, 0, 0, 22,
|
|
23, 0, 243, 244, 0, 0, 24, 25, 0, 0,
|
|
0, 0, 0, 26, 0, 27, 0, 0, 0, 0,
|
|
0, 0, 28, 29, 30, 0, 0, 31, 0, 0,
|
|
0, 32, 0, 0, 0, 0, 33, 0, 0, 245,
|
|
0, 34, 46, 0, 47, 48, 49, 50, 246, 0,
|
|
247, 0, 0, 53, 35, 0, 0, 54, 36, 37,
|
|
0, 0, 38, 55, 39, 0, 0, 0, 40, 56,
|
|
57, 58, 0, 243, 244, 0, 0, 0, 0, 248,
|
|
0, 0, 0, 0, 0, 59, 60, 0, 0, 0,
|
|
0, 61, 0, 0, 0, 0, 0, 249, 63, 64,
|
|
0, 0, 65, 46, 66, 47, 48, 49, 0, 250,
|
|
245, 0, 0, 46, 0, 47, 48, 49, 50, 246,
|
|
0, 247, 0, 0, 53, 251, 0, 0, 54, 0,
|
|
56, 191, 58, 0, 55, 0, 0, 243, 244, 0,
|
|
56, 57, 58, 0, 0, 0, 59, 60, 0, 0,
|
|
248, 0, 0, 0, 0, 0, 59, 60, 0, 0,
|
|
64, 0, 61, 0, 0, 66, 0, 0, 249, 63,
|
|
64, 0, 0, 65, 245, 66, 0, 46, 0, 47,
|
|
48, 49, 50, 341, 0, 247, 0, 0, 53, 0,
|
|
0, 0, 54, 0, 0, 0, 251, 0, 55, 0,
|
|
0, 0, 0, 0, 56, 57, 58, 0, 0, 0,
|
|
0, 0, 0, 0, 248, 0, 0, 0, 0, 0,
|
|
59, 60, 0, 0, 0, 0, 61, 0, 0, 0,
|
|
0, 0, 249, 63, 64, 0, 0, 65, 0, 66,
|
|
160, 161, 162, 163, 164, 165, 166, 167, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 168, 0, 0, 0,
|
|
251, 160, 161, 162, 163, 164, 165, 166, 167, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 168, 0, 160,
|
|
161, 162, 163, 164, 165, 166, 167, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 168, 0, 160, 161, 162,
|
|
163, 164, 165, 166, 167, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 168, 0, 0, 160, 161, 162, 163,
|
|
164, 165, 166, 167, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 168, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 169, 170, 171,
|
|
172, 173, 174, 175, 176, 177, 178, 179, 0, 180,
|
|
181, 182, 389, 0, 0, 0, 0, 0, 169, 170,
|
|
171, 172, 173, 174, 175, 176, 177, 178, 179, 0,
|
|
180, 181, 182, 538, 386, 0, 169, 170, 171, 172,
|
|
173, 174, 175, 176, 177, 178, 179, 0, 180, 181,
|
|
182, 561, 0, 0, 169, 170, 171, 172, 173, 174,
|
|
175, 176, 177, 178, 179, 0, 180, 181, 182, 854,
|
|
0, 0, 0, 169, 170, 171, 172, 173, 174, 175,
|
|
176, 177, 178, 179, 0, 180, 181, 182, 160, 161,
|
|
162, 163, 164, 165, 166, 167, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 168, 160, 161, 162, 163, 164,
|
|
165, 166, 167, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 168, 682, 683, 684, 685, 686, 687, 688, 689,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 690, 961,
|
|
962, 963, 964, 965, 966, 967, 968, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 969, 961, 962, 963, 964,
|
|
965, 966, 967, 968, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 969, 161, 162, 163, 164, 165, 166, 167,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 168, 0,
|
|
0, 0, 0, 996, 0, 169, 170, 171, 172, 173,
|
|
174, 175, 176, 177, 178, 179, 0, 180, 181, 182,
|
|
0, 0, 169, 170, 171, 172, 173, 174, 175, 176,
|
|
177, 178, 179, 0, 180, 181, 182, 0, 0, 691,
|
|
692, 693, 694, 695, 696, 697, 698, 699, 700, 701,
|
|
0, 702, 703, 704, 1058, 0, 970, 971, 972, 973,
|
|
0, 0, 974, 975, 976, 977, 978, -2, 979, 980,
|
|
981, 0, 0, 970, 971, 972, 973, 0, 0, 974,
|
|
975, 976, 977, 978, 0, 979, 980, 981, 0, 0,
|
|
170, 171, 172, 173, 174, 175, 176, 177, 178, 179,
|
|
0, 180, 181, 182, 962, 963, 964, 965, 966, 967,
|
|
968, 0, 0, 0, 0, 80, 81, 0, 0, 969,
|
|
0, 0, 0, 0, 82, 0, 0, 0, 0, 0,
|
|
0, 83, 0, 84, 85, 86, 87, 0, 0, 88,
|
|
0, 0, 0, 89, 0, 0, 0, 90, 91, 92,
|
|
93, 0, 0, 0, 0, 94, 95, 96, 97, 0,
|
|
0, 0, 0, 98, 99, 0, 0, 100, 0, 0,
|
|
0, 101, 0, 0, 0, 102, 103, 0, 104, 162,
|
|
163, 164, 165, 166, 167, 0, 105, 0, 0, 0,
|
|
0, 0, 0, 168, 162, 163, 164, 165, 166, 167,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 168, 0,
|
|
0, 971, 972, 973, 0, 0, 974, 975, 976, 977,
|
|
978, 0, 979, 980, 981, 162, 163, 164, 165, 166,
|
|
167, 0, 0, 0, 0, 0, 0, 0, 0, 168,
|
|
963, 964, 965, 966, 967, 968, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 969, 963, 964, 965, 966, 967,
|
|
968, 0, 0, 0, 0, 0, 0, 0, 0, 969,
|
|
164, 165, 166, 167, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 168, 0, 0, 170, 171, 172, 173, 174,
|
|
175, 176, 177, 178, 179, 0, 180, 181, 182, 0,
|
|
0, 171, 172, 173, 174, 175, 176, 177, 178, 179,
|
|
0, 180, 181, 182, 965, 966, 967, 968, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 969, 0, 0, 0,
|
|
0, 0, 0, 172, 173, 174, 175, 176, 177, 178,
|
|
179, 0, 180, 181, 182, 0, 971, 972, 973, 0,
|
|
0, 974, 975, 976, 977, 978, 0, 979, 980, 981,
|
|
0, 0, 972, 973, 0, 0, 974, 975, 976, 977,
|
|
978, 0, 979, 980, 981, 0, 0, 173, 174, 175,
|
|
176, 177, 178, 179, 0, 180, 181, 182, 0, 216,
|
|
0, 46, 0, 47, 48, 49, 0, 0, 0, 0,
|
|
0, 0, 127, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 56, 191,
|
|
58, 0, 0, 974, 975, 976, 977, 978, 0, 979,
|
|
980, 981, 81, 0, 59, 60, 0, 0, 348, 349,
|
|
82, 46, 0, 47, 48, 49, 50, 0, 64, 84,
|
|
85, 86, 53, 66, 0, 0, 54, 0, 0, 212,
|
|
0, 0, 55, 0, 0, 92, 0, 0, 56, 57,
|
|
58, 0, 0, 0, 97, 245, 134, 0, 46, 98,
|
|
47, 48, 49, 50, 59, 60, 247, 0, 0, 53,
|
|
61, 0, 103, 54, 104, 0, 128, 63, 64, 55,
|
|
44, 65, 0, 66, 0, 56, 57, 58, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 59, 60, 0, 0, 0, 0, 61, 46, 0,
|
|
47, 48, 49, 249, 63, 64, 45, 0, 65, 46,
|
|
66, 47, 48, 49, 50, 51, 0, 52, 0, 0,
|
|
53, 0, 0, 0, 54, 56, 191, 58, 0, 0,
|
|
55, 44, 0, 0, 0, 0, 56, 57, 58, 0,
|
|
0, 59, 60, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 59, 60, 0, 64, 0, 0, 61, 0,
|
|
66, 0, 0, 0, 62, 63, 64, 45, 44, 65,
|
|
46, 66, 47, 48, 49, 50, 352, 0, 52, 0,
|
|
0, 53, 0, 137, 0, 54, 0, 0, 0, 0,
|
|
0, 55, 0, 0, 0, 0, 0, 56, 57, 58,
|
|
0, 0, 0, 0, 45, 0, 0, 46, 0, 47,
|
|
48, 49, 50, 59, 60, 52, 0, 0, 53, 61,
|
|
0, 0, 54, 0, 0, 62, 63, 64, 55, 44,
|
|
65, 0, 66, 0, 56, 57, 58, 0, 0, 325,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 665, 0,
|
|
59, 60, 0, 0, 0, 0, 61, 0, 0, 0,
|
|
0, 0, 62, 63, 64, 45, 0, 65, 46, 66,
|
|
47, 48, 49, 50, 0, 0, 52, 0, 46, 53,
|
|
47, 48, 49, 54, 0, 0, 0, 0, 0, 55,
|
|
0, 0, 0, 0, 0, 56, 57, 58, 0, 0,
|
|
0, 0, 0, 0, 0, 56, 191, 58, 0, 0,
|
|
0, 59, 60, 0, 0, 0, 0, 61, 80, 81,
|
|
0, 59, 60, 62, 63, 64, 0, 82, 65, 0,
|
|
66, 0, 0, 0, 83, 64, 84, 85, 86, 87,
|
|
66, 0, 88, 0, 0, 0, 89, 0, 0, 0,
|
|
90, 91, 92, 93, 0, 0, 0, 0, 94, 95,
|
|
96, 97, 0, 0, 80, 81, 98, 99, 0, 0,
|
|
100, 0, 0, 82, 101, 0, 0, 0, 102, 103,
|
|
83, 104, 84, 85, 86, 87, 0, 0, 88, 105,
|
|
0, 0, 89, 0, 0, 0, 90, 91, 92, 93,
|
|
0, 0, 0, 0, 94, 95, 96, 97, 407, 0,
|
|
80, 81, 98, 99, 0, 0, 100, 0, 0, 82,
|
|
101, 0, 0, 0, 102, 103, 83, 104, 84, 85,
|
|
86, 87, 0, 0, 88, 105, 0, 0, 89, 0,
|
|
0, 0, 90, 91, 92, 93, 0, 0, 0, 0,
|
|
94, 95, 96, 97, 471, 0, 80, 81, 98, 99,
|
|
0, 0, 100, 0, 0, 82, 101, 0, 0, 0,
|
|
102, 103, 83, 104, 84, 85, 86, 87, 0, 0,
|
|
88, 105, 0, 0, 89, 0, 0, 0, 90, 91,
|
|
92, 93, 0, 0, 0, 0, 94, 95, 96, 97,
|
|
479, 0, 80, 81, 98, 99, 0, 0, 100, 0,
|
|
0, 82, 101, 0, 0, 0, 102, 103, 83, 104,
|
|
84, 85, 86, 87, 0, 0, 88, 105, 0, 0,
|
|
89, 0, 0, 0, 90, 91, 92, 93, 0, 0,
|
|
0, 0, 94, 95, 96, 97, 548, 0, 80, 81,
|
|
98, 99, 0, 0, 100, 0, 0, 82, 101, 0,
|
|
0, 0, 102, 103, 83, 104, 84, 85, 86, 87,
|
|
0, 0, 88, 105, 0, 0, 89, 0, 0, 0,
|
|
90, 91, 92, 93, 0, 0, 0, 0, 94, 95,
|
|
96, 97, 640, 0, 80, 81, 98, 99, 0, 0,
|
|
100, 0, 0, 82, 101, 0, 0, 0, 102, 103,
|
|
83, 104, 84, 85, 86, 87, 0, 0, 88, 105,
|
|
0, 0, 89, 0, 0, 0, 90, 91, 92, 93,
|
|
0, 0, 0, 0, 94, 95, 96, 97, 863, 0,
|
|
0, 0, 98, 99, 0, 46, 100, 47, 48, 49,
|
|
101, 0, 81, 0, 102, 103, 187, 104, 0, 0,
|
|
82, 0, 0, 0, 0, 105, 188, 0, 0, 84,
|
|
85, 86, 56, 189, 58, 0, 0, 0, 0, 212,
|
|
0, 0, 0, 0, 864, 92, 0, 0, 59, 60,
|
|
0, 0, 0, 0, 97, 0, 0, 0, 0, 98,
|
|
80, 81, 64, 0, 0, 0, 0, 66, 0, 82,
|
|
0, 0, 103, 0, 104, 0, 83, 0, 84, 85,
|
|
86, 87, 0, 0, 88, 0, 0, 0, 89, -127,
|
|
126, 0, 90, 91, 92, 93, 0, 0, 0, 0,
|
|
94, 95, 96, 97, 0, 0, 0, 0, 98, 99,
|
|
0, 46, 100, 47, 48, 49, 101, 0, 81, 0,
|
|
102, 103, 187, 104, 0, 81, 82, 0, 0, 0,
|
|
0, 0, 188, 82, 0, 84, 85, 86, 56, 189,
|
|
58, 0, 84, 85, 86, 212, 0, 0, 0, 0,
|
|
0, 92, 212, 0, 59, 60, 0, 0, 92, 0,
|
|
97, 0, 0, 0, 0, 98, 0, 97, 64, 100,
|
|
0, 0, 98, 66, 0, 0, 0, 0, 103, 0,
|
|
104, 0, 0, 0, 0, 103, 0, 104
|
|
};
|
|
|
|
#define yypact_value_is_default(Yystate) \
|
|
(!!((Yystate) == (-698)))
|
|
|
|
#define yytable_value_is_error(Yytable_value) \
|
|
YYID (0)
|
|
|
|
static const yytype_int16 yycheck[] =
|
|
{
|
|
1, 100, 26, 556, 503, 226, 109, 135, 428, 328,
|
|
14, 708, 516, 0, 6, 121, 8, 51, 118, 39,
|
|
118, 119, 120, 121, 122, 135, 124, 125, 126, 12,
|
|
136, 342, 109, 26, 85, 133, 134, 137, 537, 137,
|
|
138, 409, 10, 11, 39, 547, 237, 467, 81, 82,
|
|
101, 84, 85, 86, 118, 246, 89, 425, 126, 92,
|
|
428, 26, 10, 11, 97, 98, 67, 100, 101, 424,
|
|
103, 104, 427, 137, 429, 10, 11, 473, 474, 10,
|
|
11, 10, 11, 10, 11, 109, 118, 109, 431, 135,
|
|
31, 109, 435, 436, 437, 438, 439, 452, 453, 467,
|
|
455, 456, 457, 458, 135, 137, 118, 118, 329, 121,
|
|
117, 613, 333, 120, 118, 116, 109, 118, 119, 120,
|
|
121, 122, 117, 124, 125, 126, 137, 121, 123, 549,
|
|
135, 234, 133, 134, 355, 117, 137, 138, 120, 135,
|
|
135, 136, 136, 462, 109, 137, 501, 130, 516, 460,
|
|
341, 57, 120, 59, 60, 657, 853, 234, 64, 135,
|
|
237, 181, 661, 486, 136, 137, 10, 11, 135, 246,
|
|
493, 494, 495, 496, 497, 498, 680, 275, 533, 212,
|
|
135, 549, 681, 216, 185, 135, 117, 408, 117, 137,
|
|
117, 135, 503, 134, 135, 136, 135, 540, 199, 200,
|
|
201, 202, 203, 204, 31, 528, 207, 562, 117, 62,
|
|
234, 55, 234, 237, 248, 237, 234, 135, 136, 237,
|
|
73, 74, 246, 126, 246, 226, 537, 623, 246, 120,
|
|
31, 627, 6, 629, 8, 631, 632, 633, 118, 936,
|
|
93, 234, 10, 11, 237, 151, 152, 153, 154, 102,
|
|
21, 22, 135, 246, 12, 99, 477, 137, 16, 480,
|
|
31, 105, 106, 118, 341, 10, 11, 12, 6, 234,
|
|
8, 16, 237, 185, 275, 128, 135, 130, 131, 135,
|
|
118, 246, 137, 189, 135, 191, 135, 199, 200, 201,
|
|
202, 203, 204, 713, 10, 11, 12, 120, 56, 137,
|
|
16, 135, 208, 130, 131, 132, 1003, 134, 135, 136,
|
|
1007, 56, 680, 314, 120, 83, 340, 341, 352, 341,
|
|
321, 120, 118, 341, 135, 118, 649, 118, 329, 330,
|
|
118, 135, 333, 134, 135, 136, 130, 118, 136, 340,
|
|
56, 137, 137, 666, 137, 713, 137, 120, 341, 137,
|
|
661, 1048, 353, 111, 355, 1052, 137, 128, 129, 130,
|
|
131, 132, 118, 134, 135, 136, 111, 125, 221, 1066,
|
|
10, 87, 130, 114, 115, 116, 341, 135, 1075, 10,
|
|
125, 137, 88, 89, 90, 130, 239, 117, 941, 488,
|
|
414, 425, 891, 126, 428, 111, 249, 117, 251, 119,
|
|
120, 121, 314, 109, 135, 258, 259, 408, 135, 125,
|
|
10, 11, 12, 137, 130, 135, 16, 119, 419, 135,
|
|
117, 118, 328, 137, 425, 120, 118, 428, 848, 137,
|
|
431, 135, 136, 467, 435, 436, 437, 438, 439, 137,
|
|
135, 136, 137, 463, 445, 465, 135, 136, 449, 117,
|
|
137, 119, 120, 121, 137, 488, 56, 555, 120, 460,
|
|
137, 21, 22, 136, 137, 489, 467, 135, 136, 322,
|
|
127, 31, 137, 135, 136, 137, 477, 511, 137, 480,
|
|
848, 137, 516, 137, 120, 486, 137, 986, 137, 127,
|
|
514, 137, 493, 494, 495, 496, 497, 498, 499, 135,
|
|
136, 137, 503, 523, 137, 120, 359, 472, 473, 474,
|
|
4, 111, 138, 933, 117, 549, 10, 11, 135, 118,
|
|
117, 514, 119, 120, 121, 125, 118, 528, 523, 949,
|
|
130, 135, 137, 888, 135, 135, 537, 135, 140, 540,
|
|
31, 88, 89, 90, 117, 117, 547, 118, 549, 514,
|
|
10, 10, 127, 118, 555, 556, 462, 138, 2, 135,
|
|
413, 130, 415, 130, 130, 933, 118, 890, 128, 129,
|
|
130, 131, 132, 6, 134, 135, 136, 932, 121, 121,
|
|
1000, 949, 15, 16, 17, 18, 19, 20, 21, 22,
|
|
130, 35, 36, 37, 38, 126, 40, 135, 31, 135,
|
|
33, 34, 35, 36, 37, 38, 39, 40, 41, 42,
|
|
43, 44, 613, 126, 137, 137, 136, 138, 118, 472,
|
|
473, 474, 10, 137, 140, 118, 1046, 60, 983, 137,
|
|
10, 665, 1000, 119, 136, 10, 118, 128, 129, 130,
|
|
131, 132, 643, 134, 135, 136, 680, 642, 649, 644,
|
|
135, 84, 56, 137, 4, 31, 657, 135, 623, 140,
|
|
661, 118, 627, 31, 629, 666, 631, 632, 633, 664,
|
|
137, 137, 667, 138, 138, 670, 671, 678, 1046, 713,
|
|
681, 137, 140, 703, 137, 118, 135, 135, 121, 126,
|
|
123, 124, 125, 126, 127, 128, 129, 130, 131, 132,
|
|
133, 554, 135, 136, 135, 126, 139, 708, 140, 118,
|
|
137, 127, 713, 137, 127, 135, 160, 161, 162, 163,
|
|
164, 165, 166, 167, 168, 169, 170, 171, 172, 173,
|
|
174, 175, 176, 177, 178, 179, 180, 137, 182, 10,
|
|
11, 137, 186, 137, 3, 4, 5, 6, 119, 8,
|
|
9, 10, 128, 129, 130, 131, 132, 610, 134, 135,
|
|
136, 119, 130, 131, 132, 135, 134, 135, 136, 622,
|
|
623, 624, 137, 135, 627, 135, 629, 138, 631, 632,
|
|
633, 10, 11, 137, 55, 137, 137, 46, 127, 233,
|
|
137, 127, 137, 135, 135, 893, 850, 137, 220, 10,
|
|
11, 554, 137, 62, 888, 932, 983, 237, 488, 656,
|
|
811, 70, 643, 489, 848, 10, 11, 478, 414, 553,
|
|
514, 50, 811, 52, 53, 54, -1, 86, 99, -1,
|
|
-1, -1, 61, -1, 105, 106, 95, -1, 109, 98,
|
|
284, 285, 71, 102, 55, -1, -1, 848, 77, 78,
|
|
79, -1, 853, -1, -1, -1, -1, -1, -1, -1,
|
|
55, 881, -1, -1, 93, 94, 125, -1, -1, -1,
|
|
129, 130, -1, -1, 133, -1, 135, 321, 107, -1,
|
|
139, 110, -1, 112, -1, -1, 881, -1, 99, 890,
|
|
891, -1, 893, -1, 105, 106, -1, -1, 109, 933,
|
|
-1, -1, -1, -1, 99, -1, -1, 351, -1, -1,
|
|
105, 106, -1, -1, 109, 949, 360, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, 17, 18, 19, 20, 21,
|
|
22, -1, 933, -1, -1, 936, -1, -1, -1, 31,
|
|
941, -1, 386, -1, -1, -1, -1, -1, 949, 17,
|
|
18, 19, 20, 21, 22, 950, 951, 952, 953, -1,
|
|
980, -1, -1, 31, -1, 50, 1000, 52, 53, 54,
|
|
-1, -1, -1, -1, 15, 16, 17, 18, 19, 20,
|
|
21, 22, -1, -1, -1, 986, 71, -1, -1, -1,
|
|
31, -1, 77, 78, 79, -1, -1, -1, -1, 1000,
|
|
-1, -1, 1003, -1, -1, 449, 1007, -1, 93, 94,
|
|
-1, -1, 1046, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, 1041, 107, 1043, -1, -1, 470, 112, -1, -1,
|
|
877, 878, 879, 880, -1, 882, 128, 129, 130, 131,
|
|
132, -1, 134, 135, 136, 1046, -1, 1048, -1, 1069,
|
|
1070, 1052, 877, 878, 879, 880, -1, 882, 126, 127,
|
|
128, 129, 130, 131, 132, 1066, 134, 135, 136, -1,
|
|
-1, -1, -1, -1, 1075, -1, 520, 521, 522, -1,
|
|
524, 122, 123, 124, 125, 126, 127, 128, 129, 130,
|
|
131, 132, -1, 134, 135, 136, -1, -1, -1, 140,
|
|
-1, -1, -1, 547, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, 556, -1, 961, 962, 963, 964, 965, 966,
|
|
967, 968, 969, 970, 971, 972, 973, 974, 975, 976,
|
|
977, 978, 979, -1, 10, 11, 961, 962, 963, 964,
|
|
965, 966, 967, 968, 969, 970, 971, 972, 973, 974,
|
|
975, 976, 977, 978, 979, 15, 16, 17, 18, 19,
|
|
20, 21, 22, -1, -1, 49, -1, 611, 1015, 613,
|
|
-1, 31, -1, 57, 50, -1, 52, 53, 54, 55,
|
|
56, -1, 66, 67, 68, 61, -1, -1, -1, -1,
|
|
1015, 1044, 76, -1, -1, 71, -1, -1, 82, 83,
|
|
-1, 77, 78, 79, -1, -1, -1, 91, -1, -1,
|
|
-1, 1058, 96, 657, -1, -1, -1, 93, 94, -1,
|
|
-1, -1, -1, -1, -1, 109, -1, 111, -1, 105,
|
|
-1, 107, -1, 1058, 110, -1, 112, -1, 682, 683,
|
|
684, 685, 686, 687, 688, 689, 690, 691, 692, 693,
|
|
694, 695, 696, 697, 698, 699, 700, 701, 702, -1,
|
|
704, -1, 122, 123, 124, 125, 126, 127, 128, 129,
|
|
130, 131, 132, -1, 134, 135, 136, -1, -1, -1,
|
|
140, -1, -1, 3, 4, 5, 6, 7, 8, 9,
|
|
10, 11, 12, -1, 14, 15, 16, 17, 18, 19,
|
|
20, 21, 22, 23, 24, -1, -1, -1, -1, -1,
|
|
-1, 31, 32, 33, 34, 35, 36, 37, 38, 39,
|
|
40, 41, 42, 43, 44, 45, 46, 47, -1, -1,
|
|
50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
|
|
60, 61, 62, 63, -1, 65, -1, 67, 68, 69,
|
|
70, 71, 72, 73, 74, 75, 76, 77, 78, -1,
|
|
-1, -1, 82, 83, 84, -1, 86, 87, 88, 89,
|
|
90, 91, 92, 93, 94, 95, 96, 97, 98, 99,
|
|
-1, 101, 102, 103, 104, 105, 106, 107, 108, 109,
|
|
110, 111, 112, 113, -1, -1, 840, 117, 118, 119,
|
|
120, 121, 122, 123, 124, 125, 126, 127, 128, 129,
|
|
130, 131, 132, 133, 134, 135, 136, 137, 138, 139,
|
|
140, -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, 896, -1, -1, -1, -1, -1, -1, 903,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, 3, 4, 5, 6, 7, 8,
|
|
9, 10, 11, 12, -1, 14, 15, 16, 17, 18,
|
|
19, 20, 21, 22, 23, 24, -1, 941, -1, -1,
|
|
-1, -1, 31, 32, 33, 34, 35, 36, 37, 38,
|
|
39, 40, 41, 42, 43, 44, 45, 46, 47, -1,
|
|
-1, 50, 51, 52, 53, 54, 55, 56, 57, 58,
|
|
59, 60, 61, 62, 63, -1, 65, 981, 67, 68,
|
|
69, 70, 71, 72, 73, 74, 75, 76, 77, 78,
|
|
-1, -1, 996, 82, 83, 84, -1, 86, 87, 88,
|
|
89, 90, 91, 92, 93, 94, 95, 96, 97, 98,
|
|
99, -1, 101, 102, 103, 104, 105, 106, 107, 108,
|
|
109, 110, 111, 112, 113, -1, -1, -1, 117, 118,
|
|
119, 120, 121, 122, 123, 124, 125, 126, 127, 128,
|
|
129, 130, 131, 132, 133, 134, 135, 136, 137, -1,
|
|
139, 140, 3, 4, 5, 6, -1, 8, 9, 10,
|
|
11, -1, -1, 14, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, 15, 16, 17, 18, 19, 20, 21, 22,
|
|
-1, -1, -1, -1, -1, 46, 47, -1, 31, 50,
|
|
-1, 52, 53, 54, 55, 56, -1, 58, -1, -1,
|
|
61, 62, -1, -1, 65, -1, -1, -1, -1, 70,
|
|
71, -1, -1, -1, -1, -1, 77, 78, 79, -1,
|
|
-1, -1, -1, 84, -1, 86, -1, -1, -1, -1,
|
|
91, -1, 93, 94, 95, -1, -1, 98, 99, -1,
|
|
-1, 102, -1, -1, 105, 106, 107, -1, -1, 110,
|
|
-1, 112, 3, 4, 5, 6, -1, 8, 9, 10,
|
|
11, -1, -1, 14, 125, -1, -1, -1, 129, -1,
|
|
-1, -1, 133, -1, 135, -1, -1, -1, 139, 122,
|
|
123, 124, 125, 126, 127, 128, 129, 130, 131, 132,
|
|
-1, 134, 135, 136, -1, 46, 47, 140, -1, 50,
|
|
-1, 52, 53, 54, 55, 56, -1, 58, -1, -1,
|
|
61, 62, -1, -1, 65, -1, -1, -1, -1, 70,
|
|
71, -1, -1, -1, -1, -1, 77, 78, 79, -1,
|
|
-1, -1, -1, 84, -1, 86, -1, -1, -1, -1,
|
|
91, -1, 93, 94, 95, -1, -1, 98, 99, -1,
|
|
-1, 102, -1, -1, 105, 106, 107, -1, -1, 110,
|
|
-1, 112, 3, 4, 5, 6, -1, 8, 9, 10,
|
|
11, -1, -1, -1, 125, -1, -1, -1, 129, -1,
|
|
-1, -1, 133, -1, 135, -1, -1, -1, 139, -1,
|
|
-1, -1, 15, 16, 17, 18, 19, 20, 21, 22,
|
|
-1, -1, -1, -1, -1, 46, 47, -1, 31, 50,
|
|
-1, 52, 53, 54, 55, 56, -1, 58, -1, -1,
|
|
61, 62, -1, -1, 65, -1, -1, -1, -1, 70,
|
|
71, -1, -1, -1, -1, -1, 77, 78, 79, -1,
|
|
-1, -1, -1, 84, -1, 86, -1, -1, -1, -1,
|
|
-1, -1, 93, 94, 95, -1, -1, 98, 99, -1,
|
|
-1, 102, -1, -1, 105, 106, 107, -1, -1, 110,
|
|
-1, 112, 3, 4, 5, 6, -1, 8, 9, 10,
|
|
11, -1, -1, -1, 125, -1, -1, -1, 129, 130,
|
|
-1, -1, 133, -1, 135, 118, -1, -1, 139, 122,
|
|
123, 124, 125, 126, 127, 128, 129, 130, 131, 132,
|
|
-1, 134, 135, 136, 137, 46, 47, -1, -1, 50,
|
|
-1, 52, 53, 54, 55, 56, -1, 58, -1, -1,
|
|
61, 62, -1, -1, 65, -1, -1, -1, -1, 70,
|
|
71, -1, -1, -1, -1, -1, 77, 78, 79, -1,
|
|
-1, -1, -1, 84, -1, 86, -1, -1, -1, -1,
|
|
91, -1, 93, 94, 95, -1, -1, 98, 99, -1,
|
|
-1, 102, -1, -1, 105, 106, 107, -1, -1, 110,
|
|
-1, 112, 3, 4, 5, 6, -1, 8, 9, 10,
|
|
11, -1, -1, -1, 125, -1, -1, -1, 129, -1,
|
|
-1, -1, 133, -1, 135, -1, -1, -1, 139, 17,
|
|
18, 19, 20, 21, 22, -1, -1, -1, 50, -1,
|
|
52, 53, 54, 31, -1, 46, -1, -1, -1, 50,
|
|
-1, 52, 53, 54, -1, -1, -1, -1, -1, -1,
|
|
61, 62, -1, -1, -1, 77, 78, 79, -1, 70,
|
|
71, -1, -1, -1, -1, -1, 77, 78, -1, -1,
|
|
-1, 93, 94, 84, -1, 86, -1, -1, -1, -1,
|
|
-1, -1, 93, 94, 95, 107, -1, 98, -1, -1,
|
|
112, 102, 3, 4, 5, 6, 107, 8, 9, 10,
|
|
11, 112, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, 135, 125, -1, -1, -1, 129, 130,
|
|
-1, -1, 133, -1, 135, -1, 137, 125, 139, -1,
|
|
128, 129, 130, 131, 132, 46, 134, 135, 136, 50,
|
|
-1, 52, 53, 54, -1, -1, -1, -1, -1, -1,
|
|
61, 62, -1, -1, -1, -1, -1, -1, -1, 70,
|
|
71, -1, -1, -1, -1, -1, 77, 78, -1, -1,
|
|
-1, -1, -1, 84, -1, 86, -1, -1, -1, -1,
|
|
-1, -1, 93, 94, 95, -1, -1, 98, -1, -1,
|
|
-1, 102, 3, 4, 5, 6, 107, 8, 9, 10,
|
|
11, 112, -1, -1, -1, -1, 117, -1, -1, -1,
|
|
-1, -1, -1, -1, 125, -1, -1, -1, 129, 130,
|
|
-1, -1, 133, -1, 135, -1, -1, -1, 139, -1,
|
|
-1, -1, -1, -1, -1, 46, -1, -1, -1, 50,
|
|
-1, 52, 53, 54, -1, -1, -1, -1, -1, -1,
|
|
61, 62, -1, -1, -1, -1, -1, -1, -1, 70,
|
|
71, -1, -1, -1, -1, -1, 77, 78, -1, -1,
|
|
-1, -1, -1, 84, -1, 86, -1, -1, -1, -1,
|
|
-1, -1, 93, 94, 95, -1, -1, 98, -1, -1,
|
|
-1, 102, 3, 4, 5, 6, 107, 8, 9, 10,
|
|
11, 112, -1, -1, -1, -1, 117, -1, -1, -1,
|
|
-1, -1, -1, -1, 125, -1, -1, -1, 129, 130,
|
|
-1, -1, 133, -1, 135, -1, -1, -1, 139, -1,
|
|
-1, -1, -1, -1, -1, 46, -1, -1, -1, 50,
|
|
-1, 52, 53, 54, -1, -1, -1, -1, -1, -1,
|
|
61, 62, -1, -1, -1, -1, -1, -1, -1, 70,
|
|
71, -1, -1, -1, -1, -1, 77, 78, -1, -1,
|
|
-1, -1, -1, 84, -1, 86, -1, -1, -1, -1,
|
|
-1, -1, 93, 94, 95, -1, -1, 98, -1, -1,
|
|
-1, 102, 3, 4, 5, 6, 107, 8, 9, 10,
|
|
11, 112, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, 125, -1, -1, -1, 129, 130,
|
|
-1, -1, 133, -1, 135, -1, 137, -1, 139, -1,
|
|
-1, -1, -1, -1, -1, 46, -1, -1, -1, 50,
|
|
-1, 52, 53, 54, -1, -1, -1, -1, -1, -1,
|
|
61, 62, -1, -1, -1, -1, -1, -1, -1, 70,
|
|
71, -1, -1, -1, -1, -1, 77, 78, -1, -1,
|
|
-1, -1, -1, 84, -1, 86, -1, -1, -1, -1,
|
|
-1, -1, 93, 94, 95, -1, -1, 98, -1, -1,
|
|
-1, 102, 3, 4, 5, 6, 107, 8, 9, 10,
|
|
11, 112, -1, -1, -1, -1, 117, -1, -1, -1,
|
|
-1, -1, -1, -1, 125, -1, -1, -1, 129, 130,
|
|
-1, -1, 133, -1, 135, -1, -1, -1, 139, -1,
|
|
-1, -1, -1, -1, -1, 46, -1, -1, -1, 50,
|
|
-1, 52, 53, 54, -1, -1, -1, -1, -1, -1,
|
|
61, 62, -1, -1, -1, -1, -1, -1, -1, 70,
|
|
71, -1, -1, -1, -1, -1, 77, 78, -1, -1,
|
|
-1, -1, -1, 84, -1, 86, -1, -1, -1, -1,
|
|
-1, -1, 93, 94, 95, -1, -1, 98, -1, -1,
|
|
-1, 102, 3, 4, 5, 6, 107, 8, 9, 10,
|
|
11, 112, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, 125, -1, -1, -1, 129, 130,
|
|
-1, -1, 133, -1, 135, -1, 137, -1, 139, -1,
|
|
-1, -1, -1, -1, -1, 46, -1, -1, -1, 50,
|
|
-1, 52, 53, 54, -1, -1, -1, -1, -1, -1,
|
|
61, 62, -1, -1, -1, -1, -1, -1, -1, 70,
|
|
71, -1, 10, 11, -1, -1, 77, 78, -1, -1,
|
|
-1, -1, -1, 84, -1, 86, -1, -1, -1, -1,
|
|
-1, -1, 93, 94, 95, -1, -1, 98, -1, -1,
|
|
-1, 102, -1, -1, -1, -1, 107, -1, -1, 47,
|
|
-1, 112, 50, -1, 52, 53, 54, 55, 56, -1,
|
|
58, -1, -1, 61, 125, -1, -1, 65, 129, 130,
|
|
-1, -1, 133, 71, 135, -1, -1, -1, 139, 77,
|
|
78, 79, -1, 10, 11, -1, -1, -1, -1, 87,
|
|
-1, -1, -1, -1, -1, 93, 94, -1, -1, -1,
|
|
-1, 99, -1, -1, -1, -1, -1, 105, 106, 107,
|
|
-1, -1, 110, 50, 112, 52, 53, 54, -1, 117,
|
|
47, -1, -1, 50, -1, 52, 53, 54, 55, 56,
|
|
-1, 58, -1, -1, 61, 133, -1, -1, 65, -1,
|
|
77, 78, 79, -1, 71, -1, -1, 10, 11, -1,
|
|
77, 78, 79, -1, -1, -1, 93, 94, -1, -1,
|
|
87, -1, -1, -1, -1, -1, 93, 94, -1, -1,
|
|
107, -1, 99, -1, -1, 112, -1, -1, 105, 106,
|
|
107, -1, -1, 110, 47, 112, -1, 50, -1, 52,
|
|
53, 54, 55, 56, -1, 58, -1, -1, 61, -1,
|
|
-1, -1, 65, -1, -1, -1, 133, -1, 71, -1,
|
|
-1, -1, -1, -1, 77, 78, 79, -1, -1, -1,
|
|
-1, -1, -1, -1, 87, -1, -1, -1, -1, -1,
|
|
93, 94, -1, -1, -1, -1, 99, -1, -1, -1,
|
|
-1, -1, 105, 106, 107, -1, -1, 110, -1, 112,
|
|
15, 16, 17, 18, 19, 20, 21, 22, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, 31, -1, -1, -1,
|
|
133, 15, 16, 17, 18, 19, 20, 21, 22, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, 31, -1, 15,
|
|
16, 17, 18, 19, 20, 21, 22, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, 31, -1, 15, 16, 17,
|
|
18, 19, 20, 21, 22, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, 31, -1, -1, 15, 16, 17, 18,
|
|
19, 20, 21, 22, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, 31, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, 122, 123, 124,
|
|
125, 126, 127, 128, 129, 130, 131, 132, -1, 134,
|
|
135, 136, 137, -1, -1, -1, -1, -1, 122, 123,
|
|
124, 125, 126, 127, 128, 129, 130, 131, 132, -1,
|
|
134, 135, 136, 137, 120, -1, 122, 123, 124, 125,
|
|
126, 127, 128, 129, 130, 131, 132, -1, 134, 135,
|
|
136, 119, -1, -1, 122, 123, 124, 125, 126, 127,
|
|
128, 129, 130, 131, 132, -1, 134, 135, 136, 118,
|
|
-1, -1, -1, 122, 123, 124, 125, 126, 127, 128,
|
|
129, 130, 131, 132, -1, 134, 135, 136, 15, 16,
|
|
17, 18, 19, 20, 21, 22, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, 31, 15, 16, 17, 18, 19,
|
|
20, 21, 22, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, 31, 15, 16, 17, 18, 19, 20, 21, 22,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, 31, 15,
|
|
16, 17, 18, 19, 20, 21, 22, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, 31, 15, 16, 17, 18,
|
|
19, 20, 21, 22, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, 31, 16, 17, 18, 19, 20, 21, 22,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, 31, -1,
|
|
-1, -1, -1, 120, -1, 122, 123, 124, 125, 126,
|
|
127, 128, 129, 130, 131, 132, -1, 134, 135, 136,
|
|
-1, -1, 122, 123, 124, 125, 126, 127, 128, 129,
|
|
130, 131, 132, -1, 134, 135, 136, -1, -1, 122,
|
|
123, 124, 125, 126, 127, 128, 129, 130, 131, 132,
|
|
-1, 134, 135, 136, 120, -1, 122, 123, 124, 125,
|
|
-1, -1, 128, 129, 130, 131, 132, 0, 134, 135,
|
|
136, -1, -1, 122, 123, 124, 125, -1, -1, 128,
|
|
129, 130, 131, 132, -1, 134, 135, 136, -1, -1,
|
|
123, 124, 125, 126, 127, 128, 129, 130, 131, 132,
|
|
-1, 134, 135, 136, 16, 17, 18, 19, 20, 21,
|
|
22, -1, -1, -1, -1, 48, 49, -1, -1, 31,
|
|
-1, -1, -1, -1, 57, -1, -1, -1, -1, -1,
|
|
-1, 64, -1, 66, 67, 68, 69, -1, -1, 72,
|
|
-1, -1, -1, 76, -1, -1, -1, 80, 81, 82,
|
|
83, -1, -1, -1, -1, 88, 89, 90, 91, -1,
|
|
-1, -1, -1, 96, 97, -1, -1, 100, -1, -1,
|
|
-1, 104, -1, -1, -1, 108, 109, -1, 111, 17,
|
|
18, 19, 20, 21, 22, -1, 119, -1, -1, -1,
|
|
-1, -1, -1, 31, 17, 18, 19, 20, 21, 22,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, 31, -1,
|
|
-1, 123, 124, 125, -1, -1, 128, 129, 130, 131,
|
|
132, -1, 134, 135, 136, 17, 18, 19, 20, 21,
|
|
22, -1, -1, -1, -1, -1, -1, -1, -1, 31,
|
|
17, 18, 19, 20, 21, 22, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, 31, 17, 18, 19, 20, 21,
|
|
22, -1, -1, -1, -1, -1, -1, -1, -1, 31,
|
|
19, 20, 21, 22, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, 31, -1, -1, 123, 124, 125, 126, 127,
|
|
128, 129, 130, 131, 132, -1, 134, 135, 136, -1,
|
|
-1, 124, 125, 126, 127, 128, 129, 130, 131, 132,
|
|
-1, 134, 135, 136, 19, 20, 21, 22, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, 31, -1, -1, -1,
|
|
-1, -1, -1, 125, 126, 127, 128, 129, 130, 131,
|
|
132, -1, 134, 135, 136, -1, 123, 124, 125, -1,
|
|
-1, 128, 129, 130, 131, 132, -1, 134, 135, 136,
|
|
-1, -1, 124, 125, -1, -1, 128, 129, 130, 131,
|
|
132, -1, 134, 135, 136, -1, -1, 126, 127, 128,
|
|
129, 130, 131, 132, -1, 134, 135, 136, -1, 6,
|
|
-1, 50, -1, 52, 53, 54, -1, -1, -1, -1,
|
|
-1, -1, 11, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, 77, 78,
|
|
79, -1, -1, 128, 129, 130, 131, 132, -1, 134,
|
|
135, 136, 49, -1, 93, 94, -1, -1, 10, 11,
|
|
57, 50, -1, 52, 53, 54, 55, -1, 107, 66,
|
|
67, 68, 61, 112, -1, -1, 65, -1, -1, 76,
|
|
-1, -1, 71, -1, -1, 82, -1, -1, 77, 78,
|
|
79, -1, -1, -1, 91, 47, 135, -1, 50, 96,
|
|
52, 53, 54, 55, 93, 94, 58, -1, -1, 61,
|
|
99, -1, 109, 65, 111, -1, 105, 106, 107, 71,
|
|
11, 110, -1, 112, -1, 77, 78, 79, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, 93, 94, -1, -1, -1, -1, 99, 50, -1,
|
|
52, 53, 54, 105, 106, 107, 47, -1, 110, 50,
|
|
112, 52, 53, 54, 55, 56, -1, 58, -1, -1,
|
|
61, -1, -1, -1, 65, 77, 78, 79, -1, -1,
|
|
71, 11, -1, -1, -1, -1, 77, 78, 79, -1,
|
|
-1, 93, 94, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, 93, 94, -1, 107, -1, -1, 99, -1,
|
|
112, -1, -1, -1, 105, 106, 107, 47, 11, 110,
|
|
50, 112, 52, 53, 54, 55, 56, -1, 58, -1,
|
|
-1, 61, -1, 135, -1, 65, -1, -1, -1, -1,
|
|
-1, 71, -1, -1, -1, -1, -1, 77, 78, 79,
|
|
-1, -1, -1, -1, 47, -1, -1, 50, -1, 52,
|
|
53, 54, 55, 93, 94, 58, -1, -1, 61, 99,
|
|
-1, -1, 65, -1, -1, 105, 106, 107, 71, 11,
|
|
110, -1, 112, -1, 77, 78, 79, -1, -1, 11,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, 91, -1,
|
|
93, 94, -1, -1, -1, -1, 99, -1, -1, -1,
|
|
-1, -1, 105, 106, 107, 47, -1, 110, 50, 112,
|
|
52, 53, 54, 55, -1, -1, 58, -1, 50, 61,
|
|
52, 53, 54, 65, -1, -1, -1, -1, -1, 71,
|
|
-1, -1, -1, -1, -1, 77, 78, 79, -1, -1,
|
|
-1, -1, -1, -1, -1, 77, 78, 79, -1, -1,
|
|
-1, 93, 94, -1, -1, -1, -1, 99, 48, 49,
|
|
-1, 93, 94, 105, 106, 107, -1, 57, 110, -1,
|
|
112, -1, -1, -1, 64, 107, 66, 67, 68, 69,
|
|
112, -1, 72, -1, -1, -1, 76, -1, -1, -1,
|
|
80, 81, 82, 83, -1, -1, -1, -1, 88, 89,
|
|
90, 91, -1, -1, 48, 49, 96, 97, -1, -1,
|
|
100, -1, -1, 57, 104, -1, -1, -1, 108, 109,
|
|
64, 111, 66, 67, 68, 69, -1, -1, 72, 119,
|
|
-1, -1, 76, -1, -1, -1, 80, 81, 82, 83,
|
|
-1, -1, -1, -1, 88, 89, 90, 91, 138, -1,
|
|
48, 49, 96, 97, -1, -1, 100, -1, -1, 57,
|
|
104, -1, -1, -1, 108, 109, 64, 111, 66, 67,
|
|
68, 69, -1, -1, 72, 119, -1, -1, 76, -1,
|
|
-1, -1, 80, 81, 82, 83, -1, -1, -1, -1,
|
|
88, 89, 90, 91, 138, -1, 48, 49, 96, 97,
|
|
-1, -1, 100, -1, -1, 57, 104, -1, -1, -1,
|
|
108, 109, 64, 111, 66, 67, 68, 69, -1, -1,
|
|
72, 119, -1, -1, 76, -1, -1, -1, 80, 81,
|
|
82, 83, -1, -1, -1, -1, 88, 89, 90, 91,
|
|
138, -1, 48, 49, 96, 97, -1, -1, 100, -1,
|
|
-1, 57, 104, -1, -1, -1, 108, 109, 64, 111,
|
|
66, 67, 68, 69, -1, -1, 72, 119, -1, -1,
|
|
76, -1, -1, -1, 80, 81, 82, 83, -1, -1,
|
|
-1, -1, 88, 89, 90, 91, 138, -1, 48, 49,
|
|
96, 97, -1, -1, 100, -1, -1, 57, 104, -1,
|
|
-1, -1, 108, 109, 64, 111, 66, 67, 68, 69,
|
|
-1, -1, 72, 119, -1, -1, 76, -1, -1, -1,
|
|
80, 81, 82, 83, -1, -1, -1, -1, 88, 89,
|
|
90, 91, 138, -1, 48, 49, 96, 97, -1, -1,
|
|
100, -1, -1, 57, 104, -1, -1, -1, 108, 109,
|
|
64, 111, 66, 67, 68, 69, -1, -1, 72, 119,
|
|
-1, -1, 76, -1, -1, -1, 80, 81, 82, 83,
|
|
-1, -1, -1, -1, 88, 89, 90, 91, 138, -1,
|
|
-1, -1, 96, 97, -1, 50, 100, 52, 53, 54,
|
|
104, -1, 49, -1, 108, 109, 61, 111, -1, -1,
|
|
57, -1, -1, -1, -1, 119, 71, -1, -1, 66,
|
|
67, 68, 77, 78, 79, -1, -1, -1, -1, 76,
|
|
-1, -1, -1, -1, 138, 82, -1, -1, 93, 94,
|
|
-1, -1, -1, -1, 91, -1, -1, -1, -1, 96,
|
|
48, 49, 107, -1, -1, -1, -1, 112, -1, 57,
|
|
-1, -1, 109, -1, 111, -1, 64, -1, 66, 67,
|
|
68, 69, -1, -1, 72, -1, -1, -1, 76, 126,
|
|
135, -1, 80, 81, 82, 83, -1, -1, -1, -1,
|
|
88, 89, 90, 91, -1, -1, -1, -1, 96, 97,
|
|
-1, 50, 100, 52, 53, 54, 104, -1, 49, -1,
|
|
108, 109, 61, 111, -1, 49, 57, -1, -1, -1,
|
|
-1, -1, 71, 57, -1, 66, 67, 68, 77, 78,
|
|
79, -1, 66, 67, 68, 76, -1, -1, -1, -1,
|
|
-1, 82, 76, -1, 93, 94, -1, -1, 82, -1,
|
|
91, -1, -1, -1, -1, 96, -1, 91, 107, 100,
|
|
-1, -1, 96, 112, -1, -1, -1, -1, 109, -1,
|
|
111, -1, -1, -1, -1, 109, -1, 111
|
|
};
|
|
|
|
/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
|
|
symbol of state STATE-NUM. */
|
|
static const yytype_uint8 yystos[] =
|
|
{
|
|
0, 114, 115, 116, 142, 143, 235, 3, 4, 5,
|
|
6, 8, 9, 10, 11, 46, 50, 52, 53, 54,
|
|
61, 62, 70, 71, 77, 78, 84, 86, 93, 94,
|
|
95, 98, 102, 107, 112, 125, 129, 130, 133, 135,
|
|
139, 228, 229, 234, 11, 47, 50, 52, 53, 54,
|
|
55, 56, 58, 61, 65, 71, 77, 78, 79, 93,
|
|
94, 99, 105, 106, 107, 110, 112, 193, 197, 198,
|
|
200, 205, 206, 210, 211, 216, 217, 218, 219, 0,
|
|
48, 49, 57, 64, 66, 67, 68, 69, 72, 76,
|
|
80, 81, 82, 83, 88, 89, 90, 91, 96, 97,
|
|
100, 104, 108, 109, 111, 119, 146, 148, 149, 151,
|
|
152, 153, 174, 212, 215, 235, 135, 135, 135, 135,
|
|
135, 135, 135, 126, 135, 135, 135, 11, 105, 195,
|
|
210, 211, 216, 135, 135, 135, 126, 135, 135, 228,
|
|
228, 228, 228, 11, 50, 52, 53, 54, 61, 71,
|
|
77, 78, 93, 94, 107, 112, 197, 226, 228, 228,
|
|
15, 16, 17, 18, 19, 20, 21, 22, 31, 122,
|
|
123, 124, 125, 126, 127, 128, 129, 130, 131, 132,
|
|
134, 135, 136, 6, 8, 193, 135, 61, 71, 78,
|
|
217, 78, 217, 217, 10, 11, 233, 217, 12, 16,
|
|
56, 111, 125, 130, 135, 192, 235, 117, 120, 233,
|
|
117, 233, 76, 151, 151, 151, 6, 151, 151, 120,
|
|
150, 83, 151, 135, 135, 151, 117, 233, 120, 120,
|
|
120, 151, 151, 135, 151, 152, 175, 151, 158, 83,
|
|
233, 151, 151, 10, 11, 47, 56, 58, 87, 105,
|
|
117, 133, 163, 194, 196, 198, 200, 205, 210, 211,
|
|
216, 225, 226, 235, 197, 225, 225, 225, 225, 225,
|
|
197, 225, 225, 225, 233, 135, 233, 233, 225, 225,
|
|
197, 197, 225, 225, 137, 118, 137, 228, 228, 228,
|
|
228, 228, 228, 228, 228, 228, 228, 228, 228, 228,
|
|
228, 228, 228, 228, 228, 228, 228, 228, 137, 226,
|
|
228, 192, 228, 71, 130, 192, 192, 192, 192, 192,
|
|
192, 136, 208, 209, 235, 11, 207, 217, 120, 199,
|
|
201, 151, 148, 117, 233, 10, 10, 143, 117, 228,
|
|
126, 56, 163, 194, 196, 233, 135, 135, 10, 11,
|
|
196, 135, 56, 193, 233, 147, 233, 117, 119, 120,
|
|
121, 186, 119, 154, 233, 233, 137, 137, 137, 137,
|
|
137, 137, 137, 127, 137, 137, 137, 225, 137, 137,
|
|
137, 127, 137, 137, 228, 228, 120, 137, 140, 137,
|
|
192, 137, 224, 228, 235, 233, 138, 207, 143, 120,
|
|
202, 203, 235, 143, 117, 118, 118, 138, 213, 118,
|
|
137, 10, 11, 55, 56, 105, 176, 177, 178, 179,
|
|
216, 235, 196, 186, 159, 164, 12, 130, 165, 155,
|
|
228, 193, 10, 11, 12, 16, 56, 111, 125, 130,
|
|
190, 235, 143, 135, 220, 221, 144, 145, 233, 117,
|
|
228, 12, 16, 56, 87, 111, 125, 130, 135, 156,
|
|
180, 233, 120, 135, 137, 135, 228, 135, 140, 118,
|
|
121, 138, 88, 89, 90, 109, 204, 117, 118, 138,
|
|
214, 10, 10, 143, 234, 233, 179, 233, 127, 118,
|
|
10, 11, 12, 16, 56, 111, 125, 130, 135, 191,
|
|
235, 160, 161, 180, 3, 4, 5, 9, 10, 14,
|
|
46, 56, 62, 70, 84, 86, 91, 95, 98, 102,
|
|
125, 129, 133, 135, 139, 182, 183, 189, 193, 230,
|
|
231, 234, 235, 130, 180, 182, 157, 180, 137, 190,
|
|
130, 190, 190, 190, 190, 190, 135, 136, 138, 166,
|
|
138, 222, 235, 117, 118, 135, 117, 187, 188, 228,
|
|
235, 119, 130, 180, 180, 6, 15, 16, 17, 18,
|
|
19, 20, 21, 22, 31, 33, 34, 35, 36, 37,
|
|
38, 39, 40, 41, 42, 43, 44, 60, 84, 118,
|
|
121, 123, 124, 125, 126, 127, 128, 129, 130, 131,
|
|
132, 133, 135, 136, 139, 172, 180, 180, 180, 180,
|
|
120, 121, 135, 136, 185, 186, 235, 207, 226, 226,
|
|
182, 228, 105, 109, 211, 232, 233, 109, 232, 109,
|
|
232, 88, 89, 90, 143, 204, 143, 118, 137, 118,
|
|
138, 137, 121, 191, 121, 152, 173, 174, 178, 130,
|
|
191, 191, 191, 191, 191, 191, 121, 136, 184, 235,
|
|
162, 180, 185, 186, 135, 91, 193, 126, 195, 189,
|
|
135, 126, 228, 228, 228, 197, 226, 228, 137, 14,
|
|
118, 191, 15, 16, 17, 18, 19, 20, 21, 22,
|
|
31, 122, 123, 124, 125, 126, 127, 128, 129, 130,
|
|
131, 132, 134, 135, 136, 180, 120, 137, 137, 185,
|
|
186, 135, 190, 169, 224, 182, 3, 4, 5, 6,
|
|
7, 8, 9, 10, 11, 12, 14, 15, 16, 17,
|
|
18, 19, 20, 21, 22, 23, 24, 31, 32, 33,
|
|
34, 35, 36, 37, 38, 39, 40, 41, 42, 43,
|
|
44, 45, 46, 47, 50, 51, 52, 53, 54, 55,
|
|
56, 57, 58, 59, 60, 61, 62, 63, 65, 67,
|
|
68, 69, 70, 71, 72, 73, 74, 75, 76, 77,
|
|
78, 82, 83, 84, 86, 87, 88, 89, 90, 91,
|
|
92, 93, 94, 95, 96, 97, 98, 99, 101, 102,
|
|
103, 104, 105, 106, 107, 108, 109, 110, 111, 112,
|
|
113, 117, 118, 119, 120, 121, 122, 123, 124, 125,
|
|
126, 127, 128, 129, 130, 131, 132, 133, 134, 135,
|
|
136, 137, 139, 140, 223, 220, 145, 225, 187, 138,
|
|
118, 180, 10, 137, 140, 137, 4, 228, 181, 224,
|
|
118, 137, 137, 137, 118, 233, 232, 233, 232, 232,
|
|
232, 232, 232, 138, 138, 10, 119, 10, 197, 184,
|
|
197, 191, 137, 46, 62, 95, 98, 125, 129, 130,
|
|
133, 135, 139, 227, 229, 224, 185, 186, 118, 197,
|
|
193, 191, 197, 135, 197, 197, 137, 137, 56, 171,
|
|
235, 14, 189, 121, 185, 228, 228, 228, 228, 228,
|
|
228, 228, 228, 228, 228, 228, 228, 228, 228, 228,
|
|
228, 228, 228, 228, 228, 228, 137, 226, 228, 137,
|
|
135, 171, 118, 170, 182, 140, 137, 222, 138, 137,
|
|
138, 117, 228, 182, 140, 156, 171, 137, 137, 135,
|
|
135, 126, 135, 126, 227, 227, 227, 227, 197, 226,
|
|
227, 15, 16, 17, 18, 19, 20, 21, 22, 31,
|
|
122, 123, 124, 125, 128, 129, 130, 131, 132, 134,
|
|
135, 136, 140, 118, 161, 137, 191, 185, 127, 225,
|
|
137, 127, 228, 85, 101, 228, 120, 137, 140, 135,
|
|
167, 157, 182, 137, 171, 138, 187, 137, 119, 119,
|
|
182, 197, 197, 197, 197, 137, 137, 227, 227, 227,
|
|
227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
|
|
227, 227, 227, 227, 227, 227, 137, 226, 228, 162,
|
|
185, 135, 137, 135, 135, 228, 168, 182, 137, 171,
|
|
138, 171, 137, 137, 127, 137, 127, 227, 120, 137,
|
|
140, 226, 226, 137, 233, 182, 137, 171, 171, 135,
|
|
135, 227, 137, 137, 137, 137, 171, 226, 226, 171,
|
|
137, 137
|
|
};
|
|
|
|
#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. However,
|
|
YYFAIL appears to be in use. Nevertheless, it is formally deprecated
|
|
in Bison 2.4.2's NEWS entry, where a plan to phase it out is
|
|
discussed. */
|
|
|
|
#define YYFAIL goto yyerrlab
|
|
#if defined YYFAIL
|
|
/* This is here to suppress warnings from the GCC cpp's
|
|
-Wunused-macros. Normally we don't worry about that warning, but
|
|
some users do, and we want to make it easy for users to remove
|
|
YYFAIL uses, which will produce warnings from Bison 2.5. */
|
|
#endif
|
|
|
|
#define YYRECOVERING() (!!yyerrstatus)
|
|
|
|
#define YYBACKUP(Token, Value) \
|
|
do \
|
|
if (yychar == YYEMPTY) \
|
|
{ \
|
|
yychar = (Token); \
|
|
yylval = (Value); \
|
|
YYPOPSTACK (yylen); \
|
|
yystate = *yyssp; \
|
|
goto yybackup; \
|
|
} \
|
|
else \
|
|
{ \
|
|
yyerror (&yylloc, YY_("syntax error: cannot back up")); \
|
|
YYERROR; \
|
|
} \
|
|
while (YYID (0))
|
|
|
|
/* Error token number */
|
|
#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). */
|
|
|
|
#ifndef YYLLOC_DEFAULT
|
|
# define YYLLOC_DEFAULT(Current, Rhs, N) \
|
|
do \
|
|
if (YYID (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 (YYID (0))
|
|
#endif
|
|
|
|
#define YYRHSLOC(Rhs, K) ((Rhs)[K])
|
|
|
|
|
|
/* 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 defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
|
|
|
|
/* Print *YYLOCP on YYO. Private, do not rely on its existence. */
|
|
|
|
__attribute__((__unused__))
|
|
#if (defined __STDC__ || defined __C99__FUNC__ \
|
|
|| defined __cplusplus || defined _MSC_VER)
|
|
static unsigned
|
|
yy_location_print_ (FILE *yyo, YYLTYPE const * const yylocp)
|
|
#else
|
|
static unsigned
|
|
yy_location_print_ (yyo, yylocp)
|
|
FILE *yyo;
|
|
YYLTYPE const * const yylocp;
|
|
#endif
|
|
{
|
|
unsigned res = 0;
|
|
int end_col = 0 != yylocp->last_column ? yylocp->last_column - 1 : 0;
|
|
if (0 <= yylocp->first_line)
|
|
{
|
|
res += fprintf (yyo, "%d", yylocp->first_line);
|
|
if (0 <= yylocp->first_column)
|
|
res += fprintf (yyo, ".%d", yylocp->first_column);
|
|
}
|
|
if (0 <= yylocp->last_line)
|
|
{
|
|
if (yylocp->first_line < yylocp->last_line)
|
|
{
|
|
res += fprintf (yyo, "-%d", yylocp->last_line);
|
|
if (0 <= end_col)
|
|
res += fprintf (yyo, ".%d", end_col);
|
|
}
|
|
else if (0 <= end_col && yylocp->first_column < end_col)
|
|
res += fprintf (yyo, "-%d", end_col);
|
|
}
|
|
return res;
|
|
}
|
|
|
|
# define YY_LOCATION_PRINT(File, Loc) \
|
|
yy_location_print_ (File, &(Loc))
|
|
|
|
# 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 (YYID (0))
|
|
|
|
# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
|
|
do { \
|
|
if (yydebug) \
|
|
{ \
|
|
YYFPRINTF (stderr, "%s ", Title); \
|
|
yy_symbol_print (stderr, \
|
|
Type, Value, Location); \
|
|
YYFPRINTF (stderr, "\n"); \
|
|
} \
|
|
} while (YYID (0))
|
|
|
|
|
|
/*--------------------------------.
|
|
| Print this symbol on YYOUTPUT. |
|
|
`--------------------------------*/
|
|
|
|
/*ARGSUSED*/
|
|
#if (defined __STDC__ || defined __C99__FUNC__ \
|
|
|| defined __cplusplus || defined _MSC_VER)
|
|
static void
|
|
yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp)
|
|
#else
|
|
static void
|
|
yy_symbol_value_print (yyoutput, yytype, yyvaluep, yylocationp)
|
|
FILE *yyoutput;
|
|
int yytype;
|
|
YYSTYPE const * const yyvaluep;
|
|
YYLTYPE const * const yylocationp;
|
|
#endif
|
|
{
|
|
FILE *yyo = yyoutput;
|
|
YYUSE (yyo);
|
|
if (!yyvaluep)
|
|
return;
|
|
YYUSE (yylocationp);
|
|
# ifdef YYPRINT
|
|
if (yytype < YYNTOKENS)
|
|
YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
|
|
# else
|
|
YYUSE (yyoutput);
|
|
# endif
|
|
switch (yytype)
|
|
{
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
|
|
|
|
/*--------------------------------.
|
|
| Print this symbol on YYOUTPUT. |
|
|
`--------------------------------*/
|
|
|
|
#if (defined __STDC__ || defined __C99__FUNC__ \
|
|
|| defined __cplusplus || defined _MSC_VER)
|
|
static void
|
|
yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp)
|
|
#else
|
|
static void
|
|
yy_symbol_print (yyoutput, yytype, yyvaluep, yylocationp)
|
|
FILE *yyoutput;
|
|
int yytype;
|
|
YYSTYPE const * const yyvaluep;
|
|
YYLTYPE const * const yylocationp;
|
|
#endif
|
|
{
|
|
if (yytype < YYNTOKENS)
|
|
YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
|
|
else
|
|
YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
|
|
|
|
YY_LOCATION_PRINT (yyoutput, *yylocationp);
|
|
YYFPRINTF (yyoutput, ": ");
|
|
yy_symbol_value_print (yyoutput, yytype, yyvaluep, yylocationp);
|
|
YYFPRINTF (yyoutput, ")");
|
|
}
|
|
|
|
/*------------------------------------------------------------------.
|
|
| yy_stack_print -- Print the state stack from its BOTTOM up to its |
|
|
| TOP (included). |
|
|
`------------------------------------------------------------------*/
|
|
|
|
#if (defined __STDC__ || defined __C99__FUNC__ \
|
|
|| defined __cplusplus || defined _MSC_VER)
|
|
static void
|
|
yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
|
|
#else
|
|
static void
|
|
yy_stack_print (yybottom, yytop)
|
|
yytype_int16 *yybottom;
|
|
yytype_int16 *yytop;
|
|
#endif
|
|
{
|
|
YYFPRINTF (stderr, "Stack now");
|
|
for (; yybottom <= yytop; yybottom++)
|
|
{
|
|
int yybot = *yybottom;
|
|
YYFPRINTF (stderr, " %d", yybot);
|
|
}
|
|
YYFPRINTF (stderr, "\n");
|
|
}
|
|
|
|
# define YY_STACK_PRINT(Bottom, Top) \
|
|
do { \
|
|
if (yydebug) \
|
|
yy_stack_print ((Bottom), (Top)); \
|
|
} while (YYID (0))
|
|
|
|
|
|
/*------------------------------------------------.
|
|
| Report that the YYRULE is going to be reduced. |
|
|
`------------------------------------------------*/
|
|
|
|
#if (defined __STDC__ || defined __C99__FUNC__ \
|
|
|| defined __cplusplus || defined _MSC_VER)
|
|
static void
|
|
yy_reduce_print (YYSTYPE *yyvsp, YYLTYPE *yylsp, int yyrule)
|
|
#else
|
|
static void
|
|
yy_reduce_print (yyvsp, yylsp, yyrule)
|
|
YYSTYPE *yyvsp;
|
|
YYLTYPE *yylsp;
|
|
int yyrule;
|
|
#endif
|
|
{
|
|
int yynrhs = yyr2[yyrule];
|
|
int yyi;
|
|
unsigned long int yylno = yyrline[yyrule];
|
|
YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
|
|
yyrule - 1, yylno);
|
|
/* The symbols being reduced. */
|
|
for (yyi = 0; yyi < yynrhs; yyi++)
|
|
{
|
|
YYFPRINTF (stderr, " $%d = ", yyi + 1);
|
|
yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
|
|
&(yyvsp[(yyi + 1) - (yynrhs)])
|
|
, &(yylsp[(yyi + 1) - (yynrhs)]) );
|
|
YYFPRINTF (stderr, "\n");
|
|
}
|
|
}
|
|
|
|
# define YY_REDUCE_PRINT(Rule) \
|
|
do { \
|
|
if (yydebug) \
|
|
yy_reduce_print (yyvsp, yylsp, Rule); \
|
|
} while (YYID (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. */
|
|
#if (defined __STDC__ || defined __C99__FUNC__ \
|
|
|| defined __cplusplus || defined _MSC_VER)
|
|
static YYSIZE_T
|
|
yystrlen (const char *yystr)
|
|
#else
|
|
static YYSIZE_T
|
|
yystrlen (yystr)
|
|
const char *yystr;
|
|
#endif
|
|
{
|
|
YYSIZE_T yylen;
|
|
for (yylen = 0; yystr[yylen]; yylen++)
|
|
continue;
|
|
return yylen;
|
|
}
|
|
# 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. */
|
|
#if (defined __STDC__ || defined __C99__FUNC__ \
|
|
|| defined __cplusplus || defined _MSC_VER)
|
|
static char *
|
|
yystpcpy (char *yydest, const char *yysrc)
|
|
#else
|
|
static char *
|
|
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 == '"')
|
|
{
|
|
YYSIZE_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
|
|
|
|
/* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message
|
|
about the unexpected token YYTOKEN for the state stack whose top is
|
|
YYSSP.
|
|
|
|
Return 0 if *YYMSG was successfully written. Return 1 if *YYMSG is
|
|
not large enough to hold the message. In that case, also set
|
|
*YYMSG_ALLOC to the required number of bytes. Return 2 if the
|
|
required number of bytes is too large to store. */
|
|
static int
|
|
yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,
|
|
yytype_int16 *yyssp, int yytoken)
|
|
{
|
|
YYSIZE_T yysize0 = yytnamerr (YY_NULL, yytname[yytoken]);
|
|
YYSIZE_T yysize = yysize0;
|
|
enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
|
|
/* Internationalized format string. */
|
|
const char *yyformat = YY_NULL;
|
|
/* Arguments of yyformat. */
|
|
char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
|
|
/* Number of reported tokens (one for the "unexpected", one per
|
|
"expected"). */
|
|
int yycount = 0;
|
|
|
|
/* There are many possibilities here to consider:
|
|
- Assume YYFAIL is not used. It's too flawed to consider. See
|
|
<http://lists.gnu.org/archive/html/bison-patches/2009-12/msg00024.html>
|
|
for details. YYERROR is fine as it does not invoke this
|
|
function.
|
|
- If this state is a consistent state with a default action, then
|
|
the only way this function was invoked is if the default action
|
|
is an error action. In that case, don't check for expected
|
|
tokens because there are none.
|
|
- The only way there can be no lookahead present (in yychar) is if
|
|
this state is a consistent state with a default action. Thus,
|
|
detecting the absence of a lookahead is sufficient to determine
|
|
that there is no unexpected or expected token to report. In that
|
|
case, just report a simple "syntax error".
|
|
- Don't assume there isn't a lookahead just because this state is a
|
|
consistent state with a default action. There might have been a
|
|
previous inconsistent state, consistent state with a non-default
|
|
action, or user semantic action that manipulated yychar.
|
|
- Of course, the expected token list depends on states to have
|
|
correct lookahead information, and it depends on the parser not
|
|
to perform extra reductions after fetching a lookahead from the
|
|
scanner and before detecting a syntax error. Thus, state merging
|
|
(from LALR or IELR) and default reductions corrupt the expected
|
|
token list. However, the list is correct for canonical LR with
|
|
one exception: it will still contain any token that will not be
|
|
accepted due to an error action in a later state.
|
|
*/
|
|
if (yytoken != YYEMPTY)
|
|
{
|
|
int yyn = yypact[*yyssp];
|
|
yyarg[yycount++] = yytname[yytoken];
|
|
if (!yypact_value_is_default (yyn))
|
|
{
|
|
/* Start YYX at -YYN if negative to avoid negative indexes in
|
|
YYCHECK. In other words, skip the first -YYN actions for
|
|
this state because they are default actions. */
|
|
int yyxbegin = yyn < 0 ? -yyn : 0;
|
|
/* Stay within bounds of both yycheck and yytname. */
|
|
int yychecklim = YYLAST - yyn + 1;
|
|
int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
|
|
int yyx;
|
|
|
|
for (yyx = yyxbegin; yyx < yyxend; ++yyx)
|
|
if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR
|
|
&& !yytable_value_is_error (yytable[yyx + yyn]))
|
|
{
|
|
if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
|
|
{
|
|
yycount = 1;
|
|
yysize = yysize0;
|
|
break;
|
|
}
|
|
yyarg[yycount++] = yytname[yyx];
|
|
{
|
|
YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULL, yytname[yyx]);
|
|
if (! (yysize <= yysize1
|
|
&& yysize1 <= YYSTACK_ALLOC_MAXIMUM))
|
|
return 2;
|
|
yysize = yysize1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
switch (yycount)
|
|
{
|
|
# define YYCASE_(N, S) \
|
|
case N: \
|
|
yyformat = S; \
|
|
break
|
|
YYCASE_(0, YY_("syntax error"));
|
|
YYCASE_(1, YY_("syntax error, unexpected %s"));
|
|
YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s"));
|
|
YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s"));
|
|
YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s"));
|
|
YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"));
|
|
# undef YYCASE_
|
|
}
|
|
|
|
{
|
|
YYSIZE_T yysize1 = yysize + yystrlen (yyformat);
|
|
if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM))
|
|
return 2;
|
|
yysize = yysize1;
|
|
}
|
|
|
|
if (*yymsg_alloc < yysize)
|
|
{
|
|
*yymsg_alloc = 2 * yysize;
|
|
if (! (yysize <= *yymsg_alloc
|
|
&& *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM))
|
|
*yymsg_alloc = YYSTACK_ALLOC_MAXIMUM;
|
|
return 1;
|
|
}
|
|
|
|
/* 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 = *yyformat) != '\0')
|
|
if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount)
|
|
{
|
|
yyp += yytnamerr (yyp, yyarg[yyi++]);
|
|
yyformat += 2;
|
|
}
|
|
else
|
|
{
|
|
yyp++;
|
|
yyformat++;
|
|
}
|
|
}
|
|
return 0;
|
|
}
|
|
#endif /* YYERROR_VERBOSE */
|
|
|
|
/*-----------------------------------------------.
|
|
| Release the memory associated to this symbol. |
|
|
`-----------------------------------------------*/
|
|
|
|
/*ARGSUSED*/
|
|
#if (defined __STDC__ || defined __C99__FUNC__ \
|
|
|| defined __cplusplus || defined _MSC_VER)
|
|
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
|
|
{
|
|
YYUSE (yyvaluep);
|
|
YYUSE (yylocationp);
|
|
|
|
if (!yymsg)
|
|
yymsg = "Deleting";
|
|
YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
|
|
|
|
switch (yytype)
|
|
{
|
|
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
/*----------.
|
|
| yyparse. |
|
|
`----------*/
|
|
|
|
#ifdef YYPARSE_PARAM
|
|
#if (defined __STDC__ || defined __C99__FUNC__ \
|
|
|| defined __cplusplus || defined _MSC_VER)
|
|
int
|
|
yyparse (void *YYPARSE_PARAM)
|
|
#else
|
|
int
|
|
yyparse (YYPARSE_PARAM)
|
|
void *YYPARSE_PARAM;
|
|
#endif
|
|
#else /* ! YYPARSE_PARAM */
|
|
#if (defined __STDC__ || defined __C99__FUNC__ \
|
|
|| defined __cplusplus || defined _MSC_VER)
|
|
int
|
|
yyparse (void)
|
|
#else
|
|
int
|
|
yyparse ()
|
|
|
|
#endif
|
|
#endif
|
|
{
|
|
/* The lookahead symbol. */
|
|
int yychar;
|
|
|
|
|
|
#if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
|
|
/* Suppress an incorrect diagnostic about yylval being uninitialized. */
|
|
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
|
|
_Pragma ("GCC diagnostic push") \
|
|
_Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\
|
|
_Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
|
|
# define YY_IGNORE_MAYBE_UNINITIALIZED_END \
|
|
_Pragma ("GCC diagnostic pop")
|
|
#else
|
|
/* Default value used for initialization, for pacifying older GCCs
|
|
or non-GCC compilers. */
|
|
static YYSTYPE yyval_default;
|
|
# define YY_INITIAL_VALUE(Value) = Value
|
|
#endif
|
|
static YYLTYPE yyloc_default
|
|
# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
|
|
= { 1, 1, 1, 1 }
|
|
# endif
|
|
;
|
|
#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
|
|
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
|
|
# define YY_IGNORE_MAYBE_UNINITIALIZED_END
|
|
#endif
|
|
#ifndef YY_INITIAL_VALUE
|
|
# define YY_INITIAL_VALUE(Value) /* Nothing. */
|
|
#endif
|
|
|
|
/* The semantic value of the lookahead symbol. */
|
|
YYSTYPE yylval YY_INITIAL_VALUE(yyval_default);
|
|
|
|
/* Location data for the lookahead symbol. */
|
|
YYLTYPE yylloc = yyloc_default;
|
|
|
|
|
|
/* Number of syntax errors so far. */
|
|
int yynerrs;
|
|
|
|
int yystate;
|
|
/* Number of tokens to shift before error messages enabled. */
|
|
int yyerrstatus;
|
|
|
|
/* The stacks and their tools:
|
|
`yyss': related to states.
|
|
`yyvs': related to semantic values.
|
|
`yyls': related to locations.
|
|
|
|
Refer to the stacks through separate pointers, to allow yyoverflow
|
|
to reallocate them elsewhere. */
|
|
|
|
/* The state stack. */
|
|
yytype_int16 yyssa[YYINITDEPTH];
|
|
yytype_int16 *yyss;
|
|
yytype_int16 *yyssp;
|
|
|
|
/* The semantic value stack. */
|
|
YYSTYPE yyvsa[YYINITDEPTH];
|
|
YYSTYPE *yyvs;
|
|
YYSTYPE *yyvsp;
|
|
|
|
/* The location stack. */
|
|
YYLTYPE yylsa[YYINITDEPTH];
|
|
YYLTYPE *yyls;
|
|
YYLTYPE *yylsp;
|
|
|
|
/* The locations where the error started and ended. */
|
|
YYLTYPE yyerror_range[3];
|
|
|
|
YYSIZE_T yystacksize;
|
|
|
|
int yyn;
|
|
int yyresult;
|
|
/* Lookahead token as an internal (translated) token number. */
|
|
int yytoken = 0;
|
|
/* The variables used to return semantic value and location from the
|
|
action routines. */
|
|
YYSTYPE yyval;
|
|
YYLTYPE yyloc;
|
|
|
|
#if YYERROR_VERBOSE
|
|
/* Buffer for error messages, and its allocated size. */
|
|
char yymsgbuf[128];
|
|
char *yymsg = yymsgbuf;
|
|
YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
|
|
#endif
|
|
|
|
#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N), yylsp -= (N))
|
|
|
|
/* The number of symbols on the RHS of the reduced rule.
|
|
Keep to zero when no symbol should be popped. */
|
|
int yylen = 0;
|
|
|
|
yyssp = yyss = yyssa;
|
|
yyvsp = yyvs = yyvsa;
|
|
yylsp = yyls = yylsa;
|
|
yystacksize = YYINITDEPTH;
|
|
|
|
YYDPRINTF ((stderr, "Starting parse\n"));
|
|
|
|
yystate = 0;
|
|
yyerrstatus = 0;
|
|
yynerrs = 0;
|
|
yychar = YYEMPTY; /* Cause a token to be read. */
|
|
yylsp[0] = yylloc;
|
|
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;
|
|
yytype_int16 *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;
|
|
|
|
{
|
|
yytype_int16 *yyss1 = yyss;
|
|
union yyalloc *yyptr =
|
|
(union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
|
|
if (! yyptr)
|
|
goto yyexhaustedlab;
|
|
YYSTACK_RELOCATE (yyss_alloc, yyss);
|
|
YYSTACK_RELOCATE (yyvs_alloc, yyvs);
|
|
YYSTACK_RELOCATE (yyls_alloc, 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));
|
|
|
|
if (yystate == YYFINAL)
|
|
YYACCEPT;
|
|
|
|
goto yybackup;
|
|
|
|
/*-----------.
|
|
| yybackup. |
|
|
`-----------*/
|
|
yybackup:
|
|
|
|
/* Do appropriate processing given the current state. Read a
|
|
lookahead token if we need one and don't already have one. */
|
|
|
|
/* First try to decide what to do without reference to lookahead token. */
|
|
yyn = yypact[yystate];
|
|
if (yypact_value_is_default (yyn))
|
|
goto yydefault;
|
|
|
|
/* Not known => get a lookahead token if don't already have one. */
|
|
|
|
/* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
|
|
if (yychar == YYEMPTY)
|
|
{
|
|
YYDPRINTF ((stderr, "Reading a token: "));
|
|
yychar = YYLEX;
|
|
}
|
|
|
|
if (yychar <= YYEOF)
|
|
{
|
|
yychar = yytoken = YYEOF;
|
|
YYDPRINTF ((stderr, "Now at end of input.\n"));
|
|
}
|
|
else
|
|
{
|
|
yytoken = YYTRANSLATE (yychar);
|
|
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 (yytable_value_is_error (yyn))
|
|
goto yyerrlab;
|
|
yyn = -yyn;
|
|
goto yyreduce;
|
|
}
|
|
|
|
/* Count tokens shifted since error; after three, turn off error
|
|
status. */
|
|
if (yyerrstatus)
|
|
yyerrstatus--;
|
|
|
|
/* Shift the lookahead token. */
|
|
YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
|
|
|
|
/* Discard the shifted token. */
|
|
yychar = YYEMPTY;
|
|
|
|
yystate = yyn;
|
|
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
|
|
*++yyvsp = yylval;
|
|
YY_IGNORE_MAYBE_UNINITIALIZED_END
|
|
*++yylsp = yylloc;
|
|
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 1792 of yacc.c */
|
|
#line 407 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
current_expr = (yyvsp[(2) - (2)].u.expr);
|
|
}
|
|
break;
|
|
|
|
case 4:
|
|
/* Line 1792 of yacc.c */
|
|
#line 411 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
current_type = (yyvsp[(2) - (2)].u.type);
|
|
}
|
|
break;
|
|
|
|
case 10:
|
|
/* Line 1792 of yacc.c */
|
|
#line 429 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
delete (yyvsp[(3) - (4)].u.expr);
|
|
}
|
|
break;
|
|
|
|
case 11:
|
|
/* Line 1792 of yacc.c */
|
|
#line 441 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
push_storage_class((current_storage_class & ~CPPInstance::SC_c_binding) |
|
|
((yyvsp[(1) - (2)].u.integer) & CPPInstance::SC_c_binding));
|
|
}
|
|
break;
|
|
|
|
case 12:
|
|
/* Line 1792 of yacc.c */
|
|
#line 446 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
pop_storage_class();
|
|
}
|
|
break;
|
|
|
|
case 20:
|
|
/* Line 1792 of yacc.c */
|
|
#line 460 "dtool/src/cppparser/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[(1) - (1)]);
|
|
publish_nest_level++;
|
|
current_scope->set_current_vis(V_published);
|
|
}
|
|
break;
|
|
|
|
case 21:
|
|
/* Line 1792 of yacc.c */
|
|
#line 473 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
if (publish_nest_level != 1) {
|
|
yyerror("Unmatched __end_publish", (yylsp[(1) - (1)]));
|
|
} else {
|
|
current_scope->set_current_vis(publish_previous);
|
|
}
|
|
publish_nest_level = 0;
|
|
}
|
|
break;
|
|
|
|
case 22:
|
|
/* Line 1792 of yacc.c */
|
|
#line 482 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
current_scope->set_current_vis(V_published);
|
|
}
|
|
break;
|
|
|
|
case 23:
|
|
/* Line 1792 of yacc.c */
|
|
#line 486 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
if (publish_nest_level > 0) {
|
|
current_scope->set_current_vis(V_published);
|
|
} else {
|
|
current_scope->set_current_vis(V_public);
|
|
}
|
|
}
|
|
break;
|
|
|
|
case 24:
|
|
/* Line 1792 of yacc.c */
|
|
#line 494 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
current_scope->set_current_vis(V_protected);
|
|
}
|
|
break;
|
|
|
|
case 25:
|
|
/* Line 1792 of yacc.c */
|
|
#line 498 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
current_scope->set_current_vis(V_private);
|
|
}
|
|
break;
|
|
|
|
case 26:
|
|
/* Line 1792 of yacc.c */
|
|
#line 502 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
|
|
CPPDeclaration *getter = (yyvsp[(5) - (7)].u.identifier)->find_symbol(current_scope, global_scope, current_lexer);
|
|
if (getter == (CPPDeclaration *)NULL || getter->get_subtype() != CPPDeclaration::ST_function_group) {
|
|
yyerror("Reference to non-existent or invalid getter: " + (yyvsp[(5) - (7)].u.identifier)->get_fully_scoped_name(), (yylsp[(5) - (7)]));
|
|
}
|
|
|
|
CPPMakeProperty *make_property = new CPPMakeProperty((yyvsp[(3) - (7)].u.identifier), getter->as_function_group(), NULL, current_scope, (yylsp[(1) - (7)]).file);
|
|
current_scope->add_declaration(make_property, global_scope, current_lexer, (yylsp[(1) - (7)]));
|
|
}
|
|
break;
|
|
|
|
case 27:
|
|
/* Line 1792 of yacc.c */
|
|
#line 513 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
CPPDeclaration *getter = (yyvsp[(5) - (9)].u.identifier)->find_symbol(current_scope, global_scope, current_lexer);
|
|
if (getter == (CPPDeclaration *)NULL || getter->get_subtype() != CPPDeclaration::ST_function_group) {
|
|
yyerror("Reference to non-existent or invalid getter: " + (yyvsp[(5) - (9)].u.identifier)->get_fully_scoped_name(), (yylsp[(5) - (9)]));
|
|
|
|
} else {
|
|
CPPDeclaration *setter = (yyvsp[(7) - (9)].u.identifier)->find_symbol(current_scope, global_scope, current_lexer);
|
|
CPPFunctionGroup *setter_func = NULL;
|
|
|
|
if (setter == (CPPDeclaration *)NULL || setter->get_subtype() != CPPDeclaration::ST_function_group) {
|
|
yyerror("Reference to non-existent or invalid setter: " + (yyvsp[(7) - (9)].u.identifier)->get_fully_scoped_name(), (yylsp[(7) - (9)]));
|
|
} else {
|
|
setter_func = setter->as_function_group();
|
|
}
|
|
|
|
CPPMakeProperty *make_property = new CPPMakeProperty((yyvsp[(3) - (9)].u.identifier), getter->as_function_group(),
|
|
setter_func, current_scope, (yylsp[(1) - (9)]).file);
|
|
current_scope->add_declaration(make_property, global_scope, current_lexer, (yylsp[(1) - (9)]));
|
|
}
|
|
}
|
|
break;
|
|
|
|
case 28:
|
|
/* Line 1792 of yacc.c */
|
|
#line 534 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
CPPDeclaration *length_getter = (yyvsp[(5) - (9)].u.identifier)->find_symbol(current_scope, global_scope, current_lexer);
|
|
if (length_getter == (CPPDeclaration *)NULL || length_getter->get_subtype() != CPPDeclaration::ST_function_group) {
|
|
yyerror("reference to non-existent or invalid length method: " + (yyvsp[(5) - (9)].u.identifier)->get_fully_scoped_name(), (yylsp[(5) - (9)]));
|
|
length_getter = NULL;
|
|
}
|
|
|
|
CPPDeclaration *element_getter = (yyvsp[(7) - (9)].u.identifier)->find_symbol(current_scope, global_scope, current_lexer);
|
|
if (element_getter == (CPPDeclaration *)NULL || element_getter->get_subtype() != CPPDeclaration::ST_function_group) {
|
|
yyerror("reference to non-existent or invalid element method: " + (yyvsp[(7) - (9)].u.identifier)->get_fully_scoped_name(), (yylsp[(5) - (9)]));
|
|
element_getter = NULL;
|
|
}
|
|
|
|
if (length_getter != (CPPDeclaration *)NULL && element_getter != (CPPDeclaration *)NULL) {
|
|
CPPMakeSeq *make_seq = new CPPMakeSeq((yyvsp[(3) - (9)].u.identifier),
|
|
length_getter->as_function_group(),
|
|
element_getter->as_function_group(),
|
|
current_scope, (yylsp[(1) - (9)]).file);
|
|
current_scope->add_declaration(make_seq, global_scope, current_lexer, (yylsp[(1) - (9)]));
|
|
}
|
|
}
|
|
break;
|
|
|
|
case 29:
|
|
/* Line 1792 of yacc.c */
|
|
#line 556 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
CPPExpression::Result result = (yyvsp[(3) - (6)].u.expr)->evaluate();
|
|
if (result._type == CPPExpression::RT_error) {
|
|
yywarning("static_assert requires a constant expression", (yylsp[(3) - (6)]));
|
|
} else if (!result.as_boolean()) {
|
|
stringstream str;
|
|
str << *(yyvsp[(5) - (6)].u.expr);
|
|
yywarning("static_assert failed: " + str.str(), (yylsp[(3) - (6)]));
|
|
}
|
|
}
|
|
break;
|
|
|
|
case 30:
|
|
/* Line 1792 of yacc.c */
|
|
#line 567 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
// This alternative version of static_assert was introduced in C++17.
|
|
CPPExpression::Result result = (yyvsp[(3) - (4)].u.expr)->evaluate();
|
|
if (result._type == CPPExpression::RT_error) {
|
|
yywarning("static_assert requires a constant expression", (yylsp[(3) - (4)]));
|
|
} else if (!result.as_boolean()) {
|
|
yywarning("static_assert failed", (yylsp[(3) - (4)]));
|
|
}
|
|
}
|
|
break;
|
|
|
|
case 31:
|
|
/* Line 1792 of yacc.c */
|
|
#line 580 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
CPPScope *new_scope = new CPPScope(current_scope, CPPNameComponent("temp"),
|
|
V_public);
|
|
push_scope(new_scope);
|
|
}
|
|
break;
|
|
|
|
case 32:
|
|
/* Line 1792 of yacc.c */
|
|
#line 586 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
delete current_scope;
|
|
pop_scope();
|
|
}
|
|
break;
|
|
|
|
case 33:
|
|
/* Line 1792 of yacc.c */
|
|
#line 595 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.integer) = 0;
|
|
}
|
|
break;
|
|
|
|
case 34:
|
|
/* Line 1792 of yacc.c */
|
|
#line 599 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.integer) = (yyvsp[(2) - (2)].u.integer) | (int)CPPInstance::SC_extern;
|
|
}
|
|
break;
|
|
|
|
case 35:
|
|
/* Line 1792 of yacc.c */
|
|
#line 603 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.integer) = (yyvsp[(3) - (3)].u.integer) | (int)CPPInstance::SC_extern;
|
|
if ((yyvsp[(2) - (3)].str) == "C") {
|
|
(yyval.u.integer) |= (int)CPPInstance::SC_c_binding;
|
|
} else if ((yyvsp[(2) - (3)].str) == "C++") {
|
|
(yyval.u.integer) &= ~(int)CPPInstance::SC_c_binding;
|
|
} else {
|
|
yywarning("Ignoring unknown linkage type \"" + (yyvsp[(2) - (3)].str) + "\"", (yylsp[(2) - (3)]));
|
|
}
|
|
}
|
|
break;
|
|
|
|
case 36:
|
|
/* Line 1792 of yacc.c */
|
|
#line 614 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.integer) = (yyvsp[(2) - (2)].u.integer) | (int)CPPInstance::SC_static;
|
|
}
|
|
break;
|
|
|
|
case 37:
|
|
/* Line 1792 of yacc.c */
|
|
#line 618 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.integer) = (yyvsp[(2) - (2)].u.integer) | (int)CPPInstance::SC_inline;
|
|
}
|
|
break;
|
|
|
|
case 38:
|
|
/* Line 1792 of yacc.c */
|
|
#line 622 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.integer) = (yyvsp[(2) - (2)].u.integer) | (int)CPPInstance::SC_virtual;
|
|
}
|
|
break;
|
|
|
|
case 39:
|
|
/* Line 1792 of yacc.c */
|
|
#line 626 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.integer) = (yyvsp[(2) - (2)].u.integer) | (int)CPPInstance::SC_explicit;
|
|
}
|
|
break;
|
|
|
|
case 40:
|
|
/* Line 1792 of yacc.c */
|
|
#line 630 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.integer) = (yyvsp[(2) - (2)].u.integer) | (int)CPPInstance::SC_register;
|
|
}
|
|
break;
|
|
|
|
case 41:
|
|
/* Line 1792 of yacc.c */
|
|
#line 634 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.integer) = (yyvsp[(2) - (2)].u.integer) | (int)CPPInstance::SC_volatile;
|
|
}
|
|
break;
|
|
|
|
case 42:
|
|
/* Line 1792 of yacc.c */
|
|
#line 638 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.integer) = (yyvsp[(2) - (2)].u.integer) | (int)CPPInstance::SC_mutable;
|
|
}
|
|
break;
|
|
|
|
case 43:
|
|
/* Line 1792 of yacc.c */
|
|
#line 642 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.integer) = (yyvsp[(2) - (2)].u.integer) | (int)CPPInstance::SC_constexpr;
|
|
}
|
|
break;
|
|
|
|
case 44:
|
|
/* Line 1792 of yacc.c */
|
|
#line 646 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.integer) = (yyvsp[(2) - (2)].u.integer) | (int)CPPInstance::SC_blocking;
|
|
}
|
|
break;
|
|
|
|
case 45:
|
|
/* Line 1792 of yacc.c */
|
|
#line 650 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.integer) = (yyvsp[(2) - (2)].u.integer) | (int)CPPInstance::SC_extension;
|
|
}
|
|
break;
|
|
|
|
case 46:
|
|
/* Line 1792 of yacc.c */
|
|
#line 657 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
/* multiple_var_declaration adds itself to the scope. */
|
|
}
|
|
break;
|
|
|
|
case 47:
|
|
/* Line 1792 of yacc.c */
|
|
#line 661 "dtool/src/cppparser/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[(2) - (3)].u.decl), global_scope, current_lexer, (yylsp[(2) - (3)]));
|
|
}
|
|
break;
|
|
|
|
case 48:
|
|
/* Line 1792 of yacc.c */
|
|
#line 670 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
if ((yyvsp[(2) - (3)].u.instance) != (CPPInstance *)NULL) {
|
|
(yyvsp[(2) - (3)].u.instance)->_storage_class |= (current_storage_class | (yyvsp[(1) - (3)].u.integer));
|
|
current_scope->add_declaration((yyvsp[(2) - (3)].u.instance), global_scope, current_lexer, (yylsp[(2) - (3)]));
|
|
(yyvsp[(2) - (3)].u.instance)->set_initializer((yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
}
|
|
break;
|
|
|
|
case 49:
|
|
/* Line 1792 of yacc.c */
|
|
#line 681 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
// We don't need to push/pop type, because we can't nest
|
|
// multiple_var_declarations.
|
|
if ((yyvsp[(2) - (2)].u.decl)->as_type_declaration()) {
|
|
current_type = (yyvsp[(2) - (2)].u.decl)->as_type_declaration()->_type;
|
|
} else {
|
|
current_type = (yyvsp[(2) - (2)].u.decl)->as_type();
|
|
}
|
|
push_storage_class((yyvsp[(1) - (2)].u.integer));
|
|
}
|
|
break;
|
|
|
|
case 50:
|
|
/* Line 1792 of yacc.c */
|
|
#line 692 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
pop_storage_class();
|
|
}
|
|
break;
|
|
|
|
case 51:
|
|
/* Line 1792 of yacc.c */
|
|
#line 696 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
// We don't need to push/pop type, because we can't nest
|
|
// multiple_var_declarations.
|
|
if ((yyvsp[(3) - (3)].u.decl)->as_type_declaration()) {
|
|
current_type = (yyvsp[(3) - (3)].u.decl)->as_type_declaration()->_type;
|
|
} else {
|
|
current_type = (yyvsp[(3) - (3)].u.decl)->as_type();
|
|
}
|
|
push_storage_class((yyvsp[(1) - (3)].u.integer));
|
|
}
|
|
break;
|
|
|
|
case 52:
|
|
/* Line 1792 of yacc.c */
|
|
#line 707 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
pop_storage_class();
|
|
}
|
|
break;
|
|
|
|
case 53:
|
|
/* Line 1792 of yacc.c */
|
|
#line 718 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
CPPInstance *inst = new CPPInstance(current_type, (yyvsp[(1) - (2)].u.inst_ident),
|
|
current_storage_class,
|
|
(yylsp[(1) - (2)]).file);
|
|
inst->set_initializer((yyvsp[(2) - (2)].u.expr));
|
|
current_scope->add_declaration(inst, global_scope, current_lexer, (yylsp[(1) - (2)]));
|
|
}
|
|
break;
|
|
|
|
case 54:
|
|
/* Line 1792 of yacc.c */
|
|
#line 726 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
CPPInstance *inst = new CPPInstance(current_type, (yyvsp[(1) - (4)].u.inst_ident),
|
|
current_storage_class,
|
|
(yylsp[(1) - (4)]).file);
|
|
inst->set_initializer((yyvsp[(2) - (4)].u.expr));
|
|
current_scope->add_declaration(inst, global_scope, current_lexer, (yylsp[(1) - (4)]));
|
|
}
|
|
break;
|
|
|
|
case 55:
|
|
/* Line 1792 of yacc.c */
|
|
#line 737 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyvsp[(1) - (2)].u.inst_ident)->add_modifier(IIT_const);
|
|
CPPInstance *inst = new CPPInstance(current_type, (yyvsp[(1) - (2)].u.inst_ident),
|
|
current_storage_class,
|
|
(yylsp[(1) - (2)]).file);
|
|
inst->set_initializer((yyvsp[(2) - (2)].u.expr));
|
|
current_scope->add_declaration(inst, global_scope, current_lexer, (yylsp[(1) - (2)]));
|
|
}
|
|
break;
|
|
|
|
case 56:
|
|
/* Line 1792 of yacc.c */
|
|
#line 746 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyvsp[(1) - (4)].u.inst_ident)->add_modifier(IIT_const);
|
|
CPPInstance *inst = new CPPInstance(current_type, (yyvsp[(1) - (4)].u.inst_ident),
|
|
current_storage_class,
|
|
(yylsp[(1) - (4)]).file);
|
|
inst->set_initializer((yyvsp[(2) - (4)].u.expr));
|
|
current_scope->add_declaration(inst, global_scope, current_lexer, (yylsp[(1) - (4)]));
|
|
}
|
|
break;
|
|
|
|
case 57:
|
|
/* Line 1792 of yacc.c */
|
|
#line 759 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
// We don't need to push/pop type, because we can't nest
|
|
// multiple_var_declarations.
|
|
if ((yyvsp[(2) - (2)].u.decl)->as_type_declaration()) {
|
|
current_type = (yyvsp[(2) - (2)].u.decl)->as_type_declaration()->_type;
|
|
} else {
|
|
current_type = (yyvsp[(2) - (2)].u.decl)->as_type();
|
|
}
|
|
push_storage_class((yyvsp[(1) - (2)].u.integer));
|
|
}
|
|
break;
|
|
|
|
case 58:
|
|
/* Line 1792 of yacc.c */
|
|
#line 770 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
pop_storage_class();
|
|
}
|
|
break;
|
|
|
|
case 59:
|
|
/* Line 1792 of yacc.c */
|
|
#line 774 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
// We don't need to push/pop type, because we can't nest
|
|
// multiple_var_declarations.
|
|
if ((yyvsp[(3) - (3)].u.decl)->as_type_declaration()) {
|
|
current_type = (yyvsp[(3) - (3)].u.decl)->as_type_declaration()->_type;
|
|
} else {
|
|
current_type = (yyvsp[(3) - (3)].u.decl)->as_type();
|
|
}
|
|
push_storage_class((yyvsp[(1) - (3)].u.integer));
|
|
}
|
|
break;
|
|
|
|
case 60:
|
|
/* Line 1792 of yacc.c */
|
|
#line 785 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
pop_storage_class();
|
|
}
|
|
break;
|
|
|
|
case 61:
|
|
/* Line 1792 of yacc.c */
|
|
#line 789 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
if ((yyvsp[(2) - (3)].u.instance) != (CPPDeclaration *)NULL) {
|
|
CPPInstance *inst = (yyvsp[(2) - (3)].u.instance)->as_instance();
|
|
if (inst != (CPPInstance *)NULL) {
|
|
inst->_storage_class |= (current_storage_class | (yyvsp[(1) - (3)].u.integer));
|
|
current_scope->add_declaration(inst, global_scope, current_lexer, (yylsp[(2) - (3)]));
|
|
CPPTypedefType *typedef_type = new CPPTypedefType(inst->_type, inst->_ident, current_scope);
|
|
current_scope->add_declaration(CPPType::new_type(typedef_type), global_scope, current_lexer, (yylsp[(2) - (3)]));
|
|
}
|
|
}
|
|
}
|
|
break;
|
|
|
|
case 62:
|
|
/* Line 1792 of yacc.c */
|
|
#line 804 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
CPPType *target_type = current_type;
|
|
CPPTypedefType *typedef_type = new CPPTypedefType(target_type, (yyvsp[(1) - (2)].u.inst_ident), current_scope, (yylsp[(1) - (2)]).file);
|
|
current_scope->add_declaration(CPPType::new_type(typedef_type), global_scope, current_lexer, (yylsp[(1) - (2)]));
|
|
}
|
|
break;
|
|
|
|
case 63:
|
|
/* Line 1792 of yacc.c */
|
|
#line 810 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
CPPType *target_type = current_type;
|
|
CPPTypedefType *typedef_type = new CPPTypedefType(target_type, (yyvsp[(1) - (4)].u.inst_ident), current_scope, (yylsp[(1) - (4)]).file);
|
|
current_scope->add_declaration(CPPType::new_type(typedef_type), global_scope, current_lexer, (yylsp[(1) - (4)]));
|
|
}
|
|
break;
|
|
|
|
case 64:
|
|
/* Line 1792 of yacc.c */
|
|
#line 819 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyvsp[(1) - (2)].u.inst_ident)->add_modifier(IIT_const);
|
|
CPPType *target_type = current_type;
|
|
CPPTypedefType *typedef_type = new CPPTypedefType(target_type, (yyvsp[(1) - (2)].u.inst_ident), current_scope, (yylsp[(1) - (2)]).file);
|
|
current_scope->add_declaration(CPPType::new_type(typedef_type), global_scope, current_lexer, (yylsp[(1) - (2)]));
|
|
}
|
|
break;
|
|
|
|
case 65:
|
|
/* Line 1792 of yacc.c */
|
|
#line 826 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyvsp[(1) - (4)].u.inst_ident)->add_modifier(IIT_const);
|
|
CPPType *target_type = current_type;
|
|
CPPTypedefType *typedef_type = new CPPTypedefType(target_type, (yyvsp[(1) - (4)].u.inst_ident), current_scope, (yylsp[(1) - (4)]).file);
|
|
current_scope->add_declaration(CPPType::new_type(typedef_type), global_scope, current_lexer, (yylsp[(1) - (4)]));
|
|
}
|
|
break;
|
|
|
|
case 66:
|
|
/* Line 1792 of yacc.c */
|
|
#line 838 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
push_scope((yyvsp[(1) - (2)].u.identifier)->get_scope(current_scope, global_scope));
|
|
}
|
|
break;
|
|
|
|
case 67:
|
|
/* Line 1792 of yacc.c */
|
|
#line 842 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
CPPType *type;
|
|
if ((yyvsp[(1) - (6)].u.identifier)->get_simple_name() == current_scope->get_simple_name() ||
|
|
(yyvsp[(1) - (6)].u.identifier)->get_simple_name() == string("~") + 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.
|
|
yywarning("function has no return type, assuming int", (yylsp[(1) - (6)]));
|
|
type = new CPPSimpleType(CPPSimpleType::T_int);
|
|
}
|
|
pop_scope();
|
|
|
|
CPPInstanceIdentifier *ii = new CPPInstanceIdentifier((yyvsp[(1) - (6)].u.identifier));
|
|
ii->add_func_modifier((yyvsp[(4) - (6)].u.param_list), (yyvsp[(6) - (6)].u.integer));
|
|
|
|
(yyval.u.instance) = new CPPInstance(type, ii, 0, (yylsp[(1) - (6)]).file);
|
|
}
|
|
break;
|
|
|
|
case 68:
|
|
/* Line 1792 of yacc.c */
|
|
#line 862 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
push_scope((yyvsp[(1) - (2)].u.identifier)->get_scope(current_scope, global_scope));
|
|
}
|
|
break;
|
|
|
|
case 69:
|
|
/* Line 1792 of yacc.c */
|
|
#line 866 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
pop_scope();
|
|
CPPType *type;
|
|
if ((yyvsp[(1) - (6)].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[(1) - (6)].u.identifier));
|
|
ii->add_func_modifier((yyvsp[(4) - (6)].u.param_list), (yyvsp[(6) - (6)].u.integer));
|
|
|
|
(yyval.u.instance) = new CPPInstance(type, ii, 0, (yylsp[(1) - (6)]).file);
|
|
}
|
|
break;
|
|
|
|
case 70:
|
|
/* Line 1792 of yacc.c */
|
|
#line 886 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
push_scope((yyvsp[(2) - (3)].u.identifier)->get_scope(current_scope, global_scope));
|
|
}
|
|
break;
|
|
|
|
case 71:
|
|
/* Line 1792 of yacc.c */
|
|
#line 890 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
pop_scope();
|
|
if ((yyvsp[(2) - (7)].u.identifier)->is_scoped()) {
|
|
yyerror("Invalid destructor name: ~" + (yyvsp[(2) - (7)].u.identifier)->get_fully_scoped_name(), (yylsp[(2) - (7)]));
|
|
} else {
|
|
CPPIdentifier *ident =
|
|
new CPPIdentifier("~" + (yyvsp[(2) - (7)].u.identifier)->get_simple_name(), (yylsp[(2) - (7)]));
|
|
delete (yyvsp[(2) - (7)].u.identifier);
|
|
|
|
CPPType *type;
|
|
type = new CPPSimpleType(CPPSimpleType::T_void);
|
|
|
|
CPPInstanceIdentifier *ii = new CPPInstanceIdentifier(ident);
|
|
ii->add_func_modifier((yyvsp[(5) - (7)].u.param_list), (yyvsp[(7) - (7)].u.integer));
|
|
|
|
(yyval.u.instance) = new CPPInstance(type, ii, 0, (yylsp[(2) - (7)]).file);
|
|
}
|
|
}
|
|
break;
|
|
|
|
case 72:
|
|
/* Line 1792 of yacc.c */
|
|
#line 916 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
push_scope((yyvsp[(4) - (6)].u.inst_ident)->get_scope(current_scope, global_scope));
|
|
}
|
|
break;
|
|
|
|
case 73:
|
|
/* Line 1792 of yacc.c */
|
|
#line 920 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
pop_scope();
|
|
CPPType *type = (yyvsp[(1) - (10)].u.identifier)->find_type(current_scope, global_scope, false, current_lexer);
|
|
if (type == NULL) {
|
|
yyerror(string("internal error resolving type ") + (yyvsp[(1) - (10)].u.identifier)->get_fully_scoped_name(), (yylsp[(1) - (10)]));
|
|
}
|
|
assert(type != NULL);
|
|
|
|
CPPInstanceIdentifier *ii = (yyvsp[(4) - (10)].u.inst_ident);
|
|
ii->add_modifier(IIT_pointer);
|
|
ii->add_func_modifier((yyvsp[(8) - (10)].u.param_list), (yyvsp[(10) - (10)].u.integer));
|
|
(yyval.u.instance) = new CPPInstance(type, ii, 0, (yylsp[(1) - (10)]).file);
|
|
}
|
|
break;
|
|
|
|
case 74:
|
|
/* Line 1792 of yacc.c */
|
|
#line 934 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
push_scope((yyvsp[(5) - (7)].u.inst_ident)->get_scope(current_scope, global_scope));
|
|
}
|
|
break;
|
|
|
|
case 75:
|
|
/* Line 1792 of yacc.c */
|
|
#line 938 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
pop_scope();
|
|
CPPType *type = (yyvsp[(1) - (11)].u.identifier)->find_type(current_scope, global_scope, false, current_lexer);
|
|
if (type == NULL) {
|
|
yyerror(string("internal error resolving type ") + (yyvsp[(1) - (11)].u.identifier)->get_fully_scoped_name(), (yylsp[(1) - (11)]));
|
|
}
|
|
assert(type != NULL);
|
|
|
|
CPPInstanceIdentifier *ii = (yyvsp[(5) - (11)].u.inst_ident);
|
|
ii->add_scoped_pointer_modifier((yyvsp[(3) - (11)].u.identifier));
|
|
ii->add_func_modifier((yyvsp[(9) - (11)].u.param_list), (yyvsp[(11) - (11)].u.integer));
|
|
(yyval.u.instance) = new CPPInstance(type, ii, 0, (yylsp[(1) - (11)]).file);
|
|
}
|
|
break;
|
|
|
|
case 76:
|
|
/* Line 1792 of yacc.c */
|
|
#line 954 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
if ((yyvsp[(1) - (4)].u.identifier) != NULL) {
|
|
push_scope((yyvsp[(1) - (4)].u.identifier)->get_scope(current_scope, global_scope));
|
|
}
|
|
}
|
|
break;
|
|
|
|
case 77:
|
|
/* Line 1792 of yacc.c */
|
|
#line 960 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
if ((yyvsp[(1) - (8)].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 typecast operators the name "operator typecast <name>",
|
|
// where <name> is a simple name of the type to be typecast. Use
|
|
// the method's return type to determine the full type description.
|
|
string name = "operator typecast " + (yyvsp[(2) - (8)].u.type)->get_simple_name();
|
|
CPPIdentifier *ident = (yyvsp[(1) - (8)].u.identifier);
|
|
if (ident == NULL) {
|
|
ident = new CPPIdentifier(name, (yylsp[(2) - (8)]));
|
|
} else {
|
|
ident->add_name(name);
|
|
}
|
|
(yyval.u.instance) = CPPInstance::make_typecast_function
|
|
(new CPPInstance((yyvsp[(2) - (8)].u.type), (yyvsp[(3) - (8)].u.inst_ident), 0, (yylsp[(3) - (8)]).file), ident, (yyvsp[(6) - (8)].u.param_list), (yyvsp[(8) - (8)].u.integer));
|
|
}
|
|
break;
|
|
|
|
case 78:
|
|
/* Line 1792 of yacc.c */
|
|
#line 985 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
if ((yyvsp[(1) - (5)].u.identifier) != NULL) {
|
|
push_scope((yyvsp[(1) - (5)].u.identifier)->get_scope(current_scope, global_scope));
|
|
}
|
|
}
|
|
break;
|
|
|
|
case 79:
|
|
/* Line 1792 of yacc.c */
|
|
#line 991 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
if ((yyvsp[(1) - (9)].u.identifier) != NULL) {
|
|
pop_scope();
|
|
}
|
|
|
|
CPPIdentifier *ident = (yyvsp[(1) - (9)].u.identifier);
|
|
if (ident == NULL) {
|
|
ident = new CPPIdentifier("operator typecast", (yylsp[(4) - (9)]));
|
|
} else {
|
|
ident->add_name("operator typecast");
|
|
}
|
|
(yyvsp[(4) - (9)].u.inst_ident)->add_modifier(IIT_const);
|
|
(yyval.u.instance) = CPPInstance::make_typecast_function
|
|
(new CPPInstance((yyvsp[(3) - (9)].u.type), (yyvsp[(4) - (9)].u.inst_ident), 0, (yylsp[(4) - (9)]).file), ident, (yyvsp[(7) - (9)].u.param_list), (yyvsp[(9) - (9)].u.integer));
|
|
}
|
|
break;
|
|
|
|
case 80:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1011 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
CPPDeclaration *decl =
|
|
(yyvsp[(1) - (1)].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 81:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1024 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.integer) = 0;
|
|
}
|
|
break;
|
|
|
|
case 82:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1028 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.integer) = (int)CPPFunctionType::F_const_method;
|
|
}
|
|
break;
|
|
|
|
case 83:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1032 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.integer) = (int)CPPFunctionType::F_noexcept;
|
|
}
|
|
break;
|
|
|
|
case 84:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1036 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.integer) = (yyvsp[(1) - (4)].u.integer);
|
|
}
|
|
break;
|
|
|
|
case 85:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1040 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.integer) = (yyvsp[(1) - (5)].u.integer);
|
|
}
|
|
break;
|
|
|
|
case 86:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1047 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "!";
|
|
}
|
|
break;
|
|
|
|
case 87:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1051 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "~";
|
|
}
|
|
break;
|
|
|
|
case 88:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1055 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "*";
|
|
}
|
|
break;
|
|
|
|
case 89:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1059 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "/";
|
|
}
|
|
break;
|
|
|
|
case 90:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1063 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "%";
|
|
}
|
|
break;
|
|
|
|
case 91:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1067 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "+";
|
|
}
|
|
break;
|
|
|
|
case 92:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1071 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "-";
|
|
}
|
|
break;
|
|
|
|
case 93:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1075 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "|";
|
|
}
|
|
break;
|
|
|
|
case 94:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1079 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "&";
|
|
}
|
|
break;
|
|
|
|
case 95:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1083 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "^";
|
|
}
|
|
break;
|
|
|
|
case 96:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1087 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "||";
|
|
}
|
|
break;
|
|
|
|
case 97:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1091 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "&&";
|
|
}
|
|
break;
|
|
|
|
case 98:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1095 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "==";
|
|
}
|
|
break;
|
|
|
|
case 99:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1099 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "!=";
|
|
}
|
|
break;
|
|
|
|
case 100:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1103 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "<=";
|
|
}
|
|
break;
|
|
|
|
case 101:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1107 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = ">=";
|
|
}
|
|
break;
|
|
|
|
case 102:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1111 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "<";
|
|
}
|
|
break;
|
|
|
|
case 103:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1115 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = ">";
|
|
}
|
|
break;
|
|
|
|
case 104:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1119 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "<<";
|
|
}
|
|
break;
|
|
|
|
case 105:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1123 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = ">>";
|
|
}
|
|
break;
|
|
|
|
case 106:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1127 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "=";
|
|
}
|
|
break;
|
|
|
|
case 107:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1131 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = ",";
|
|
}
|
|
break;
|
|
|
|
case 108:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1135 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "++";
|
|
}
|
|
break;
|
|
|
|
case 109:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1139 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "--";
|
|
}
|
|
break;
|
|
|
|
case 110:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1143 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "*=";
|
|
}
|
|
break;
|
|
|
|
case 111:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1147 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "/=";
|
|
}
|
|
break;
|
|
|
|
case 112:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1151 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "%=";
|
|
}
|
|
break;
|
|
|
|
case 113:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1155 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "+=";
|
|
}
|
|
break;
|
|
|
|
case 114:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1159 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "-=";
|
|
}
|
|
break;
|
|
|
|
case 115:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1163 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "|=";
|
|
}
|
|
break;
|
|
|
|
case 116:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1167 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "&=";
|
|
}
|
|
break;
|
|
|
|
case 117:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1171 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "^=";
|
|
}
|
|
break;
|
|
|
|
case 118:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1175 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "<<=";
|
|
}
|
|
break;
|
|
|
|
case 119:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1179 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = ">>=";
|
|
}
|
|
break;
|
|
|
|
case 120:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1183 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "->";
|
|
}
|
|
break;
|
|
|
|
case 121:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1187 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "[]";
|
|
}
|
|
break;
|
|
|
|
case 122:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1191 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "()";
|
|
}
|
|
break;
|
|
|
|
case 123:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1195 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "new";
|
|
}
|
|
break;
|
|
|
|
case 124:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1199 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "delete";
|
|
}
|
|
break;
|
|
|
|
case 127:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1211 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
push_scope(new CPPTemplateScope(current_scope));
|
|
}
|
|
break;
|
|
|
|
case 128:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1215 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
pop_scope();
|
|
}
|
|
break;
|
|
|
|
case 132:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1228 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
CPPTemplateScope *ts = current_scope->as_template_scope();
|
|
assert(ts != NULL);
|
|
ts->add_template_parameter((yyvsp[(1) - (1)].u.decl));
|
|
}
|
|
break;
|
|
|
|
case 133:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1234 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
CPPTemplateScope *ts = current_scope->as_template_scope();
|
|
assert(ts != NULL);
|
|
ts->add_template_parameter((yyvsp[(3) - (3)].u.decl));
|
|
}
|
|
break;
|
|
|
|
case 134:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1243 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.decl) = CPPType::new_type(new CPPClassTemplateParameter((yyvsp[(2) - (2)].u.identifier)));
|
|
}
|
|
break;
|
|
|
|
case 135:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1247 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.decl) = CPPType::new_type(new CPPClassTemplateParameter((yyvsp[(2) - (4)].u.identifier), (yyvsp[(4) - (4)].u.type)));
|
|
}
|
|
break;
|
|
|
|
case 136:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1251 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.decl) = CPPType::new_type(new CPPClassTemplateParameter((yyvsp[(2) - (2)].u.identifier)));
|
|
}
|
|
break;
|
|
|
|
case 137:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1255 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.decl) = CPPType::new_type(new CPPClassTemplateParameter((yyvsp[(2) - (4)].u.identifier), (yyvsp[(4) - (4)].u.type)));
|
|
}
|
|
break;
|
|
|
|
case 138:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1259 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
CPPInstance *inst = new CPPInstance((yyvsp[(1) - (3)].u.type), (yyvsp[(2) - (3)].u.inst_ident), 0, (yylsp[(2) - (3)]).file);
|
|
inst->set_initializer((yyvsp[(3) - (3)].u.expr));
|
|
(yyval.u.decl) = inst;
|
|
}
|
|
break;
|
|
|
|
case 139:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1265 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyvsp[(3) - (4)].u.inst_ident)->add_modifier(IIT_const);
|
|
CPPInstance *inst = new CPPInstance((yyvsp[(2) - (4)].u.type), (yyvsp[(3) - (4)].u.inst_ident), 0, (yylsp[(3) - (4)]).file);
|
|
inst->set_initializer((yyvsp[(4) - (4)].u.expr));
|
|
(yyval.u.decl) = inst;
|
|
}
|
|
break;
|
|
|
|
case 140:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1275 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.type) = CPPType::new_type((yyvsp[(1) - (1)].u.simple_type));
|
|
}
|
|
break;
|
|
|
|
case 141:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1279 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
yywarning("Not a type: " + (yyvsp[(1) - (1)].u.identifier)->get_fully_scoped_name(), (yylsp[(1) - (1)]));
|
|
(yyval.u.type) = CPPType::new_type(new CPPSimpleType(CPPSimpleType::T_unknown));
|
|
}
|
|
break;
|
|
|
|
case 142:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1284 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.type) = (yyvsp[(1) - (1)].u.identifier)->find_type(current_scope, global_scope, false, current_lexer);
|
|
if ((yyval.u.type) == NULL) {
|
|
yyerror(string("internal error resolving type ") + (yyvsp[(1) - (1)].u.identifier)->get_fully_scoped_name(), (yylsp[(1) - (1)]));
|
|
}
|
|
assert((yyval.u.type) != NULL);
|
|
}
|
|
break;
|
|
|
|
case 143:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1296 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = new CPPInstanceIdentifier((yyvsp[(1) - (1)].u.identifier));
|
|
}
|
|
break;
|
|
|
|
case 144:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1300 "dtool/src/cppparser/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) - (2)].u.identifier);
|
|
if (ident == NULL) {
|
|
ident = new CPPIdentifier("operator "+(yyvsp[(2) - (2)].str), (yylsp[(2) - (2)]));
|
|
} else {
|
|
ident->_names.push_back("operator "+(yyvsp[(2) - (2)].str));
|
|
}
|
|
|
|
(yyval.u.inst_ident) = new CPPInstanceIdentifier(ident);
|
|
}
|
|
break;
|
|
|
|
case 145:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1314 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
// A C++11 literal operator.
|
|
if (!(yyvsp[(2) - (3)].str).empty()) {
|
|
yyerror("expected empty string", (yylsp[(2) - (3)]));
|
|
}
|
|
CPPIdentifier *ident = (yyvsp[(1) - (3)].u.identifier);
|
|
if (ident == NULL) {
|
|
ident = new CPPIdentifier("operator \"\" "+(yyvsp[(3) - (3)].u.identifier)->get_simple_name(), (yylsp[(3) - (3)]));
|
|
} else {
|
|
ident->_names.push_back("operator \"\" "+(yyvsp[(3) - (3)].u.identifier)->get_simple_name());
|
|
}
|
|
|
|
(yyval.u.inst_ident) = new CPPInstanceIdentifier(ident);
|
|
}
|
|
break;
|
|
|
|
case 146:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1329 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = (yyvsp[(2) - (2)].u.inst_ident);
|
|
(yyval.u.inst_ident)->add_modifier(IIT_const);
|
|
}
|
|
break;
|
|
|
|
case 147:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1334 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = (yyvsp[(2) - (2)].u.inst_ident);
|
|
(yyval.u.inst_ident)->add_modifier(IIT_volatile);
|
|
}
|
|
break;
|
|
|
|
case 148:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1339 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = (yyvsp[(2) - (2)].u.inst_ident);
|
|
(yyval.u.inst_ident)->add_modifier(IIT_pointer);
|
|
}
|
|
break;
|
|
|
|
case 149:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1344 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = (yyvsp[(2) - (2)].u.inst_ident);
|
|
(yyval.u.inst_ident)->add_modifier(IIT_reference);
|
|
}
|
|
break;
|
|
|
|
case 150:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1349 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = (yyvsp[(2) - (2)].u.inst_ident);
|
|
(yyval.u.inst_ident)->add_modifier(IIT_rvalue_reference);
|
|
}
|
|
break;
|
|
|
|
case 151:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1354 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = (yyvsp[(3) - (3)].u.inst_ident);
|
|
(yyval.u.inst_ident)->add_scoped_pointer_modifier((yyvsp[(1) - (3)].u.identifier));
|
|
}
|
|
break;
|
|
|
|
case 152:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1359 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = (yyvsp[(1) - (4)].u.inst_ident);
|
|
(yyval.u.inst_ident)->add_array_modifier((yyvsp[(3) - (4)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 153:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1364 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
// bitfield definition. We ignore the bitfield for now.
|
|
(yyval.u.inst_ident) = (yyvsp[(1) - (3)].u.inst_ident);
|
|
}
|
|
break;
|
|
|
|
case 154:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1369 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = (yyvsp[(2) - (3)].u.inst_ident);
|
|
(yyval.u.inst_ident)->add_modifier(IIT_paren);
|
|
}
|
|
break;
|
|
|
|
case 155:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1374 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
push_scope((yyvsp[(1) - (2)].u.inst_ident)->get_scope(current_scope, global_scope));
|
|
}
|
|
break;
|
|
|
|
case 156:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1378 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
pop_scope();
|
|
(yyval.u.inst_ident) = (yyvsp[(1) - (6)].u.inst_ident);
|
|
if ((yyvsp[(4) - (6)].u.param_list)->is_parameter_expr() && (yyvsp[(6) - (6)].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[(4) - (6)].u.param_list));
|
|
|
|
} else {
|
|
// This was (probably) a function prototype.
|
|
(yyval.u.inst_ident)->add_func_modifier((yyvsp[(4) - (6)].u.param_list), (yyvsp[(6) - (6)].u.integer));
|
|
}
|
|
}
|
|
break;
|
|
|
|
case 157:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1396 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.param_list) = new CPPParameterList;
|
|
}
|
|
break;
|
|
|
|
case 158:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1400 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.param_list) = new CPPParameterList;
|
|
(yyval.u.param_list)->_includes_ellipsis = true;
|
|
}
|
|
break;
|
|
|
|
case 159:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1405 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.param_list) = (yyvsp[(1) - (1)].u.param_list);
|
|
}
|
|
break;
|
|
|
|
case 160:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1409 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.param_list) = (yyvsp[(1) - (3)].u.param_list);
|
|
(yyval.u.param_list)->_includes_ellipsis = true;
|
|
}
|
|
break;
|
|
|
|
case 161:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1414 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.param_list) = (yyvsp[(1) - (2)].u.param_list);
|
|
(yyval.u.param_list)->_includes_ellipsis = true;
|
|
}
|
|
break;
|
|
|
|
case 162:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1422 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.param_list) = new CPPParameterList;
|
|
(yyval.u.param_list)->_parameters.push_back((yyvsp[(1) - (1)].u.instance));
|
|
}
|
|
break;
|
|
|
|
case 163:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1427 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.param_list) = (yyvsp[(1) - (3)].u.param_list);
|
|
(yyval.u.param_list)->_parameters.push_back((yyvsp[(3) - (3)].u.instance));
|
|
}
|
|
break;
|
|
|
|
case 164:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1435 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (CPPExpression *)NULL;
|
|
}
|
|
break;
|
|
|
|
case 165:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1439 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (yyvsp[(2) - (2)].u.expr);
|
|
}
|
|
break;
|
|
|
|
case 166:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1446 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (CPPExpression *)NULL;
|
|
}
|
|
break;
|
|
|
|
case 167:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1450 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (yyvsp[(2) - (2)].u.expr);
|
|
}
|
|
break;
|
|
|
|
case 168:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1457 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (CPPExpression *)NULL;
|
|
}
|
|
break;
|
|
|
|
case 169:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1461 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (CPPExpression *)NULL;
|
|
}
|
|
break;
|
|
|
|
case 170:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1465 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (CPPExpression *)NULL;
|
|
}
|
|
break;
|
|
|
|
case 171:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1469 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (yyvsp[(2) - (3)].u.expr);
|
|
}
|
|
break;
|
|
|
|
case 172:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1473 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (CPPExpression *)NULL;
|
|
}
|
|
break;
|
|
|
|
case 176:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1486 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
}
|
|
break;
|
|
|
|
case 180:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1495 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.instance) = new CPPInstance((yyvsp[(1) - (3)].u.type), (yyvsp[(2) - (3)].u.inst_ident), 0, (yylsp[(2) - (3)]).file);
|
|
(yyval.u.instance)->set_initializer((yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 181:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1500 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyvsp[(3) - (4)].u.inst_ident)->add_modifier(IIT_const);
|
|
(yyval.u.instance) = new CPPInstance((yyvsp[(2) - (4)].u.type), (yyvsp[(3) - (4)].u.inst_ident), 0, (yylsp[(3) - (4)]).file);
|
|
(yyval.u.instance)->set_initializer((yyvsp[(4) - (4)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 182:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1506 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyvsp[(4) - (5)].u.inst_ident)->add_modifier(IIT_const);
|
|
(yyval.u.instance) = new CPPInstance((yyvsp[(3) - (5)].u.type), (yyvsp[(4) - (5)].u.inst_ident), 0, (yylsp[(3) - (5)]).file);
|
|
(yyval.u.instance)->set_initializer((yyvsp[(5) - (5)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 183:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1512 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.instance) = (yyvsp[(2) - (2)].u.instance);
|
|
}
|
|
break;
|
|
|
|
case 184:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1516 "dtool/src/cppparser/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[(1) - (1)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 185:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1526 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = new CPPInstanceIdentifier((CPPIdentifier *)NULL);
|
|
}
|
|
break;
|
|
|
|
case 186:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1530 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = new CPPInstanceIdentifier((yyvsp[(1) - (1)].u.identifier));
|
|
}
|
|
break;
|
|
|
|
case 187:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1534 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = new CPPInstanceIdentifier((yyvsp[(1) - (1)].u.identifier));
|
|
}
|
|
break;
|
|
|
|
case 188:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1538 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = (yyvsp[(2) - (2)].u.inst_ident);
|
|
(yyval.u.inst_ident)->add_modifier(IIT_const);
|
|
}
|
|
break;
|
|
|
|
case 189:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1543 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = (yyvsp[(2) - (2)].u.inst_ident);
|
|
(yyval.u.inst_ident)->add_modifier(IIT_volatile);
|
|
}
|
|
break;
|
|
|
|
case 190:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1548 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = (yyvsp[(2) - (2)].u.inst_ident);
|
|
(yyval.u.inst_ident)->add_modifier(IIT_pointer);
|
|
}
|
|
break;
|
|
|
|
case 191:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1553 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = (yyvsp[(2) - (2)].u.inst_ident);
|
|
(yyval.u.inst_ident)->add_modifier(IIT_reference);
|
|
}
|
|
break;
|
|
|
|
case 192:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1558 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = (yyvsp[(2) - (2)].u.inst_ident);
|
|
(yyval.u.inst_ident)->add_modifier(IIT_rvalue_reference);
|
|
}
|
|
break;
|
|
|
|
case 193:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1563 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = (yyvsp[(3) - (3)].u.inst_ident);
|
|
(yyval.u.inst_ident)->add_scoped_pointer_modifier((yyvsp[(1) - (3)].u.identifier));
|
|
}
|
|
break;
|
|
|
|
case 194:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1568 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = (yyvsp[(1) - (4)].u.inst_ident);
|
|
(yyval.u.inst_ident)->add_array_modifier((yyvsp[(3) - (4)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 195:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1576 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = new CPPInstanceIdentifier((CPPIdentifier *)NULL);
|
|
}
|
|
break;
|
|
|
|
case 196:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1580 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = new CPPInstanceIdentifier((yyvsp[(1) - (1)].u.identifier));
|
|
}
|
|
break;
|
|
|
|
case 197:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1584 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = new CPPInstanceIdentifier((yyvsp[(1) - (1)].u.identifier));
|
|
}
|
|
break;
|
|
|
|
case 198:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1588 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = (yyvsp[(2) - (2)].u.inst_ident);
|
|
(yyval.u.inst_ident)->add_modifier(IIT_const);
|
|
}
|
|
break;
|
|
|
|
case 199:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1593 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = (yyvsp[(2) - (2)].u.inst_ident);
|
|
(yyval.u.inst_ident)->add_modifier(IIT_volatile);
|
|
}
|
|
break;
|
|
|
|
case 200:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1598 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = (yyvsp[(2) - (2)].u.inst_ident);
|
|
(yyval.u.inst_ident)->add_modifier(IIT_pointer);
|
|
}
|
|
break;
|
|
|
|
case 201:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1603 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = (yyvsp[(2) - (2)].u.inst_ident);
|
|
(yyval.u.inst_ident)->add_modifier(IIT_reference);
|
|
}
|
|
break;
|
|
|
|
case 202:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1608 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = (yyvsp[(2) - (2)].u.inst_ident);
|
|
(yyval.u.inst_ident)->add_modifier(IIT_rvalue_reference);
|
|
}
|
|
break;
|
|
|
|
case 203:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1613 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = (yyvsp[(3) - (3)].u.inst_ident);
|
|
(yyval.u.inst_ident)->add_scoped_pointer_modifier((yyvsp[(1) - (3)].u.identifier));
|
|
}
|
|
break;
|
|
|
|
case 204:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1618 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = (yyvsp[(1) - (4)].u.inst_ident);
|
|
(yyval.u.inst_ident)->add_array_modifier((yyvsp[(3) - (4)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 205:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1623 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = (yyvsp[(2) - (7)].u.inst_ident);
|
|
(yyval.u.inst_ident)->add_modifier(IIT_paren);
|
|
(yyval.u.inst_ident)->add_func_modifier((yyvsp[(5) - (7)].u.param_list), (yyvsp[(7) - (7)].u.integer));
|
|
}
|
|
break;
|
|
|
|
case 206:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1629 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = (yyvsp[(2) - (3)].u.inst_ident);
|
|
(yyval.u.inst_ident)->add_modifier(IIT_paren);
|
|
}
|
|
break;
|
|
|
|
case 207:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1637 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = new CPPInstanceIdentifier((CPPIdentifier *)NULL);
|
|
}
|
|
break;
|
|
|
|
case 208:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1641 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = (yyvsp[(2) - (2)].u.inst_ident);
|
|
(yyval.u.inst_ident)->add_modifier(IIT_const);
|
|
}
|
|
break;
|
|
|
|
case 209:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1646 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = (yyvsp[(2) - (2)].u.inst_ident);
|
|
(yyval.u.inst_ident)->add_modifier(IIT_volatile);
|
|
}
|
|
break;
|
|
|
|
case 210:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1651 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = (yyvsp[(2) - (2)].u.inst_ident);
|
|
(yyval.u.inst_ident)->add_modifier(IIT_pointer);
|
|
}
|
|
break;
|
|
|
|
case 211:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1656 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = (yyvsp[(2) - (2)].u.inst_ident);
|
|
(yyval.u.inst_ident)->add_modifier(IIT_reference);
|
|
}
|
|
break;
|
|
|
|
case 212:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1661 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = (yyvsp[(2) - (2)].u.inst_ident);
|
|
(yyval.u.inst_ident)->add_modifier(IIT_rvalue_reference);
|
|
}
|
|
break;
|
|
|
|
case 213:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1666 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = (yyvsp[(3) - (3)].u.inst_ident);
|
|
(yyval.u.inst_ident)->add_scoped_pointer_modifier((yyvsp[(1) - (3)].u.identifier));
|
|
}
|
|
break;
|
|
|
|
case 214:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1671 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = (yyvsp[(1) - (4)].u.inst_ident);
|
|
(yyval.u.inst_ident)->add_array_modifier((yyvsp[(3) - (4)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 215:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1676 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = (yyvsp[(2) - (7)].u.inst_ident);
|
|
(yyval.u.inst_ident)->add_modifier(IIT_paren);
|
|
(yyval.u.inst_ident)->add_func_modifier((yyvsp[(5) - (7)].u.param_list), (yyvsp[(7) - (7)].u.integer));
|
|
}
|
|
break;
|
|
|
|
case 216:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1685 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.type) = CPPType::new_type((yyvsp[(1) - (1)].u.simple_type));
|
|
}
|
|
break;
|
|
|
|
case 217:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1689 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.type) = (yyvsp[(1) - (1)].u.identifier)->find_type(current_scope, global_scope, false, current_lexer);
|
|
if ((yyval.u.type) == NULL) {
|
|
yyerror(string("internal error resolving type ") + (yyvsp[(1) - (1)].u.identifier)->get_fully_scoped_name(), (yylsp[(1) - (1)]));
|
|
}
|
|
assert((yyval.u.type) != NULL);
|
|
}
|
|
break;
|
|
|
|
case 218:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1697 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.type) = CPPType::new_type(new CPPTBDType((yyvsp[(2) - (2)].u.identifier)));
|
|
}
|
|
break;
|
|
|
|
case 219:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1701 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.type) = CPPType::new_type((yyvsp[(1) - (1)].u.struct_type));
|
|
}
|
|
break;
|
|
|
|
case 220:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1705 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.type) = CPPType::new_type((yyvsp[(1) - (1)].u.struct_type));
|
|
}
|
|
break;
|
|
|
|
case 221:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1709 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.type) = CPPType::new_type((yyvsp[(1) - (1)].u.enum_type));
|
|
}
|
|
break;
|
|
|
|
case 222:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1713 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
CPPType *type = (yyvsp[(2) - (2)].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) - (2)].u.extension_enum), (yyvsp[(2) - (2)].u.identifier), current_scope, (yylsp[(1) - (2)]).file))
|
|
->as_extension_type();
|
|
CPPScope *scope = (yyvsp[(2) - (2)].u.identifier)->get_scope(current_scope, global_scope);
|
|
if (scope != NULL) {
|
|
scope->define_extension_type(et);
|
|
}
|
|
(yyval.u.type) = et;
|
|
}
|
|
}
|
|
break;
|
|
|
|
case 223:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1729 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
CPPType *type = (yyvsp[(2) - (4)].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) - (4)].u.extension_enum), (yyvsp[(2) - (4)].u.identifier), current_scope, (yylsp[(1) - (4)]).file))
|
|
->as_extension_type();
|
|
CPPScope *scope = (yyvsp[(2) - (4)].u.identifier)->get_scope(current_scope, global_scope);
|
|
if (scope != NULL) {
|
|
scope->define_extension_type(et);
|
|
}
|
|
(yyval.u.type) = et;
|
|
}
|
|
}
|
|
break;
|
|
|
|
case 224:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1745 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.type) = (yyvsp[(3) - (4)].u.expr)->determine_type();
|
|
if ((yyval.u.type) == (CPPType *)NULL) {
|
|
stringstream str;
|
|
str << *(yyvsp[(3) - (4)].u.expr);
|
|
yyerror("could not determine type of " + str.str(), (yylsp[(3) - (4)]));
|
|
}
|
|
}
|
|
break;
|
|
|
|
case 225:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1754 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.type) = new CPPSimpleType(CPPSimpleType::T_auto);
|
|
}
|
|
break;
|
|
|
|
case 226:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1761 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.decl) = CPPType::new_type((yyvsp[(1) - (1)].u.simple_type));
|
|
}
|
|
break;
|
|
|
|
case 227:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1765 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.decl) = (yyvsp[(1) - (1)].u.identifier)->find_type(current_scope, global_scope, false, current_lexer);
|
|
if ((yyval.u.decl) == NULL) {
|
|
yyerror(string("internal error resolving type ") + (yyvsp[(1) - (1)].u.identifier)->get_fully_scoped_name(), (yylsp[(1) - (1)]));
|
|
}
|
|
assert((yyval.u.decl) != NULL);
|
|
}
|
|
break;
|
|
|
|
case 228:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1773 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.decl) = CPPType::new_type(new CPPTBDType((yyvsp[(2) - (2)].u.identifier)));
|
|
}
|
|
break;
|
|
|
|
case 229:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1777 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.decl) = CPPType::new_type((yyvsp[(1) - (1)].u.struct_type));
|
|
}
|
|
break;
|
|
|
|
case 230:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1781 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.decl) = new CPPTypeDeclaration(CPPType::new_type((yyvsp[(1) - (1)].u.struct_type)));
|
|
}
|
|
break;
|
|
|
|
case 231:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1785 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.decl) = new CPPTypeDeclaration(CPPType::new_type((yyvsp[(1) - (1)].u.enum_type)));
|
|
}
|
|
break;
|
|
|
|
case 232:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1789 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
CPPType *type = (yyvsp[(2) - (2)].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) - (2)].u.extension_enum), (yyvsp[(2) - (2)].u.identifier), current_scope, (yylsp[(1) - (2)]).file))
|
|
->as_extension_type();
|
|
CPPScope *scope = (yyvsp[(2) - (2)].u.identifier)->get_scope(current_scope, global_scope);
|
|
if (scope != NULL) {
|
|
scope->define_extension_type(et);
|
|
}
|
|
(yyval.u.decl) = et;
|
|
}
|
|
}
|
|
break;
|
|
|
|
case 233:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1805 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
CPPType *type = (yyvsp[(2) - (4)].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) - (4)].u.extension_enum), (yyvsp[(2) - (4)].u.identifier), current_scope, (yylsp[(1) - (4)]).file))
|
|
->as_extension_type();
|
|
CPPScope *scope = (yyvsp[(2) - (4)].u.identifier)->get_scope(current_scope, global_scope);
|
|
if (scope != NULL) {
|
|
scope->define_extension_type(et);
|
|
}
|
|
(yyval.u.decl) = et;
|
|
}
|
|
}
|
|
break;
|
|
|
|
case 234:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1821 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
yywarning(string("C++ does not permit forward declaration of untyped enum ") + (yyvsp[(2) - (2)].u.identifier)->get_fully_scoped_name(), (yylsp[(1) - (2)]));
|
|
|
|
CPPType *type = (yyvsp[(2) - (2)].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) - (2)].u.extension_enum), (yyvsp[(2) - (2)].u.identifier), current_scope, (yylsp[(1) - (2)]).file))
|
|
->as_extension_type();
|
|
CPPScope *scope = (yyvsp[(2) - (2)].u.identifier)->get_scope(current_scope, global_scope);
|
|
if (scope != NULL) {
|
|
scope->define_extension_type(et);
|
|
}
|
|
(yyval.u.decl) = et;
|
|
}
|
|
}
|
|
break;
|
|
|
|
case 235:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1839 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.decl) = (yyvsp[(3) - (4)].u.expr)->determine_type();
|
|
if ((yyval.u.decl) == (CPPType *)NULL) {
|
|
stringstream str;
|
|
str << *(yyvsp[(3) - (4)].u.expr);
|
|
yyerror("could not determine type of " + str.str(), (yylsp[(3) - (4)]));
|
|
}
|
|
}
|
|
break;
|
|
|
|
case 236:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1848 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.decl) = new CPPSimpleType(CPPSimpleType::T_auto);
|
|
}
|
|
break;
|
|
|
|
case 237:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1855 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.type) = CPPType::new_type((yyvsp[(1) - (1)].u.simple_type));
|
|
}
|
|
break;
|
|
|
|
case 238:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1859 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.type) = (yyvsp[(1) - (1)].u.identifier)->find_type(current_scope, global_scope, false, current_lexer);
|
|
if ((yyval.u.type) == NULL) {
|
|
yyerror(string("internal error resolving type ") + (yyvsp[(1) - (1)].u.identifier)->get_fully_scoped_name(), (yylsp[(1) - (1)]));
|
|
}
|
|
assert((yyval.u.type) != NULL);
|
|
}
|
|
break;
|
|
|
|
case 239:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1867 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.type) = CPPType::new_type(new CPPTBDType((yyvsp[(2) - (2)].u.identifier)));
|
|
}
|
|
break;
|
|
|
|
case 240:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1871 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
CPPType *type = (yyvsp[(2) - (2)].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) - (2)].u.extension_enum), (yyvsp[(2) - (2)].u.identifier), current_scope, (yylsp[(1) - (2)]).file))
|
|
->as_extension_type();
|
|
CPPScope *scope = (yyvsp[(2) - (2)].u.identifier)->get_scope(current_scope, global_scope);
|
|
if (scope != NULL) {
|
|
scope->define_extension_type(et);
|
|
}
|
|
(yyval.u.type) = et;
|
|
}
|
|
}
|
|
break;
|
|
|
|
case 241:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1887 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
CPPType *type = (yyvsp[(2) - (2)].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) - (2)].u.extension_enum), (yyvsp[(2) - (2)].u.identifier), current_scope, (yylsp[(1) - (2)]).file))
|
|
->as_extension_type();
|
|
CPPScope *scope = (yyvsp[(2) - (2)].u.identifier)->get_scope(current_scope, global_scope);
|
|
if (scope != NULL) {
|
|
scope->define_extension_type(et);
|
|
}
|
|
(yyval.u.type) = et;
|
|
}
|
|
}
|
|
break;
|
|
|
|
case 242:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1906 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.decl) = (yyvsp[(1) - (1)].u.decl);
|
|
}
|
|
break;
|
|
|
|
case 243:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1910 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
yyerror(string("unknown type '") + (yyvsp[(1) - (1)].u.identifier)->get_fully_scoped_name() + "'", (yylsp[(1) - (1)]));
|
|
|
|
(yyval.u.decl) = CPPType::new_type(new CPPSimpleType(CPPSimpleType::T_unknown));
|
|
}
|
|
break;
|
|
|
|
case 244:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1918 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
CPPInstance *inst = new CPPInstance((yyvsp[(1) - (2)].u.type), (yyvsp[(2) - (2)].u.inst_ident), 0, (yylsp[(1) - (2)]).file);
|
|
(yyval.u.type) = inst->_type;
|
|
delete inst;
|
|
}
|
|
break;
|
|
|
|
case 245:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1924 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyvsp[(3) - (3)].u.inst_ident)->add_modifier(IIT_const);
|
|
CPPInstance *inst = new CPPInstance((yyvsp[(2) - (3)].u.type), (yyvsp[(3) - (3)].u.inst_ident), 0, (yylsp[(1) - (3)]).file);
|
|
(yyval.u.type) = inst->_type;
|
|
delete inst;
|
|
}
|
|
break;
|
|
|
|
case 246:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1934 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
CPPVisibility starting_vis =
|
|
((yyvsp[(1) - (2)].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) - (2)].u.extension_enum), NULL, current_scope,
|
|
new_scope, (yylsp[(1) - (2)]).file);
|
|
new_scope->set_struct_type(st);
|
|
|
|
push_scope(new_scope);
|
|
push_struct(st);
|
|
}
|
|
break;
|
|
|
|
case 247:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1948 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.struct_type) = current_struct;
|
|
current_struct->_incomplete = false;
|
|
pop_struct();
|
|
pop_scope();
|
|
}
|
|
break;
|
|
|
|
case 248:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1958 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
CPPVisibility starting_vis =
|
|
((yyvsp[(1) - (2)].u.extension_enum) == CPPExtensionType::T_class) ? V_private : V_public;
|
|
|
|
CPPScope *scope = (yyvsp[(2) - (2)].u.identifier)->get_scope(current_scope, global_scope, current_lexer);
|
|
if (scope == NULL) {
|
|
scope = current_scope;
|
|
}
|
|
CPPScope *new_scope = new CPPScope(scope, (yyvsp[(2) - (2)].u.identifier)->_names.back(),
|
|
starting_vis);
|
|
|
|
CPPStructType *st = new CPPStructType((yyvsp[(1) - (2)].u.extension_enum), (yyvsp[(2) - (2)].u.identifier), current_scope,
|
|
new_scope, (yylsp[(1) - (2)]).file);
|
|
new_scope->set_struct_type(st);
|
|
current_scope->define_extension_type(st);
|
|
|
|
push_scope(new_scope);
|
|
push_struct(st);
|
|
}
|
|
break;
|
|
|
|
case 249:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1978 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.struct_type) = current_struct;
|
|
current_struct->_incomplete = false;
|
|
pop_struct();
|
|
pop_scope();
|
|
}
|
|
break;
|
|
|
|
case 254:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1998 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
current_struct->append_derivation((yyvsp[(2) - (2)].u.type), V_public, false);
|
|
}
|
|
break;
|
|
|
|
case 255:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2002 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
current_struct->append_derivation((yyvsp[(2) - (2)].u.type), V_protected, false);
|
|
}
|
|
break;
|
|
|
|
case 256:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2006 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
current_struct->append_derivation((yyvsp[(2) - (2)].u.type), V_private, false);
|
|
}
|
|
break;
|
|
|
|
case 257:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2010 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
current_struct->append_derivation((yyvsp[(3) - (3)].u.type), V_public, true);
|
|
}
|
|
break;
|
|
|
|
case 258:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2014 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
current_struct->append_derivation((yyvsp[(3) - (3)].u.type), V_protected, true);
|
|
}
|
|
break;
|
|
|
|
case 259:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2018 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
current_struct->append_derivation((yyvsp[(3) - (3)].u.type), V_private, true);
|
|
}
|
|
break;
|
|
|
|
case 260:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2022 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
current_struct->append_derivation((yyvsp[(3) - (3)].u.type), V_public, true);
|
|
}
|
|
break;
|
|
|
|
case 261:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2026 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
current_struct->append_derivation((yyvsp[(3) - (3)].u.type), V_protected, true);
|
|
}
|
|
break;
|
|
|
|
case 262:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2030 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
current_struct->append_derivation((yyvsp[(3) - (3)].u.type), V_private, true);
|
|
}
|
|
break;
|
|
|
|
case 263:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2037 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.enum_type) = current_enum;
|
|
current_enum = NULL;
|
|
}
|
|
break;
|
|
|
|
case 264:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2045 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
current_enum = new CPPEnumType((yyvsp[(2) - (4)].u.identifier), (yyvsp[(4) - (4)].u.type), current_scope, (yylsp[(1) - (4)]).file);
|
|
}
|
|
break;
|
|
|
|
case 265:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2049 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
current_enum = new CPPEnumType((yyvsp[(2) - (2)].u.identifier), current_scope, (yylsp[(1) - (2)]).file);
|
|
}
|
|
break;
|
|
|
|
case 266:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2053 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
current_enum = new CPPEnumType(NULL, (yyvsp[(3) - (3)].u.type), current_scope, (yylsp[(1) - (3)]).file);
|
|
}
|
|
break;
|
|
|
|
case 267:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2057 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
current_enum = new CPPEnumType(NULL, current_scope, (yylsp[(1) - (1)]).file);
|
|
}
|
|
break;
|
|
|
|
case 268:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2064 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.type) = CPPType::new_type((yyvsp[(1) - (1)].u.simple_type));
|
|
}
|
|
break;
|
|
|
|
case 269:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2068 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.type) = (yyvsp[(1) - (1)].u.identifier)->find_type(current_scope, global_scope, false, current_lexer);
|
|
}
|
|
break;
|
|
|
|
case 271:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2076 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
assert(current_enum != NULL);
|
|
CPPInstance *inst = current_enum->add_element((yyvsp[(2) - (3)].u.identifier)->get_simple_name());
|
|
current_scope->add_enum_value(inst, current_lexer, (yylsp[(2) - (3)]));
|
|
}
|
|
break;
|
|
|
|
case 272:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2082 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
assert(current_enum != NULL);
|
|
CPPInstance *inst = current_enum->add_element((yyvsp[(2) - (5)].u.identifier)->get_simple_name(), (yyvsp[(4) - (5)].u.expr));
|
|
current_scope->add_enum_value(inst, current_lexer, (yylsp[(2) - (5)]));
|
|
}
|
|
break;
|
|
|
|
case 274:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2091 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
assert(current_enum != NULL);
|
|
CPPInstance *inst = current_enum->add_element((yyvsp[(2) - (2)].u.identifier)->get_simple_name());
|
|
current_scope->add_enum_value(inst, current_lexer, (yylsp[(2) - (2)]));
|
|
}
|
|
break;
|
|
|
|
case 275:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2097 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
assert(current_enum != NULL);
|
|
CPPInstance *inst = current_enum->add_element((yyvsp[(2) - (4)].u.identifier)->get_simple_name(), (yyvsp[(4) - (4)].u.expr));
|
|
current_scope->add_enum_value(inst, current_lexer, (yylsp[(2) - (4)]));
|
|
}
|
|
break;
|
|
|
|
case 276:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2106 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.extension_enum) = CPPExtensionType::T_enum;
|
|
}
|
|
break;
|
|
|
|
case 277:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2113 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.extension_enum) = CPPExtensionType::T_class;
|
|
}
|
|
break;
|
|
|
|
case 278:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2117 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.extension_enum) = CPPExtensionType::T_struct;
|
|
}
|
|
break;
|
|
|
|
case 279:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2121 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.extension_enum) = CPPExtensionType::T_union;
|
|
}
|
|
break;
|
|
|
|
case 280:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2128 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
CPPScope *scope = (yyvsp[(2) - (3)].u.identifier)->find_scope(current_scope, global_scope, current_lexer);
|
|
if (scope == NULL) {
|
|
// This must be a new namespace declaration.
|
|
CPPScope *parent_scope =
|
|
(yyvsp[(2) - (3)].u.identifier)->get_scope(current_scope, global_scope, current_lexer);
|
|
if (parent_scope == NULL) {
|
|
parent_scope = current_scope;
|
|
}
|
|
scope = new CPPScope(parent_scope, (yyvsp[(2) - (3)].u.identifier)->_names.back(), V_public);
|
|
}
|
|
|
|
CPPNamespace *nspace = new CPPNamespace((yyvsp[(2) - (3)].u.identifier), scope, (yylsp[(1) - (3)]).file);
|
|
current_scope->add_declaration(nspace, global_scope, current_lexer, (yylsp[(1) - (3)]));
|
|
current_scope->define_namespace(nspace);
|
|
push_scope(scope);
|
|
}
|
|
break;
|
|
|
|
case 281:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2146 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
pop_scope();
|
|
}
|
|
break;
|
|
|
|
case 282:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2150 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
CPPScope *scope = (yyvsp[(3) - (4)].u.identifier)->find_scope(current_scope, global_scope, current_lexer);
|
|
if (scope == NULL) {
|
|
// This must be a new namespace declaration.
|
|
CPPScope *parent_scope =
|
|
(yyvsp[(3) - (4)].u.identifier)->get_scope(current_scope, global_scope, current_lexer);
|
|
if (parent_scope == NULL) {
|
|
parent_scope = current_scope;
|
|
}
|
|
scope = new CPPScope(parent_scope, (yyvsp[(3) - (4)].u.identifier)->_names.back(), V_public);
|
|
}
|
|
|
|
CPPNamespace *nspace = new CPPNamespace((yyvsp[(3) - (4)].u.identifier), scope, (yylsp[(2) - (4)]).file);
|
|
nspace->_is_inline = true;
|
|
current_scope->add_declaration(nspace, global_scope, current_lexer, (yylsp[(2) - (4)]));
|
|
current_scope->define_namespace(nspace);
|
|
push_scope(scope);
|
|
}
|
|
break;
|
|
|
|
case 283:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2169 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
pop_scope();
|
|
}
|
|
break;
|
|
|
|
case 286:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2178 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
CPPUsing *using_decl = new CPPUsing((yyvsp[(2) - (2)].u.identifier), false, (yylsp[(1) - (2)]).file);
|
|
current_scope->add_declaration(using_decl, global_scope, current_lexer, (yylsp[(1) - (2)]));
|
|
current_scope->add_using(using_decl, global_scope, current_lexer);
|
|
}
|
|
break;
|
|
|
|
case 287:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2184 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
CPPUsing *using_decl = new CPPUsing((yyvsp[(3) - (3)].u.identifier), true, (yylsp[(1) - (3)]).file);
|
|
current_scope->add_declaration(using_decl, global_scope, current_lexer, (yylsp[(1) - (3)]));
|
|
current_scope->add_using(using_decl, global_scope, current_lexer);
|
|
}
|
|
break;
|
|
|
|
case 291:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2199 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_bool);
|
|
}
|
|
break;
|
|
|
|
case 292:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2203 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_char);
|
|
}
|
|
break;
|
|
|
|
case 293:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2207 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_wchar_t);
|
|
}
|
|
break;
|
|
|
|
case 294:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2211 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_char16_t);
|
|
}
|
|
break;
|
|
|
|
case 295:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2215 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_char32_t);
|
|
}
|
|
break;
|
|
|
|
case 296:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2219 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_int,
|
|
CPPSimpleType::F_short);
|
|
}
|
|
break;
|
|
|
|
case 297:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2224 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_int,
|
|
CPPSimpleType::F_long);
|
|
}
|
|
break;
|
|
|
|
case 298:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2229 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_int,
|
|
CPPSimpleType::F_longlong);
|
|
}
|
|
break;
|
|
|
|
case 299:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2234 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_int,
|
|
CPPSimpleType::F_unsigned);
|
|
}
|
|
break;
|
|
|
|
case 300:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2239 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_int,
|
|
CPPSimpleType::F_signed);
|
|
}
|
|
break;
|
|
|
|
case 301:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2244 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_int);
|
|
}
|
|
break;
|
|
|
|
case 302:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2248 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.simple_type) = (yyvsp[(2) - (2)].u.simple_type);
|
|
(yyval.u.simple_type)->_flags |= CPPSimpleType::F_short;
|
|
}
|
|
break;
|
|
|
|
case 303:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2253 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.simple_type) = (yyvsp[(2) - (2)].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 304:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2262 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.simple_type) = (yyvsp[(2) - (2)].u.simple_type);
|
|
(yyval.u.simple_type)->_flags |= CPPSimpleType::F_unsigned;
|
|
}
|
|
break;
|
|
|
|
case 305:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2267 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.simple_type) = (yyvsp[(2) - (2)].u.simple_type);
|
|
(yyval.u.simple_type)->_flags |= CPPSimpleType::F_signed;
|
|
}
|
|
break;
|
|
|
|
case 306:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2275 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_float);
|
|
}
|
|
break;
|
|
|
|
case 307:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2279 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_float,
|
|
CPPSimpleType::F_long);
|
|
}
|
|
break;
|
|
|
|
case 308:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2284 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_double);
|
|
}
|
|
break;
|
|
|
|
case 309:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2288 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_float,
|
|
CPPSimpleType::F_longlong);
|
|
}
|
|
break;
|
|
|
|
case 310:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2293 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_double,
|
|
CPPSimpleType::F_long);
|
|
}
|
|
break;
|
|
|
|
case 311:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2301 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_void);
|
|
}
|
|
break;
|
|
|
|
case 312:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2310 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
current_lexer->_resolve_identifiers = false;
|
|
}
|
|
break;
|
|
|
|
case 313:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2314 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
current_lexer->_resolve_identifiers = true;
|
|
}
|
|
break;
|
|
|
|
case 410:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2354 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
}
|
|
break;
|
|
|
|
case 434:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2363 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (CPPExpression *)NULL;
|
|
}
|
|
break;
|
|
|
|
case 435:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2367 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (yyvsp[(1) - (1)].u.expr);
|
|
}
|
|
break;
|
|
|
|
case 436:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2374 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (CPPExpression *)NULL;
|
|
}
|
|
break;
|
|
|
|
case 437:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2378 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (yyvsp[(1) - (1)].u.expr);
|
|
}
|
|
break;
|
|
|
|
case 438:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2385 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (yyvsp[(1) - (1)].u.expr);
|
|
}
|
|
break;
|
|
|
|
case 439:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2389 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(',', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 440:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2396 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (yyvsp[(1) - (1)].u.expr);
|
|
}
|
|
break;
|
|
|
|
case 441:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2400 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(CPPExpression::typecast_op((yyvsp[(2) - (4)].u.type), (yyvsp[(4) - (4)].u.expr)));
|
|
}
|
|
break;
|
|
|
|
case 442:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2404 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(CPPExpression::typecast_op((yyvsp[(3) - (7)].u.type), (yyvsp[(6) - (7)].u.expr)));
|
|
}
|
|
break;
|
|
|
|
case 443:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2408 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(CPPExpression::typecast_op((yyvsp[(3) - (7)].u.type), (yyvsp[(6) - (7)].u.expr)));
|
|
}
|
|
break;
|
|
|
|
case 444:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2412 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(CPPExpression::sizeof_func((yyvsp[(3) - (4)].u.type)));
|
|
}
|
|
break;
|
|
|
|
case 445:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2416 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(CPPExpression::alignof_func((yyvsp[(3) - (4)].u.type)));
|
|
}
|
|
break;
|
|
|
|
case 446:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2420 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(UNARY_NOT, (yyvsp[(2) - (2)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 447:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2424 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(UNARY_NEGATE, (yyvsp[(2) - (2)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 448:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2428 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(UNARY_MINUS, (yyvsp[(2) - (2)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 449:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2432 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(UNARY_STAR, (yyvsp[(2) - (2)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 450:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2436 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(UNARY_REF, (yyvsp[(2) - (2)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 451:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2440 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('*', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 452:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2444 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('/', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 453:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2448 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('%', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 454:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2452 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('+', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 455:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2456 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('-', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 456:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2460 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('|', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 457:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2464 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('^', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 458:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2468 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('&', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 459:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2472 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(OROR, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 460:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2476 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(ANDAND, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 461:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2480 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(EQCOMPARE, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 462:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2484 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(NECOMPARE, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 463:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2488 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(LECOMPARE, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 464:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2492 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(GECOMPARE, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 465:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2496 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(LSHIFT, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 466:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2500 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(RSHIFT, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 467:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2504 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('?', (yyvsp[(1) - (5)].u.expr), (yyvsp[(3) - (5)].u.expr), (yyvsp[(5) - (5)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 468:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2508 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('[', (yyvsp[(1) - (4)].u.expr), (yyvsp[(3) - (4)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 469:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2512 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('f', (yyvsp[(1) - (4)].u.expr), (yyvsp[(3) - (4)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 470:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2516 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('f', (yyvsp[(1) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 471:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2520 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('.', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 472:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2524 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(POINTSAT, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 473:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2528 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (yyvsp[(2) - (3)].u.expr);
|
|
}
|
|
break;
|
|
|
|
case 474:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2536 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (yyvsp[(1) - (1)].u.expr);
|
|
}
|
|
break;
|
|
|
|
case 475:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2540 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(CPPExpression::typecast_op((yyvsp[(2) - (4)].u.type), (yyvsp[(4) - (4)].u.expr)));
|
|
}
|
|
break;
|
|
|
|
case 476:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2544 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(CPPExpression::typecast_op((yyvsp[(3) - (7)].u.type), (yyvsp[(6) - (7)].u.expr)));
|
|
}
|
|
break;
|
|
|
|
case 477:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2548 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(CPPExpression::typecast_op((yyvsp[(3) - (7)].u.type), (yyvsp[(6) - (7)].u.expr)));
|
|
}
|
|
break;
|
|
|
|
case 478:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2552 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
// A constructor call.
|
|
CPPType *type = (yyvsp[(1) - (4)].u.identifier)->find_type(current_scope, global_scope, false, current_lexer);
|
|
if (type == NULL) {
|
|
yyerror(string("internal error resolving type ") + (yyvsp[(1) - (4)].u.identifier)->get_fully_scoped_name(), (yylsp[(1) - (4)]));
|
|
}
|
|
assert(type != NULL);
|
|
(yyval.u.expr) = new CPPExpression(CPPExpression::construct_op(type, (yyvsp[(3) - (4)].u.expr)));
|
|
}
|
|
break;
|
|
|
|
case 479:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2562 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
CPPType *type =
|
|
CPPType::new_type(new CPPSimpleType(CPPSimpleType::T_int));
|
|
(yyval.u.expr) = new CPPExpression(CPPExpression::construct_op(type, (yyvsp[(3) - (4)].u.expr)));
|
|
}
|
|
break;
|
|
|
|
case 480:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2568 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
CPPType *type =
|
|
CPPType::new_type(new CPPSimpleType(CPPSimpleType::T_char));
|
|
(yyval.u.expr) = new CPPExpression(CPPExpression::construct_op(type, (yyvsp[(3) - (4)].u.expr)));
|
|
}
|
|
break;
|
|
|
|
case 481:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2574 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
CPPType *type =
|
|
CPPType::new_type(new CPPSimpleType(CPPSimpleType::T_wchar_t));
|
|
(yyval.u.expr) = new CPPExpression(CPPExpression::construct_op(type, (yyvsp[(3) - (4)].u.expr)));
|
|
}
|
|
break;
|
|
|
|
case 482:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2580 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
CPPType *type =
|
|
CPPType::new_type(new CPPSimpleType(CPPSimpleType::T_char16_t));
|
|
(yyval.u.expr) = new CPPExpression(CPPExpression::construct_op(type, (yyvsp[(3) - (4)].u.expr)));
|
|
}
|
|
break;
|
|
|
|
case 483:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2586 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
CPPType *type =
|
|
CPPType::new_type(new CPPSimpleType(CPPSimpleType::T_char32_t));
|
|
(yyval.u.expr) = new CPPExpression(CPPExpression::construct_op(type, (yyvsp[(3) - (4)].u.expr)));
|
|
}
|
|
break;
|
|
|
|
case 484:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2592 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
CPPType *type =
|
|
CPPType::new_type(new CPPSimpleType(CPPSimpleType::T_bool));
|
|
(yyval.u.expr) = new CPPExpression(CPPExpression::construct_op(type, (yyvsp[(3) - (4)].u.expr)));
|
|
}
|
|
break;
|
|
|
|
case 485:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2598 "dtool/src/cppparser/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[(3) - (4)].u.expr)));
|
|
}
|
|
break;
|
|
|
|
case 486:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2605 "dtool/src/cppparser/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[(3) - (4)].u.expr)));
|
|
}
|
|
break;
|
|
|
|
case 487:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2612 "dtool/src/cppparser/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[(3) - (4)].u.expr)));
|
|
}
|
|
break;
|
|
|
|
case 488:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2619 "dtool/src/cppparser/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[(3) - (4)].u.expr)));
|
|
}
|
|
break;
|
|
|
|
case 489:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2626 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
CPPType *type =
|
|
CPPType::new_type(new CPPSimpleType(CPPSimpleType::T_float));
|
|
(yyval.u.expr) = new CPPExpression(CPPExpression::construct_op(type, (yyvsp[(3) - (4)].u.expr)));
|
|
}
|
|
break;
|
|
|
|
case 490:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2632 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
CPPType *type =
|
|
CPPType::new_type(new CPPSimpleType(CPPSimpleType::T_double));
|
|
(yyval.u.expr) = new CPPExpression(CPPExpression::construct_op(type, (yyvsp[(3) - (4)].u.expr)));
|
|
}
|
|
break;
|
|
|
|
case 491:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2638 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(CPPExpression::sizeof_func((yyvsp[(3) - (4)].u.type)));
|
|
}
|
|
break;
|
|
|
|
case 492:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2642 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(CPPExpression::alignof_func((yyvsp[(3) - (4)].u.type)));
|
|
}
|
|
break;
|
|
|
|
case 493:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2646 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(CPPExpression::new_op((yyvsp[(2) - (2)].u.type)));
|
|
}
|
|
break;
|
|
|
|
case 494:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2650 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(CPPExpression::new_op((yyvsp[(2) - (5)].u.type), (yyvsp[(4) - (5)].u.expr)));
|
|
}
|
|
break;
|
|
|
|
case 495:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2654 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(UNARY_NOT, (yyvsp[(2) - (2)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 496:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2658 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(UNARY_NEGATE, (yyvsp[(2) - (2)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 497:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2662 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(UNARY_MINUS, (yyvsp[(2) - (2)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 498:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2666 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(UNARY_STAR, (yyvsp[(2) - (2)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 499:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2670 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(UNARY_REF, (yyvsp[(2) - (2)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 500:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2674 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('*', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 501:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2678 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('/', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 502:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2682 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('%', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 503:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2686 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('+', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 504:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2690 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('-', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 505:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2694 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('|', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 506:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2698 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('^', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 507:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2702 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('&', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 508:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2706 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(OROR, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 509:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2710 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(ANDAND, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 510:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2714 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(EQCOMPARE, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 511:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2718 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(NECOMPARE, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 512:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2722 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(LECOMPARE, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 513:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2726 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(GECOMPARE, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 514:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2730 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('<', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 515:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2734 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('>', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 516:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2738 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(LSHIFT, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 517:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2742 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(RSHIFT, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 518:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2746 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('?', (yyvsp[(1) - (5)].u.expr), (yyvsp[(3) - (5)].u.expr), (yyvsp[(5) - (5)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 519:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2750 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('[', (yyvsp[(1) - (4)].u.expr), (yyvsp[(3) - (4)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 520:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2754 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('f', (yyvsp[(1) - (4)].u.expr), (yyvsp[(3) - (4)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 521:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2758 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('f', (yyvsp[(1) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 522:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2762 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('.', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 523:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2766 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(POINTSAT, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 524:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2770 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (yyvsp[(2) - (3)].u.expr);
|
|
}
|
|
break;
|
|
|
|
case 525:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2777 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression((yyvsp[(1) - (1)].u.integer));
|
|
}
|
|
break;
|
|
|
|
case 526:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2781 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(true);
|
|
}
|
|
break;
|
|
|
|
case 527:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2785 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(false);
|
|
}
|
|
break;
|
|
|
|
case 528:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2789 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression((yyvsp[(1) - (1)].u.integer));
|
|
}
|
|
break;
|
|
|
|
case 529:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2793 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression((yyvsp[(1) - (1)].u.real));
|
|
}
|
|
break;
|
|
|
|
case 530:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2797 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (yyvsp[(1) - (1)].u.expr);
|
|
}
|
|
break;
|
|
|
|
case 531:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2801 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (yyvsp[(1) - (1)].u.expr);
|
|
}
|
|
break;
|
|
|
|
case 532:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2805 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression((yyvsp[(1) - (1)].u.identifier), current_scope, global_scope, current_lexer);
|
|
}
|
|
break;
|
|
|
|
case 533:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2809 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(CPPExpression::get_nullptr());
|
|
}
|
|
break;
|
|
|
|
case 534:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2823 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (yyvsp[(1) - (1)].u.expr);
|
|
}
|
|
break;
|
|
|
|
case 535:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2827 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(CPPExpression::typecast_op((yyvsp[(2) - (4)].u.type), (yyvsp[(4) - (4)].u.expr)));
|
|
}
|
|
break;
|
|
|
|
case 536:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2831 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(CPPExpression::typecast_op((yyvsp[(3) - (7)].u.type), (yyvsp[(6) - (7)].u.expr)));
|
|
}
|
|
break;
|
|
|
|
case 537:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2835 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(CPPExpression::typecast_op((yyvsp[(3) - (7)].u.type), (yyvsp[(6) - (7)].u.expr)));
|
|
}
|
|
break;
|
|
|
|
case 538:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2839 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(CPPExpression::sizeof_func((yyvsp[(3) - (4)].u.type)));
|
|
}
|
|
break;
|
|
|
|
case 539:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2843 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(CPPExpression::alignof_func((yyvsp[(3) - (4)].u.type)));
|
|
}
|
|
break;
|
|
|
|
case 540:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2847 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(CPPExpression::new_op((yyvsp[(2) - (2)].u.type)));
|
|
}
|
|
break;
|
|
|
|
case 541:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2851 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(CPPExpression::new_op((yyvsp[(2) - (5)].u.type), (yyvsp[(4) - (5)].u.expr)));
|
|
}
|
|
break;
|
|
|
|
case 542:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2855 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(UNARY_NOT, (yyvsp[(2) - (2)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 543:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2859 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(UNARY_NEGATE, (yyvsp[(2) - (2)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 544:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2863 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(UNARY_MINUS, (yyvsp[(2) - (2)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 545:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2867 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(UNARY_REF, (yyvsp[(2) - (2)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 546:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2871 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('*', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 547:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2875 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('/', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 548:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2879 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('%', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 549:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2883 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('+', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 550:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2887 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('-', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 551:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2891 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('|', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 552:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2895 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('^', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 553:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2899 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('&', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 554:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2903 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(OROR, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 555:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2907 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(ANDAND, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 556:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2911 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(EQCOMPARE, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 557:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2915 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(NECOMPARE, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 558:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2919 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(LECOMPARE, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 559:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2923 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(GECOMPARE, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 560:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2927 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('<', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 561:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2931 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('>', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 562:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2935 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(LSHIFT, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 563:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2939 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(RSHIFT, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 564:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2943 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('?', (yyvsp[(1) - (5)].u.expr), (yyvsp[(3) - (5)].u.expr), (yyvsp[(5) - (5)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 565:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2947 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('[', (yyvsp[(1) - (4)].u.expr), (yyvsp[(3) - (4)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 566:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2951 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('f', (yyvsp[(1) - (4)].u.expr), (yyvsp[(3) - (4)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 567:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2955 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('f', (yyvsp[(1) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 568:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2959 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('.', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 569:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2963 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(POINTSAT, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 570:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2967 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (yyvsp[(2) - (3)].u.expr);
|
|
}
|
|
break;
|
|
|
|
case 571:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2974 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression((yyvsp[(1) - (1)].u.integer));
|
|
}
|
|
break;
|
|
|
|
case 572:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2978 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(true);
|
|
}
|
|
break;
|
|
|
|
case 573:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2982 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(false);
|
|
}
|
|
break;
|
|
|
|
case 574:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2986 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression((yyvsp[(1) - (1)].u.integer));
|
|
}
|
|
break;
|
|
|
|
case 575:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2990 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression((yyvsp[(1) - (1)].u.real));
|
|
}
|
|
break;
|
|
|
|
case 576:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2994 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (yyvsp[(1) - (1)].u.expr);
|
|
}
|
|
break;
|
|
|
|
case 577:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2998 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (yyvsp[(1) - (1)].u.expr);
|
|
}
|
|
break;
|
|
|
|
case 578:
|
|
/* Line 1792 of yacc.c */
|
|
#line 3002 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression((yyvsp[(1) - (1)].u.identifier), current_scope, global_scope, current_lexer);
|
|
}
|
|
break;
|
|
|
|
case 579:
|
|
/* Line 1792 of yacc.c */
|
|
#line 3006 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(CPPExpression::get_nullptr());
|
|
}
|
|
break;
|
|
|
|
case 580:
|
|
/* Line 1792 of yacc.c */
|
|
#line 3013 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
CPPType *type = (yyvsp[(1) - (1)].u.identifier)->find_type(current_scope, global_scope, true);
|
|
if (type == NULL) {
|
|
type = CPPType::new_type(new CPPTBDType((yyvsp[(1) - (1)].u.identifier)));
|
|
}
|
|
(yyval.u.type) = type;
|
|
}
|
|
break;
|
|
|
|
case 581:
|
|
/* Line 1792 of yacc.c */
|
|
#line 3021 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
CPPType *type = (yyvsp[(2) - (2)].u.identifier)->find_type(current_scope, global_scope, true, current_lexer);
|
|
if (type == NULL) {
|
|
type = CPPType::new_type(new CPPTBDType((yyvsp[(2) - (2)].u.identifier)));
|
|
}
|
|
(yyval.u.type) = type;
|
|
}
|
|
break;
|
|
|
|
case 582:
|
|
/* Line 1792 of yacc.c */
|
|
#line 3029 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.type) = CPPType::new_type(new CPPTBDType((yyvsp[(2) - (2)].u.identifier)));
|
|
}
|
|
break;
|
|
|
|
case 583:
|
|
/* Line 1792 of yacc.c */
|
|
#line 3055 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.identifier) = (yyvsp[(1) - (1)].u.identifier);
|
|
}
|
|
break;
|
|
|
|
case 584:
|
|
/* Line 1792 of yacc.c */
|
|
#line 3059 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.identifier) = (yyvsp[(1) - (1)].u.identifier);
|
|
}
|
|
break;
|
|
|
|
case 585:
|
|
/* Line 1792 of yacc.c */
|
|
#line 3066 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression((yyvsp[(1) - (1)].str));
|
|
}
|
|
break;
|
|
|
|
case 586:
|
|
/* Line 1792 of yacc.c */
|
|
#line 3070 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (yyvsp[(1) - (1)].u.expr);
|
|
}
|
|
break;
|
|
|
|
case 587:
|
|
/* Line 1792 of yacc.c */
|
|
#line 3074 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
// The right string takes on the literal type of the left.
|
|
(yyval.u.expr) = (yyvsp[(1) - (2)].u.expr);
|
|
(yyval.u.expr)->_str += (yyvsp[(2) - (2)].str);
|
|
}
|
|
break;
|
|
|
|
case 588:
|
|
/* Line 1792 of yacc.c */
|
|
#line 3080 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
// We have to check that the two literal types match up.
|
|
(yyval.u.expr) = (yyvsp[(1) - (2)].u.expr);
|
|
if ((yyvsp[(2) - (2)].u.expr)->_type != CPPExpression::T_string && (yyvsp[(2) - (2)].u.expr)->_type != (yyvsp[(1) - (2)].u.expr)->_type) {
|
|
yywarning("cannot concatenate two string literals of different types", (yyloc));
|
|
}
|
|
(yyval.u.expr)->_str += (yyvsp[(2) - (2)].u.expr)->_str;
|
|
}
|
|
break;
|
|
|
|
|
|
/* Line 1792 of yacc.c */
|
|
#line 7688 "built/tmp/cppBison.yxx.c"
|
|
default: break;
|
|
}
|
|
/* User semantic actions sometimes alter yychar, and that requires
|
|
that yytoken be updated with the new translation. We take the
|
|
approach of translating immediately before every use of yytoken.
|
|
One alternative is translating here after every semantic action,
|
|
but that translation would be missed if the semantic action invokes
|
|
YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or
|
|
if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an
|
|
incorrect destructor might then be invoked immediately. In the
|
|
case of YYERROR or YYBACKUP, subsequent parser actions might lead
|
|
to an incorrect destructor call or verbose syntax error message
|
|
before the lookahead is translated. */
|
|
YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
|
|
|
|
YYPOPSTACK (yylen);
|
|
yylen = 0;
|
|
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:
|
|
/* Make sure we have latest lookahead translation. See comments at
|
|
user semantic actions for why this is necessary. */
|
|
yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar);
|
|
|
|
/* If not already recovering from an error, report this error. */
|
|
if (!yyerrstatus)
|
|
{
|
|
++yynerrs;
|
|
#if ! YYERROR_VERBOSE
|
|
yyerror (&yylloc, YY_("syntax error"));
|
|
#else
|
|
# define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \
|
|
yyssp, yytoken)
|
|
{
|
|
char const *yymsgp = YY_("syntax error");
|
|
int yysyntax_error_status;
|
|
yysyntax_error_status = YYSYNTAX_ERROR;
|
|
if (yysyntax_error_status == 0)
|
|
yymsgp = yymsg;
|
|
else if (yysyntax_error_status == 1)
|
|
{
|
|
if (yymsg != yymsgbuf)
|
|
YYSTACK_FREE (yymsg);
|
|
yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc);
|
|
if (!yymsg)
|
|
{
|
|
yymsg = yymsgbuf;
|
|
yymsg_alloc = sizeof yymsgbuf;
|
|
yysyntax_error_status = 2;
|
|
}
|
|
else
|
|
{
|
|
yysyntax_error_status = YYSYNTAX_ERROR;
|
|
yymsgp = yymsg;
|
|
}
|
|
}
|
|
yyerror (&yylloc, yymsgp);
|
|
if (yysyntax_error_status == 2)
|
|
goto yyexhaustedlab;
|
|
}
|
|
# undef YYSYNTAX_ERROR
|
|
#endif
|
|
}
|
|
|
|
yyerror_range[1] = yylloc;
|
|
|
|
if (yyerrstatus == 3)
|
|
{
|
|
/* If just tried and failed to reuse lookahead 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 lookahead 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 (/*CONSTCOND*/ 0)
|
|
goto yyerrorlab;
|
|
|
|
yyerror_range[1] = yylsp[1-yylen];
|
|
/* Do not reclaim the symbols of the rule which action triggered
|
|
this YYERROR. */
|
|
YYPOPSTACK (yylen);
|
|
yylen = 0;
|
|
YY_STACK_PRINT (yyss, yyssp);
|
|
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 (!yypact_value_is_default (yyn))
|
|
{
|
|
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[1] = *yylsp;
|
|
yydestruct ("Error: popping",
|
|
yystos[yystate], yyvsp, yylsp);
|
|
YYPOPSTACK (1);
|
|
yystate = *yyssp;
|
|
YY_STACK_PRINT (yyss, yyssp);
|
|
}
|
|
|
|
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
|
|
*++yyvsp = yylval;
|
|
YY_IGNORE_MAYBE_UNINITIALIZED_END
|
|
|
|
yyerror_range[2] = yylloc;
|
|
/* Using YYLLOC is tempting, but would change the location of
|
|
the lookahead. YYLOC is available though. */
|
|
YYLLOC_DEFAULT (yyloc, yyerror_range, 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;
|
|
|
|
#if !defined yyoverflow || YYERROR_VERBOSE
|
|
/*-------------------------------------------------.
|
|
| yyexhaustedlab -- memory exhaustion comes here. |
|
|
`-------------------------------------------------*/
|
|
yyexhaustedlab:
|
|
yyerror (&yylloc, YY_("memory exhausted"));
|
|
yyresult = 2;
|
|
/* Fall through. */
|
|
#endif
|
|
|
|
yyreturn:
|
|
if (yychar != YYEMPTY)
|
|
{
|
|
/* Make sure we have latest lookahead translation. See comments at
|
|
user semantic actions for why this is necessary. */
|
|
yytoken = YYTRANSLATE (yychar);
|
|
yydestruct ("Cleanup: discarding lookahead",
|
|
yytoken, &yylval, &yylloc);
|
|
}
|
|
/* Do not reclaim the symbols of the rule which action triggered
|
|
this YYABORT or YYACCEPT. */
|
|
YYPOPSTACK (yylen);
|
|
YY_STACK_PRINT (yyss, yyssp);
|
|
while (yyssp != yyss)
|
|
{
|
|
yydestruct ("Cleanup: popping",
|
|
yystos[*yyssp], yyvsp, yylsp);
|
|
YYPOPSTACK (1);
|
|
}
|
|
#ifndef yyoverflow
|
|
if (yyss != yyssa)
|
|
YYSTACK_FREE (yyss);
|
|
#endif
|
|
#if YYERROR_VERBOSE
|
|
if (yymsg != yymsgbuf)
|
|
YYSTACK_FREE (yymsg);
|
|
#endif
|
|
/* Make sure YYID is used. */
|
|
return YYID (yyresult);
|
|
}
|
|
|
|
|