mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 19:08:55 -04:00
7728 lines
275 KiB
Plaintext
7728 lines
275 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 78
|
|
/* YYLAST -- Last index in YYTABLE. */
|
|
#define YYLAST 4093
|
|
|
|
/* YYNTOKENS -- Number of terminals. */
|
|
#define YYNTOKENS 141
|
|
/* YYNNTS -- Number of nonterminals. */
|
|
#define YYNNTS 93
|
|
/* YYNRULES -- Number of rules. */
|
|
#define YYNRULES 579
|
|
/* YYNRULES -- Number of states. */
|
|
#define YYNSTATES 1053
|
|
|
|
/* 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, 152, 156, 160, 161,
|
|
166, 167, 173, 176, 181, 184, 189, 190, 195, 196,
|
|
202, 206, 209, 214, 217, 222, 223, 230, 231, 238,
|
|
239, 247, 248, 259, 260, 272, 273, 282, 283, 293,
|
|
295, 297, 299, 302, 307, 313, 315, 317, 319, 321,
|
|
323, 325, 327, 329, 331, 333, 335, 337, 339, 341,
|
|
343, 345, 347, 349, 351, 353, 355, 357, 359, 361,
|
|
363, 365, 367, 369, 371, 373, 375, 377, 379, 381,
|
|
383, 386, 389, 391, 393, 395, 397, 398, 405, 408,
|
|
410, 412, 414, 418, 421, 426, 429, 434, 438, 443,
|
|
445, 447, 449, 451, 454, 458, 461, 464, 467, 470,
|
|
473, 477, 482, 486, 490, 491, 498, 500, 502, 504,
|
|
508, 511, 513, 517, 519, 522, 524, 527, 529, 533,
|
|
539, 543, 548, 550, 552, 555, 557, 561, 565, 571,
|
|
575, 579, 584, 590, 593, 595, 597, 599, 601, 604,
|
|
607, 610, 613, 616, 620, 625, 627, 629, 631, 634,
|
|
637, 640, 643, 646, 650, 655, 663, 667, 669, 672,
|
|
675, 678, 681, 684, 688, 693, 701, 703, 705, 708,
|
|
710, 712, 714, 717, 722, 727, 729, 731, 734, 736,
|
|
738, 740, 743, 748, 751, 756, 758, 760, 763, 766,
|
|
769, 772, 776, 777, 783, 784, 792, 794, 796, 799,
|
|
803, 806, 809, 812, 816, 820, 824, 828, 832, 836,
|
|
841, 846, 849, 853, 855, 857, 859, 861, 865, 871,
|
|
873, 876, 881, 883, 885, 887, 889, 890, 897, 902,
|
|
905, 909, 911, 913, 915, 917, 919, 921, 923, 925,
|
|
927, 929, 931, 933, 935, 937, 940, 943, 946, 949,
|
|
951, 954, 956, 960, 963, 965, 966, 969, 971, 974,
|
|
976, 978, 980, 982, 984, 986, 988, 990, 992, 994,
|
|
996, 998, 1000, 1002, 1004, 1006, 1008, 1010, 1012, 1014,
|
|
1016, 1018, 1020, 1022, 1024, 1026, 1028, 1030, 1032, 1034,
|
|
1036, 1038, 1040, 1042, 1044, 1046, 1048, 1050, 1052, 1054,
|
|
1056, 1058, 1060, 1062, 1064, 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, 1208, 1210, 1212, 1214, 1216,
|
|
1218, 1222, 1224, 1229, 1237, 1245, 1250, 1255, 1258, 1261,
|
|
1264, 1267, 1270, 1274, 1278, 1282, 1286, 1290, 1294, 1298,
|
|
1302, 1306, 1310, 1314, 1318, 1322, 1326, 1330, 1334, 1340,
|
|
1345, 1350, 1354, 1358, 1362, 1366, 1368, 1373, 1381, 1389,
|
|
1394, 1399, 1404, 1409, 1414, 1419, 1424, 1429, 1434, 1439,
|
|
1444, 1449, 1454, 1459, 1464, 1467, 1473, 1476, 1479, 1482,
|
|
1485, 1488, 1492, 1496, 1500, 1504, 1508, 1512, 1516, 1520,
|
|
1524, 1528, 1532, 1536, 1540, 1544, 1548, 1552, 1556, 1560,
|
|
1566, 1571, 1576, 1580, 1584, 1588, 1592, 1594, 1596, 1598,
|
|
1600, 1602, 1604, 1606, 1608, 1610, 1612, 1617, 1625, 1633,
|
|
1638, 1643, 1646, 1652, 1655, 1658, 1661, 1664, 1668, 1672,
|
|
1676, 1680, 1684, 1688, 1692, 1696, 1700, 1704, 1708, 1712,
|
|
1716, 1720, 1724, 1728, 1732, 1736, 1742, 1747, 1752, 1756,
|
|
1760, 1764, 1768, 1770, 1772, 1774, 1776, 1778, 1780, 1782,
|
|
1784, 1786, 1789, 1792, 1794, 1796, 1798, 1800, 1803, 1806
|
|
};
|
|
|
|
/* YYRHS -- A `-1'-separated list of the rules' RHS. */
|
|
static const yytype_int16 yyrhs[] =
|
|
{
|
|
142, 0, -1, 114, 143, -1, 115, 226, -1, 116,
|
|
196, -1, 233, -1, 143, 119, -1, 143, 148, -1,
|
|
145, -1, 144, 118, 145, -1, 231, 135, 223, 137,
|
|
-1, -1, 151, 117, 147, 143, 138, -1, 152, -1,
|
|
174, -1, 146, -1, 211, -1, 213, -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, 231,
|
|
118, 231, 118, 231, 137, 119, -1, 97, 135, 226,
|
|
118, 232, 137, -1, 97, 135, 226, 137, -1, -1,
|
|
72, 150, 148, -1, 233, -1, 151, 67, -1, 151,
|
|
67, 6, -1, 151, 96, -1, 151, 76, -1, 151,
|
|
109, -1, 151, 68, -1, 151, 111, -1, 151, 82,
|
|
-1, 151, 91, -1, 151, 49, -1, 151, 66, -1,
|
|
153, -1, 151, 194, 119, -1, 151, 163, 186, -1,
|
|
-1, 151, 194, 154, 156, -1, -1, 151, 56, 193,
|
|
155, 157, -1, 180, 186, -1, 180, 185, 118, 156,
|
|
-1, 180, 186, -1, 180, 185, 118, 157, -1, -1,
|
|
151, 194, 159, 161, -1, -1, 151, 56, 193, 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,
|
|
231, 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, 233, -1, 56, -1, 171,
|
|
85, -1, 171, 101, 135, 137, -1, 171, 101, 135,
|
|
231, 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, 233, -1,
|
|
177, -1, 178, -1, 177, 118, 178, -1, 55, 231,
|
|
-1, 55, 231, 121, 196, -1, 105, 231, -1, 105,
|
|
231, 121, 196, -1, 179, 191, 184, -1, 56, 179,
|
|
191, 184, -1, 214, -1, 10, -1, 11, -1, 231,
|
|
-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, 222,
|
|
140, -1, 180, 120, 4, -1, 135, 180, 137, -1,
|
|
-1, 180, 135, 181, 182, 137, 171, -1, 233, -1,
|
|
14, -1, 183, -1, 183, 118, 14, -1, 183, 14,
|
|
-1, 189, -1, 183, 118, 189, -1, 233, -1, 121,
|
|
225, -1, 233, -1, 121, 226, -1, 119, -1, 117,
|
|
218, 138, -1, 120, 144, 117, 218, 138, -1, 121,
|
|
226, 119, -1, 121, 117, 187, 138, -1, 233, -1,
|
|
188, -1, 188, 118, -1, 226, -1, 117, 187, 138,
|
|
-1, 188, 118, 226, -1, 188, 118, 117, 187, 138,
|
|
-1, 193, 191, 185, -1, 10, 191, 185, -1, 56,
|
|
193, 191, 185, -1, 56, 91, 193, 191, 185, -1,
|
|
91, 189, -1, 228, -1, 233, -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, 222, 140, -1, 233, -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, 222, 140, -1, 135, 191, 137, 135, 182,
|
|
137, 171, -1, 135, 191, 137, -1, 233, -1, 56,
|
|
192, -1, 111, 192, -1, 130, 192, -1, 125, 192,
|
|
-1, 16, 192, -1, 12, 130, 192, -1, 192, 136,
|
|
222, 140, -1, 135, 192, 137, 135, 182, 137, 171,
|
|
-1, 214, -1, 11, -1, 105, 231, -1, 197, -1,
|
|
199, -1, 204, -1, 210, 231, -1, 209, 231, 120,
|
|
206, -1, 58, 135, 226, 137, -1, 214, -1, 11,
|
|
-1, 105, 231, -1, 197, -1, 199, -1, 204, -1,
|
|
210, 231, -1, 209, 231, 120, 206, -1, 209, 231,
|
|
-1, 58, 135, 226, 137, -1, 214, -1, 11, -1,
|
|
105, 231, -1, 210, 231, -1, 209, 231, -1, 193,
|
|
192, -1, 56, 193, 192, -1, -1, 210, 117, 198,
|
|
143, 138, -1, -1, 210, 231, 200, 201, 117, 143,
|
|
138, -1, 233, -1, 202, -1, 120, 203, -1, 202,
|
|
118, 203, -1, 90, 230, -1, 89, 230, -1, 88,
|
|
230, -1, 109, 90, 230, -1, 109, 89, 230, -1,
|
|
109, 88, 230, -1, 90, 109, 230, -1, 89, 109,
|
|
230, -1, 88, 109, 230, -1, 205, 117, 208, 138,
|
|
-1, 209, 231, 120, 206, -1, 209, 231, -1, 209,
|
|
120, 206, -1, 209, -1, 215, -1, 11, -1, 233,
|
|
-1, 207, 231, 118, -1, 207, 231, 121, 226, 118,
|
|
-1, 207, -1, 207, 231, -1, 207, 231, 121, 226,
|
|
-1, 65, -1, 55, -1, 99, -1, 106, -1, -1,
|
|
83, 231, 117, 212, 143, 138, -1, 83, 117, 143,
|
|
138, -1, 108, 231, -1, 108, 83, 231, -1, 215,
|
|
-1, 216, -1, 217, -1, 50, -1, 52, -1, 112,
|
|
-1, 53, -1, 54, -1, 93, -1, 78, -1, 79,
|
|
-1, 107, -1, 94, -1, 77, -1, 93, 215, -1,
|
|
78, 215, -1, 107, 215, -1, 94, 215, -1, 71,
|
|
-1, 78, 71, -1, 61, -1, 78, 78, 71, -1,
|
|
78, 61, -1, 110, -1, -1, 219, 220, -1, 233,
|
|
-1, 220, 221, -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, 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,
|
|
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, 220, 138, -1, 233, -1,
|
|
226, -1, 233, -1, 224, -1, 226, -1, 224, 118,
|
|
226, -1, 227, -1, 135, 196, 137, 225, -1, 98,
|
|
126, 196, 127, 135, 224, 137, -1, 62, 126, 196,
|
|
127, 135, 224, 137, -1, 95, 135, 196, 137, -1,
|
|
46, 135, 196, 137, -1, 139, 225, -1, 133, 225,
|
|
-1, 129, 225, -1, 130, 225, -1, 125, 225, -1,
|
|
225, 130, 225, -1, 225, 131, 225, -1, 225, 132,
|
|
225, -1, 225, 128, 225, -1, 225, 129, 225, -1,
|
|
225, 123, 225, -1, 225, 124, 225, -1, 225, 125,
|
|
225, -1, 225, 15, 225, -1, 225, 16, 225, -1,
|
|
225, 17, 225, -1, 225, 18, 225, -1, 225, 19,
|
|
225, -1, 225, 20, 225, -1, 225, 21, 225, -1,
|
|
225, 22, 225, -1, 225, 122, 225, 120, 225, -1,
|
|
225, 136, 226, 140, -1, 225, 135, 224, 137, -1,
|
|
225, 135, 137, -1, 225, 134, 225, -1, 225, 31,
|
|
225, -1, 135, 224, 137, -1, 227, -1, 135, 196,
|
|
137, 226, -1, 98, 126, 196, 127, 135, 224, 137,
|
|
-1, 62, 126, 196, 127, 135, 224, 137, -1, 11,
|
|
135, 223, 137, -1, 77, 135, 223, 137, -1, 52,
|
|
135, 223, 137, -1, 112, 135, 223, 137, -1, 53,
|
|
135, 223, 137, -1, 54, 135, 223, 137, -1, 50,
|
|
135, 223, 137, -1, 93, 135, 223, 137, -1, 78,
|
|
135, 223, 137, -1, 107, 135, 223, 137, -1, 94,
|
|
135, 223, 137, -1, 71, 135, 223, 137, -1, 61,
|
|
135, 223, 137, -1, 95, 135, 196, 137, -1, 46,
|
|
135, 196, 137, -1, 84, 195, -1, 84, 195, 135,
|
|
223, 137, -1, 139, 226, -1, 133, 226, -1, 129,
|
|
226, -1, 130, 226, -1, 125, 226, -1, 226, 130,
|
|
226, -1, 226, 131, 226, -1, 226, 132, 226, -1,
|
|
226, 128, 226, -1, 226, 129, 226, -1, 226, 123,
|
|
226, -1, 226, 124, 226, -1, 226, 125, 226, -1,
|
|
226, 15, 226, -1, 226, 16, 226, -1, 226, 17,
|
|
226, -1, 226, 18, 226, -1, 226, 19, 226, -1,
|
|
226, 20, 226, -1, 226, 126, 226, -1, 226, 127,
|
|
226, -1, 226, 21, 226, -1, 226, 22, 226, -1,
|
|
226, 122, 226, 120, 226, -1, 226, 136, 226, 140,
|
|
-1, 226, 135, 224, 137, -1, 226, 135, 137, -1,
|
|
226, 134, 226, -1, 226, 31, 226, -1, 135, 224,
|
|
137, -1, 4, -1, 102, -1, 70, -1, 5, -1,
|
|
3, -1, 232, -1, 9, -1, 10, -1, 86, -1,
|
|
229, -1, 135, 196, 137, 226, -1, 98, 126, 196,
|
|
127, 135, 224, 137, -1, 62, 126, 196, 127, 135,
|
|
224, 137, -1, 95, 135, 196, 137, -1, 46, 135,
|
|
196, 137, -1, 84, 195, -1, 84, 195, 135, 223,
|
|
137, -1, 139, 226, -1, 133, 226, -1, 129, 226,
|
|
-1, 125, 226, -1, 228, 130, 226, -1, 228, 131,
|
|
226, -1, 228, 132, 226, -1, 228, 128, 226, -1,
|
|
228, 129, 226, -1, 228, 123, 226, -1, 228, 124,
|
|
226, -1, 228, 125, 226, -1, 228, 15, 226, -1,
|
|
228, 16, 226, -1, 228, 17, 226, -1, 228, 18,
|
|
226, -1, 228, 19, 226, -1, 228, 20, 226, -1,
|
|
228, 126, 226, -1, 228, 127, 226, -1, 228, 21,
|
|
226, -1, 228, 22, 226, -1, 228, 122, 226, 120,
|
|
226, -1, 228, 136, 226, 140, -1, 228, 135, 224,
|
|
137, -1, 228, 135, 137, -1, 228, 134, 226, -1,
|
|
228, 31, 226, -1, 135, 224, 137, -1, 4, -1,
|
|
102, -1, 70, -1, 5, -1, 3, -1, 232, -1,
|
|
9, -1, 86, -1, 231, -1, 210, 231, -1, 105,
|
|
231, -1, 10, -1, 11, -1, 6, -1, 8, -1,
|
|
232, 6, -1, 232, 8, -1, -1
|
|
};
|
|
|
|
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
|
|
static const yytype_uint16 yyrline[] =
|
|
{
|
|
0, 404, 404, 405, 409, 416, 417, 418, 422, 423,
|
|
427, 440, 439, 451, 452, 453, 454, 455, 456, 457,
|
|
458, 471, 480, 484, 492, 496, 500, 511, 532, 537,
|
|
548, 562, 561, 576, 580, 584, 595, 599, 603, 607,
|
|
611, 615, 619, 623, 627, 634, 638, 647, 659, 658,
|
|
674, 673, 691, 699, 710, 719, 733, 732, 748, 747,
|
|
758, 773, 779, 788, 795, 808, 807, 830, 829, 854,
|
|
853, 884, 883, 902, 901, 922, 921, 953, 952, 978,
|
|
991, 995, 999, 1003, 1007, 1014, 1018, 1022, 1026, 1030,
|
|
1034, 1038, 1042, 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, 1173, 1174, 1179, 1178, 1186, 1190,
|
|
1191, 1195, 1201, 1210, 1214, 1218, 1222, 1226, 1232, 1242,
|
|
1246, 1251, 1263, 1267, 1281, 1296, 1301, 1306, 1311, 1316,
|
|
1321, 1326, 1331, 1336, 1342, 1341, 1363, 1367, 1372, 1376,
|
|
1381, 1389, 1394, 1402, 1406, 1413, 1417, 1424, 1428, 1432,
|
|
1436, 1440, 1447, 1448, 1449, 1453, 1456, 1457, 1458, 1462,
|
|
1467, 1475, 1481, 1487, 1491, 1501, 1505, 1509, 1513, 1518,
|
|
1523, 1528, 1533, 1538, 1543, 1551, 1555, 1559, 1563, 1568,
|
|
1573, 1578, 1583, 1588, 1593, 1598, 1604, 1612, 1616, 1621,
|
|
1626, 1631, 1636, 1641, 1646, 1651, 1660, 1664, 1672, 1676,
|
|
1680, 1684, 1688, 1704, 1720, 1732, 1736, 1744, 1748, 1752,
|
|
1756, 1760, 1776, 1792, 1810, 1822, 1826, 1834, 1838, 1854,
|
|
1873, 1879, 1890, 1889, 1914, 1913, 1943, 1944, 1948, 1949,
|
|
1953, 1957, 1961, 1965, 1969, 1973, 1977, 1981, 1985, 1992,
|
|
2000, 2004, 2008, 2012, 2019, 2023, 2030, 2031, 2037, 2045,
|
|
2046, 2052, 2061, 2068, 2072, 2076, 2084, 2083, 2105, 2109,
|
|
2115, 2124, 2125, 2126, 2130, 2134, 2138, 2142, 2146, 2150,
|
|
2155, 2160, 2165, 2170, 2175, 2179, 2184, 2193, 2198, 2206,
|
|
2210, 2215, 2219, 2224, 2232, 2242, 2242, 2252, 2253, 2257,
|
|
2258, 2259, 2260, 2261, 2262, 2263, 2264, 2265, 2266, 2267,
|
|
2267, 2267, 2268, 2268, 2268, 2268, 2269, 2269, 2269, 2269,
|
|
2269, 2270, 2270, 2270, 2271, 2271, 2271, 2271, 2271, 2272,
|
|
2272, 2272, 2272, 2272, 2273, 2273, 2273, 2273, 2273, 2274,
|
|
2274, 2274, 2275, 2275, 2275, 2275, 2275, 2276, 2276, 2276,
|
|
2276, 2276, 2277, 2277, 2277, 2278, 2278, 2278, 2278, 2279,
|
|
2279, 2279, 2279, 2279, 2280, 2280, 2280, 2280, 2280, 2281,
|
|
2281, 2281, 2281, 2282, 2282, 2282, 2282, 2282, 2283, 2283,
|
|
2283, 2283, 2283, 2284, 2284, 2284, 2284, 2284, 2285, 2285,
|
|
2285, 2285, 2288, 2288, 2288, 2288, 2288, 2288, 2288, 2288,
|
|
2288, 2288, 2288, 2289, 2289, 2289, 2289, 2289, 2289, 2289,
|
|
2289, 2289, 2289, 2290, 2290, 2294, 2298, 2305, 2309, 2316,
|
|
2320, 2327, 2331, 2335, 2339, 2343, 2347, 2351, 2355, 2359,
|
|
2363, 2367, 2371, 2375, 2379, 2383, 2387, 2391, 2395, 2399,
|
|
2403, 2407, 2411, 2415, 2419, 2423, 2427, 2431, 2435, 2439,
|
|
2443, 2447, 2451, 2455, 2459, 2467, 2471, 2475, 2479, 2483,
|
|
2493, 2499, 2505, 2511, 2517, 2523, 2529, 2536, 2543, 2550,
|
|
2557, 2563, 2569, 2573, 2577, 2581, 2585, 2589, 2593, 2597,
|
|
2601, 2605, 2609, 2613, 2617, 2621, 2625, 2629, 2633, 2637,
|
|
2641, 2645, 2649, 2653, 2657, 2661, 2665, 2669, 2673, 2677,
|
|
2681, 2685, 2689, 2693, 2697, 2701, 2708, 2712, 2716, 2720,
|
|
2724, 2728, 2732, 2736, 2740, 2754, 2758, 2762, 2766, 2770,
|
|
2774, 2778, 2782, 2786, 2790, 2794, 2798, 2802, 2806, 2810,
|
|
2814, 2818, 2822, 2826, 2830, 2834, 2838, 2842, 2846, 2850,
|
|
2854, 2858, 2862, 2866, 2870, 2874, 2878, 2882, 2886, 2890,
|
|
2894, 2898, 2905, 2909, 2913, 2917, 2921, 2925, 2929, 2933,
|
|
2940, 2948, 2956, 2982, 2986, 2993, 2997, 3001, 3007, 3018
|
|
};
|
|
#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",
|
|
"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", "using_declaration", "simple_type", "simple_int_type",
|
|
"simple_float_type", "simple_void_type", "code", "$@19", "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, 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, 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, 194, 194, 194, 194, 194,
|
|
194, 194, 194, 194, 194, 195, 195, 195, 195, 195,
|
|
196, 196, 198, 197, 200, 199, 201, 201, 202, 202,
|
|
203, 203, 203, 203, 203, 203, 203, 203, 203, 204,
|
|
205, 205, 205, 205, 206, 206, 207, 207, 207, 208,
|
|
208, 208, 209, 210, 210, 210, 212, 211, 211, 213,
|
|
213, 214, 214, 214, 215, 215, 215, 215, 215, 215,
|
|
215, 215, 215, 215, 215, 215, 215, 215, 215, 216,
|
|
216, 216, 216, 216, 217, 219, 218, 220, 220, 221,
|
|
221, 221, 221, 221, 221, 221, 221, 221, 221, 221,
|
|
221, 221, 221, 221, 221, 221, 221, 221, 221, 221,
|
|
221, 221, 221, 221, 221, 221, 221, 221, 221, 221,
|
|
221, 221, 221, 221, 221, 221, 221, 221, 221, 221,
|
|
221, 221, 221, 221, 221, 221, 221, 221, 221, 221,
|
|
221, 221, 221, 221, 221, 221, 221, 221, 221, 221,
|
|
221, 221, 221, 221, 221, 221, 221, 221, 221, 221,
|
|
221, 221, 221, 221, 221, 221, 221, 221, 221, 221,
|
|
221, 221, 221, 221, 221, 221, 221, 221, 221, 221,
|
|
221, 221, 221, 221, 221, 221, 221, 221, 221, 221,
|
|
221, 221, 221, 221, 221, 221, 221, 221, 221, 221,
|
|
221, 221, 221, 221, 221, 222, 222, 223, 223, 224,
|
|
224, 225, 225, 225, 225, 225, 225, 225, 225, 225,
|
|
225, 225, 225, 225, 225, 225, 225, 225, 225, 225,
|
|
225, 225, 225, 225, 225, 225, 225, 225, 225, 225,
|
|
225, 225, 225, 225, 225, 226, 226, 226, 226, 226,
|
|
226, 226, 226, 226, 226, 226, 226, 226, 226, 226,
|
|
226, 226, 226, 226, 226, 226, 226, 226, 226, 226,
|
|
226, 226, 226, 226, 226, 226, 226, 226, 226, 226,
|
|
226, 226, 226, 226, 226, 226, 226, 226, 226, 226,
|
|
226, 226, 226, 226, 226, 226, 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, 229, 229, 229, 229, 229, 229, 229, 229,
|
|
230, 230, 230, 231, 231, 232, 232, 232, 232, 233
|
|
};
|
|
|
|
/* 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, 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,
|
|
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, 2, 1, 1,
|
|
1, 2, 4, 2, 4, 1, 1, 2, 2, 2,
|
|
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, 4, 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, 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, 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, 579, 0, 0, 0, 579, 5, 520, 516, 519,
|
|
575, 576, 522, 523, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 518, 0, 0, 0, 0, 524, 0, 0,
|
|
0, 0, 517, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 3, 465, 521, 217, 284, 285, 287, 288, 273,
|
|
0, 0, 301, 272, 299, 294, 290, 291, 289, 293,
|
|
274, 0, 275, 292, 304, 286, 579, 4, 219, 220,
|
|
221, 0, 263, 0, 216, 281, 282, 283, 1, 20,
|
|
21, 0, 31, 0, 0, 0, 0, 0, 0, 0,
|
|
579, 579, 0, 6, 15, 7, 18, 0, 13, 45,
|
|
14, 16, 17, 33, 579, 0, 579, 579, 579, 579,
|
|
579, 0, 579, 579, 579, 236, 0, 484, 0, 0,
|
|
235, 579, 579, 0, 0, 579, 579, 490, 488, 489,
|
|
487, 217, 284, 285, 287, 288, 301, 299, 294, 290,
|
|
289, 293, 292, 286, 0, 0, 429, 486, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 577, 578, 579, 0, 303, 300, 290, 296, 290,
|
|
295, 298, 573, 574, 218, 297, 0, 579, 579, 579,
|
|
579, 579, 579, 240, 207, 579, 0, 261, 242, 222,
|
|
22, 579, 0, 0, 579, 0, 25, 24, 23, 0,
|
|
0, 128, 0, 0, 19, 0, 279, 79, 226, 43,
|
|
0, 0, 44, 34, 39, 37, 41, 0, 42, 36,
|
|
0, 38, 40, 11, 0, 0, 48, 228, 229, 230,
|
|
263, 0, 225, 0, 428, 427, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 237, 579, 239, 238,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 515, 499,
|
|
500, 501, 502, 503, 504, 507, 508, 514, 0, 496,
|
|
497, 498, 505, 506, 494, 495, 491, 492, 493, 513,
|
|
512, 0, 0, 241, 0, 302, 579, 212, 208, 209,
|
|
211, 210, 0, 579, 269, 0, 266, 265, 262, 264,
|
|
0, 579, 579, 32, 0, 0, 579, 276, 0, 579,
|
|
0, 0, 56, 280, 65, 67, 50, 0, 35, 0,
|
|
579, 227, 579, 0, 305, 167, 0, 0, 47, 46,
|
|
0, 233, 231, 469, 483, 475, 471, 473, 474, 481,
|
|
0, 480, 470, 477, 0, 476, 479, 482, 0, 478,
|
|
472, 466, 430, 0, 511, 510, 224, 213, 0, 0,
|
|
426, 425, 270, 259, 223, 579, 0, 0, 247, 246,
|
|
0, 0, 278, 579, 0, 30, 140, 141, 0, 0,
|
|
0, 0, 130, 131, 579, 139, 129, 58, 60, 0,
|
|
579, 0, 0, 579, 0, 0, 579, 186, 187, 0,
|
|
579, 579, 579, 579, 579, 0, 185, 579, 69, 0,
|
|
579, 0, 8, 0, 579, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 49, 579, 142, 0, 0, 485,
|
|
0, 509, 579, 214, 267, 0, 243, 0, 0, 0,
|
|
0, 248, 579, 0, 0, 0, 579, 0, 133, 579,
|
|
135, 579, 0, 196, 197, 0, 579, 579, 579, 579,
|
|
579, 579, 579, 195, 0, 57, 579, 566, 562, 565,
|
|
568, 579, 157, 0, 0, 0, 564, 0, 569, 0,
|
|
0, 0, 563, 0, 0, 0, 0, 0, 0, 158,
|
|
161, 579, 184, 525, 567, 156, 0, 0, 0, 51,
|
|
579, 234, 0, 579, 192, 188, 189, 191, 190, 75,
|
|
579, 12, 579, 168, 306, 307, 305, 0, 579, 579,
|
|
0, 173, 175, 172, 170, 0, 149, 145, 0, 95,
|
|
96, 97, 98, 99, 100, 103, 104, 119, 107, 108,
|
|
109, 110, 111, 112, 113, 114, 115, 116, 117, 118,
|
|
123, 122, 106, 105, 92, 94, 93, 101, 102, 90,
|
|
91, 87, 88, 89, 86, 0, 0, 85, 143, 146,
|
|
148, 147, 0, 0, 0, 154, 579, 0, 52, 165,
|
|
232, 0, 0, 0, 271, 0, 0, 0, 252, 570,
|
|
0, 251, 0, 250, 0, 0, 0, 579, 249, 0,
|
|
0, 0, 277, 29, 0, 579, 0, 124, 127, 125,
|
|
132, 579, 202, 198, 199, 201, 200, 0, 0, 579,
|
|
137, 163, 59, 579, 0, 61, 579, 0, 0, 579,
|
|
0, 531, 183, 0, 0, 536, 535, 534, 0, 0,
|
|
533, 579, 160, 0, 579, 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, 579, 0, 54, 77, 193, 579, 0, 0, 309,
|
|
310, 314, 311, 318, 312, 313, 315, 316, 317, 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, 380, 364, 365, 366, 367, 368,
|
|
369, 370, 371, 372, 373, 374, 375, 376, 377, 378,
|
|
379, 381, 382, 383, 384, 385, 386, 387, 388, 389,
|
|
390, 391, 392, 393, 394, 395, 396, 397, 398, 399,
|
|
400, 401, 579, 418, 419, 420, 411, 423, 407, 408,
|
|
406, 413, 414, 402, 403, 404, 405, 412, 410, 417,
|
|
415, 421, 416, 409, 422, 308, 0, 9, 0, 0,
|
|
171, 174, 150, 144, 121, 120, 153, 152, 166, 579,
|
|
0, 0, 468, 467, 579, 268, 572, 258, 571, 257,
|
|
256, 255, 254, 253, 245, 0, 26, 0, 134, 138,
|
|
136, 203, 206, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 164, 431, 0, 0, 63, 0, 0,
|
|
180, 0, 579, 579, 0, 579, 0, 0, 0, 561,
|
|
81, 66, 80, 159, 162, 179, 545, 546, 547, 548,
|
|
549, 550, 553, 554, 560, 0, 542, 543, 544, 551,
|
|
552, 540, 541, 537, 538, 539, 559, 558, 0, 0,
|
|
0, 71, 68, 0, 579, 0, 194, 579, 0, 169,
|
|
10, 176, 579, 177, 0, 151, 53, 215, 0, 0,
|
|
579, 0, 0, 0, 0, 441, 439, 440, 438, 0,
|
|
0, 437, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 204, 0, 62, 166, 530, 579, 181,
|
|
0, 0, 529, 0, 526, 82, 0, 0, 557, 556,
|
|
73, 579, 55, 0, 579, 70, 424, 0, 579, 27,
|
|
28, 0, 0, 0, 0, 0, 0, 464, 450, 451,
|
|
452, 453, 454, 455, 456, 457, 463, 0, 447, 448,
|
|
449, 445, 446, 442, 443, 444, 462, 461, 0, 0,
|
|
64, 182, 0, 532, 0, 0, 555, 579, 0, 579,
|
|
76, 178, 155, 579, 436, 0, 435, 0, 432, 0,
|
|
460, 459, 0, 0, 83, 0, 0, 579, 78, 205,
|
|
0, 0, 458, 528, 527, 84, 579, 72, 0, 0,
|
|
74, 434, 433
|
|
};
|
|
|
|
/* YYDEFGOTO[NTERM-NUM]. */
|
|
static const yytype_int16 yydefgoto[] =
|
|
{
|
|
-1, 4, 5, 421, 422, 94, 332, 95, 96, 201,
|
|
97, 98, 99, 340, 404, 434, 509, 214, 399, 474,
|
|
475, 632, 235, 400, 403, 522, 971, 1017, 686, 904,
|
|
871, 578, 618, 100, 212, 391, 392, 393, 394, 435,
|
|
819, 498, 499, 630, 587, 338, 530, 531, 500, 415,
|
|
472, 193, 66, 236, 117, 67, 68, 311, 69, 312,
|
|
377, 378, 451, 70, 71, 308, 304, 305, 72, 73,
|
|
101, 383, 102, 74, 75, 76, 77, 419, 420, 524,
|
|
805, 369, 243, 244, 853, 146, 42, 502, 503, 598,
|
|
436, 43, 245
|
|
};
|
|
|
|
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
|
|
STATE-NUM. */
|
|
#define YYPACT_NINF -594
|
|
static const yytype_int16 yypact[] =
|
|
{
|
|
272, -594, 2401, 3534, 18, 1969, -594, -594, -594, -594,
|
|
-594, -594, -594, -594, -91, -79, -33, -24, -11, -2,
|
|
3, 47, -594, 62, 70, 75, 3730, -594, 78, 82,
|
|
119, 131, -594, 138, 158, 2401, 2401, 2401, 2401, 1581,
|
|
2401, 3091, -594, 46, -594, -594, -594, -594, -594, -594,
|
|
3693, 161, -594, -594, -594, -594, 3981, -594, 3584, 3584,
|
|
-594, 76, -594, 3584, -594, -594, 427, -594, -594, -594,
|
|
-594, 192, 14, 99, -594, -594, -594, -594, -594, -594,
|
|
-594, 200, -594, 177, 189, 112, 208, 210, 213, 206,
|
|
236, -594, 63, -594, -594, -594, -594, 2629, -594, -594,
|
|
-594, -594, -594, -594, 2401, 3534, 2401, 2401, 2401, 2401,
|
|
2401, 3534, 2401, 2401, 2401, -594, 76, 229, 76, 76,
|
|
-594, 2401, 2401, 3534, 3534, 2401, 2401, 114, 114, 114,
|
|
114, -91, -33, -24, -11, -2, 3, 62, 70, 3950,
|
|
1790, 3253, 3439, 158, -17, -87, 3091, 114, 2401, 2401,
|
|
2401, 2401, 2401, 2401, 2401, 2401, 2401, 2401, 2401, 2401,
|
|
2401, 2401, 2401, 2401, 2401, 2401, 2401, 2401, 2401, 1801,
|
|
2401, -594, -594, 427, 2401, -594, -594, 3523, -594, 3584,
|
|
-594, -594, -594, -594, -594, -594, 237, 427, 427, 427,
|
|
427, 427, 427, 235, -594, -594, 897, 255, -594, -41,
|
|
-594, 2069, 368, 76, -594, 277, -594, -594, -594, 2401,
|
|
2699, -594, 254, 2763, -594, 76, -594, 261, 266, -594,
|
|
3693, 268, -594, 383, -594, -594, -594, 3595, -594, -594,
|
|
76, -594, -594, -594, 76, 365, 279, -594, -594, -594,
|
|
14, 99, -594, 278, 304, -594, 298, 299, 305, 309,
|
|
310, 313, 325, 320, 322, 324, -594, 2401, -594, -594,
|
|
326, 327, 336, 347, 341, 342, 2401, 2401, -594, 3141,
|
|
2471, 2445, 2445, 668, 668, 566, 566, -594, 2917, 3277,
|
|
3292, 3322, 668, 668, 759, 759, 114, 114, 114, -594,
|
|
-594, -71, 1379, 235, 2882, -594, 427, 235, 235, 235,
|
|
235, 235, 147, 2401, 76, 338, -594, -594, -594, -594,
|
|
897, -594, 369, -594, 378, 380, 3758, -594, 2861, 3449,
|
|
3693, 365, -594, -594, -594, 1, -594, 2401, -594, 3693,
|
|
676, -594, -594, 364, -594, -594, 76, 1901, -594, -594,
|
|
421, -36, -41, -594, -594, -594, -594, -594, -594, -594,
|
|
366, -594, -594, -594, 367, -594, -594, -594, 370, -594,
|
|
-594, 114, 3091, 2401, -594, -594, -594, 235, 371, 375,
|
|
3091, -594, 11, -594, 385, 3795, -26, 390, 393, -594,
|
|
506, 76, -594, -594, 263, -594, -594, -594, 76, 3486,
|
|
76, 391, 399, -594, 265, -594, -594, -594, -594, 421,
|
|
1361, 392, 421, 1361, 421, 2899, 676, -594, -594, 394,
|
|
676, 676, 676, 676, 676, 151, -594, 3838, -594, 387,
|
|
-594, 183, -594, 398, 2001, 2935, 397, 421, 421, 2526,
|
|
421, 421, 421, 421, -594, 187, -594, 897, 2401, -594,
|
|
2401, 3091, 1361, -594, -594, 2401, -594, 233, 503, 525,
|
|
339, -594, -594, -26, -69, 416, 3875, 45, 419, 265,
|
|
420, 442, 3449, -594, -594, 413, 265, 265, 265, 265,
|
|
265, 265, -78, -594, 421, -594, 187, -594, -594, -594,
|
|
-594, 265, -594, 409, 3632, 424, -594, 3730, -594, 1691,
|
|
410, 428, -594, 2401, 2401, 2401, 1581, 2401, 418, 66,
|
|
-594, 265, 3108, -594, 46, -594, 421, 154, 422, -594,
|
|
187, -594, 181, 676, 411, 411, 411, 411, 411, -594,
|
|
2401, -594, 1361, -594, 1223, -594, -594, 76, 2401, 2001,
|
|
415, 445, 3091, -594, -594, 421, 256, 256, 550, -594,
|
|
-594, -594, -594, -594, -594, -594, -594, -594, -594, -594,
|
|
-594, -594, -594, -594, -594, -594, -594, -594, -594, -594,
|
|
-594, -594, -594, -594, -594, -594, -594, -594, -594, -594,
|
|
-594, -594, -594, -594, -594, 429, 425, -594, -594, 256,
|
|
256, 256, 162, 362, 1901, -594, 2401, 446, -594, -594,
|
|
385, -59, -19, 430, 3057, 76, 315, 76, -594, -594,
|
|
315, -594, 315, -594, 315, 315, 315, 3918, -594, 559,
|
|
451, 76, -594, -594, 3534, -78, 3534, -594, -594, -594,
|
|
-594, 265, 435, 435, 435, 435, 435, 281, 925, 2401,
|
|
-594, -594, -594, 187, 454, -594, 98, 3534, 3693, 265,
|
|
3534, 438, -594, 3534, 3534, 114, 114, 114, 437, 7,
|
|
114, 519, -594, 1471, 98, 2401, 2401, 2401, 2401, 2401,
|
|
2401, 2401, 2401, 2401, 2401, 2401, 2401, 2401, 2401, 2401,
|
|
2401, 2401, 2401, 2401, 2401, 2401, 2101, 2401, 199, 574,
|
|
444, 519, 463, -594, -594, 411, 1361, 443, 452, -594,
|
|
-594, -594, -594, -594, -594, -594, -594, -594, -594, -594,
|
|
-594, -594, -594, -594, -594, -594, -594, -594, -594, -594,
|
|
-594, -594, -594, -594, -594, -594, -594, -594, -594, -594,
|
|
-594, -594, -594, -594, -594, -594, -594, -594, -594, -594,
|
|
-594, -594, -594, -594, -594, -594, -594, -594, -594, -594,
|
|
-594, -594, -594, -594, -594, -594, -594, -594, -594, -594,
|
|
-594, -594, -594, -594, -594, -594, -594, -594, -594, -594,
|
|
-594, -594, -594, -594, -594, -594, -594, -594, -594, -594,
|
|
-594, -594, -594, -594, -594, -594, -594, -594, -594, -594,
|
|
-594, -594, -594, -594, -594, -594, -594, -594, -594, -594,
|
|
-594, -594, -594, -594, -594, -594, -594, -594, -594, -594,
|
|
-594, -594, -594, -594, -594, -594, 450, -594, 456, 453,
|
|
-594, 2201, 256, -594, -594, -594, -594, -594, 2935, 1361,
|
|
459, 421, -594, -594, 519, -594, -594, -594, -594, -594,
|
|
-594, -594, -594, -594, -594, 467, -594, 470, -594, -594,
|
|
-594, 435, 447, 461, 484, 478, 485, 925, 925, 925,
|
|
925, 1581, 925, 3125, -594, 475, 498, -594, 421, 2401,
|
|
-594, 480, 265, 98, 492, 2401, 488, 494, 2401, -594,
|
|
-594, 167, -594, -594, -594, -594, 3141, 2471, 2445, 2445,
|
|
668, 668, 566, 566, -594, 3074, 3277, 3292, 3322, 668,
|
|
668, 759, 759, 114, 114, 114, -594, -594, 83, 1599,
|
|
487, -594, 167, 421, 1361, 489, -594, 519, 1085, -594,
|
|
-594, -594, 2001, 3091, 496, -594, -594, 167, 518, 521,
|
|
1361, 3534, 3534, 3534, 3534, 144, 144, 144, 144, 504,
|
|
88, 144, 925, 925, 925, 925, 925, 925, 925, 925,
|
|
925, 925, 925, 925, 925, 925, 925, 925, 925, 925,
|
|
925, 2301, 2401, -594, 421, -594, 3091, -594, 98, -594,
|
|
509, 517, -594, 511, 114, -594, 541, 2401, -594, -594,
|
|
-594, 1361, -594, 556, 519, 167, -594, 540, 519, -594,
|
|
-594, 567, 571, 576, 572, 584, 925, -594, 3262, 3307,
|
|
2485, 2485, 715, 715, 621, 621, -594, 752, 3337, 1814,
|
|
3352, 824, 824, 144, 144, 144, -594, -594, 93, 2502,
|
|
-594, -594, 2401, -594, 2401, 6, 3091, 1361, 575, 519,
|
|
167, -594, 167, 519, -594, 578, -594, 579, 144, 925,
|
|
-594, -594, 105, 118, -594, 581, 583, 519, 167, 167,
|
|
2401, 2401, 3125, -594, -594, -594, 519, 167, 127, 133,
|
|
167, -594, -594
|
|
};
|
|
|
|
/* YYPGOTO[NTERM-NUM]. */
|
|
static const yytype_int16 yypgoto[] =
|
|
{
|
|
-594, -594, -190, -594, 188, -594, -594, 522, -594, -594,
|
|
-84, -82, -594, -594, -594, -99, -179, -594, -594, -594,
|
|
-133, -228, 514, -594, -594, -594, -594, -594, -594, -594,
|
|
-593, -594, -594, 269, -594, -594, -594, 267, 344, -327,
|
|
-594, -394, -594, 128, -455, -264, -528, -594, -477, -173,
|
|
-374, -75, -35, 532, 260, 91, -74, -594, -30, -594,
|
|
-594, -594, 295, 22, -594, -300, -594, -594, -15, 43,
|
|
-594, -594, -594, -6, 542, -594, -594, 228, -594, -23,
|
|
-594, -460, -80, -34, -108, 0, -589, -594, -594, -378,
|
|
476, -381, -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 -262
|
|
static const yytype_int16 yytable[] =
|
|
{
|
|
6, 809, 41, 457, 103, 145, 210, 213, 211, 508,
|
|
374, 118, 642, 401, 316, 173, 182, 183, 78, 504,
|
|
120, 634, 504, 237, 182, 183, 247, 248, 249, 250,
|
|
251, 267, 253, 254, 255, 127, 128, 129, 130, 854,
|
|
147, 260, 261, 628, 104, 264, 265, 267, 593, 609,
|
|
268, 171, 171, 172, 172, 682, 105, 398, 629, 267,
|
|
687, 504, 447, 448, 449, 194, 364, 238, 610, 119,
|
|
601, 603, 476, 182, 183, 507, -244, 510, 822, -244,
|
|
652, -261, 240, 450, 437, 615, 182, 183, 902, 103,
|
|
103, 242, 622, 623, 624, 625, 626, 627, 293, 267,
|
|
536, 537, 106, 579, 580, 581, 582, 636, 504, 182,
|
|
183, 107, 297, 298, 299, 300, 301, 302, 823, 239,
|
|
266, 375, 182, 183, 108, 267, 820, 654, 688, 444,
|
|
144, 402, 445, 109, 196, 291, 237, 590, 110, 237,
|
|
241, 504, 417, 1034, 869, 156, 215, 633, 269, 270,
|
|
271, 272, 273, 274, 275, 276, 277, 278, 279, 280,
|
|
281, 282, 283, 284, 285, 286, 287, 288, 289, 855,
|
|
292, 588, 194, 111, 294, 940, 874, 354, 856, 678,
|
|
238, 860, 613, 238, 653, 326, 194, 194, 194, 194,
|
|
194, 194, 330, 456, 306, 240, 246, 112, 240, 875,
|
|
103, 267, 252, 6, 242, 113, 267, 242, 812, 318,
|
|
114, 267, 635, 121, 262, 263, 198, 122, 827, 859,
|
|
968, 367, 829, 267, 830, 987, 831, 832, 833, 204,
|
|
1030, 917, 239, 512, 629, 239, 267, 514, 515, 516,
|
|
517, 518, 1043, 182, 183, 267, 683, 841, 168, 169,
|
|
170, 267, 965, 241, 123, 1044, 241, 124, 854, 854,
|
|
854, 854, 607, 854, 1051, 863, 361, 362, 966, 10,
|
|
1052, 11, 504, 125, 679, 463, 464, 465, 950, 951,
|
|
952, 466, 679, 303, 368, 397, 519, 520, 49, 585,
|
|
586, 680, 905, 126, 406, 194, 174, 585, 586, 816,
|
|
526, 527, 371, 370, 334, 504, 335, 583, 584, 195,
|
|
6, 379, 202, 395, 975, 103, 684, 520, 396, 679,
|
|
200, 467, 585, 586, 203, 182, 183, 405, 206, 416,
|
|
207, 6, 60, 208, 585, 586, 900, 425, 595, 62,
|
|
685, 209, 596, 854, 854, 854, 854, 854, 854, 854,
|
|
854, 854, 854, 854, 854, 854, 854, 854, 854, 854,
|
|
854, 854, -126, 441, 257, 501, 817, 296, 501, 857,
|
|
49, 303, 182, 183, 103, 310, 468, 210, 314, 617,
|
|
319, 1020, 6, 395, 977, 1022, 1, 2, 3, 328,
|
|
469, 585, 586, 473, 317, 470, 324, 854, 339, 505,
|
|
471, 325, 505, 327, 591, 416, 592, 501, 959, 416,
|
|
416, 416, 416, 416, 60, 343, 103, 629, 842, 525,
|
|
595, 62, 267, 533, 532, 914, 1038, 604, 605, 606,
|
|
1039, 182, 183, 426, 589, 344, 345, 427, 504, 186,
|
|
854, 505, 346, 187, 1047, 594, 347, 348, 808, 639,
|
|
349, 6, 350, 1050, 501, 103, 395, 351, 473, 352,
|
|
103, 353, 649, 355, 356, 473, 473, 473, 473, 473,
|
|
473, 631, 118, 357, 358, 589, 373, 428, 359, 360,
|
|
473, 120, 334, 188, 335, 336, 337, 501, 958, 376,
|
|
597, 597, 597, 645, 646, 647, 380, 650, 381, 418,
|
|
473, 438, -260, 1011, 439, 440, 442, 452, 429, 589,
|
|
973, 453, 416, 182, 183, 443, 454, 462, 461, 371,
|
|
370, 505, 506, 504, 513, 523, 981, 535, 533, 532,
|
|
119, 476, 430, 528, 611, 182, 183, 184, 189, 504,
|
|
614, 616, 90, 621, 637, 643, 431, 520, 197, 199,
|
|
640, 432, 190, 810, 644, 651, 433, 191, 49, 681,
|
|
813, 205, 192, 811, 821, 815, 814, 824, 216, 835,
|
|
836, 629, 858, 865, 868, 870, 510, 1018, 817, 901,
|
|
49, 903, 920, 906, 818, 371, 370, 648, 909, 907,
|
|
504, 911, 256, 910, 258, 259, 921, 156, 178, 915,
|
|
180, 181, 60, 862, 918, 185, 103, 919, 595, 62,
|
|
922, 924, 600, 923, 631, 953, 954, 957, 501, 960,
|
|
473, 963, 970, 1036, 60, 962, 974, 633, 371, 370,
|
|
595, 62, 589, 978, 602, 589, 504, 979, 473, 597,
|
|
980, 986, 898, 597, 1012, 597, 1014, 597, 597, 597,
|
|
872, 501, 940, 589, 1013, 876, 877, 878, 879, 880,
|
|
881, 882, 883, 884, 885, 886, 887, 888, 889, 890,
|
|
891, 892, 893, 894, 895, 896, 1015, 899, 1021, 315,
|
|
872, 178, 180, 181, 185, 505, 407, 408, 409, 154,
|
|
155, 323, 410, 1019, 163, 164, 165, 166, 167, 156,
|
|
168, 169, 170, 1025, 1023, 838, 331, 840, 1024, 1026,
|
|
333, 1027, 1037, 1040, 1041, 807, 341, 342, 1045, 178,
|
|
1046, 178, 916, 313, 972, 955, 1010, 321, 861, 620,
|
|
619, 864, 411, 459, 866, 867, 938, 939, 309, 925,
|
|
926, 927, 928, 839, 931, 322, 940, 641, 608, 945,
|
|
946, 947, 948, 949, 806, 950, 951, 952, 0, 908,
|
|
0, 0, 0, 0, 0, 0, 0, 932, 933, 934,
|
|
935, 936, 937, 938, 939, 0, 0, 0, 0, 0,
|
|
372, 525, 0, 940, 501, 961, 0, 412, 0, 0,
|
|
156, 0, 0, 0, 0, 0, 163, 164, 165, 166,
|
|
167, 413, 168, 169, 170, 0, 414, 0, 0, 0,
|
|
0, 913, 423, 0, 0, 0, 0, 930, 505, 0,
|
|
0, 0, 0, 872, 988, 989, 990, 991, 992, 993,
|
|
994, 995, 996, 997, 998, 999, 1000, 1001, 1002, 1003,
|
|
1004, 1005, 1006, 945, 946, 947, 948, 949, 0, 950,
|
|
951, 952, 309, 0, 0, 940, 0, 455, 0, 956,
|
|
0, 473, 589, 0, 458, 0, 460, 0, 964, 501,
|
|
0, 0, 1029, 0, 941, 942, 943, 944, 1028, 0,
|
|
945, 946, 947, 948, 949, 501, 950, 951, 952, 165,
|
|
166, 167, 0, 168, 169, 170, 0, 0, 0, 0,
|
|
0, 0, 0, 505, 0, 0, 872, 0, 307, 0,
|
|
0, 533, 532, 0, 0, 0, 0, 1008, 0, 505,
|
|
0, 1042, 0, 599, 599, 599, 0, 0, 7, 8,
|
|
9, 10, 0, 11, 12, 13, 501, 0, 0, 0,
|
|
0, 0, 929, 0, 0, 0, 0, 45, 0, 46,
|
|
47, 48, 1009, 0, 947, 948, 949, 589, 950, 951,
|
|
952, 0, 0, 0, 0, 0, 0, 1016, 0, 0,
|
|
505, 843, 0, 872, 55, 179, 57, 872, 1032, 309,
|
|
1033, 0, 501, 0, 0, 0, 0, 844, 0, 0,
|
|
58, 59, 0, 0, 0, 22, 0, 0, 0, 0,
|
|
0, 0, 0, 423, 63, 0, 1048, 1049, 0, 65,
|
|
0, 27, 982, 983, 984, 985, 505, 0, 872, 0,
|
|
845, 0, 872, 846, 0, 0, 0, 32, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 872, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 872, 0, 0, 0, 0,
|
|
847, 0, 0, 0, 848, 849, 0, 0, 850, 423,
|
|
851, 0, 0, 0, 852, 0, 0, 0, 0, 0,
|
|
0, 826, 599, 828, 0, 0, 599, 0, 599, 0,
|
|
599, 599, 599, 0, 0, 0, 0, 837, 689, 690,
|
|
691, 692, 693, 694, 695, 696, 697, 698, 0, 699,
|
|
700, 701, 702, 703, 704, 705, 706, 707, 708, 709,
|
|
0, 0, 0, 0, 0, 0, 710, 711, 712, 713,
|
|
714, 715, 716, 717, 718, 719, 720, 721, 722, 723,
|
|
724, 725, 726, 0, 0, 727, 728, 729, 730, 731,
|
|
732, 733, 734, 735, 736, 737, 738, 739, 740, 0,
|
|
741, 0, 742, 743, 744, 745, 746, 747, 748, 749,
|
|
750, 751, 752, 753, 0, 0, 0, 754, 0, 755,
|
|
0, 756, 757, 758, 759, 760, 761, 762, 763, 764,
|
|
765, 766, 767, 768, 769, 0, 770, 771, 772, 773,
|
|
774, 775, 776, 0, 777, 778, 779, 780, 781, 0,
|
|
0, 0, 782, 783, 784, 785, 786, 787, 788, 789,
|
|
790, 791, 792, 793, 794, 795, 796, 797, 798, 799,
|
|
800, 801, 802, 976, 803, 804, 689, 690, 691, 692,
|
|
693, 694, 695, 696, 697, 698, 0, 699, 700, 701,
|
|
702, 703, 704, 705, 706, 707, 708, 709, 0, 0,
|
|
0, 0, 0, 0, 710, 711, 712, 713, 714, 715,
|
|
716, 717, 718, 719, 720, 721, 722, 723, 724, 725,
|
|
726, 0, 0, 727, 728, 729, 730, 731, 732, 733,
|
|
734, 735, 736, 737, 738, 739, 740, 0, 741, 0,
|
|
742, 743, 744, 745, 746, 747, 748, 749, 750, 751,
|
|
752, 753, 0, 0, 0, 754, 0, 755, 0, 756,
|
|
757, 758, 759, 760, 761, 762, 763, 764, 765, 766,
|
|
767, 768, 769, 0, 770, 771, 772, 773, 774, 775,
|
|
776, 0, 777, 778, 779, 780, 781, 0, 0, 0,
|
|
782, 783, 784, 785, 786, 787, 788, 789, 790, 791,
|
|
792, 793, 794, 795, 796, 797, 798, 799, 800, 801,
|
|
802, 0, 803, 804, 477, 478, 479, 10, 0, 11,
|
|
480, 481, 44, 0, 0, 482, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 148, 149, 150, 151, 152, 153,
|
|
154, 155, 0, 0, 0, 0, 0, 483, 0, 0,
|
|
156, 45, 0, 46, 47, 48, 49, 484, 0, 51,
|
|
0, 0, 52, 485, 0, 0, 53, 0, 0, 0,
|
|
0, 486, 54, 0, 0, 0, 0, 0, 55, 56,
|
|
57, 0, 0, 0, 0, 487, 0, 488, 0, 0,
|
|
0, 0, 489, 0, 58, 59, 490, 0, 0, 491,
|
|
60, 0, 0, 492, 0, 0, 61, 62, 63, 0,
|
|
0, 64, 0, 65, 477, 478, 479, 10, 0, 11,
|
|
480, 481, 44, 0, 0, 873, 493, 0, 0, 0,
|
|
494, 1035, 0, 0, 495, 0, 496, 0, 0, 0,
|
|
497, 157, 158, 159, 160, 161, 162, 163, 164, 165,
|
|
166, 167, 0, 168, 169, 170, 0, 483, 0, 365,
|
|
0, 45, 0, 46, 47, 48, 49, 484, 0, 51,
|
|
0, 0, 52, 485, 0, 0, 53, 0, 0, 0,
|
|
0, 486, 54, 0, 0, 0, 0, 0, 55, 56,
|
|
57, 0, 0, 0, 0, 487, 0, 488, 0, 0,
|
|
0, 0, 489, 0, 58, 59, 490, 0, 0, 491,
|
|
60, 0, 0, 492, 0, 0, 61, 62, 63, 0,
|
|
0, 64, 0, 65, 7, 8, 9, 10, 0, 11,
|
|
12, 13, 131, 0, 0, 0, 493, 0, 0, 0,
|
|
494, 0, 0, 0, 495, 0, 496, 0, 0, 0,
|
|
497, 0, 0, 0, 148, 149, 150, 151, 152, 153,
|
|
154, 155, 0, 0, 0, 0, 0, 15, 0, 0,
|
|
156, 132, 0, 133, 134, 135, 49, 50, 0, 51,
|
|
0, 0, 136, 21, 0, 0, 53, 0, 0, 0,
|
|
0, 22, 137, 0, 0, 0, 0, 0, 138, 139,
|
|
57, 0, 0, 0, 0, 26, 0, 27, 0, 0,
|
|
0, 0, 0, 0, 140, 141, 30, 0, 0, 31,
|
|
60, 0, 0, 32, 0, 0, 61, 62, 142, 0,
|
|
0, 64, 0, 143, 477, 478, 479, 10, 0, 11,
|
|
480, 481, 44, 0, 0, 0, 35, 0, 0, 0,
|
|
36, 37, 0, 0, 38, 0, 39, 0, 0, 0,
|
|
40, 157, 158, 159, 160, 161, 162, 163, 164, 165,
|
|
166, 167, 0, 168, 169, 170, 0, 483, 0, 969,
|
|
0, 45, 0, 46, 47, 48, 49, 484, 0, 51,
|
|
0, 0, 52, 485, 0, 0, 53, 0, 0, 0,
|
|
0, 486, 54, 0, 0, 0, 0, 0, 55, 56,
|
|
57, 0, 0, 0, 0, 487, 0, 488, 0, 0,
|
|
0, 0, 489, 0, 58, 59, 490, 0, 0, 491,
|
|
60, 0, 0, 492, 0, 0, 61, 62, 63, 0,
|
|
0, 64, 0, 65, 7, 8, 9, 10, 0, 11,
|
|
12, 13, 14, 0, 0, 0, 493, 0, 0, 0,
|
|
494, 0, 0, 0, 495, 0, 496, 0, 0, 0,
|
|
497, 934, 935, 936, 937, 938, 939, 0, 0, 0,
|
|
45, 0, 46, 47, 48, 940, 0, 15, 0, 0,
|
|
0, 16, 0, 17, 18, 19, 0, 0, 0, 0,
|
|
0, 0, 20, 21, 0, 0, 0, 55, 179, 57,
|
|
0, 22, 23, 0, 0, 0, 0, 0, 24, 25,
|
|
0, 0, 0, 58, 59, 26, 0, 27, 0, 0,
|
|
0, 0, 0, 0, 28, 29, 30, 63, 0, 31,
|
|
0, 0, 65, 32, 7, 8, 9, 10, 33, 11,
|
|
12, 13, 14, 34, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 121, 35, 0, 0, 0,
|
|
36, 37, 0, 0, 38, 0, 39, 0, 290, 944,
|
|
40, 0, 945, 946, 947, 948, 949, 15, 950, 951,
|
|
952, 16, 0, 17, 18, 19, 0, 0, 0, 0,
|
|
0, 0, 20, 21, 0, 0, 0, 0, 0, -2,
|
|
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, 79, 424, 0,
|
|
0, 0, 0, 0, 0, 0, 35, 0, 0, 0,
|
|
36, 37, 0, 80, 38, 0, 39, 0, 81, 0,
|
|
40, 82, 0, 0, 0, 0, 0, 15, 0, 83,
|
|
84, 16, 85, 17, 18, 19, 0, 86, 87, 88,
|
|
0, 0, 20, 21, 0, 0, 89, 0, 0, 90,
|
|
0, 22, 23, 91, 0, 0, 0, 92, 24, 25,
|
|
0, 0, 0, 0, 0, 26, 0, 27, 93, 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, 79, 529, 0,
|
|
0, 0, 0, 0, 0, 0, 35, 0, 0, 0,
|
|
36, 37, 0, 80, 38, 0, 39, 0, 81, 0,
|
|
40, 82, 0, 0, 0, 0, 0, 15, 0, 83,
|
|
84, 16, 85, 17, 18, 19, 0, 86, 87, 88,
|
|
0, 0, 20, 21, 0, 0, 89, 0, 0, 90,
|
|
0, 22, 23, 91, 0, 0, 0, 92, 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, 897, 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, 912, 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, 1007, 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, 152, 153, 154, 155, 0, 0,
|
|
0, 22, 23, 0, 0, 0, 156, 0, 24, 25,
|
|
0, 0, 0, 0, 0, 26, 0, 27, 150, 151,
|
|
152, 153, 154, 155, 28, 29, 30, 0, 0, 31,
|
|
0, 0, 156, 32, 936, 937, 938, 939, 33, 0,
|
|
0, 0, 0, 34, 0, 0, 940, 148, 149, 150,
|
|
151, 152, 153, 154, 155, 0, 35, 0, 0, 0,
|
|
36, 37, 538, 156, 38, 0, 39, 0, 0, 0,
|
|
40, 539, 540, 541, 542, 543, 544, 545, 546, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 547, 0, 548,
|
|
549, 550, 551, 552, 553, 554, 555, 556, 557, 558,
|
|
559, 161, 162, 163, 164, 165, 166, 167, 0, 168,
|
|
169, 170, 0, 0, 0, 0, 560, 0, 0, 0,
|
|
0, 0, 0, 0, 158, 159, 160, 161, 162, 163,
|
|
164, 165, 166, 167, 0, 168, 169, 170, 0, 0,
|
|
561, 0, 0, 945, 946, 947, 948, 949, 0, 950,
|
|
951, 952, 0, 0, 157, 158, 159, 160, 161, 162,
|
|
163, 164, 165, 166, 167, 0, 168, 169, 170, 217,
|
|
218, 0, 1031, 0, 562, 0, 0, 563, 0, 564,
|
|
565, 566, 567, 568, 569, 570, 571, 572, 573, 574,
|
|
0, 575, 576, 0, 0, 577, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 219, 45,
|
|
0, 46, 47, 48, 49, 220, 0, 221, 0, 0,
|
|
52, 0, 0, 0, 53, 222, 223, 224, 0, 0,
|
|
54, 0, 0, 0, 0, 225, 55, 56, 57, 217,
|
|
218, 226, 0, 0, 0, 0, 227, 0, 0, 0,
|
|
228, 0, 58, 59, 0, 229, 0, 0, 60, 0,
|
|
0, 0, 0, 0, 230, 62, 63, 0, 231, 64,
|
|
232, 65, 0, 0, 0, 0, 233, 0, 219, 45,
|
|
0, 46, 47, 48, 49, 220, 0, 221, 0, 0,
|
|
52, 0, 234, 0, 53, 222, 223, 224, 0, 0,
|
|
54, 0, 0, 217, 218, 225, 55, 56, 57, 0,
|
|
0, 226, 0, 0, 0, 0, 227, 0, 0, 0,
|
|
228, 0, 58, 59, 0, 229, 0, 0, 60, 0,
|
|
0, 0, 0, 0, 230, 62, 63, 0, 231, 64,
|
|
232, 65, 219, 45, 0, 46, 47, 48, 49, 320,
|
|
0, 221, 0, 0, 52, 0, 0, 0, 53, 222,
|
|
223, 224, 234, 0, 54, 0, 0, 0, 0, 225,
|
|
55, 56, 57, 0, 0, 226, 0, 0, 0, 0,
|
|
227, 0, 0, 0, 228, 0, 58, 59, 0, 229,
|
|
0, 0, 60, 0, 0, 0, 0, 0, 230, 62,
|
|
63, 0, 231, 64, 232, 65, 148, 149, 150, 151,
|
|
152, 153, 154, 155, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 156, 0, 0, 0, 234, 148, 149, 150,
|
|
151, 152, 153, 154, 155, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 156, 148, 149, 150, 151, 152, 153,
|
|
154, 155, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
156, 0, 148, 149, 150, 151, 152, 153, 154, 155,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 156, 0,
|
|
148, 149, 150, 151, 152, 153, 154, 155, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 156, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 384,
|
|
0, 0, 0, 157, 158, 159, 160, 161, 162, 163,
|
|
164, 165, 166, 167, 0, 168, 169, 170, 385, 0,
|
|
0, 0, 0, 0, 157, 158, 159, 160, 161, 162,
|
|
163, 164, 165, 166, 167, 0, 168, 169, 170, 366,
|
|
0, 157, 158, 159, 160, 161, 162, 163, 164, 165,
|
|
166, 167, 0, 168, 169, 170, 511, 363, 0, 157,
|
|
158, 159, 160, 161, 162, 163, 164, 165, 166, 167,
|
|
0, 168, 169, 170, 534, 0, 0, 157, 158, 159,
|
|
160, 161, 162, 163, 164, 165, 166, 167, 0, 168,
|
|
169, 170, 148, 149, 150, 151, 152, 153, 154, 155,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 156, 148,
|
|
149, 150, 151, 152, 153, 154, 155, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 156, 148, 149, 150, 151,
|
|
152, 153, 154, 155, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 156, 655, 656, 657, 658, 659, 660, 661,
|
|
662, 0, 0, 0, 0, 0, 0, 0, 0, 663,
|
|
932, 933, 934, 935, 936, 937, 938, 939, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 940, 149, 150, 151,
|
|
152, 153, 154, 155, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 156, 0, 0, 825, 0, 0, 0, 157,
|
|
158, 159, 160, 161, 162, 163, 164, 165, 166, 167,
|
|
0, 168, 169, 170, 967, 0, 157, 158, 159, 160,
|
|
161, 162, 163, 164, 165, 166, 167, 0, 168, 169,
|
|
170, 0, 0, 157, 158, 159, 160, 161, 162, 163,
|
|
164, 165, 166, 167, 0, 168, 169, 170, 0, 0,
|
|
664, 665, 666, 667, 668, 669, 670, 671, 672, 673,
|
|
674, 0, 675, 676, 677, 0, 0, 941, 942, 943,
|
|
944, 0, 0, 945, 946, 947, 948, 949, 0, 950,
|
|
951, 952, 0, 0, 158, 159, 160, 161, 162, 163,
|
|
164, 165, 166, 167, 0, 168, 169, 170, 933, 934,
|
|
935, 936, 937, 938, 939, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 940, 150, 151, 152, 153, 154, 155,
|
|
0, 0, 0, 45, 0, 46, 47, 48, 156, 150,
|
|
151, 152, 153, 154, 155, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 156, 934, 935, 936, 937, 938, 939,
|
|
55, 179, 57, 0, 0, 0, 0, 0, 940, 150,
|
|
151, 152, 153, 154, 155, 0, 58, 59, 0, 0,
|
|
0, 0, 0, 156, 934, 935, 936, 937, 938, 939,
|
|
63, 0, 0, 0, 0, 65, 0, 0, 940, 934,
|
|
935, 936, 937, 938, 939, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 940, 0, 942, 943, 944, 122, 0,
|
|
945, 946, 947, 948, 949, 0, 950, 951, 952, 0,
|
|
0, 159, 160, 161, 162, 163, 164, 165, 166, 167,
|
|
0, 168, 169, 170, 0, 0, 0, 160, 161, 162,
|
|
163, 164, 165, 166, 167, 0, 168, 169, 170, 0,
|
|
942, 943, 944, 0, 0, 945, 946, 947, 948, 949,
|
|
0, 950, 951, 952, 0, 0, 0, 0, 161, 162,
|
|
163, 164, 165, 166, 167, 0, 168, 169, 170, 386,
|
|
387, 943, 944, 0, 0, 945, 946, 947, 948, 949,
|
|
0, 950, 951, 952, 0, 0, 0, 0, 0, 0,
|
|
945, 946, 947, 948, 949, 0, 950, 951, 952, 45,
|
|
0, 46, 47, 48, 0, 0, 386, 387, 0, 45,
|
|
0, 46, 47, 48, 388, 389, 0, 0, 0, 0,
|
|
52, 0, 0, 0, 0, 0, 55, 179, 57, 0,
|
|
54, 0, 0, 0, 0, 0, 55, 56, 57, 0,
|
|
0, 0, 58, 59, 0, 0, 45, 0, 46, 47,
|
|
48, 0, 58, 59, 0, 44, 63, 52, 0, 0,
|
|
0, 65, 0, 0, 390, 0, 63, 54, 0, 64,
|
|
0, 65, 0, 55, 56, 57, 0, 0, 0, 0,
|
|
0, 0, 0, 45, 125, 46, 47, 48, 0, 58,
|
|
59, 0, 0, 0, 45, 0, 46, 47, 48, 49,
|
|
50, 0, 51, 63, 295, 52, 64, 0, 65, 53,
|
|
55, 179, 57, 0, 0, 54, 44, 0, 0, 0,
|
|
0, 55, 56, 57, 0, 0, 58, 59, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 58, 59, 0,
|
|
63, 0, 0, 60, 45, 65, 46, 47, 48, 61,
|
|
62, 63, 0, 44, 64, 45, 65, 46, 47, 48,
|
|
49, 329, 0, 51, 0, 0, 52, 0, 0, 0,
|
|
53, 55, 179, 57, 0, 0, 54, 0, 0, 0,
|
|
0, 0, 55, 56, 57, 0, 0, 58, 59, 0,
|
|
0, 0, 45, 0, 46, 47, 48, 49, 58, 59,
|
|
51, 63, 0, 52, 60, 0, 65, 53, 0, 0,
|
|
61, 62, 63, 54, 44, 64, 0, 65, 0, 55,
|
|
56, 57, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 638, 0, 58, 59, 0, 0, 0,
|
|
0, 60, 0, 0, 0, 0, 0, 61, 62, 63,
|
|
0, 115, 64, 45, 65, 46, 47, 48, 49, 0,
|
|
0, 51, 0, 0, 52, 0, 0, 0, 53, 0,
|
|
0, 0, 0, 0, 54, 0, 0, 0, 0, 0,
|
|
55, 56, 57, 0, 0, 0, 0, 0, 0, 0,
|
|
45, 0, 46, 47, 48, 49, 58, 59, 0, 0,
|
|
0, 52, 60, 0, 0, 53, 0, 0, 61, 62,
|
|
63, 54, 0, 64, 0, 65, 79, 55, 56, 57,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 80, 58, 59, 0, 0, 81, 0, 60,
|
|
82, 0, 0, 0, 0, 116, 62, 63, 83, 84,
|
|
64, 85, 65, 79, 0, 0, 86, 87, 88, 0,
|
|
0, 0, 0, 0, 0, 89, 0, 0, 90, 80,
|
|
0, 0, 91, 0, 81, 0, 92, 82, 0, 0,
|
|
0, 0, 0, 0, 0, 83, 84, 93, 85, 0,
|
|
0, 0, 0, 86, 87, 88, 79, 0, 0, 0,
|
|
0, 0, 89, 0, 0, 90, 382, 0, 0, 91,
|
|
0, 0, 80, 92, 0, 0, 0, 81, 0, 0,
|
|
82, 0, 0, 0, 93, 0, 0, 0, 83, 84,
|
|
0, 85, 0, 79, 0, 0, 86, 87, 88, 0,
|
|
0, 0, 0, 446, 0, 89, 0, 0, 90, 80,
|
|
0, 0, 91, 0, 81, 0, 92, 82, 0, 0,
|
|
0, 0, 0, 0, 0, 83, 84, 93, 85, 0,
|
|
0, 0, 0, 86, 87, 88, 79, 0, 0, 0,
|
|
0, 0, 89, 0, 0, 90, 521, 0, 0, 91,
|
|
0, 0, 80, 92, 0, 0, 0, 81, 0, 0,
|
|
82, 0, 0, 0, 93, 0, 0, 0, 83, 84,
|
|
45, 85, 46, 47, 48, 0, 86, 87, 88, 0,
|
|
0, 175, 0, 612, 0, 89, 0, 0, 90, 0,
|
|
0, 176, 91, 0, 0, 0, 92, 55, 177, 57,
|
|
0, 45, 0, 46, 47, 48, 0, 93, 0, 0,
|
|
0, 0, 175, 58, 59, 0, 0, 0, 0, 0,
|
|
0, 0, 176, 0, 0, 0, 834, 63, 55, 177,
|
|
57, 0, 65, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 58, 59, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 114, 0, 0, 63, 0,
|
|
0, 0, 0, 65
|
|
};
|
|
|
|
#define yypact_value_is_default(Yystate) \
|
|
(!!((Yystate) == (-594)))
|
|
|
|
#define yytable_value_is_error(Yytable_value) \
|
|
YYID (0)
|
|
|
|
static const yytype_int16 yycheck[] =
|
|
{
|
|
1, 529, 2, 384, 5, 39, 90, 91, 90, 403,
|
|
310, 26, 489, 12, 204, 50, 10, 11, 0, 400,
|
|
26, 476, 403, 97, 10, 11, 106, 107, 108, 109,
|
|
110, 118, 112, 113, 114, 35, 36, 37, 38, 628,
|
|
40, 121, 122, 121, 135, 125, 126, 118, 442, 118,
|
|
137, 6, 6, 8, 8, 510, 135, 321, 136, 118,
|
|
520, 442, 88, 89, 90, 66, 137, 97, 137, 26,
|
|
448, 449, 399, 10, 11, 402, 117, 404, 137, 120,
|
|
14, 117, 97, 109, 120, 459, 10, 11, 681, 90,
|
|
91, 97, 466, 467, 468, 469, 470, 471, 173, 118,
|
|
427, 428, 135, 430, 431, 432, 433, 481, 489, 10,
|
|
11, 135, 187, 188, 189, 190, 191, 192, 137, 97,
|
|
137, 311, 10, 11, 135, 118, 586, 501, 522, 118,
|
|
39, 130, 121, 135, 120, 169, 210, 437, 135, 213,
|
|
97, 522, 332, 137, 137, 31, 83, 474, 148, 149,
|
|
150, 151, 152, 153, 154, 155, 156, 157, 158, 159,
|
|
160, 161, 162, 163, 164, 165, 166, 167, 168, 629,
|
|
170, 435, 173, 126, 174, 31, 653, 257, 633, 506,
|
|
210, 636, 137, 213, 118, 220, 187, 188, 189, 190,
|
|
191, 192, 227, 383, 195, 210, 105, 135, 213, 654,
|
|
201, 118, 111, 204, 210, 135, 118, 213, 535, 209,
|
|
135, 118, 476, 135, 123, 124, 117, 135, 596, 121,
|
|
137, 296, 600, 118, 602, 137, 604, 605, 606, 117,
|
|
137, 824, 210, 406, 136, 213, 118, 410, 411, 412,
|
|
413, 414, 137, 10, 11, 118, 510, 621, 134, 135,
|
|
136, 118, 85, 210, 135, 137, 213, 126, 847, 848,
|
|
849, 850, 452, 852, 137, 639, 266, 267, 101, 6,
|
|
137, 8, 653, 135, 120, 10, 11, 12, 134, 135,
|
|
136, 16, 120, 136, 137, 320, 135, 136, 55, 135,
|
|
136, 137, 686, 135, 329, 296, 135, 135, 136, 137,
|
|
117, 118, 303, 303, 117, 686, 119, 120, 121, 117,
|
|
311, 312, 135, 319, 907, 316, 135, 136, 319, 120,
|
|
120, 56, 135, 136, 135, 10, 11, 327, 120, 330,
|
|
120, 332, 99, 120, 135, 136, 137, 337, 105, 106,
|
|
513, 135, 109, 932, 933, 934, 935, 936, 937, 938,
|
|
939, 940, 941, 942, 943, 944, 945, 946, 947, 948,
|
|
949, 950, 126, 363, 135, 400, 4, 130, 403, 633,
|
|
55, 136, 10, 11, 375, 120, 111, 461, 10, 461,
|
|
126, 974, 383, 389, 912, 978, 114, 115, 116, 6,
|
|
125, 135, 136, 394, 117, 130, 135, 986, 119, 400,
|
|
135, 135, 403, 135, 438, 406, 440, 442, 863, 410,
|
|
411, 412, 413, 414, 99, 137, 417, 136, 137, 420,
|
|
105, 106, 118, 424, 424, 819, 1019, 88, 89, 90,
|
|
1023, 10, 11, 12, 435, 137, 137, 16, 819, 12,
|
|
1029, 442, 137, 16, 1037, 445, 137, 137, 528, 484,
|
|
137, 452, 127, 1046, 489, 456, 462, 137, 459, 137,
|
|
461, 137, 496, 137, 137, 466, 467, 468, 469, 470,
|
|
471, 472, 487, 137, 127, 476, 138, 56, 137, 137,
|
|
481, 487, 117, 56, 119, 120, 121, 522, 862, 120,
|
|
447, 448, 449, 493, 494, 495, 118, 497, 118, 135,
|
|
501, 135, 117, 958, 137, 135, 135, 117, 87, 510,
|
|
904, 118, 513, 10, 11, 140, 10, 118, 127, 520,
|
|
520, 522, 130, 904, 130, 138, 920, 130, 529, 529,
|
|
487, 858, 111, 135, 118, 10, 11, 61, 111, 920,
|
|
121, 121, 100, 130, 135, 135, 125, 136, 72, 73,
|
|
126, 130, 125, 138, 126, 137, 135, 130, 55, 137,
|
|
10, 85, 135, 118, 118, 140, 137, 137, 92, 10,
|
|
119, 136, 118, 135, 137, 56, 903, 971, 4, 135,
|
|
55, 118, 135, 140, 584, 586, 586, 496, 138, 137,
|
|
971, 138, 116, 137, 118, 119, 135, 31, 56, 140,
|
|
58, 59, 99, 638, 137, 63, 607, 137, 105, 106,
|
|
126, 126, 109, 135, 615, 140, 118, 137, 653, 127,
|
|
621, 127, 135, 1017, 99, 137, 137, 954, 629, 629,
|
|
105, 106, 633, 137, 109, 636, 1017, 119, 639, 596,
|
|
119, 137, 676, 600, 135, 602, 135, 604, 605, 606,
|
|
651, 686, 31, 654, 137, 655, 656, 657, 658, 659,
|
|
660, 661, 662, 663, 664, 665, 666, 667, 668, 669,
|
|
670, 671, 672, 673, 674, 675, 135, 677, 138, 203,
|
|
681, 139, 140, 141, 142, 686, 10, 11, 12, 21,
|
|
22, 215, 16, 137, 128, 129, 130, 131, 132, 31,
|
|
134, 135, 136, 127, 137, 614, 230, 616, 137, 137,
|
|
234, 127, 137, 135, 135, 527, 240, 241, 137, 177,
|
|
137, 179, 821, 201, 903, 858, 954, 213, 637, 462,
|
|
461, 640, 56, 389, 643, 644, 21, 22, 196, 847,
|
|
848, 849, 850, 615, 852, 213, 31, 487, 453, 128,
|
|
129, 130, 131, 132, 526, 134, 135, 136, -1, 782,
|
|
-1, -1, -1, -1, -1, -1, -1, 15, 16, 17,
|
|
18, 19, 20, 21, 22, -1, -1, -1, -1, -1,
|
|
304, 782, -1, 31, 819, 865, -1, 111, -1, -1,
|
|
31, -1, -1, -1, -1, -1, 128, 129, 130, 131,
|
|
132, 125, 134, 135, 136, -1, 130, -1, -1, -1,
|
|
-1, 811, 336, -1, -1, -1, -1, 851, 819, -1,
|
|
-1, -1, -1, 824, 932, 933, 934, 935, 936, 937,
|
|
938, 939, 940, 941, 942, 943, 944, 945, 946, 947,
|
|
948, 949, 950, 128, 129, 130, 131, 132, -1, 134,
|
|
135, 136, 310, -1, -1, 31, -1, 381, -1, 859,
|
|
-1, 862, 863, -1, 388, -1, 390, -1, 868, 904,
|
|
-1, -1, 120, -1, 122, 123, 124, 125, 986, -1,
|
|
128, 129, 130, 131, 132, 920, 134, 135, 136, 130,
|
|
131, 132, -1, 134, 135, 136, -1, -1, -1, -1,
|
|
-1, -1, -1, 904, -1, -1, 907, -1, 11, -1,
|
|
-1, 912, 912, -1, -1, -1, -1, 951, -1, 920,
|
|
-1, 1029, -1, 447, 448, 449, -1, -1, 3, 4,
|
|
5, 6, -1, 8, 9, 10, 971, -1, -1, -1,
|
|
-1, -1, 851, -1, -1, -1, -1, 50, -1, 52,
|
|
53, 54, 952, -1, 130, 131, 132, 958, 134, 135,
|
|
136, -1, -1, -1, -1, -1, -1, 967, -1, -1,
|
|
971, 46, -1, 974, 77, 78, 79, 978, 1012, 437,
|
|
1014, -1, 1017, -1, -1, -1, -1, 62, -1, -1,
|
|
93, 94, -1, -1, -1, 70, -1, -1, -1, -1,
|
|
-1, -1, -1, 527, 107, -1, 1040, 1041, -1, 112,
|
|
-1, 86, 921, 922, 923, 924, 1017, -1, 1019, -1,
|
|
95, -1, 1023, 98, -1, -1, -1, 102, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, 1037, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, 1046, -1, -1, -1, -1,
|
|
125, -1, -1, -1, 129, 130, -1, -1, 133, 583,
|
|
135, -1, -1, -1, 139, -1, -1, -1, -1, -1,
|
|
-1, 595, 596, 597, -1, -1, 600, -1, 602, -1,
|
|
604, 605, 606, -1, -1, -1, -1, 611, 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, -1, 84,
|
|
-1, 86, 87, 88, 89, 90, 91, 92, 93, 94,
|
|
95, 96, 97, 98, 99, -1, 101, 102, 103, 104,
|
|
105, 106, 107, -1, 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, 138, 139, 140, 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, -1, 84, -1, 86,
|
|
87, 88, 89, 90, 91, 92, 93, 94, 95, 96,
|
|
97, 98, 99, -1, 101, 102, 103, 104, 105, 106,
|
|
107, -1, 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, -1, -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, 1015, -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, -1, 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, -1, -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, -1, -1, -1,
|
|
139, 122, 123, 124, 125, 126, 127, 128, 129, 130,
|
|
131, 132, -1, 134, 135, 136, -1, 46, -1, 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, 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, 0,
|
|
-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, 48, 117, -1,
|
|
-1, -1, -1, -1, -1, -1, 125, -1, -1, -1,
|
|
129, 130, -1, 64, 133, -1, 135, -1, 69, -1,
|
|
139, 72, -1, -1, -1, -1, -1, 46, -1, 80,
|
|
81, 50, 83, 52, 53, 54, -1, 88, 89, 90,
|
|
-1, -1, 61, 62, -1, -1, 97, -1, -1, 100,
|
|
-1, 70, 71, 104, -1, -1, -1, 108, 77, 78,
|
|
-1, -1, -1, -1, -1, 84, -1, 86, 119, -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, 48, 117, -1,
|
|
-1, -1, -1, -1, -1, -1, 125, -1, -1, -1,
|
|
129, 130, -1, 64, 133, -1, 135, -1, 69, -1,
|
|
139, 72, -1, -1, -1, -1, -1, 46, -1, 80,
|
|
81, 50, 83, 52, 53, 54, -1, 88, 89, 90,
|
|
-1, -1, 61, 62, -1, -1, 97, -1, -1, 100,
|
|
-1, 70, 71, 104, -1, -1, -1, 108, 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, 19, 20, 21, 22, -1, -1,
|
|
-1, 70, 71, -1, -1, -1, 31, -1, 77, 78,
|
|
-1, -1, -1, -1, -1, 84, -1, 86, 17, 18,
|
|
19, 20, 21, 22, 93, 94, 95, -1, -1, 98,
|
|
-1, -1, 31, 102, 19, 20, 21, 22, 107, -1,
|
|
-1, -1, -1, 112, -1, -1, 31, 15, 16, 17,
|
|
18, 19, 20, 21, 22, -1, 125, -1, -1, -1,
|
|
129, 130, 6, 31, 133, -1, 135, -1, -1, -1,
|
|
139, 15, 16, 17, 18, 19, 20, 21, 22, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, 31, -1, 33,
|
|
34, 35, 36, 37, 38, 39, 40, 41, 42, 43,
|
|
44, 126, 127, 128, 129, 130, 131, 132, -1, 134,
|
|
135, 136, -1, -1, -1, -1, 60, -1, -1, -1,
|
|
-1, -1, -1, -1, 123, 124, 125, 126, 127, 128,
|
|
129, 130, 131, 132, -1, 134, 135, 136, -1, -1,
|
|
84, -1, -1, 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, 10,
|
|
11, -1, 140, -1, 118, -1, -1, 121, -1, 123,
|
|
124, 125, 126, 127, 128, 129, 130, 131, 132, 133,
|
|
-1, 135, 136, -1, -1, 139, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, 49, 50,
|
|
-1, 52, 53, 54, 55, 56, -1, 58, -1, -1,
|
|
61, -1, -1, -1, 65, 66, 67, 68, -1, -1,
|
|
71, -1, -1, -1, -1, 76, 77, 78, 79, 10,
|
|
11, 82, -1, -1, -1, -1, 87, -1, -1, -1,
|
|
91, -1, 93, 94, -1, 96, -1, -1, 99, -1,
|
|
-1, -1, -1, -1, 105, 106, 107, -1, 109, 110,
|
|
111, 112, -1, -1, -1, -1, 117, -1, 49, 50,
|
|
-1, 52, 53, 54, 55, 56, -1, 58, -1, -1,
|
|
61, -1, 133, -1, 65, 66, 67, 68, -1, -1,
|
|
71, -1, -1, 10, 11, 76, 77, 78, 79, -1,
|
|
-1, 82, -1, -1, -1, -1, 87, -1, -1, -1,
|
|
91, -1, 93, 94, -1, 96, -1, -1, 99, -1,
|
|
-1, -1, -1, -1, 105, 106, 107, -1, 109, 110,
|
|
111, 112, 49, 50, -1, 52, 53, 54, 55, 56,
|
|
-1, 58, -1, -1, 61, -1, -1, -1, 65, 66,
|
|
67, 68, 133, -1, 71, -1, -1, -1, -1, 76,
|
|
77, 78, 79, -1, -1, 82, -1, -1, -1, -1,
|
|
87, -1, -1, -1, 91, -1, 93, 94, -1, 96,
|
|
-1, -1, 99, -1, -1, -1, -1, -1, 105, 106,
|
|
107, -1, 109, 110, 111, 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, 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, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, 118,
|
|
-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,
|
|
-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, 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, 118, -1, -1, -1, 122,
|
|
123, 124, 125, 126, 127, 128, 129, 130, 131, 132,
|
|
-1, 134, 135, 136, 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, -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, -1,
|
|
-1, -1, -1, 31, 17, 18, 19, 20, 21, 22,
|
|
-1, -1, -1, 50, -1, 52, 53, 54, 31, 17,
|
|
18, 19, 20, 21, 22, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, 31, 17, 18, 19, 20, 21, 22,
|
|
77, 78, 79, -1, -1, -1, -1, -1, 31, 17,
|
|
18, 19, 20, 21, 22, -1, 93, 94, -1, -1,
|
|
-1, -1, -1, 31, 17, 18, 19, 20, 21, 22,
|
|
107, -1, -1, -1, -1, 112, -1, -1, 31, 17,
|
|
18, 19, 20, 21, 22, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, 31, -1, 123, 124, 125, 135, -1,
|
|
128, 129, 130, 131, 132, -1, 134, 135, 136, -1,
|
|
-1, 124, 125, 126, 127, 128, 129, 130, 131, 132,
|
|
-1, 134, 135, 136, -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, -1, -1, 126, 127,
|
|
128, 129, 130, 131, 132, -1, 134, 135, 136, 10,
|
|
11, 124, 125, -1, -1, 128, 129, 130, 131, 132,
|
|
-1, 134, 135, 136, -1, -1, -1, -1, -1, -1,
|
|
128, 129, 130, 131, 132, -1, 134, 135, 136, 50,
|
|
-1, 52, 53, 54, -1, -1, 10, 11, -1, 50,
|
|
-1, 52, 53, 54, 55, 56, -1, -1, -1, -1,
|
|
61, -1, -1, -1, -1, -1, 77, 78, 79, -1,
|
|
71, -1, -1, -1, -1, -1, 77, 78, 79, -1,
|
|
-1, -1, 93, 94, -1, -1, 50, -1, 52, 53,
|
|
54, -1, 93, 94, -1, 11, 107, 61, -1, -1,
|
|
-1, 112, -1, -1, 105, -1, 107, 71, -1, 110,
|
|
-1, 112, -1, 77, 78, 79, -1, -1, -1, -1,
|
|
-1, -1, -1, 50, 135, 52, 53, 54, -1, 93,
|
|
94, -1, -1, -1, 50, -1, 52, 53, 54, 55,
|
|
56, -1, 58, 107, 71, 61, 110, -1, 112, 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, 50, 112, 52, 53, 54, 105,
|
|
106, 107, -1, 11, 110, 50, 112, 52, 53, 54,
|
|
55, 56, -1, 58, -1, -1, 61, -1, -1, -1,
|
|
65, 77, 78, 79, -1, -1, 71, -1, -1, -1,
|
|
-1, -1, 77, 78, 79, -1, -1, 93, 94, -1,
|
|
-1, -1, 50, -1, 52, 53, 54, 55, 93, 94,
|
|
58, 107, -1, 61, 99, -1, 112, 65, -1, -1,
|
|
105, 106, 107, 71, 11, 110, -1, 112, -1, 77,
|
|
78, 79, -1, -1, -1, -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,
|
|
-1, 11, 110, 50, 112, 52, 53, 54, 55, -1,
|
|
-1, 58, -1, -1, 61, -1, -1, -1, 65, -1,
|
|
-1, -1, -1, -1, 71, -1, -1, -1, -1, -1,
|
|
77, 78, 79, -1, -1, -1, -1, -1, -1, -1,
|
|
50, -1, 52, 53, 54, 55, 93, 94, -1, -1,
|
|
-1, 61, 99, -1, -1, 65, -1, -1, 105, 106,
|
|
107, 71, -1, 110, -1, 112, 48, 77, 78, 79,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, 64, 93, 94, -1, -1, 69, -1, 99,
|
|
72, -1, -1, -1, -1, 105, 106, 107, 80, 81,
|
|
110, 83, 112, 48, -1, -1, 88, 89, 90, -1,
|
|
-1, -1, -1, -1, -1, 97, -1, -1, 100, 64,
|
|
-1, -1, 104, -1, 69, -1, 108, 72, -1, -1,
|
|
-1, -1, -1, -1, -1, 80, 81, 119, 83, -1,
|
|
-1, -1, -1, 88, 89, 90, 48, -1, -1, -1,
|
|
-1, -1, 97, -1, -1, 100, 138, -1, -1, 104,
|
|
-1, -1, 64, 108, -1, -1, -1, 69, -1, -1,
|
|
72, -1, -1, -1, 119, -1, -1, -1, 80, 81,
|
|
-1, 83, -1, 48, -1, -1, 88, 89, 90, -1,
|
|
-1, -1, -1, 138, -1, 97, -1, -1, 100, 64,
|
|
-1, -1, 104, -1, 69, -1, 108, 72, -1, -1,
|
|
-1, -1, -1, -1, -1, 80, 81, 119, 83, -1,
|
|
-1, -1, -1, 88, 89, 90, 48, -1, -1, -1,
|
|
-1, -1, 97, -1, -1, 100, 138, -1, -1, 104,
|
|
-1, -1, 64, 108, -1, -1, -1, 69, -1, -1,
|
|
72, -1, -1, -1, 119, -1, -1, -1, 80, 81,
|
|
50, 83, 52, 53, 54, -1, 88, 89, 90, -1,
|
|
-1, 61, -1, 138, -1, 97, -1, -1, 100, -1,
|
|
-1, 71, 104, -1, -1, -1, 108, 77, 78, 79,
|
|
-1, 50, -1, 52, 53, 54, -1, 119, -1, -1,
|
|
-1, -1, 61, 93, 94, -1, -1, -1, -1, -1,
|
|
-1, -1, 71, -1, -1, -1, 138, 107, 77, 78,
|
|
79, -1, 112, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, 93, 94, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, 135, -1, -1, 107, -1,
|
|
-1, -1, -1, 112
|
|
};
|
|
|
|
/* 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, 233, 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, 226, 227, 232, 11, 50, 52, 53, 54, 55,
|
|
56, 58, 61, 65, 71, 77, 78, 79, 93, 94,
|
|
99, 105, 106, 107, 110, 112, 193, 196, 197, 199,
|
|
204, 205, 209, 210, 214, 215, 216, 217, 0, 48,
|
|
64, 69, 72, 80, 81, 83, 88, 89, 90, 97,
|
|
100, 104, 108, 119, 146, 148, 149, 151, 152, 153,
|
|
174, 211, 213, 233, 135, 135, 135, 135, 135, 135,
|
|
135, 126, 135, 135, 135, 11, 105, 195, 209, 210,
|
|
214, 135, 135, 135, 126, 135, 135, 226, 226, 226,
|
|
226, 11, 50, 52, 53, 54, 61, 71, 77, 78,
|
|
93, 94, 107, 112, 196, 224, 226, 226, 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, 215, 78,
|
|
215, 215, 10, 11, 231, 215, 12, 16, 56, 111,
|
|
125, 130, 135, 192, 233, 117, 120, 231, 117, 231,
|
|
120, 150, 135, 135, 117, 231, 120, 120, 120, 135,
|
|
151, 152, 175, 151, 158, 83, 231, 10, 11, 49,
|
|
56, 58, 66, 67, 68, 76, 82, 87, 91, 96,
|
|
105, 109, 111, 117, 133, 163, 194, 197, 199, 204,
|
|
209, 210, 214, 223, 224, 233, 196, 223, 223, 223,
|
|
223, 223, 196, 223, 223, 223, 231, 135, 231, 231,
|
|
223, 223, 196, 196, 223, 223, 137, 118, 137, 226,
|
|
226, 226, 226, 226, 226, 226, 226, 226, 226, 226,
|
|
226, 226, 226, 226, 226, 226, 226, 226, 226, 226,
|
|
137, 224, 226, 192, 226, 71, 130, 192, 192, 192,
|
|
192, 192, 192, 136, 207, 208, 233, 11, 206, 215,
|
|
120, 198, 200, 148, 10, 231, 143, 117, 226, 126,
|
|
56, 163, 194, 231, 135, 135, 193, 135, 6, 56,
|
|
193, 231, 147, 231, 117, 119, 120, 121, 186, 119,
|
|
154, 231, 231, 137, 137, 137, 137, 137, 137, 137,
|
|
127, 137, 137, 137, 223, 137, 137, 137, 127, 137,
|
|
137, 226, 226, 120, 137, 140, 137, 192, 137, 222,
|
|
226, 233, 231, 138, 206, 143, 120, 201, 202, 233,
|
|
118, 118, 138, 212, 118, 137, 10, 11, 55, 56,
|
|
105, 176, 177, 178, 179, 214, 233, 193, 186, 159,
|
|
164, 12, 130, 165, 155, 226, 193, 10, 11, 12,
|
|
16, 56, 111, 125, 130, 190, 233, 143, 135, 218,
|
|
219, 144, 145, 231, 117, 226, 12, 16, 56, 87,
|
|
111, 125, 130, 135, 156, 180, 231, 120, 135, 137,
|
|
135, 226, 135, 140, 118, 121, 138, 88, 89, 90,
|
|
109, 203, 117, 118, 10, 231, 143, 232, 231, 179,
|
|
231, 127, 118, 10, 11, 12, 16, 56, 111, 125,
|
|
130, 135, 191, 233, 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, 228, 229, 232, 233, 130, 180, 182, 157,
|
|
180, 137, 190, 130, 190, 190, 190, 190, 190, 135,
|
|
136, 138, 166, 138, 220, 233, 117, 118, 135, 117,
|
|
187, 188, 226, 233, 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, 233,
|
|
206, 224, 224, 182, 226, 105, 109, 210, 230, 231,
|
|
109, 230, 109, 230, 88, 89, 90, 143, 203, 118,
|
|
137, 118, 138, 137, 121, 191, 121, 152, 173, 174,
|
|
178, 130, 191, 191, 191, 191, 191, 191, 121, 136,
|
|
184, 233, 162, 180, 185, 186, 191, 135, 91, 193,
|
|
126, 195, 189, 135, 126, 226, 226, 226, 196, 224,
|
|
226, 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, 222, 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, 84, 86, 87, 88, 89,
|
|
90, 91, 92, 93, 94, 95, 96, 97, 98, 99,
|
|
101, 102, 103, 104, 105, 106, 107, 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, 221, 218, 145, 223, 187,
|
|
138, 118, 180, 10, 137, 140, 137, 4, 226, 181,
|
|
222, 118, 137, 137, 137, 118, 231, 230, 231, 230,
|
|
230, 230, 230, 230, 138, 10, 119, 231, 196, 184,
|
|
196, 191, 137, 46, 62, 95, 98, 125, 129, 130,
|
|
133, 135, 139, 225, 227, 222, 185, 186, 118, 121,
|
|
185, 196, 193, 191, 196, 135, 196, 196, 137, 137,
|
|
56, 171, 233, 14, 189, 185, 226, 226, 226, 226,
|
|
226, 226, 226, 226, 226, 226, 226, 226, 226, 226,
|
|
226, 226, 226, 226, 226, 226, 226, 137, 224, 226,
|
|
137, 135, 171, 118, 170, 182, 140, 137, 220, 138,
|
|
137, 138, 117, 226, 182, 140, 156, 171, 137, 137,
|
|
135, 135, 126, 135, 126, 225, 225, 225, 225, 196,
|
|
224, 225, 15, 16, 17, 18, 19, 20, 21, 22,
|
|
31, 122, 123, 124, 125, 128, 129, 130, 131, 132,
|
|
134, 135, 136, 140, 118, 161, 226, 137, 191, 185,
|
|
127, 223, 137, 127, 226, 85, 101, 120, 137, 140,
|
|
135, 167, 157, 182, 137, 171, 138, 187, 137, 119,
|
|
119, 182, 196, 196, 196, 196, 137, 137, 225, 225,
|
|
225, 225, 225, 225, 225, 225, 225, 225, 225, 225,
|
|
225, 225, 225, 225, 225, 225, 225, 137, 224, 226,
|
|
162, 185, 135, 137, 135, 135, 226, 168, 182, 137,
|
|
171, 138, 171, 137, 137, 127, 137, 127, 225, 120,
|
|
137, 140, 224, 224, 137, 231, 182, 137, 171, 171,
|
|
135, 135, 225, 137, 137, 137, 137, 171, 224, 224,
|
|
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 406 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
current_expr = (yyvsp[(2) - (2)].u.expr);
|
|
}
|
|
break;
|
|
|
|
case 4:
|
|
/* Line 1792 of yacc.c */
|
|
#line 410 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
current_type = (yyvsp[(2) - (2)].u.type);
|
|
}
|
|
break;
|
|
|
|
case 10:
|
|
/* Line 1792 of yacc.c */
|
|
#line 428 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
delete (yyvsp[(3) - (4)].u.expr);
|
|
}
|
|
break;
|
|
|
|
case 11:
|
|
/* Line 1792 of yacc.c */
|
|
#line 440 "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 445 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
pop_storage_class();
|
|
}
|
|
break;
|
|
|
|
case 20:
|
|
/* Line 1792 of yacc.c */
|
|
#line 459 "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 472 "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 481 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
current_scope->set_current_vis(V_published);
|
|
}
|
|
break;
|
|
|
|
case 23:
|
|
/* Line 1792 of yacc.c */
|
|
#line 485 "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 493 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
current_scope->set_current_vis(V_protected);
|
|
}
|
|
break;
|
|
|
|
case 25:
|
|
/* Line 1792 of yacc.c */
|
|
#line 497 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
current_scope->set_current_vis(V_private);
|
|
}
|
|
break;
|
|
|
|
case 26:
|
|
/* Line 1792 of yacc.c */
|
|
#line 501 "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[(1) - (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 512 "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[(1) - (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[(1) - (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 533 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
CPPMakeSeq *make_seq = new CPPMakeSeq((yyvsp[(3) - (9)].u.identifier)->get_simple_name(), (yyvsp[(5) - (9)].u.identifier)->get_simple_name(), (yyvsp[(7) - (9)].u.identifier)->get_simple_name(), (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 538 "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 549 "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 562 "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 568 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
delete current_scope;
|
|
pop_scope();
|
|
}
|
|
break;
|
|
|
|
case 33:
|
|
/* Line 1792 of yacc.c */
|
|
#line 577 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.integer) = 0;
|
|
}
|
|
break;
|
|
|
|
case 34:
|
|
/* Line 1792 of yacc.c */
|
|
#line 581 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.integer) = (yyvsp[(1) - (2)].u.integer) | (int)CPPInstance::SC_extern;
|
|
}
|
|
break;
|
|
|
|
case 35:
|
|
/* Line 1792 of yacc.c */
|
|
#line 585 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.integer) = (yyvsp[(1) - (3)].u.integer) | (int)CPPInstance::SC_extern;
|
|
if ((yyvsp[(3) - (3)].str) == "C") {
|
|
(yyval.u.integer) |= (int)CPPInstance::SC_c_binding;
|
|
} else if ((yyvsp[(3) - (3)].str) == "C++") {
|
|
(yyval.u.integer) &= ~(int)CPPInstance::SC_c_binding;
|
|
} else {
|
|
yywarning("Ignoring unknown linkage type \"" + (yyvsp[(3) - (3)].str) + "\"", (yylsp[(3) - (3)]));
|
|
}
|
|
}
|
|
break;
|
|
|
|
case 36:
|
|
/* Line 1792 of yacc.c */
|
|
#line 596 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.integer) = (yyvsp[(1) - (2)].u.integer) | (int)CPPInstance::SC_static;
|
|
}
|
|
break;
|
|
|
|
case 37:
|
|
/* Line 1792 of yacc.c */
|
|
#line 600 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.integer) = (yyvsp[(1) - (2)].u.integer) | (int)CPPInstance::SC_inline;
|
|
}
|
|
break;
|
|
|
|
case 38:
|
|
/* Line 1792 of yacc.c */
|
|
#line 604 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.integer) = (yyvsp[(1) - (2)].u.integer) | (int)CPPInstance::SC_virtual;
|
|
}
|
|
break;
|
|
|
|
case 39:
|
|
/* Line 1792 of yacc.c */
|
|
#line 608 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.integer) = (yyvsp[(1) - (2)].u.integer) | (int)CPPInstance::SC_explicit;
|
|
}
|
|
break;
|
|
|
|
case 40:
|
|
/* Line 1792 of yacc.c */
|
|
#line 612 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.integer) = (yyvsp[(1) - (2)].u.integer) | (int)CPPInstance::SC_volatile;
|
|
}
|
|
break;
|
|
|
|
case 41:
|
|
/* Line 1792 of yacc.c */
|
|
#line 616 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.integer) = (yyvsp[(1) - (2)].u.integer) | (int)CPPInstance::SC_mutable;
|
|
}
|
|
break;
|
|
|
|
case 42:
|
|
/* Line 1792 of yacc.c */
|
|
#line 620 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.integer) = (yyvsp[(1) - (2)].u.integer) | (int)CPPInstance::SC_register;
|
|
}
|
|
break;
|
|
|
|
case 43:
|
|
/* Line 1792 of yacc.c */
|
|
#line 624 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.integer) = (yyvsp[(1) - (2)].u.integer) | (int)CPPInstance::SC_blocking;
|
|
}
|
|
break;
|
|
|
|
case 44:
|
|
/* Line 1792 of yacc.c */
|
|
#line 628 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.integer) = (yyvsp[(1) - (2)].u.integer) | (int)CPPInstance::SC_extension;
|
|
}
|
|
break;
|
|
|
|
case 45:
|
|
/* Line 1792 of yacc.c */
|
|
#line 635 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
/* multiple_var_declaration adds itself to the scope. */
|
|
}
|
|
break;
|
|
|
|
case 46:
|
|
/* Line 1792 of yacc.c */
|
|
#line 639 "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 47:
|
|
/* Line 1792 of yacc.c */
|
|
#line 648 "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 48:
|
|
/* Line 1792 of yacc.c */
|
|
#line 659 "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 49:
|
|
/* Line 1792 of yacc.c */
|
|
#line 670 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
pop_storage_class();
|
|
}
|
|
break;
|
|
|
|
case 50:
|
|
/* Line 1792 of yacc.c */
|
|
#line 674 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
// We don't need to push/pop type, because we can't nest
|
|
// multiple_var_declarations.
|
|
current_type = (yyvsp[(3) - (3)].u.type);
|
|
push_storage_class((yyvsp[(1) - (3)].u.integer));
|
|
}
|
|
break;
|
|
|
|
case 51:
|
|
/* Line 1792 of yacc.c */
|
|
#line 681 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
pop_storage_class();
|
|
}
|
|
break;
|
|
|
|
case 52:
|
|
/* Line 1792 of yacc.c */
|
|
#line 692 "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 53:
|
|
/* Line 1792 of yacc.c */
|
|
#line 700 "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 54:
|
|
/* Line 1792 of yacc.c */
|
|
#line 711 "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 55:
|
|
/* Line 1792 of yacc.c */
|
|
#line 720 "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 56:
|
|
/* Line 1792 of yacc.c */
|
|
#line 733 "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 57:
|
|
/* Line 1792 of yacc.c */
|
|
#line 744 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
pop_storage_class();
|
|
}
|
|
break;
|
|
|
|
case 58:
|
|
/* Line 1792 of yacc.c */
|
|
#line 748 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
// We don't need to push/pop type, because we can't nest
|
|
// multiple_var_declarations.
|
|
current_type = (yyvsp[(3) - (3)].u.type);
|
|
push_storage_class((yyvsp[(1) - (3)].u.integer));
|
|
}
|
|
break;
|
|
|
|
case 59:
|
|
/* Line 1792 of yacc.c */
|
|
#line 755 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
pop_storage_class();
|
|
}
|
|
break;
|
|
|
|
case 60:
|
|
/* Line 1792 of yacc.c */
|
|
#line 759 "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 61:
|
|
/* Line 1792 of yacc.c */
|
|
#line 774 "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 62:
|
|
/* Line 1792 of yacc.c */
|
|
#line 780 "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 63:
|
|
/* Line 1792 of yacc.c */
|
|
#line 789 "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 64:
|
|
/* Line 1792 of yacc.c */
|
|
#line 796 "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 65:
|
|
/* Line 1792 of yacc.c */
|
|
#line 808 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
push_scope((yyvsp[(1) - (2)].u.identifier)->get_scope(current_scope, global_scope));
|
|
}
|
|
break;
|
|
|
|
case 66:
|
|
/* Line 1792 of yacc.c */
|
|
#line 812 "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 67:
|
|
/* Line 1792 of yacc.c */
|
|
#line 830 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
push_scope((yyvsp[(1) - (2)].u.identifier)->get_scope(current_scope, global_scope));
|
|
}
|
|
break;
|
|
|
|
case 68:
|
|
/* Line 1792 of yacc.c */
|
|
#line 834 "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 69:
|
|
/* Line 1792 of yacc.c */
|
|
#line 854 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
push_scope((yyvsp[(2) - (3)].u.identifier)->get_scope(current_scope, global_scope));
|
|
}
|
|
break;
|
|
|
|
case 70:
|
|
/* Line 1792 of yacc.c */
|
|
#line 858 "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 71:
|
|
/* Line 1792 of yacc.c */
|
|
#line 884 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
push_scope((yyvsp[(4) - (6)].u.inst_ident)->get_scope(current_scope, global_scope));
|
|
}
|
|
break;
|
|
|
|
case 72:
|
|
/* Line 1792 of yacc.c */
|
|
#line 888 "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 73:
|
|
/* Line 1792 of yacc.c */
|
|
#line 902 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
push_scope((yyvsp[(5) - (7)].u.inst_ident)->get_scope(current_scope, global_scope));
|
|
}
|
|
break;
|
|
|
|
case 74:
|
|
/* Line 1792 of yacc.c */
|
|
#line 906 "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 75:
|
|
/* Line 1792 of yacc.c */
|
|
#line 922 "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 76:
|
|
/* Line 1792 of yacc.c */
|
|
#line 928 "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 77:
|
|
/* Line 1792 of yacc.c */
|
|
#line 953 "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 78:
|
|
/* Line 1792 of yacc.c */
|
|
#line 959 "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 79:
|
|
/* Line 1792 of yacc.c */
|
|
#line 979 "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 80:
|
|
/* Line 1792 of yacc.c */
|
|
#line 992 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.integer) = 0;
|
|
}
|
|
break;
|
|
|
|
case 81:
|
|
/* Line 1792 of yacc.c */
|
|
#line 996 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.integer) = (int)CPPFunctionType::F_const_method;
|
|
}
|
|
break;
|
|
|
|
case 82:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1000 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.integer) = (int)CPPFunctionType::F_noexcept;
|
|
}
|
|
break;
|
|
|
|
case 83:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1004 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.integer) = (yyvsp[(1) - (4)].u.integer);
|
|
}
|
|
break;
|
|
|
|
case 84:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1008 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.integer) = (yyvsp[(1) - (5)].u.integer);
|
|
}
|
|
break;
|
|
|
|
case 85:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1015 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "!";
|
|
}
|
|
break;
|
|
|
|
case 86:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1019 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "~";
|
|
}
|
|
break;
|
|
|
|
case 87:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1023 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "*";
|
|
}
|
|
break;
|
|
|
|
case 88:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1027 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "/";
|
|
}
|
|
break;
|
|
|
|
case 89:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1031 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "%";
|
|
}
|
|
break;
|
|
|
|
case 90:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1035 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "+";
|
|
}
|
|
break;
|
|
|
|
case 91:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1039 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "-";
|
|
}
|
|
break;
|
|
|
|
case 92:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1043 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "|";
|
|
}
|
|
break;
|
|
|
|
case 93:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1047 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "&";
|
|
}
|
|
break;
|
|
|
|
case 94:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1051 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "^";
|
|
}
|
|
break;
|
|
|
|
case 95:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1055 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "||";
|
|
}
|
|
break;
|
|
|
|
case 96:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1059 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "&&";
|
|
}
|
|
break;
|
|
|
|
case 97:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1063 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "==";
|
|
}
|
|
break;
|
|
|
|
case 98:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1067 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "!=";
|
|
}
|
|
break;
|
|
|
|
case 99:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1071 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "<=";
|
|
}
|
|
break;
|
|
|
|
case 100:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1075 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = ">=";
|
|
}
|
|
break;
|
|
|
|
case 101:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1079 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "<";
|
|
}
|
|
break;
|
|
|
|
case 102:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1083 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = ">";
|
|
}
|
|
break;
|
|
|
|
case 103:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1087 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "<<";
|
|
}
|
|
break;
|
|
|
|
case 104:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1091 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = ">>";
|
|
}
|
|
break;
|
|
|
|
case 105:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1095 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "=";
|
|
}
|
|
break;
|
|
|
|
case 106:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1099 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = ",";
|
|
}
|
|
break;
|
|
|
|
case 107:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1103 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "++";
|
|
}
|
|
break;
|
|
|
|
case 108:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1107 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "--";
|
|
}
|
|
break;
|
|
|
|
case 109:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1111 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "*=";
|
|
}
|
|
break;
|
|
|
|
case 110:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1115 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "/=";
|
|
}
|
|
break;
|
|
|
|
case 111:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1119 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "%=";
|
|
}
|
|
break;
|
|
|
|
case 112:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1123 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "+=";
|
|
}
|
|
break;
|
|
|
|
case 113:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1127 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "-=";
|
|
}
|
|
break;
|
|
|
|
case 114:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1131 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "|=";
|
|
}
|
|
break;
|
|
|
|
case 115:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1135 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "&=";
|
|
}
|
|
break;
|
|
|
|
case 116:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1139 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "^=";
|
|
}
|
|
break;
|
|
|
|
case 117:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1143 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "<<=";
|
|
}
|
|
break;
|
|
|
|
case 118:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1147 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = ">>=";
|
|
}
|
|
break;
|
|
|
|
case 119:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1151 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "->";
|
|
}
|
|
break;
|
|
|
|
case 120:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1155 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "[]";
|
|
}
|
|
break;
|
|
|
|
case 121:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1159 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "()";
|
|
}
|
|
break;
|
|
|
|
case 122:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1163 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "new";
|
|
}
|
|
break;
|
|
|
|
case 123:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1167 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.str) = "delete";
|
|
}
|
|
break;
|
|
|
|
case 126:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1179 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
push_scope(new CPPTemplateScope(current_scope));
|
|
}
|
|
break;
|
|
|
|
case 127:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1183 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
pop_scope();
|
|
}
|
|
break;
|
|
|
|
case 131:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1196 "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 132:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1202 "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 133:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1211 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.decl) = CPPType::new_type(new CPPClassTemplateParameter((yyvsp[(2) - (2)].u.identifier)));
|
|
}
|
|
break;
|
|
|
|
case 134:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1215 "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 135:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1219 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.decl) = CPPType::new_type(new CPPClassTemplateParameter((yyvsp[(2) - (2)].u.identifier)));
|
|
}
|
|
break;
|
|
|
|
case 136:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1223 "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 137:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1227 "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 138:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1233 "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 139:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1243 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.type) = CPPType::new_type((yyvsp[(1) - (1)].u.simple_type));
|
|
}
|
|
break;
|
|
|
|
case 140:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1247 "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 141:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1252 "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 142:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1264 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = new CPPInstanceIdentifier((yyvsp[(1) - (1)].u.identifier));
|
|
}
|
|
break;
|
|
|
|
case 143:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1268 "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 144:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1282 "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 145:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1297 "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 146:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1302 "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 147:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1307 "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 148:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1312 "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 149:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1317 "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 150:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1322 "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 151:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1327 "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 152:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1332 "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 153:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1337 "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 154:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1342 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
push_scope((yyvsp[(1) - (2)].u.inst_ident)->get_scope(current_scope, global_scope));
|
|
}
|
|
break;
|
|
|
|
case 155:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1346 "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 156:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1364 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.param_list) = new CPPParameterList;
|
|
}
|
|
break;
|
|
|
|
case 157:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1368 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.param_list) = new CPPParameterList;
|
|
(yyval.u.param_list)->_includes_ellipsis = true;
|
|
}
|
|
break;
|
|
|
|
case 158:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1373 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.param_list) = (yyvsp[(1) - (1)].u.param_list);
|
|
}
|
|
break;
|
|
|
|
case 159:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1377 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.param_list) = (yyvsp[(1) - (3)].u.param_list);
|
|
(yyval.u.param_list)->_includes_ellipsis = true;
|
|
}
|
|
break;
|
|
|
|
case 160:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1382 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.param_list) = (yyvsp[(1) - (2)].u.param_list);
|
|
(yyval.u.param_list)->_includes_ellipsis = true;
|
|
}
|
|
break;
|
|
|
|
case 161:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1390 "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 162:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1395 "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 163:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1403 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (CPPExpression *)NULL;
|
|
}
|
|
break;
|
|
|
|
case 164:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1407 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (yyvsp[(2) - (2)].u.expr);
|
|
}
|
|
break;
|
|
|
|
case 165:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1414 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (CPPExpression *)NULL;
|
|
}
|
|
break;
|
|
|
|
case 166:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1418 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (yyvsp[(2) - (2)].u.expr);
|
|
}
|
|
break;
|
|
|
|
case 167:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1425 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (CPPExpression *)NULL;
|
|
}
|
|
break;
|
|
|
|
case 168:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1429 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (CPPExpression *)NULL;
|
|
}
|
|
break;
|
|
|
|
case 169:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1433 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (CPPExpression *)NULL;
|
|
}
|
|
break;
|
|
|
|
case 170:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1437 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (yyvsp[(2) - (3)].u.expr);
|
|
}
|
|
break;
|
|
|
|
case 171:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1441 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (CPPExpression *)NULL;
|
|
}
|
|
break;
|
|
|
|
case 175:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1454 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
}
|
|
break;
|
|
|
|
case 179:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1463 "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 180:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1468 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
yywarning("Not a type: " + (yyvsp[(1) - (3)].u.identifier)->get_fully_scoped_name(), (yylsp[(1) - (3)]));
|
|
CPPType *type =
|
|
CPPType::new_type(new CPPSimpleType(CPPSimpleType::T_unknown));
|
|
(yyval.u.instance) = new CPPInstance(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 1476 "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 1482 "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 1488 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.instance) = (yyvsp[(2) - (2)].u.instance);
|
|
}
|
|
break;
|
|
|
|
case 184:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1492 "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 1502 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = new CPPInstanceIdentifier((CPPIdentifier *)NULL);
|
|
}
|
|
break;
|
|
|
|
case 186:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1506 "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 1510 "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 1514 "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 1519 "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 1524 "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 1529 "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 1534 "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 1539 "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 1544 "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 1552 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = new CPPInstanceIdentifier((CPPIdentifier *)NULL);
|
|
}
|
|
break;
|
|
|
|
case 196:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1556 "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 1560 "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 1564 "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 1569 "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 1574 "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 1579 "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 1584 "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 1589 "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 1594 "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 1599 "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 1605 "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 1613 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.inst_ident) = new CPPInstanceIdentifier((CPPIdentifier *)NULL);
|
|
}
|
|
break;
|
|
|
|
case 208:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1617 "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 1622 "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 1627 "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 1632 "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 1637 "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 1642 "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 1647 "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 1652 "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 1661 "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 1665 "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 1673 "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 1677 "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 1681 "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 1685 "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 1689 "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 1705 "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 1721 "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 1733 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.decl) = CPPType::new_type((yyvsp[(1) - (1)].u.simple_type));
|
|
}
|
|
break;
|
|
|
|
case 226:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1737 "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 227:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1745 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.decl) = CPPType::new_type(new CPPTBDType((yyvsp[(2) - (2)].u.identifier)));
|
|
}
|
|
break;
|
|
|
|
case 228:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1749 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.decl) = CPPType::new_type((yyvsp[(1) - (1)].u.struct_type));
|
|
}
|
|
break;
|
|
|
|
case 229:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1753 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.decl) = new CPPTypeDeclaration(CPPType::new_type((yyvsp[(1) - (1)].u.struct_type)));
|
|
}
|
|
break;
|
|
|
|
case 230:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1757 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.decl) = new CPPTypeDeclaration(CPPType::new_type((yyvsp[(1) - (1)].u.enum_type)));
|
|
}
|
|
break;
|
|
|
|
case 231:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1761 "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 232:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1777 "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 233:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1793 "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 234:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1811 "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 235:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1823 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.type) = CPPType::new_type((yyvsp[(1) - (1)].u.simple_type));
|
|
}
|
|
break;
|
|
|
|
case 236:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1827 "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 237:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1835 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.type) = CPPType::new_type(new CPPTBDType((yyvsp[(2) - (2)].u.identifier)));
|
|
}
|
|
break;
|
|
|
|
case 238:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1839 "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 239:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1855 "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 240:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1874 "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 241:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1880 "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 242:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1890 "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 243:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1904 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.struct_type) = current_struct;
|
|
current_struct->_incomplete = false;
|
|
pop_struct();
|
|
pop_scope();
|
|
}
|
|
break;
|
|
|
|
case 244:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1914 "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 245:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1934 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.struct_type) = current_struct;
|
|
current_struct->_incomplete = false;
|
|
pop_struct();
|
|
pop_scope();
|
|
}
|
|
break;
|
|
|
|
case 250:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1954 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
current_struct->append_derivation((yyvsp[(2) - (2)].u.type), V_public, false);
|
|
}
|
|
break;
|
|
|
|
case 251:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1958 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
current_struct->append_derivation((yyvsp[(2) - (2)].u.type), V_protected, false);
|
|
}
|
|
break;
|
|
|
|
case 252:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1962 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
current_struct->append_derivation((yyvsp[(2) - (2)].u.type), V_private, false);
|
|
}
|
|
break;
|
|
|
|
case 253:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1966 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
current_struct->append_derivation((yyvsp[(3) - (3)].u.type), V_public, true);
|
|
}
|
|
break;
|
|
|
|
case 254:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1970 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
current_struct->append_derivation((yyvsp[(3) - (3)].u.type), V_protected, true);
|
|
}
|
|
break;
|
|
|
|
case 255:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1974 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
current_struct->append_derivation((yyvsp[(3) - (3)].u.type), V_private, true);
|
|
}
|
|
break;
|
|
|
|
case 256:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1978 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
current_struct->append_derivation((yyvsp[(3) - (3)].u.type), V_public, true);
|
|
}
|
|
break;
|
|
|
|
case 257:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1982 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
current_struct->append_derivation((yyvsp[(3) - (3)].u.type), V_protected, true);
|
|
}
|
|
break;
|
|
|
|
case 258:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1986 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
current_struct->append_derivation((yyvsp[(3) - (3)].u.type), V_private, true);
|
|
}
|
|
break;
|
|
|
|
case 259:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1993 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.enum_type) = current_enum;
|
|
current_enum = NULL;
|
|
}
|
|
break;
|
|
|
|
case 260:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2001 "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 261:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2005 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
current_enum = new CPPEnumType((yyvsp[(2) - (2)].u.identifier), current_scope, (yylsp[(1) - (2)]).file);
|
|
}
|
|
break;
|
|
|
|
case 262:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2009 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
current_enum = new CPPEnumType(NULL, (yyvsp[(3) - (3)].u.type), current_scope, (yylsp[(1) - (3)]).file);
|
|
}
|
|
break;
|
|
|
|
case 263:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2013 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
current_enum = new CPPEnumType(NULL, current_scope, (yylsp[(1) - (1)]).file);
|
|
}
|
|
break;
|
|
|
|
case 264:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2020 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.type) = CPPType::new_type((yyvsp[(1) - (1)].u.simple_type));
|
|
}
|
|
break;
|
|
|
|
case 265:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2024 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.type) = (yyvsp[(1) - (1)].u.identifier)->find_type(current_scope, global_scope, false, current_lexer);
|
|
}
|
|
break;
|
|
|
|
case 267:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2032 "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 268:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2038 "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 270:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2047 "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 271:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2053 "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 272:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2062 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.extension_enum) = CPPExtensionType::T_enum;
|
|
}
|
|
break;
|
|
|
|
case 273:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2069 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.extension_enum) = CPPExtensionType::T_class;
|
|
}
|
|
break;
|
|
|
|
case 274:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2073 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.extension_enum) = CPPExtensionType::T_struct;
|
|
}
|
|
break;
|
|
|
|
case 275:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2077 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.extension_enum) = CPPExtensionType::T_union;
|
|
}
|
|
break;
|
|
|
|
case 276:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2084 "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 277:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2102 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
pop_scope();
|
|
}
|
|
break;
|
|
|
|
case 279:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2110 "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 280:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2116 "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 284:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2131 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_bool);
|
|
}
|
|
break;
|
|
|
|
case 285:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2135 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_char);
|
|
}
|
|
break;
|
|
|
|
case 286:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2139 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_wchar_t);
|
|
}
|
|
break;
|
|
|
|
case 287:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2143 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_char16_t);
|
|
}
|
|
break;
|
|
|
|
case 288:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2147 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_char32_t);
|
|
}
|
|
break;
|
|
|
|
case 289:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2151 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_int,
|
|
CPPSimpleType::F_short);
|
|
}
|
|
break;
|
|
|
|
case 290:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2156 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_int,
|
|
CPPSimpleType::F_long);
|
|
}
|
|
break;
|
|
|
|
case 291:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2161 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_int,
|
|
CPPSimpleType::F_longlong);
|
|
}
|
|
break;
|
|
|
|
case 292:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2166 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_int,
|
|
CPPSimpleType::F_unsigned);
|
|
}
|
|
break;
|
|
|
|
case 293:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2171 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_int,
|
|
CPPSimpleType::F_signed);
|
|
}
|
|
break;
|
|
|
|
case 294:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2176 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_int);
|
|
}
|
|
break;
|
|
|
|
case 295:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2180 "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 296:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2185 "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 297:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2194 "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 298:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2199 "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 299:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2207 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_float);
|
|
}
|
|
break;
|
|
|
|
case 300:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2211 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_float,
|
|
CPPSimpleType::F_long);
|
|
}
|
|
break;
|
|
|
|
case 301:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2216 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_double);
|
|
}
|
|
break;
|
|
|
|
case 302:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2220 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_float,
|
|
CPPSimpleType::F_longlong);
|
|
}
|
|
break;
|
|
|
|
case 303:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2225 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_double,
|
|
CPPSimpleType::F_long);
|
|
}
|
|
break;
|
|
|
|
case 304:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2233 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.simple_type) = new CPPSimpleType(CPPSimpleType::T_void);
|
|
}
|
|
break;
|
|
|
|
case 305:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2242 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
current_lexer->_resolve_identifiers = false;
|
|
}
|
|
break;
|
|
|
|
case 306:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2246 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
current_lexer->_resolve_identifiers = true;
|
|
}
|
|
break;
|
|
|
|
case 401:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2286 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
}
|
|
break;
|
|
|
|
case 425:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2295 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (CPPExpression *)NULL;
|
|
}
|
|
break;
|
|
|
|
case 426:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2299 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (yyvsp[(1) - (1)].u.expr);
|
|
}
|
|
break;
|
|
|
|
case 427:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2306 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (CPPExpression *)NULL;
|
|
}
|
|
break;
|
|
|
|
case 428:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2310 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (yyvsp[(1) - (1)].u.expr);
|
|
}
|
|
break;
|
|
|
|
case 429:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2317 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (yyvsp[(1) - (1)].u.expr);
|
|
}
|
|
break;
|
|
|
|
case 430:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2321 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(',', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 431:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2328 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (yyvsp[(1) - (1)].u.expr);
|
|
}
|
|
break;
|
|
|
|
case 432:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2332 "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 433:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2336 "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 434:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2340 "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 435:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2344 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(CPPExpression::sizeof_func((yyvsp[(3) - (4)].u.type)));
|
|
}
|
|
break;
|
|
|
|
case 436:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2348 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(CPPExpression::alignof_func((yyvsp[(3) - (4)].u.type)));
|
|
}
|
|
break;
|
|
|
|
case 437:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2352 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(UNARY_NOT, (yyvsp[(2) - (2)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 438:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2356 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(UNARY_NEGATE, (yyvsp[(2) - (2)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 439:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2360 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(UNARY_MINUS, (yyvsp[(2) - (2)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 440:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2364 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(UNARY_STAR, (yyvsp[(2) - (2)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 441:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2368 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(UNARY_REF, (yyvsp[(2) - (2)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 442:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2372 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('*', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 443:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2376 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('/', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 444:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2380 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('%', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 445:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2384 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('+', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 446:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2388 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('-', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 447:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2392 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('|', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 448:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2396 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('^', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 449:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2400 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('&', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 450:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2404 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(OROR, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 451:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2408 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(ANDAND, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 452:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2412 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(EQCOMPARE, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 453:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2416 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(NECOMPARE, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 454:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2420 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(LECOMPARE, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 455:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2424 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(GECOMPARE, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 456:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2428 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(LSHIFT, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 457:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2432 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(RSHIFT, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 458:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2436 "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 459:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2440 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('[', (yyvsp[(1) - (4)].u.expr), (yyvsp[(3) - (4)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 460:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2444 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('f', (yyvsp[(1) - (4)].u.expr), (yyvsp[(3) - (4)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 461:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2448 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('f', (yyvsp[(1) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 462:
|
|
/* 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 463:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2456 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(POINTSAT, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 464:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2460 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (yyvsp[(2) - (3)].u.expr);
|
|
}
|
|
break;
|
|
|
|
case 465:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2468 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (yyvsp[(1) - (1)].u.expr);
|
|
}
|
|
break;
|
|
|
|
case 466:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2472 "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 467:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2476 "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 468:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2480 "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 469:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2484 "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 470:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2494 "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 471:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2500 "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 472:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2506 "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 473:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2512 "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 474:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2518 "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 475:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2524 "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 476:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2530 "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 477:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2537 "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 478:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2544 "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 479:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2551 "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 480:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2558 "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 481:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2564 "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 482:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2570 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(CPPExpression::sizeof_func((yyvsp[(3) - (4)].u.type)));
|
|
}
|
|
break;
|
|
|
|
case 483:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2574 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(CPPExpression::alignof_func((yyvsp[(3) - (4)].u.type)));
|
|
}
|
|
break;
|
|
|
|
case 484:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2578 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(CPPExpression::new_op((yyvsp[(2) - (2)].u.type)));
|
|
}
|
|
break;
|
|
|
|
case 485:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2582 "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 486:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2586 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(UNARY_NOT, (yyvsp[(2) - (2)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 487:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2590 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(UNARY_NEGATE, (yyvsp[(2) - (2)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 488:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2594 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(UNARY_MINUS, (yyvsp[(2) - (2)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 489:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2598 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(UNARY_STAR, (yyvsp[(2) - (2)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 490:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2602 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(UNARY_REF, (yyvsp[(2) - (2)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 491:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2606 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('*', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 492:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2610 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('/', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 493:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2614 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('%', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 494:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2618 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('+', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 495:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2622 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('-', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 496:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2626 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('|', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 497:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2630 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('^', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 498:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2634 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('&', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 499:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2638 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(OROR, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 500:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2642 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(ANDAND, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 501:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2646 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(EQCOMPARE, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 502:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2650 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(NECOMPARE, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 503:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2654 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(LECOMPARE, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 504:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2658 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(GECOMPARE, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 505:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2662 "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 2666 "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 2670 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(LSHIFT, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 508:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2674 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(RSHIFT, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 509:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2678 "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 510:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2682 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('[', (yyvsp[(1) - (4)].u.expr), (yyvsp[(3) - (4)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 511:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2686 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('f', (yyvsp[(1) - (4)].u.expr), (yyvsp[(3) - (4)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 512:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2690 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('f', (yyvsp[(1) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 513:
|
|
/* 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 514:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2698 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(POINTSAT, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 515:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2702 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (yyvsp[(2) - (3)].u.expr);
|
|
}
|
|
break;
|
|
|
|
case 516:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2709 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression((yyvsp[(1) - (1)].u.integer));
|
|
}
|
|
break;
|
|
|
|
case 517:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2713 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(true);
|
|
}
|
|
break;
|
|
|
|
case 518:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2717 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(false);
|
|
}
|
|
break;
|
|
|
|
case 519:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2721 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression((yyvsp[(1) - (1)].u.integer));
|
|
}
|
|
break;
|
|
|
|
case 520:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2725 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression((yyvsp[(1) - (1)].u.real));
|
|
}
|
|
break;
|
|
|
|
case 521:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2729 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (yyvsp[(1) - (1)].u.expr);
|
|
}
|
|
break;
|
|
|
|
case 522:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2733 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (yyvsp[(1) - (1)].u.expr);
|
|
}
|
|
break;
|
|
|
|
case 523:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2737 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression((yyvsp[(1) - (1)].u.identifier), current_scope, global_scope, current_lexer);
|
|
}
|
|
break;
|
|
|
|
case 524:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2741 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(CPPExpression::get_nullptr());
|
|
}
|
|
break;
|
|
|
|
case 525:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2755 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (yyvsp[(1) - (1)].u.expr);
|
|
}
|
|
break;
|
|
|
|
case 526:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2759 "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 527:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2763 "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 528:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2767 "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 529:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2771 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(CPPExpression::sizeof_func((yyvsp[(3) - (4)].u.type)));
|
|
}
|
|
break;
|
|
|
|
case 530:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2775 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(CPPExpression::alignof_func((yyvsp[(3) - (4)].u.type)));
|
|
}
|
|
break;
|
|
|
|
case 531:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2779 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(CPPExpression::new_op((yyvsp[(2) - (2)].u.type)));
|
|
}
|
|
break;
|
|
|
|
case 532:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2783 "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 533:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2787 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(UNARY_NOT, (yyvsp[(2) - (2)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 534:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2791 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(UNARY_NEGATE, (yyvsp[(2) - (2)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 535:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2795 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(UNARY_MINUS, (yyvsp[(2) - (2)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 536:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2799 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(UNARY_REF, (yyvsp[(2) - (2)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 537:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2803 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('*', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 538:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2807 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('/', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 539:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2811 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('%', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 540:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2815 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('+', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 541:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2819 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('-', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 542:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2823 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('|', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 543:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2827 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('^', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 544:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2831 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('&', (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 545:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2835 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(OROR, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 546:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2839 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(ANDAND, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 547:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2843 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(EQCOMPARE, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 548:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2847 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(NECOMPARE, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 549:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2851 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(LECOMPARE, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 550:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2855 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(GECOMPARE, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 551:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2859 "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 2863 "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 2867 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(LSHIFT, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 554:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2871 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(RSHIFT, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 555:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2875 "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 556:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2879 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('[', (yyvsp[(1) - (4)].u.expr), (yyvsp[(3) - (4)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 557:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2883 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('f', (yyvsp[(1) - (4)].u.expr), (yyvsp[(3) - (4)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 558:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2887 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression('f', (yyvsp[(1) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 559:
|
|
/* 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 560:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2895 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(POINTSAT, (yyvsp[(1) - (3)].u.expr), (yyvsp[(3) - (3)].u.expr));
|
|
}
|
|
break;
|
|
|
|
case 561:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2899 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (yyvsp[(2) - (3)].u.expr);
|
|
}
|
|
break;
|
|
|
|
case 562:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2906 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression((yyvsp[(1) - (1)].u.integer));
|
|
}
|
|
break;
|
|
|
|
case 563:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2910 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(true);
|
|
}
|
|
break;
|
|
|
|
case 564:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2914 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(false);
|
|
}
|
|
break;
|
|
|
|
case 565:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2918 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression((yyvsp[(1) - (1)].u.integer));
|
|
}
|
|
break;
|
|
|
|
case 566:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2922 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression((yyvsp[(1) - (1)].u.real));
|
|
}
|
|
break;
|
|
|
|
case 567:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2926 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (yyvsp[(1) - (1)].u.expr);
|
|
}
|
|
break;
|
|
|
|
case 568:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2930 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (yyvsp[(1) - (1)].u.expr);
|
|
}
|
|
break;
|
|
|
|
case 569:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2934 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression(CPPExpression::get_nullptr());
|
|
}
|
|
break;
|
|
|
|
case 570:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2941 "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 571:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2949 "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 572:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2957 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.type) = CPPType::new_type(new CPPTBDType((yyvsp[(2) - (2)].u.identifier)));
|
|
}
|
|
break;
|
|
|
|
case 573:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2983 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.identifier) = (yyvsp[(1) - (1)].u.identifier);
|
|
}
|
|
break;
|
|
|
|
case 574:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2987 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.identifier) = (yyvsp[(1) - (1)].u.identifier);
|
|
}
|
|
break;
|
|
|
|
case 575:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2994 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = new CPPExpression((yyvsp[(1) - (1)].str));
|
|
}
|
|
break;
|
|
|
|
case 576:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2998 "dtool/src/cppparser/cppBison.yxx"
|
|
{
|
|
(yyval.u.expr) = (yyvsp[(1) - (1)].u.expr);
|
|
}
|
|
break;
|
|
|
|
case 577:
|
|
/* Line 1792 of yacc.c */
|
|
#line 3002 "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 578:
|
|
/* Line 1792 of yacc.c */
|
|
#line 3008 "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 7491 "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);
|
|
}
|
|
|
|
|