7790 lines
334 KiB
C++
7790 lines
334 KiB
C++
/* 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 1
|
|
|
|
/* Push parsers. */
|
|
#define YYPUSH 0
|
|
|
|
/* Pull parsers. */
|
|
#define YYPULL 1
|
|
|
|
|
|
|
|
|
|
/* Copy the first part of user declarations. */
|
|
/* Line 371 of yacc.c */
|
|
#line 41 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
|
|
|
|
/* Based on:
|
|
ANSI C Yacc grammar
|
|
|
|
In 1985, Jeff Lee published his Yacc grammar (which is accompanied by a
|
|
matching Lex specification) for the April 30, 1985 draft version of the
|
|
ANSI C standard. Tom Stockfisch reposted it to net.sources in 1987; that
|
|
original, as mentioned in the answer to question 17.25 of the comp.lang.c
|
|
FAQ, can be ftp'ed from ftp.uu.net, file usenet/net.sources/ansi.c.grammar.Z.
|
|
|
|
I intend to keep this version as close to the current C Standard grammar as
|
|
possible; please let me know if you discover discrepancies.
|
|
|
|
Jutta Degener, 1995
|
|
*/
|
|
|
|
#include "SymbolTable.h"
|
|
#include "ParseHelper.h"
|
|
#include "../Public/ShaderLang.h"
|
|
|
|
using namespace glslang;
|
|
|
|
|
|
/* Line 371 of yacc.c */
|
|
#line 93 "C:/Projects/glslang/glslang/MachineIndependent/glslang_tab.cpp"
|
|
|
|
# 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 "glslang_tab.cpp.h". */
|
|
#ifndef YY_YY_C_PROJECTS_GLSLANG_GLSLANG_MACHINEINDEPENDENT_GLSLANG_TAB_CPP_H_INCLUDED
|
|
# define YY_YY_C_PROJECTS_GLSLANG_GLSLANG_MACHINEINDEPENDENT_GLSLANG_TAB_CPP_H_INCLUDED
|
|
/* Enabling traces. */
|
|
#ifndef YYDEBUG
|
|
# define YYDEBUG 1
|
|
#endif
|
|
#if YYDEBUG
|
|
extern int yydebug;
|
|
#endif
|
|
|
|
/* Tokens. */
|
|
#ifndef YYTOKENTYPE
|
|
# define YYTOKENTYPE
|
|
/* Put the tokens into the symbol table, so that GDB and other debuggers
|
|
know about them. */
|
|
enum yytokentype {
|
|
ATTRIBUTE = 258,
|
|
VARYING = 259,
|
|
CONST = 260,
|
|
BOOL = 261,
|
|
FLOAT = 262,
|
|
DOUBLE = 263,
|
|
INT = 264,
|
|
UINT = 265,
|
|
BREAK = 266,
|
|
CONTINUE = 267,
|
|
DO = 268,
|
|
ELSE = 269,
|
|
FOR = 270,
|
|
IF = 271,
|
|
DISCARD = 272,
|
|
RETURN = 273,
|
|
SWITCH = 274,
|
|
CASE = 275,
|
|
DEFAULT = 276,
|
|
SUBROUTINE = 277,
|
|
BVEC2 = 278,
|
|
BVEC3 = 279,
|
|
BVEC4 = 280,
|
|
IVEC2 = 281,
|
|
IVEC3 = 282,
|
|
IVEC4 = 283,
|
|
UVEC2 = 284,
|
|
UVEC3 = 285,
|
|
UVEC4 = 286,
|
|
VEC2 = 287,
|
|
VEC3 = 288,
|
|
VEC4 = 289,
|
|
MAT2 = 290,
|
|
MAT3 = 291,
|
|
MAT4 = 292,
|
|
CENTROID = 293,
|
|
IN = 294,
|
|
OUT = 295,
|
|
INOUT = 296,
|
|
UNIFORM = 297,
|
|
PATCH = 298,
|
|
SAMPLE = 299,
|
|
BUFFER = 300,
|
|
SHARED = 301,
|
|
COHERENT = 302,
|
|
VOLATILE = 303,
|
|
RESTRICT = 304,
|
|
READONLY = 305,
|
|
WRITEONLY = 306,
|
|
DVEC2 = 307,
|
|
DVEC3 = 308,
|
|
DVEC4 = 309,
|
|
DMAT2 = 310,
|
|
DMAT3 = 311,
|
|
DMAT4 = 312,
|
|
NOPERSPECTIVE = 313,
|
|
FLAT = 314,
|
|
SMOOTH = 315,
|
|
LAYOUT = 316,
|
|
MAT2X2 = 317,
|
|
MAT2X3 = 318,
|
|
MAT2X4 = 319,
|
|
MAT3X2 = 320,
|
|
MAT3X3 = 321,
|
|
MAT3X4 = 322,
|
|
MAT4X2 = 323,
|
|
MAT4X3 = 324,
|
|
MAT4X4 = 325,
|
|
DMAT2X2 = 326,
|
|
DMAT2X3 = 327,
|
|
DMAT2X4 = 328,
|
|
DMAT3X2 = 329,
|
|
DMAT3X3 = 330,
|
|
DMAT3X4 = 331,
|
|
DMAT4X2 = 332,
|
|
DMAT4X3 = 333,
|
|
DMAT4X4 = 334,
|
|
ATOMIC_UINT = 335,
|
|
SAMPLER1D = 336,
|
|
SAMPLER2D = 337,
|
|
SAMPLER3D = 338,
|
|
SAMPLERCUBE = 339,
|
|
SAMPLER1DSHADOW = 340,
|
|
SAMPLER2DSHADOW = 341,
|
|
SAMPLERCUBESHADOW = 342,
|
|
SAMPLER1DARRAY = 343,
|
|
SAMPLER2DARRAY = 344,
|
|
SAMPLER1DARRAYSHADOW = 345,
|
|
SAMPLER2DARRAYSHADOW = 346,
|
|
ISAMPLER1D = 347,
|
|
ISAMPLER2D = 348,
|
|
ISAMPLER3D = 349,
|
|
ISAMPLERCUBE = 350,
|
|
ISAMPLER1DARRAY = 351,
|
|
ISAMPLER2DARRAY = 352,
|
|
USAMPLER1D = 353,
|
|
USAMPLER2D = 354,
|
|
USAMPLER3D = 355,
|
|
USAMPLERCUBE = 356,
|
|
USAMPLER1DARRAY = 357,
|
|
USAMPLER2DARRAY = 358,
|
|
SAMPLER2DRECT = 359,
|
|
SAMPLER2DRECTSHADOW = 360,
|
|
ISAMPLER2DRECT = 361,
|
|
USAMPLER2DRECT = 362,
|
|
SAMPLERBUFFER = 363,
|
|
ISAMPLERBUFFER = 364,
|
|
USAMPLERBUFFER = 365,
|
|
SAMPLERCUBEARRAY = 366,
|
|
SAMPLERCUBEARRAYSHADOW = 367,
|
|
ISAMPLERCUBEARRAY = 368,
|
|
USAMPLERCUBEARRAY = 369,
|
|
SAMPLER2DMS = 370,
|
|
ISAMPLER2DMS = 371,
|
|
USAMPLER2DMS = 372,
|
|
SAMPLER2DMSARRAY = 373,
|
|
ISAMPLER2DMSARRAY = 374,
|
|
USAMPLER2DMSARRAY = 375,
|
|
SAMPLEREXTERNALOES = 376,
|
|
SAMPLER = 377,
|
|
SAMPLERSHADOW = 378,
|
|
TEXTURE1D = 379,
|
|
TEXTURE2D = 380,
|
|
TEXTURE3D = 381,
|
|
TEXTURECUBE = 382,
|
|
TEXTURE1DARRAY = 383,
|
|
TEXTURE2DARRAY = 384,
|
|
ITEXTURE1D = 385,
|
|
ITEXTURE2D = 386,
|
|
ITEXTURE3D = 387,
|
|
ITEXTURECUBE = 388,
|
|
ITEXTURE1DARRAY = 389,
|
|
ITEXTURE2DARRAY = 390,
|
|
UTEXTURE1D = 391,
|
|
UTEXTURE2D = 392,
|
|
UTEXTURE3D = 393,
|
|
UTEXTURECUBE = 394,
|
|
UTEXTURE1DARRAY = 395,
|
|
UTEXTURE2DARRAY = 396,
|
|
TEXTURE2DRECT = 397,
|
|
ITEXTURE2DRECT = 398,
|
|
UTEXTURE2DRECT = 399,
|
|
TEXTUREBUFFER = 400,
|
|
ITEXTUREBUFFER = 401,
|
|
UTEXTUREBUFFER = 402,
|
|
TEXTURECUBEARRAY = 403,
|
|
ITEXTURECUBEARRAY = 404,
|
|
UTEXTURECUBEARRAY = 405,
|
|
TEXTURE2DMS = 406,
|
|
ITEXTURE2DMS = 407,
|
|
UTEXTURE2DMS = 408,
|
|
TEXTURE2DMSARRAY = 409,
|
|
ITEXTURE2DMSARRAY = 410,
|
|
UTEXTURE2DMSARRAY = 411,
|
|
SUBPASSINPUT = 412,
|
|
SUBPASSINPUTMS = 413,
|
|
ISUBPASSINPUT = 414,
|
|
ISUBPASSINPUTMS = 415,
|
|
USUBPASSINPUT = 416,
|
|
USUBPASSINPUTMS = 417,
|
|
IMAGE1D = 418,
|
|
IIMAGE1D = 419,
|
|
UIMAGE1D = 420,
|
|
IMAGE2D = 421,
|
|
IIMAGE2D = 422,
|
|
UIMAGE2D = 423,
|
|
IMAGE3D = 424,
|
|
IIMAGE3D = 425,
|
|
UIMAGE3D = 426,
|
|
IMAGE2DRECT = 427,
|
|
IIMAGE2DRECT = 428,
|
|
UIMAGE2DRECT = 429,
|
|
IMAGECUBE = 430,
|
|
IIMAGECUBE = 431,
|
|
UIMAGECUBE = 432,
|
|
IMAGEBUFFER = 433,
|
|
IIMAGEBUFFER = 434,
|
|
UIMAGEBUFFER = 435,
|
|
IMAGE1DARRAY = 436,
|
|
IIMAGE1DARRAY = 437,
|
|
UIMAGE1DARRAY = 438,
|
|
IMAGE2DARRAY = 439,
|
|
IIMAGE2DARRAY = 440,
|
|
UIMAGE2DARRAY = 441,
|
|
IMAGECUBEARRAY = 442,
|
|
IIMAGECUBEARRAY = 443,
|
|
UIMAGECUBEARRAY = 444,
|
|
IMAGE2DMS = 445,
|
|
IIMAGE2DMS = 446,
|
|
UIMAGE2DMS = 447,
|
|
IMAGE2DMSARRAY = 448,
|
|
IIMAGE2DMSARRAY = 449,
|
|
UIMAGE2DMSARRAY = 450,
|
|
STRUCT = 451,
|
|
VOID = 452,
|
|
WHILE = 453,
|
|
IDENTIFIER = 454,
|
|
TYPE_NAME = 455,
|
|
FLOATCONSTANT = 456,
|
|
DOUBLECONSTANT = 457,
|
|
INTCONSTANT = 458,
|
|
UINTCONSTANT = 459,
|
|
BOOLCONSTANT = 460,
|
|
LEFT_OP = 461,
|
|
RIGHT_OP = 462,
|
|
INC_OP = 463,
|
|
DEC_OP = 464,
|
|
LE_OP = 465,
|
|
GE_OP = 466,
|
|
EQ_OP = 467,
|
|
NE_OP = 468,
|
|
AND_OP = 469,
|
|
OR_OP = 470,
|
|
XOR_OP = 471,
|
|
MUL_ASSIGN = 472,
|
|
DIV_ASSIGN = 473,
|
|
ADD_ASSIGN = 474,
|
|
MOD_ASSIGN = 475,
|
|
LEFT_ASSIGN = 476,
|
|
RIGHT_ASSIGN = 477,
|
|
AND_ASSIGN = 478,
|
|
XOR_ASSIGN = 479,
|
|
OR_ASSIGN = 480,
|
|
SUB_ASSIGN = 481,
|
|
LEFT_PAREN = 482,
|
|
RIGHT_PAREN = 483,
|
|
LEFT_BRACKET = 484,
|
|
RIGHT_BRACKET = 485,
|
|
LEFT_BRACE = 486,
|
|
RIGHT_BRACE = 487,
|
|
DOT = 488,
|
|
COMMA = 489,
|
|
COLON = 490,
|
|
EQUAL = 491,
|
|
SEMICOLON = 492,
|
|
BANG = 493,
|
|
DASH = 494,
|
|
TILDE = 495,
|
|
PLUS = 496,
|
|
STAR = 497,
|
|
SLASH = 498,
|
|
PERCENT = 499,
|
|
LEFT_ANGLE = 500,
|
|
RIGHT_ANGLE = 501,
|
|
VERTICAL_BAR = 502,
|
|
CARET = 503,
|
|
AMPERSAND = 504,
|
|
QUESTION = 505,
|
|
INVARIANT = 506,
|
|
PRECISE = 507,
|
|
HIGH_PRECISION = 508,
|
|
MEDIUM_PRECISION = 509,
|
|
LOW_PRECISION = 510,
|
|
PRECISION = 511,
|
|
PACKED = 512,
|
|
RESOURCE = 513,
|
|
SUPERP = 514
|
|
};
|
|
#endif
|
|
|
|
|
|
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
|
typedef union YYSTYPE
|
|
{
|
|
/* Line 387 of yacc.c */
|
|
#line 66 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
|
|
struct {
|
|
glslang::TSourceLoc loc;
|
|
union {
|
|
glslang::TString *string;
|
|
int i;
|
|
unsigned int u;
|
|
bool b;
|
|
double d;
|
|
};
|
|
glslang::TSymbol* symbol;
|
|
} lex;
|
|
struct {
|
|
glslang::TSourceLoc loc;
|
|
glslang::TOperator op;
|
|
union {
|
|
TIntermNode* intermNode;
|
|
glslang::TIntermNodePair nodePair;
|
|
glslang::TIntermTyped* intermTypedNode;
|
|
};
|
|
union {
|
|
glslang::TPublicType type;
|
|
glslang::TFunction* function;
|
|
glslang::TParameter param;
|
|
glslang::TTypeLoc typeLine;
|
|
glslang::TTypeList* typeList;
|
|
glslang::TArraySizes* arraySizes;
|
|
glslang::TIdentifierList* identifierList;
|
|
};
|
|
} interm;
|
|
|
|
|
|
/* Line 387 of yacc.c */
|
|
#line 428 "C:/Projects/glslang/glslang/MachineIndependent/glslang_tab.cpp"
|
|
} YYSTYPE;
|
|
# define YYSTYPE_IS_TRIVIAL 1
|
|
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
|
|
# define YYSTYPE_IS_DECLARED 1
|
|
#endif
|
|
|
|
|
|
#ifdef YYPARSE_PARAM
|
|
#if defined __STDC__ || defined __cplusplus
|
|
int yyparse (void *YYPARSE_PARAM);
|
|
#else
|
|
int yyparse ();
|
|
#endif
|
|
#else /* ! YYPARSE_PARAM */
|
|
#if defined __STDC__ || defined __cplusplus
|
|
int yyparse (glslang::TParseContext* pParseContext);
|
|
#else
|
|
int yyparse ();
|
|
#endif
|
|
#endif /* ! YYPARSE_PARAM */
|
|
|
|
#endif /* !YY_YY_C_PROJECTS_GLSLANG_GLSLANG_MACHINEINDEPENDENT_GLSLANG_TAB_CPP_H_INCLUDED */
|
|
|
|
/* Copy the second part of user declarations. */
|
|
/* Line 390 of yacc.c */
|
|
#line 98 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
|
|
|
|
/* windows only pragma */
|
|
#ifdef _MSC_VER
|
|
#pragma warning(disable : 4065)
|
|
#pragma warning(disable : 4127)
|
|
#pragma warning(disable : 4244)
|
|
#endif
|
|
|
|
#define parseContext (*pParseContext)
|
|
#define yyerror(context, msg) context->parserError(msg)
|
|
|
|
extern int yylex(YYSTYPE*, TParseContext&);
|
|
|
|
|
|
/* Line 390 of yacc.c */
|
|
#line 471 "C:/Projects/glslang/glslang/MachineIndependent/glslang_tab.cpp"
|
|
|
|
#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 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;
|
|
};
|
|
|
|
/* 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)) \
|
|
+ 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 240
|
|
/* YYLAST -- Last index in YYTABLE. */
|
|
#define YYLAST 5659
|
|
|
|
/* YYNTOKENS -- Number of terminals. */
|
|
#define YYNTOKENS 260
|
|
/* YYNNTS -- Number of nonterminals. */
|
|
#define YYNNTS 100
|
|
/* YYNRULES -- Number of rules. */
|
|
#define YYNRULES 411
|
|
/* YYNRULES -- Number of states. */
|
|
#define YYNSTATES 543
|
|
|
|
/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
|
|
#define YYUNDEFTOK 2
|
|
#define YYMAXUTOK 514
|
|
|
|
#define YYTRANSLATE(YYX) \
|
|
((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
|
|
|
|
/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
|
|
static const yytype_uint16 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, 2, 2, 2, 2, 2, 2, 2,
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
2, 2, 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, 117, 118, 119, 120, 121, 122, 123, 124,
|
|
125, 126, 127, 128, 129, 130, 131, 132, 133, 134,
|
|
135, 136, 137, 138, 139, 140, 141, 142, 143, 144,
|
|
145, 146, 147, 148, 149, 150, 151, 152, 153, 154,
|
|
155, 156, 157, 158, 159, 160, 161, 162, 163, 164,
|
|
165, 166, 167, 168, 169, 170, 171, 172, 173, 174,
|
|
175, 176, 177, 178, 179, 180, 181, 182, 183, 184,
|
|
185, 186, 187, 188, 189, 190, 191, 192, 193, 194,
|
|
195, 196, 197, 198, 199, 200, 201, 202, 203, 204,
|
|
205, 206, 207, 208, 209, 210, 211, 212, 213, 214,
|
|
215, 216, 217, 218, 219, 220, 221, 222, 223, 224,
|
|
225, 226, 227, 228, 229, 230, 231, 232, 233, 234,
|
|
235, 236, 237, 238, 239, 240, 241, 242, 243, 244,
|
|
245, 246, 247, 248, 249, 250, 251, 252, 253, 254,
|
|
255, 256, 257, 258, 259
|
|
};
|
|
|
|
#if YYDEBUG
|
|
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
|
|
YYRHS. */
|
|
static const yytype_uint16 yyprhs[] =
|
|
{
|
|
0, 0, 3, 5, 7, 9, 11, 13, 15, 17,
|
|
21, 23, 28, 30, 34, 37, 40, 42, 44, 46,
|
|
49, 52, 55, 57, 60, 64, 67, 69, 71, 73,
|
|
76, 79, 82, 84, 86, 88, 90, 92, 96, 100,
|
|
104, 106, 110, 114, 116, 120, 124, 126, 130, 134,
|
|
138, 142, 144, 148, 152, 154, 158, 160, 164, 166,
|
|
170, 172, 176, 178, 182, 184, 188, 190, 191, 198,
|
|
200, 204, 206, 208, 210, 212, 214, 216, 218, 220,
|
|
222, 224, 226, 228, 232, 234, 237, 240, 245, 248,
|
|
252, 257, 260, 264, 269, 270, 277, 280, 284, 287,
|
|
289, 291, 294, 298, 302, 305, 309, 312, 314, 317,
|
|
319, 321, 323, 327, 332, 339, 345, 347, 350, 354,
|
|
360, 365, 367, 370, 372, 374, 376, 378, 383, 385,
|
|
389, 391, 395, 397, 399, 401, 404, 406, 408, 410,
|
|
412, 414, 416, 418, 420, 422, 424, 426, 428, 430,
|
|
432, 434, 436, 438, 440, 442, 444, 446, 448, 450,
|
|
452, 457, 459, 463, 465, 468, 471, 475, 479, 484,
|
|
486, 488, 490, 492, 494, 496, 498, 500, 502, 504,
|
|
506, 508, 510, 512, 514, 516, 518, 520, 522, 524,
|
|
526, 528, 530, 532, 534, 536, 538, 540, 542, 544,
|
|
546, 548, 550, 552, 554, 556, 558, 560, 562, 564,
|
|
566, 568, 570, 572, 574, 576, 578, 580, 582, 584,
|
|
586, 588, 590, 592, 594, 596, 598, 600, 602, 604,
|
|
606, 608, 610, 612, 614, 616, 618, 620, 622, 624,
|
|
626, 628, 630, 632, 634, 636, 638, 640, 642, 644,
|
|
646, 648, 650, 652, 654, 656, 658, 660, 662, 664,
|
|
666, 668, 670, 672, 674, 676, 678, 680, 682, 684,
|
|
686, 688, 690, 692, 694, 696, 698, 700, 702, 704,
|
|
706, 708, 710, 712, 714, 716, 718, 720, 722, 724,
|
|
726, 728, 730, 732, 734, 736, 738, 740, 742, 744,
|
|
746, 748, 750, 752, 754, 756, 758, 760, 762, 764,
|
|
766, 768, 770, 772, 774, 776, 778, 780, 782, 784,
|
|
786, 788, 790, 792, 794, 796, 798, 800, 802, 804,
|
|
806, 808, 810, 812, 814, 816, 817, 824, 825, 831,
|
|
833, 836, 840, 845, 847, 851, 853, 856, 858, 862,
|
|
867, 869, 873, 875, 877, 879, 881, 883, 885, 887,
|
|
889, 891, 893, 896, 897, 898, 904, 906, 908, 909,
|
|
912, 913, 916, 919, 923, 925, 928, 930, 933, 939,
|
|
943, 945, 947, 952, 953, 962, 963, 965, 969, 972,
|
|
973, 980, 981, 990, 991, 999, 1001, 1003, 1005, 1006,
|
|
1009, 1013, 1016, 1019, 1022, 1026, 1029, 1031, 1034, 1036,
|
|
1038, 1039
|
|
};
|
|
|
|
/* YYRHS -- A `-1'-separated list of the rules' RHS. */
|
|
static const yytype_int16 yyrhs[] =
|
|
{
|
|
356, 0, -1, 199, -1, 261, -1, 203, -1, 204,
|
|
-1, 201, -1, 202, -1, 205, -1, 227, 289, 228,
|
|
-1, 262, -1, 263, 229, 264, 230, -1, 265, -1,
|
|
263, 233, 199, -1, 263, 208, -1, 263, 209, -1,
|
|
289, -1, 266, -1, 267, -1, 269, 228, -1, 268,
|
|
228, -1, 270, 197, -1, 270, -1, 270, 287, -1,
|
|
269, 234, 287, -1, 271, 227, -1, 315, -1, 263,
|
|
-1, 263, -1, 208, 272, -1, 209, 272, -1, 273,
|
|
272, -1, 241, -1, 239, -1, 238, -1, 240, -1,
|
|
272, -1, 274, 242, 272, -1, 274, 243, 272, -1,
|
|
274, 244, 272, -1, 274, -1, 275, 241, 274, -1,
|
|
275, 239, 274, -1, 275, -1, 276, 206, 275, -1,
|
|
276, 207, 275, -1, 276, -1, 277, 245, 276, -1,
|
|
277, 246, 276, -1, 277, 210, 276, -1, 277, 211,
|
|
276, -1, 277, -1, 278, 212, 277, -1, 278, 213,
|
|
277, -1, 278, -1, 279, 249, 278, -1, 279, -1,
|
|
280, 248, 279, -1, 280, -1, 281, 247, 280, -1,
|
|
281, -1, 282, 214, 281, -1, 282, -1, 283, 216,
|
|
282, -1, 283, -1, 284, 215, 283, -1, 284, -1,
|
|
-1, 284, 250, 286, 289, 235, 287, -1, 285, -1,
|
|
272, 288, 287, -1, 236, -1, 217, -1, 218, -1,
|
|
220, -1, 219, -1, 226, -1, 221, -1, 222, -1,
|
|
223, -1, 224, -1, 225, -1, 287, -1, 289, 234,
|
|
287, -1, 285, -1, 295, 237, -1, 302, 237, -1,
|
|
256, 318, 315, 237, -1, 292, 237, -1, 292, 199,
|
|
237, -1, 292, 199, 316, 237, -1, 311, 237, -1,
|
|
311, 199, 237, -1, 311, 199, 294, 237, -1, -1,
|
|
311, 199, 231, 293, 322, 232, -1, 234, 199, -1,
|
|
294, 234, 199, -1, 296, 228, -1, 298, -1, 297,
|
|
-1, 298, 300, -1, 297, 234, 300, -1, 304, 199,
|
|
227, -1, 315, 199, -1, 315, 199, 316, -1, 311,
|
|
299, -1, 299, -1, 311, 301, -1, 301, -1, 315,
|
|
-1, 303, -1, 302, 234, 199, -1, 302, 234, 199,
|
|
316, -1, 302, 234, 199, 316, 236, 326, -1, 302,
|
|
234, 199, 236, 326, -1, 304, -1, 304, 199, -1,
|
|
304, 199, 316, -1, 304, 199, 316, 236, 326, -1,
|
|
304, 199, 236, 326, -1, 315, -1, 311, 315, -1,
|
|
251, -1, 60, -1, 59, -1, 58, -1, 61, 227,
|
|
308, 228, -1, 309, -1, 308, 234, 309, -1, 199,
|
|
-1, 199, 236, 290, -1, 46, -1, 252, -1, 312,
|
|
-1, 311, 312, -1, 313, -1, 307, -1, 318, -1,
|
|
306, -1, 305, -1, 310, -1, 5, -1, 3, -1,
|
|
4, -1, 41, -1, 39, -1, 40, -1, 38, -1,
|
|
43, -1, 44, -1, 42, -1, 45, -1, 46, -1,
|
|
47, -1, 48, -1, 49, -1, 50, -1, 51, -1,
|
|
22, -1, 22, 227, 314, 228, -1, 200, -1, 314,
|
|
234, 200, -1, 317, -1, 317, 316, -1, 229, 230,
|
|
-1, 229, 285, 230, -1, 316, 229, 230, -1, 316,
|
|
229, 285, 230, -1, 197, -1, 7, -1, 8, -1,
|
|
9, -1, 10, -1, 6, -1, 32, -1, 33, -1,
|
|
34, -1, 52, -1, 53, -1, 54, -1, 23, -1,
|
|
24, -1, 25, -1, 26, -1, 27, -1, 28, -1,
|
|
29, -1, 30, -1, 31, -1, 35, -1, 36, -1,
|
|
37, -1, 62, -1, 63, -1, 64, -1, 65, -1,
|
|
66, -1, 67, -1, 68, -1, 69, -1, 70, -1,
|
|
55, -1, 56, -1, 57, -1, 71, -1, 72, -1,
|
|
73, -1, 74, -1, 75, -1, 76, -1, 77, -1,
|
|
78, -1, 79, -1, 80, -1, 81, -1, 82, -1,
|
|
83, -1, 84, -1, 85, -1, 86, -1, 87, -1,
|
|
88, -1, 89, -1, 90, -1, 91, -1, 111, -1,
|
|
112, -1, 92, -1, 93, -1, 94, -1, 95, -1,
|
|
96, -1, 97, -1, 113, -1, 98, -1, 99, -1,
|
|
100, -1, 101, -1, 102, -1, 103, -1, 114, -1,
|
|
104, -1, 105, -1, 106, -1, 107, -1, 108, -1,
|
|
109, -1, 110, -1, 115, -1, 116, -1, 117, -1,
|
|
118, -1, 119, -1, 120, -1, 122, -1, 123, -1,
|
|
124, -1, 125, -1, 126, -1, 127, -1, 128, -1,
|
|
129, -1, 148, -1, 130, -1, 131, -1, 132, -1,
|
|
133, -1, 134, -1, 135, -1, 149, -1, 136, -1,
|
|
137, -1, 138, -1, 139, -1, 140, -1, 141, -1,
|
|
150, -1, 142, -1, 143, -1, 144, -1, 145, -1,
|
|
146, -1, 147, -1, 151, -1, 152, -1, 153, -1,
|
|
154, -1, 155, -1, 156, -1, 163, -1, 164, -1,
|
|
165, -1, 166, -1, 167, -1, 168, -1, 169, -1,
|
|
170, -1, 171, -1, 172, -1, 173, -1, 174, -1,
|
|
175, -1, 176, -1, 177, -1, 178, -1, 179, -1,
|
|
180, -1, 181, -1, 182, -1, 183, -1, 184, -1,
|
|
185, -1, 186, -1, 187, -1, 188, -1, 189, -1,
|
|
190, -1, 191, -1, 192, -1, 193, -1, 194, -1,
|
|
195, -1, 121, -1, 157, -1, 158, -1, 159, -1,
|
|
160, -1, 161, -1, 162, -1, 319, -1, 200, -1,
|
|
253, -1, 254, -1, 255, -1, -1, 196, 199, 231,
|
|
320, 322, 232, -1, -1, 196, 231, 321, 322, 232,
|
|
-1, 323, -1, 322, 323, -1, 315, 324, 237, -1,
|
|
311, 315, 324, 237, -1, 325, -1, 324, 234, 325,
|
|
-1, 199, -1, 199, 316, -1, 287, -1, 231, 327,
|
|
232, -1, 231, 327, 234, 232, -1, 326, -1, 327,
|
|
234, 326, -1, 291, -1, 331, -1, 330, -1, 328,
|
|
-1, 340, -1, 341, -1, 344, -1, 347, -1, 348,
|
|
-1, 355, -1, 231, 232, -1, -1, -1, 231, 332,
|
|
339, 333, 232, -1, 338, -1, 330, -1, -1, 336,
|
|
331, -1, -1, 337, 330, -1, 231, 232, -1, 231,
|
|
339, 232, -1, 329, -1, 339, 329, -1, 237, -1,
|
|
289, 237, -1, 16, 227, 289, 228, 342, -1, 335,
|
|
14, 335, -1, 335, -1, 289, -1, 304, 199, 236,
|
|
326, -1, -1, 19, 227, 289, 228, 345, 231, 346,
|
|
232, -1, -1, 339, -1, 20, 289, 235, -1, 21,
|
|
235, -1, -1, 198, 227, 349, 343, 228, 334, -1,
|
|
-1, 13, 350, 329, 198, 227, 289, 228, 237, -1,
|
|
-1, 15, 227, 351, 352, 354, 228, 334, -1, 340,
|
|
-1, 328, -1, 343, -1, -1, 353, 237, -1, 353,
|
|
237, 289, -1, 12, 237, -1, 11, 237, -1, 18,
|
|
237, -1, 18, 289, 237, -1, 17, 237, -1, 357,
|
|
-1, 356, 357, -1, 358, -1, 291, -1, -1, 295,
|
|
359, 338, -1
|
|
};
|
|
|
|
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
|
|
static const yytype_uint16 yyrline[] =
|
|
{
|
|
0, 244, 244, 250, 253, 256, 260, 263, 267, 270,
|
|
278, 281, 284, 287, 290, 295, 303, 310, 317, 323,
|
|
327, 334, 337, 343, 350, 360, 368, 373, 403, 409,
|
|
413, 417, 437, 438, 439, 440, 446, 447, 452, 457,
|
|
466, 467, 472, 480, 481, 487, 496, 497, 502, 507,
|
|
512, 520, 521, 529, 540, 541, 550, 551, 560, 561,
|
|
570, 571, 579, 580, 588, 589, 597, 598, 598, 616,
|
|
617, 632, 636, 640, 644, 649, 653, 657, 661, 665,
|
|
669, 673, 680, 683, 693, 700, 705, 710, 718, 722,
|
|
726, 730, 735, 740, 749, 749, 760, 764, 771, 778,
|
|
781, 788, 796, 816, 834, 849, 872, 883, 893, 903,
|
|
913, 922, 925, 929, 933, 938, 946, 951, 956, 961,
|
|
966, 975, 986, 1013, 1022, 1029, 1036, 1046, 1052, 1055,
|
|
1062, 1066, 1070, 1078, 1084, 1087, 1098, 1101, 1104, 1107,
|
|
1111, 1115, 1122, 1126, 1138, 1152, 1157, 1163, 1169, 1176,
|
|
1182, 1187, 1192, 1197, 1204, 1208, 1212, 1216, 1220, 1224,
|
|
1230, 1242, 1245, 1250, 1254, 1263, 1268, 1276, 1280, 1290,
|
|
1294, 1298, 1303, 1307, 1312, 1316, 1321, 1326, 1331, 1337,
|
|
1343, 1349, 1354, 1359, 1364, 1369, 1374, 1379, 1385, 1391,
|
|
1397, 1402, 1407, 1412, 1417, 1422, 1427, 1432, 1437, 1442,
|
|
1447, 1452, 1457, 1463, 1469, 1475, 1481, 1487, 1493, 1499,
|
|
1505, 1511, 1517, 1523, 1529, 1534, 1539, 1544, 1549, 1554,
|
|
1559, 1564, 1569, 1574, 1579, 1584, 1589, 1594, 1599, 1604,
|
|
1609, 1614, 1619, 1624, 1629, 1634, 1639, 1644, 1649, 1654,
|
|
1659, 1664, 1669, 1674, 1679, 1684, 1689, 1694, 1699, 1704,
|
|
1709, 1714, 1719, 1724, 1729, 1734, 1739, 1744, 1749, 1754,
|
|
1759, 1764, 1769, 1774, 1779, 1784, 1789, 1794, 1799, 1804,
|
|
1809, 1814, 1819, 1824, 1829, 1834, 1839, 1844, 1849, 1854,
|
|
1859, 1864, 1869, 1874, 1879, 1884, 1889, 1894, 1899, 1904,
|
|
1909, 1914, 1919, 1924, 1929, 1934, 1939, 1944, 1949, 1954,
|
|
1959, 1964, 1969, 1974, 1979, 1984, 1989, 1994, 1999, 2004,
|
|
2009, 2014, 2019, 2024, 2029, 2034, 2039, 2044, 2049, 2054,
|
|
2059, 2064, 2069, 2074, 2080, 2086, 2092, 2098, 2104, 2110,
|
|
2116, 2121, 2137, 2143, 2149, 2158, 2158, 2169, 2169, 2179,
|
|
2182, 2195, 2213, 2237, 2241, 2247, 2252, 2263, 2266, 2272,
|
|
2281, 2284, 2290, 2294, 2295, 2301, 2302, 2303, 2304, 2305,
|
|
2306, 2307, 2311, 2312, 2316, 2312, 2328, 2329, 2333, 2333,
|
|
2340, 2340, 2354, 2357, 2365, 2373, 2384, 2385, 2389, 2396,
|
|
2400, 2408, 2412, 2425, 2425, 2445, 2448, 2454, 2466, 2478,
|
|
2478, 2493, 2493, 2509, 2509, 2530, 2533, 2539, 2542, 2548,
|
|
2552, 2559, 2564, 2569, 2576, 2594, 2603, 2607, 2614, 2617,
|
|
2623, 2623
|
|
};
|
|
#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", "ATTRIBUTE", "VARYING", "CONST", "BOOL",
|
|
"FLOAT", "DOUBLE", "INT", "UINT", "BREAK", "CONTINUE", "DO", "ELSE",
|
|
"FOR", "IF", "DISCARD", "RETURN", "SWITCH", "CASE", "DEFAULT",
|
|
"SUBROUTINE", "BVEC2", "BVEC3", "BVEC4", "IVEC2", "IVEC3", "IVEC4",
|
|
"UVEC2", "UVEC3", "UVEC4", "VEC2", "VEC3", "VEC4", "MAT2", "MAT3",
|
|
"MAT4", "CENTROID", "IN", "OUT", "INOUT", "UNIFORM", "PATCH", "SAMPLE",
|
|
"BUFFER", "SHARED", "COHERENT", "VOLATILE", "RESTRICT", "READONLY",
|
|
"WRITEONLY", "DVEC2", "DVEC3", "DVEC4", "DMAT2", "DMAT3", "DMAT4",
|
|
"NOPERSPECTIVE", "FLAT", "SMOOTH", "LAYOUT", "MAT2X2", "MAT2X3",
|
|
"MAT2X4", "MAT3X2", "MAT3X3", "MAT3X4", "MAT4X2", "MAT4X3", "MAT4X4",
|
|
"DMAT2X2", "DMAT2X3", "DMAT2X4", "DMAT3X2", "DMAT3X3", "DMAT3X4",
|
|
"DMAT4X2", "DMAT4X3", "DMAT4X4", "ATOMIC_UINT", "SAMPLER1D", "SAMPLER2D",
|
|
"SAMPLER3D", "SAMPLERCUBE", "SAMPLER1DSHADOW", "SAMPLER2DSHADOW",
|
|
"SAMPLERCUBESHADOW", "SAMPLER1DARRAY", "SAMPLER2DARRAY",
|
|
"SAMPLER1DARRAYSHADOW", "SAMPLER2DARRAYSHADOW", "ISAMPLER1D",
|
|
"ISAMPLER2D", "ISAMPLER3D", "ISAMPLERCUBE", "ISAMPLER1DARRAY",
|
|
"ISAMPLER2DARRAY", "USAMPLER1D", "USAMPLER2D", "USAMPLER3D",
|
|
"USAMPLERCUBE", "USAMPLER1DARRAY", "USAMPLER2DARRAY", "SAMPLER2DRECT",
|
|
"SAMPLER2DRECTSHADOW", "ISAMPLER2DRECT", "USAMPLER2DRECT",
|
|
"SAMPLERBUFFER", "ISAMPLERBUFFER", "USAMPLERBUFFER", "SAMPLERCUBEARRAY",
|
|
"SAMPLERCUBEARRAYSHADOW", "ISAMPLERCUBEARRAY", "USAMPLERCUBEARRAY",
|
|
"SAMPLER2DMS", "ISAMPLER2DMS", "USAMPLER2DMS", "SAMPLER2DMSARRAY",
|
|
"ISAMPLER2DMSARRAY", "USAMPLER2DMSARRAY", "SAMPLEREXTERNALOES",
|
|
"SAMPLER", "SAMPLERSHADOW", "TEXTURE1D", "TEXTURE2D", "TEXTURE3D",
|
|
"TEXTURECUBE", "TEXTURE1DARRAY", "TEXTURE2DARRAY", "ITEXTURE1D",
|
|
"ITEXTURE2D", "ITEXTURE3D", "ITEXTURECUBE", "ITEXTURE1DARRAY",
|
|
"ITEXTURE2DARRAY", "UTEXTURE1D", "UTEXTURE2D", "UTEXTURE3D",
|
|
"UTEXTURECUBE", "UTEXTURE1DARRAY", "UTEXTURE2DARRAY", "TEXTURE2DRECT",
|
|
"ITEXTURE2DRECT", "UTEXTURE2DRECT", "TEXTUREBUFFER", "ITEXTUREBUFFER",
|
|
"UTEXTUREBUFFER", "TEXTURECUBEARRAY", "ITEXTURECUBEARRAY",
|
|
"UTEXTURECUBEARRAY", "TEXTURE2DMS", "ITEXTURE2DMS", "UTEXTURE2DMS",
|
|
"TEXTURE2DMSARRAY", "ITEXTURE2DMSARRAY", "UTEXTURE2DMSARRAY",
|
|
"SUBPASSINPUT", "SUBPASSINPUTMS", "ISUBPASSINPUT", "ISUBPASSINPUTMS",
|
|
"USUBPASSINPUT", "USUBPASSINPUTMS", "IMAGE1D", "IIMAGE1D", "UIMAGE1D",
|
|
"IMAGE2D", "IIMAGE2D", "UIMAGE2D", "IMAGE3D", "IIMAGE3D", "UIMAGE3D",
|
|
"IMAGE2DRECT", "IIMAGE2DRECT", "UIMAGE2DRECT", "IMAGECUBE", "IIMAGECUBE",
|
|
"UIMAGECUBE", "IMAGEBUFFER", "IIMAGEBUFFER", "UIMAGEBUFFER",
|
|
"IMAGE1DARRAY", "IIMAGE1DARRAY", "UIMAGE1DARRAY", "IMAGE2DARRAY",
|
|
"IIMAGE2DARRAY", "UIMAGE2DARRAY", "IMAGECUBEARRAY", "IIMAGECUBEARRAY",
|
|
"UIMAGECUBEARRAY", "IMAGE2DMS", "IIMAGE2DMS", "UIMAGE2DMS",
|
|
"IMAGE2DMSARRAY", "IIMAGE2DMSARRAY", "UIMAGE2DMSARRAY", "STRUCT", "VOID",
|
|
"WHILE", "IDENTIFIER", "TYPE_NAME", "FLOATCONSTANT", "DOUBLECONSTANT",
|
|
"INTCONSTANT", "UINTCONSTANT", "BOOLCONSTANT", "LEFT_OP", "RIGHT_OP",
|
|
"INC_OP", "DEC_OP", "LE_OP", "GE_OP", "EQ_OP", "NE_OP", "AND_OP",
|
|
"OR_OP", "XOR_OP", "MUL_ASSIGN", "DIV_ASSIGN", "ADD_ASSIGN",
|
|
"MOD_ASSIGN", "LEFT_ASSIGN", "RIGHT_ASSIGN", "AND_ASSIGN", "XOR_ASSIGN",
|
|
"OR_ASSIGN", "SUB_ASSIGN", "LEFT_PAREN", "RIGHT_PAREN", "LEFT_BRACKET",
|
|
"RIGHT_BRACKET", "LEFT_BRACE", "RIGHT_BRACE", "DOT", "COMMA", "COLON",
|
|
"EQUAL", "SEMICOLON", "BANG", "DASH", "TILDE", "PLUS", "STAR", "SLASH",
|
|
"PERCENT", "LEFT_ANGLE", "RIGHT_ANGLE", "VERTICAL_BAR", "CARET",
|
|
"AMPERSAND", "QUESTION", "INVARIANT", "PRECISE", "HIGH_PRECISION",
|
|
"MEDIUM_PRECISION", "LOW_PRECISION", "PRECISION", "PACKED", "RESOURCE",
|
|
"SUPERP", "$accept", "variable_identifier", "primary_expression",
|
|
"postfix_expression", "integer_expression", "function_call",
|
|
"function_call_or_method", "function_call_generic",
|
|
"function_call_header_no_parameters",
|
|
"function_call_header_with_parameters", "function_call_header",
|
|
"function_identifier", "unary_expression", "unary_operator",
|
|
"multiplicative_expression", "additive_expression", "shift_expression",
|
|
"relational_expression", "equality_expression", "and_expression",
|
|
"exclusive_or_expression", "inclusive_or_expression",
|
|
"logical_and_expression", "logical_xor_expression",
|
|
"logical_or_expression", "conditional_expression", "$@1",
|
|
"assignment_expression", "assignment_operator", "expression",
|
|
"constant_expression", "declaration", "block_structure", "$@2",
|
|
"identifier_list", "function_prototype", "function_declarator",
|
|
"function_header_with_parameters", "function_header",
|
|
"parameter_declarator", "parameter_declaration",
|
|
"parameter_type_specifier", "init_declarator_list", "single_declaration",
|
|
"fully_specified_type", "invariant_qualifier", "interpolation_qualifier",
|
|
"layout_qualifier", "layout_qualifier_id_list", "layout_qualifier_id",
|
|
"precise_qualifier", "type_qualifier", "single_type_qualifier",
|
|
"storage_qualifier", "type_name_list", "type_specifier",
|
|
"array_specifier", "type_specifier_nonarray", "precision_qualifier",
|
|
"struct_specifier", "$@3", "$@4", "struct_declaration_list",
|
|
"struct_declaration", "struct_declarator_list", "struct_declarator",
|
|
"initializer", "initializer_list", "declaration_statement", "statement",
|
|
"simple_statement", "compound_statement", "$@5", "$@6",
|
|
"statement_no_new_scope", "statement_scoped", "$@7", "$@8",
|
|
"compound_statement_no_new_scope", "statement_list",
|
|
"expression_statement", "selection_statement",
|
|
"selection_rest_statement", "condition", "switch_statement", "$@9",
|
|
"switch_statement_list", "case_label", "iteration_statement", "$@10",
|
|
"$@11", "$@12", "for_init_statement", "conditionopt",
|
|
"for_rest_statement", "jump_statement", "translation_unit",
|
|
"external_declaration", "function_definition", "$@13", 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, 372, 373, 374,
|
|
375, 376, 377, 378, 379, 380, 381, 382, 383, 384,
|
|
385, 386, 387, 388, 389, 390, 391, 392, 393, 394,
|
|
395, 396, 397, 398, 399, 400, 401, 402, 403, 404,
|
|
405, 406, 407, 408, 409, 410, 411, 412, 413, 414,
|
|
415, 416, 417, 418, 419, 420, 421, 422, 423, 424,
|
|
425, 426, 427, 428, 429, 430, 431, 432, 433, 434,
|
|
435, 436, 437, 438, 439, 440, 441, 442, 443, 444,
|
|
445, 446, 447, 448, 449, 450, 451, 452, 453, 454,
|
|
455, 456, 457, 458, 459, 460, 461, 462, 463, 464,
|
|
465, 466, 467, 468, 469, 470, 471, 472, 473, 474,
|
|
475, 476, 477, 478, 479, 480, 481, 482, 483, 484,
|
|
485, 486, 487, 488, 489, 490, 491, 492, 493, 494,
|
|
495, 496, 497, 498, 499, 500, 501, 502, 503, 504,
|
|
505, 506, 507, 508, 509, 510, 511, 512, 513, 514
|
|
};
|
|
# endif
|
|
|
|
/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
|
|
static const yytype_uint16 yyr1[] =
|
|
{
|
|
0, 260, 261, 262, 262, 262, 262, 262, 262, 262,
|
|
263, 263, 263, 263, 263, 263, 264, 265, 266, 267,
|
|
267, 268, 268, 269, 269, 270, 271, 271, 272, 272,
|
|
272, 272, 273, 273, 273, 273, 274, 274, 274, 274,
|
|
275, 275, 275, 276, 276, 276, 277, 277, 277, 277,
|
|
277, 278, 278, 278, 279, 279, 280, 280, 281, 281,
|
|
282, 282, 283, 283, 284, 284, 285, 286, 285, 287,
|
|
287, 288, 288, 288, 288, 288, 288, 288, 288, 288,
|
|
288, 288, 289, 289, 290, 291, 291, 291, 291, 291,
|
|
291, 291, 291, 291, 293, 292, 294, 294, 295, 296,
|
|
296, 297, 297, 298, 299, 299, 300, 300, 300, 300,
|
|
301, 302, 302, 302, 302, 302, 303, 303, 303, 303,
|
|
303, 304, 304, 305, 306, 306, 306, 307, 308, 308,
|
|
309, 309, 309, 310, 311, 311, 312, 312, 312, 312,
|
|
312, 312, 313, 313, 313, 313, 313, 313, 313, 313,
|
|
313, 313, 313, 313, 313, 313, 313, 313, 313, 313,
|
|
313, 314, 314, 315, 315, 316, 316, 316, 316, 317,
|
|
317, 317, 317, 317, 317, 317, 317, 317, 317, 317,
|
|
317, 317, 317, 317, 317, 317, 317, 317, 317, 317,
|
|
317, 317, 317, 317, 317, 317, 317, 317, 317, 317,
|
|
317, 317, 317, 317, 317, 317, 317, 317, 317, 317,
|
|
317, 317, 317, 317, 317, 317, 317, 317, 317, 317,
|
|
317, 317, 317, 317, 317, 317, 317, 317, 317, 317,
|
|
317, 317, 317, 317, 317, 317, 317, 317, 317, 317,
|
|
317, 317, 317, 317, 317, 317, 317, 317, 317, 317,
|
|
317, 317, 317, 317, 317, 317, 317, 317, 317, 317,
|
|
317, 317, 317, 317, 317, 317, 317, 317, 317, 317,
|
|
317, 317, 317, 317, 317, 317, 317, 317, 317, 317,
|
|
317, 317, 317, 317, 317, 317, 317, 317, 317, 317,
|
|
317, 317, 317, 317, 317, 317, 317, 317, 317, 317,
|
|
317, 317, 317, 317, 317, 317, 317, 317, 317, 317,
|
|
317, 317, 317, 317, 317, 317, 317, 317, 317, 317,
|
|
317, 317, 317, 317, 317, 317, 317, 317, 317, 317,
|
|
317, 317, 318, 318, 318, 320, 319, 321, 319, 322,
|
|
322, 323, 323, 324, 324, 325, 325, 326, 326, 326,
|
|
327, 327, 328, 329, 329, 330, 330, 330, 330, 330,
|
|
330, 330, 331, 332, 333, 331, 334, 334, 336, 335,
|
|
337, 335, 338, 338, 339, 339, 340, 340, 341, 342,
|
|
342, 343, 343, 345, 344, 346, 346, 347, 347, 349,
|
|
348, 350, 348, 351, 348, 352, 352, 353, 353, 354,
|
|
354, 355, 355, 355, 355, 355, 356, 356, 357, 357,
|
|
359, 358
|
|
};
|
|
|
|
/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
|
|
static const yytype_uint8 yyr2[] =
|
|
{
|
|
0, 2, 1, 1, 1, 1, 1, 1, 1, 3,
|
|
1, 4, 1, 3, 2, 2, 1, 1, 1, 2,
|
|
2, 2, 1, 2, 3, 2, 1, 1, 1, 2,
|
|
2, 2, 1, 1, 1, 1, 1, 3, 3, 3,
|
|
1, 3, 3, 1, 3, 3, 1, 3, 3, 3,
|
|
3, 1, 3, 3, 1, 3, 1, 3, 1, 3,
|
|
1, 3, 1, 3, 1, 3, 1, 0, 6, 1,
|
|
3, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 3, 1, 2, 2, 4, 2, 3,
|
|
4, 2, 3, 4, 0, 6, 2, 3, 2, 1,
|
|
1, 2, 3, 3, 2, 3, 2, 1, 2, 1,
|
|
1, 1, 3, 4, 6, 5, 1, 2, 3, 5,
|
|
4, 1, 2, 1, 1, 1, 1, 4, 1, 3,
|
|
1, 3, 1, 1, 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,
|
|
4, 1, 3, 1, 2, 2, 3, 3, 4, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 0, 6, 0, 5, 1,
|
|
2, 3, 4, 1, 3, 1, 2, 1, 3, 4,
|
|
1, 3, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 2, 0, 0, 5, 1, 1, 0, 2,
|
|
0, 2, 2, 3, 1, 2, 1, 2, 5, 3,
|
|
1, 1, 4, 0, 8, 0, 1, 3, 2, 0,
|
|
6, 0, 8, 0, 7, 1, 1, 1, 0, 2,
|
|
3, 2, 2, 2, 3, 2, 1, 2, 1, 1,
|
|
0, 3
|
|
};
|
|
|
|
/* 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, 143, 144, 142, 174, 170, 171, 172, 173, 159,
|
|
181, 182, 183, 184, 185, 186, 187, 188, 189, 175,
|
|
176, 177, 190, 191, 192, 148, 146, 147, 145, 151,
|
|
149, 150, 152, 153, 154, 155, 156, 157, 158, 178,
|
|
179, 180, 202, 203, 204, 126, 125, 124, 0, 193,
|
|
194, 195, 196, 197, 198, 199, 200, 201, 205, 206,
|
|
207, 208, 209, 210, 211, 212, 213, 214, 215, 216,
|
|
217, 218, 219, 220, 221, 222, 223, 224, 225, 228,
|
|
229, 230, 231, 232, 233, 235, 236, 237, 238, 239,
|
|
240, 242, 243, 244, 245, 246, 247, 248, 226, 227,
|
|
234, 241, 249, 250, 251, 252, 253, 254, 323, 255,
|
|
256, 257, 258, 259, 260, 261, 262, 264, 265, 266,
|
|
267, 268, 269, 271, 272, 273, 274, 275, 276, 278,
|
|
279, 280, 281, 282, 283, 263, 270, 277, 284, 285,
|
|
286, 287, 288, 289, 324, 325, 326, 327, 328, 329,
|
|
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, 0, 169, 331, 123, 133, 332, 333,
|
|
334, 0, 409, 0, 410, 0, 100, 99, 0, 111,
|
|
116, 140, 139, 137, 141, 0, 134, 136, 121, 163,
|
|
138, 330, 0, 406, 408, 0, 0, 0, 337, 0,
|
|
0, 88, 85, 0, 98, 0, 107, 101, 109, 0,
|
|
110, 0, 86, 117, 0, 91, 135, 122, 0, 164,
|
|
1, 407, 161, 0, 132, 130, 0, 128, 335, 0,
|
|
0, 89, 0, 0, 411, 102, 106, 108, 104, 112,
|
|
103, 0, 118, 94, 0, 92, 0, 2, 6, 7,
|
|
4, 5, 8, 0, 0, 0, 165, 34, 33, 35,
|
|
32, 3, 10, 28, 12, 17, 18, 0, 0, 22,
|
|
0, 36, 0, 40, 43, 46, 51, 54, 56, 58,
|
|
60, 62, 64, 66, 0, 26, 0, 160, 0, 0,
|
|
127, 0, 0, 0, 0, 0, 339, 87, 90, 0,
|
|
0, 391, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
363, 372, 376, 36, 69, 82, 0, 352, 0, 121,
|
|
355, 374, 354, 353, 0, 356, 357, 358, 359, 360,
|
|
361, 105, 0, 113, 0, 347, 120, 0, 0, 96,
|
|
0, 93, 29, 30, 0, 14, 15, 0, 0, 20,
|
|
19, 0, 169, 23, 25, 31, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 67, 166, 167, 0, 162,
|
|
84, 131, 129, 0, 0, 345, 0, 343, 338, 340,
|
|
402, 401, 0, 393, 0, 405, 403, 0, 0, 0,
|
|
388, 389, 362, 0, 72, 73, 75, 74, 77, 78,
|
|
79, 80, 81, 76, 71, 0, 0, 377, 373, 375,
|
|
115, 0, 350, 0, 119, 0, 97, 9, 0, 16,
|
|
13, 24, 37, 38, 39, 42, 41, 44, 45, 49,
|
|
50, 47, 48, 52, 53, 55, 57, 59, 61, 63,
|
|
65, 0, 168, 336, 0, 346, 0, 341, 0, 0,
|
|
0, 404, 0, 387, 0, 364, 70, 83, 114, 348,
|
|
0, 95, 11, 0, 342, 344, 0, 396, 395, 398,
|
|
370, 383, 381, 0, 0, 0, 0, 349, 351, 0,
|
|
0, 397, 0, 0, 380, 0, 0, 378, 0, 0,
|
|
0, 365, 68, 0, 399, 0, 370, 369, 371, 385,
|
|
0, 367, 390, 366, 0, 400, 394, 379, 386, 0,
|
|
382, 392, 384
|
|
};
|
|
|
|
/* YYDEFGOTO[NTERM-NUM]. */
|
|
static const yytype_int16 yydefgoto[] =
|
|
{
|
|
-1, 281, 282, 283, 448, 284, 285, 286, 287, 288,
|
|
289, 290, 333, 292, 293, 294, 295, 296, 297, 298,
|
|
299, 300, 301, 302, 303, 334, 471, 335, 435, 336,
|
|
401, 337, 193, 358, 266, 338, 195, 196, 197, 226,
|
|
227, 228, 198, 199, 200, 201, 202, 203, 246, 247,
|
|
204, 205, 206, 207, 243, 305, 239, 209, 210, 211,
|
|
312, 249, 315, 316, 406, 407, 356, 443, 340, 341,
|
|
342, 343, 423, 506, 532, 514, 515, 516, 533, 344,
|
|
345, 346, 517, 505, 347, 518, 539, 348, 349, 484,
|
|
412, 479, 499, 512, 513, 350, 212, 213, 214, 223
|
|
};
|
|
|
|
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
|
|
STATE-NUM. */
|
|
#define YYPACT_NINF -466
|
|
static const yytype_int16 yypact[] =
|
|
{
|
|
2275, -466, -466, -466, -466, -466, -466, -466, -466, -205,
|
|
-466, -466, -466, -466, -466, -466, -466, -466, -466, -466,
|
|
-466, -466, -466, -466, -466, -466, -466, -466, -466, -466,
|
|
-466, -466, -466, -466, -466, -466, -466, -466, -466, -466,
|
|
-466, -466, -466, -466, -466, -466, -466, -466, -192, -466,
|
|
-466, -466, -466, -466, -466, -466, -466, -466, -466, -466,
|
|
-466, -466, -466, -466, -466, -466, -466, -466, -466, -466,
|
|
-466, -466, -466, -466, -466, -466, -466, -466, -466, -466,
|
|
-466, -466, -466, -466, -466, -466, -466, -466, -466, -466,
|
|
-466, -466, -466, -466, -466, -466, -466, -466, -466, -466,
|
|
-466, -466, -466, -466, -466, -466, -466, -466, -466, -466,
|
|
-466, -466, -466, -466, -466, -466, -466, -466, -466, -466,
|
|
-466, -466, -466, -466, -466, -466, -466, -466, -466, -466,
|
|
-466, -466, -466, -466, -466, -466, -466, -466, -466, -466,
|
|
-466, -466, -466, -466, -466, -466, -466, -466, -466, -466,
|
|
-466, -466, -466, -466, -466, -466, -466, -466, -466, -466,
|
|
-466, -466, -466, -466, -466, -466, -466, -466, -466, -466,
|
|
-466, -466, -466, -466, -466, -466, -466, -466, -466, -466,
|
|
-466, -466, -466, -179, -466, -466, -466, -466, -466, -466,
|
|
-466, -122, -466, -186, -198, -173, -175, 3686, -194, -466,
|
|
-121, -466, -466, -466, -466, 2749, -466, -466, -466, -141,
|
|
-466, -466, 527, -466, -466, -97, -37, -117, -466, 5459,
|
|
-200, -466, -466, -112, -466, 3686, -466, -466, -466, 3686,
|
|
-71, -44, -466, -191, -142, -466, -466, -466, 4117, -82,
|
|
-466, -466, -466, -202, -466, -76, -137, -466, -466, 3686,
|
|
-73, -466, -196, 781, -466, -466, -466, -466, -141, -155,
|
|
-466, 4342, -152, -466, -38, -466, -177, -466, -466, -466,
|
|
-466, -466, -466, 5015, 5015, 5015, -466, -466, -466, -466,
|
|
-466, -466, -466, -185, -466, -466, -466, -63, -128, 5237,
|
|
-61, -466, 5015, -106, -100, -157, -183, -78, -81, -79,
|
|
-80, -43, -46, -197, -58, -466, 4568, -466, -27, 5015,
|
|
-466, -37, 3686, 3686, -25, 2984, -466, -466, -466, -62,
|
|
-57, -466, -51, -48, -56, 4793, -45, 5015, -50, -40,
|
|
-41, -466, -466, -153, -466, -466, -147, -466, -198, -39,
|
|
-466, -466, -466, -466, 1035, -466, -466, -466, -466, -466,
|
|
-466, -82, 4342, -143, 4342, -466, -466, 4342, 3686, -466,
|
|
-15, -466, -466, -466, -126, -466, -466, 5015, -10, -466,
|
|
-466, 5015, -36, -466, -466, -466, 5015, 5015, 5015, 5015,
|
|
5015, 5015, 5015, 5015, 5015, 5015, 5015, 5015, 5015, 5015,
|
|
5015, 5015, 5015, 5015, 5015, -466, -466, -466, -35, -466,
|
|
-466, -466, -466, 3218, -25, -141, -127, -466, -466, -466,
|
|
-466, -466, 1289, -466, 5015, -466, -466, -108, 5015, -91,
|
|
-466, -466, -466, 1289, -466, -466, -466, -466, -466, -466,
|
|
-466, -466, -466, -466, -466, 5015, 5015, -466, -466, -466,
|
|
-466, 4342, -466, -92, -466, 3452, -466, -466, -34, -31,
|
|
-466, -466, -466, -466, -466, -106, -106, -100, -100, -157,
|
|
-157, -157, -157, -183, -183, -78, -81, -79, -80, -43,
|
|
-46, 5015, -466, -466, -107, -82, -25, -466, -4, 2036,
|
|
-123, -466, -116, -466, 2510, 1289, -466, -466, -466, -466,
|
|
3890, -466, -466, -83, -466, -466, -29, -466, -466, 2510,
|
|
-32, -466, -31, 1, 3686, -24, -26, -466, -466, 5015,
|
|
5015, -466, -30, -19, 196, -20, 1797, -466, -18, -22,
|
|
1543, -466, -466, -113, 5015, 1543, -32, -466, -466, 1289,
|
|
4342, -466, -466, -466, -17, -31, -466, -466, 1289, -14,
|
|
-466, -466, -466
|
|
};
|
|
|
|
/* YYPGOTO[NTERM-NUM]. */
|
|
static const yytype_int16 yypgoto[] =
|
|
{
|
|
-466, -466, -466, -466, -466, -466, -466, -466, -466, -466,
|
|
-466, -466, -52, -466, -226, -225, -261, -229, -166, -164,
|
|
-167, -165, -162, -161, -466, -227, -466, -258, -466, -269,
|
|
-466, 4, -466, -466, -466, 5, -466, -466, -466, -1,
|
|
9, 6, -466, -466, -465, -466, -466, -466, -466, -75,
|
|
-466, -195, -204, -466, -466, 0, -212, -466, 46, -466,
|
|
-466, -466, -297, -299, -160, -238, -340, -466, -240, -337,
|
|
-440, -273, -466, -466, -282, -281, -466, -466, 23, -413,
|
|
-232, -466, -466, -251, -466, -466, -466, -466, -466, -466,
|
|
-466, -466, -466, -466, -466, -466, -466, 40, -466, -466
|
|
};
|
|
|
|
/* 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 -369
|
|
static const yytype_int16 yytable[] =
|
|
{
|
|
208, 236, 229, 355, 192, 194, 364, 439, 252, 244,
|
|
485, 304, 440, 220, 442, 403, 409, 444, 394, 503,
|
|
217, 262, 215, 365, 366, 236, 307, 383, 384, 238,
|
|
229, 373, 308, 306, 503, 216, 260, 251, 238, 222,
|
|
231, 318, -27, 232, 367, 261, 351, 353, 368, 381,
|
|
382, 221, 218, 395, 313, 224, 417, 360, 419, 225,
|
|
361, 445, 385, 386, 424, 425, 426, 427, 428, 429,
|
|
430, 431, 432, 433, 238, 478, 528, 306, 233, 398,
|
|
531, 352, 400, 434, 357, 531, 306, 436, 238, 263,
|
|
437, 310, 264, 441, 355, 265, 355, 311, 449, 355,
|
|
370, 488, 447, 242, 409, 500, 371, 476, 436, 236,
|
|
477, 436, 501, 451, 248, 534, 538, 313, 436, 253,
|
|
313, 436, 459, 460, 461, 462, 436, 476, 258, 481,
|
|
494, 188, 189, 190, 387, 388, 376, 377, 378, 379,
|
|
489, 380, 490, 436, 483, 480, 409, 306, 439, 482,
|
|
508, 436, 509, 455, 456, 259, 457, 458, 463, 464,
|
|
309, 359, 245, 313, 317, 369, 374, 391, 389, 390,
|
|
393, 392, 396, 399, 405, 410, 413, 486, 487, 414,
|
|
411, 415, 418, 355, 446, 420, 291, 421, -26, 450,
|
|
540, 422, -21, 475, 496, 472, 492, 230, 510, -368,
|
|
519, 439, 493, 436, 520, 237, 521, 524, 313, 525,
|
|
526, 330, 208, 529, 530, 502, 192, 194, 542, 250,
|
|
541, 362, 363, 465, 467, 230, 466, 468, 256, 230,
|
|
502, 469, 355, 470, 255, 257, 402, 219, 495, 497,
|
|
375, 523, 527, 536, 474, 537, 254, 498, 511, 314,
|
|
313, 522, 241, 339, 291, 535, 0, 291, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 355, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 504,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
236, 0, 0, 0, 504, 0, 0, 0, 0, 0,
|
|
0, 0, 314, 404, 0, 314, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 452, 453, 454, 291, 291, 291,
|
|
291, 291, 291, 291, 291, 291, 291, 291, 291, 291,
|
|
291, 291, 291, 0, 339, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 314, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 314, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 339, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 339, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 314, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 339,
|
|
0, 0, 0, 0, 339, 339, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 339,
|
|
0, 0, 0, 0, 237, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 339, 0, 0, 0,
|
|
339, 0, 0, 0, 0, 339, 0, 240, 0, 339,
|
|
1, 2, 3, 4, 5, 6, 7, 8, 339, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 117, 118, 119,
|
|
120, 121, 122, 123, 124, 125, 126, 127, 128, 129,
|
|
130, 131, 132, 133, 134, 135, 136, 137, 138, 139,
|
|
140, 141, 142, 143, 144, 145, 146, 147, 148, 149,
|
|
150, 151, 152, 153, 154, 155, 156, 157, 158, 159,
|
|
160, 161, 162, 163, 164, 165, 166, 167, 168, 169,
|
|
170, 171, 172, 173, 174, 175, 176, 177, 178, 179,
|
|
180, 181, 182, 183, 184, 0, 0, 185, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 186, 187,
|
|
188, 189, 190, 191, 1, 2, 3, 4, 5, 6,
|
|
7, 8, 319, 320, 321, 0, 322, 323, 324, 325,
|
|
326, 327, 328, 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, 117, 118, 119, 120, 121, 122, 123, 124, 125,
|
|
126, 127, 128, 129, 130, 131, 132, 133, 134, 135,
|
|
136, 137, 138, 139, 140, 141, 142, 143, 144, 145,
|
|
146, 147, 148, 149, 150, 151, 152, 153, 154, 155,
|
|
156, 157, 158, 159, 160, 161, 162, 163, 164, 165,
|
|
166, 167, 168, 169, 170, 171, 172, 173, 174, 175,
|
|
176, 177, 178, 179, 180, 181, 182, 183, 184, 329,
|
|
267, 185, 268, 269, 270, 271, 272, 0, 0, 273,
|
|
274, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 275, 0,
|
|
0, 0, 330, 331, 0, 0, 0, 0, 332, 277,
|
|
278, 279, 280, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 186, 187, 188, 189, 190, 191, 1, 2,
|
|
3, 4, 5, 6, 7, 8, 319, 320, 321, 0,
|
|
322, 323, 324, 325, 326, 327, 328, 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, 117, 118, 119, 120, 121,
|
|
122, 123, 124, 125, 126, 127, 128, 129, 130, 131,
|
|
132, 133, 134, 135, 136, 137, 138, 139, 140, 141,
|
|
142, 143, 144, 145, 146, 147, 148, 149, 150, 151,
|
|
152, 153, 154, 155, 156, 157, 158, 159, 160, 161,
|
|
162, 163, 164, 165, 166, 167, 168, 169, 170, 171,
|
|
172, 173, 174, 175, 176, 177, 178, 179, 180, 181,
|
|
182, 183, 184, 329, 267, 185, 268, 269, 270, 271,
|
|
272, 0, 0, 273, 274, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 275, 0, 0, 0, 330, 438, 0, 0,
|
|
0, 0, 332, 277, 278, 279, 280, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 186, 187, 188, 189,
|
|
190, 191, 1, 2, 3, 4, 5, 6, 7, 8,
|
|
319, 320, 321, 0, 322, 323, 324, 325, 326, 327,
|
|
328, 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, 117,
|
|
118, 119, 120, 121, 122, 123, 124, 125, 126, 127,
|
|
128, 129, 130, 131, 132, 133, 134, 135, 136, 137,
|
|
138, 139, 140, 141, 142, 143, 144, 145, 146, 147,
|
|
148, 149, 150, 151, 152, 153, 154, 155, 156, 157,
|
|
158, 159, 160, 161, 162, 163, 164, 165, 166, 167,
|
|
168, 169, 170, 171, 172, 173, 174, 175, 176, 177,
|
|
178, 179, 180, 181, 182, 183, 184, 329, 267, 185,
|
|
268, 269, 270, 271, 272, 0, 0, 273, 274, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 275, 0, 0, 0,
|
|
330, 0, 0, 0, 0, 0, 332, 277, 278, 279,
|
|
280, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
186, 187, 188, 189, 190, 191, 1, 2, 3, 4,
|
|
5, 6, 7, 8, 319, 320, 321, 0, 322, 323,
|
|
324, 325, 326, 327, 328, 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, 117, 118, 119, 120, 121, 122, 123,
|
|
124, 125, 126, 127, 128, 129, 130, 131, 132, 133,
|
|
134, 135, 136, 137, 138, 139, 140, 141, 142, 143,
|
|
144, 145, 146, 147, 148, 149, 150, 151, 152, 153,
|
|
154, 155, 156, 157, 158, 159, 160, 161, 162, 163,
|
|
164, 165, 166, 167, 168, 169, 170, 171, 172, 173,
|
|
174, 175, 176, 177, 178, 179, 180, 181, 182, 183,
|
|
184, 329, 267, 185, 268, 269, 270, 271, 272, 0,
|
|
0, 273, 274, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
275, 0, 0, 0, 253, 0, 0, 0, 0, 0,
|
|
332, 277, 278, 279, 280, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 186, 187, 188, 189, 190, 191,
|
|
1, 2, 3, 4, 5, 6, 7, 8, 319, 320,
|
|
321, 0, 322, 323, 324, 325, 326, 327, 328, 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, 117, 118, 119,
|
|
120, 121, 122, 123, 124, 125, 126, 127, 128, 129,
|
|
130, 131, 132, 133, 134, 135, 136, 137, 138, 139,
|
|
140, 141, 142, 143, 144, 145, 146, 147, 148, 149,
|
|
150, 151, 152, 153, 154, 155, 156, 157, 158, 159,
|
|
160, 161, 162, 163, 164, 165, 166, 167, 168, 169,
|
|
170, 171, 172, 173, 174, 175, 176, 177, 178, 179,
|
|
180, 181, 182, 183, 184, 329, 267, 185, 268, 269,
|
|
270, 271, 272, 0, 0, 273, 274, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 275, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 332, 277, 278, 279, 280, 1,
|
|
2, 3, 4, 5, 6, 7, 8, 0, 186, 187,
|
|
188, 189, 190, 191, 0, 0, 0, 0, 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, 117, 118, 119, 120,
|
|
121, 122, 123, 124, 125, 126, 127, 128, 129, 130,
|
|
131, 132, 133, 134, 135, 136, 137, 138, 139, 140,
|
|
141, 142, 143, 144, 145, 146, 147, 148, 149, 150,
|
|
151, 152, 153, 154, 155, 156, 157, 158, 159, 160,
|
|
161, 162, 163, 164, 165, 166, 167, 168, 169, 170,
|
|
171, 172, 173, 174, 175, 176, 177, 178, 179, 180,
|
|
181, 182, 183, 184, 0, 267, 185, 268, 269, 270,
|
|
271, 272, 0, 0, 273, 274, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 275, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 332, 277, 278, 279, 280, 1, 2,
|
|
3, 4, 5, 6, 7, 8, 0, 186, 187, 188,
|
|
189, 190, 191, 0, 0, 0, 0, 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, 117, 118, 119, 120, 121,
|
|
122, 123, 124, 125, 126, 127, 128, 129, 130, 131,
|
|
132, 133, 134, 135, 136, 137, 138, 139, 140, 141,
|
|
142, 143, 144, 145, 146, 147, 148, 149, 150, 151,
|
|
152, 153, 154, 155, 156, 157, 158, 159, 160, 161,
|
|
162, 163, 164, 165, 166, 167, 168, 169, 170, 171,
|
|
172, 173, 174, 175, 176, 177, 178, 179, 180, 181,
|
|
182, 183, 184, 0, 0, 185, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 1, 2, 3, 4, 5, 6, 7,
|
|
8, 0, 0, 0, 0, 0, 186, 187, 188, 189,
|
|
190, 191, 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,
|
|
117, 118, 119, 120, 121, 122, 123, 124, 125, 126,
|
|
127, 128, 129, 130, 131, 132, 133, 134, 135, 136,
|
|
137, 138, 139, 140, 141, 142, 143, 144, 145, 146,
|
|
147, 148, 149, 150, 151, 152, 153, 154, 155, 156,
|
|
157, 158, 159, 160, 161, 162, 163, 164, 165, 166,
|
|
167, 168, 169, 170, 171, 172, 173, 174, 175, 176,
|
|
177, 178, 179, 180, 181, 182, 183, 184, 0, 267,
|
|
185, 268, 269, 270, 271, 272, 0, 0, 273, 274,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 275, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 277, 278,
|
|
279, 280, 1, 2, 3, 4, 5, 6, 7, 8,
|
|
0, 186, 187, 188, 189, 190, 0, 0, 0, 0,
|
|
0, 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, 117,
|
|
118, 119, 120, 121, 122, 123, 124, 125, 126, 127,
|
|
128, 129, 130, 131, 132, 133, 134, 135, 136, 137,
|
|
138, 139, 140, 141, 142, 143, 144, 145, 146, 147,
|
|
148, 149, 150, 151, 152, 153, 154, 155, 156, 157,
|
|
158, 159, 160, 161, 162, 163, 164, 165, 166, 167,
|
|
168, 169, 170, 171, 172, 173, 174, 175, 176, 177,
|
|
178, 179, 180, 181, 182, 183, 184, 0, 234, 185,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 235, 1, 2, 3,
|
|
4, 5, 6, 7, 8, 0, 0, 0, 0, 0,
|
|
186, 187, 188, 189, 190, 0, 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, 117, 118, 119, 120, 121, 122,
|
|
123, 124, 125, 126, 127, 128, 129, 130, 131, 132,
|
|
133, 134, 135, 136, 137, 138, 139, 140, 141, 142,
|
|
143, 144, 145, 146, 147, 148, 149, 150, 151, 152,
|
|
153, 154, 155, 156, 157, 158, 159, 160, 161, 162,
|
|
163, 164, 165, 166, 167, 168, 169, 170, 171, 172,
|
|
173, 174, 175, 176, 177, 178, 179, 180, 181, 182,
|
|
183, 184, 0, 0, 185, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 408, 0, 0, 0,
|
|
0, 1, 2, 3, 4, 5, 6, 7, 8, 0,
|
|
0, 0, 0, 0, 0, 186, 187, 188, 189, 190,
|
|
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, 117, 118,
|
|
119, 120, 121, 122, 123, 124, 125, 126, 127, 128,
|
|
129, 130, 131, 132, 133, 134, 135, 136, 137, 138,
|
|
139, 140, 141, 142, 143, 144, 145, 146, 147, 148,
|
|
149, 150, 151, 152, 153, 154, 155, 156, 157, 158,
|
|
159, 160, 161, 162, 163, 164, 165, 166, 167, 168,
|
|
169, 170, 171, 172, 173, 174, 175, 176, 177, 178,
|
|
179, 180, 181, 182, 183, 184, 0, 0, 185, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
473, 0, 0, 0, 0, 1, 2, 3, 4, 5,
|
|
6, 7, 8, 0, 0, 0, 0, 0, 0, 186,
|
|
187, 188, 189, 190, 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, 117, 118, 119, 120, 121, 122, 123, 124,
|
|
125, 126, 127, 128, 129, 130, 131, 132, 133, 134,
|
|
135, 136, 137, 138, 139, 140, 141, 142, 143, 144,
|
|
145, 146, 147, 148, 149, 150, 151, 152, 153, 154,
|
|
155, 156, 157, 158, 159, 160, 161, 162, 163, 164,
|
|
165, 166, 167, 168, 169, 170, 171, 172, 173, 174,
|
|
175, 176, 177, 178, 179, 180, 181, 182, 183, 184,
|
|
0, 0, 185, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 491, 0, 0, 0, 0, 1,
|
|
2, 3, 4, 5, 6, 7, 8, 0, 0, 0,
|
|
0, 0, 0, 186, 187, 188, 189, 190, 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, 117, 118, 119, 120,
|
|
121, 122, 123, 124, 125, 126, 127, 128, 129, 130,
|
|
131, 132, 133, 134, 135, 136, 137, 138, 139, 140,
|
|
141, 142, 143, 144, 145, 146, 147, 148, 149, 150,
|
|
151, 152, 153, 154, 155, 156, 157, 158, 159, 160,
|
|
161, 162, 163, 164, 165, 166, 167, 168, 169, 170,
|
|
171, 172, 173, 174, 175, 176, 177, 178, 179, 180,
|
|
181, 182, 183, 184, 0, 0, 185, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 4, 5, 6, 7,
|
|
8, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 10, 11, 12, 13, 14, 15, 16,
|
|
17, 18, 19, 20, 21, 22, 23, 24, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 186, 187, 188,
|
|
189, 190, 39, 40, 41, 42, 43, 44, 0, 0,
|
|
0, 0, 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,
|
|
117, 118, 119, 120, 121, 122, 123, 124, 125, 126,
|
|
127, 128, 129, 130, 131, 132, 133, 134, 135, 136,
|
|
137, 138, 139, 140, 141, 142, 143, 144, 145, 146,
|
|
147, 148, 149, 150, 151, 152, 153, 154, 155, 156,
|
|
157, 158, 159, 160, 161, 162, 163, 164, 165, 166,
|
|
167, 168, 169, 170, 171, 172, 173, 174, 175, 176,
|
|
177, 178, 179, 180, 181, 182, 183, 184, 0, 267,
|
|
185, 268, 269, 270, 271, 272, 0, 0, 273, 274,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 275, 0, 0,
|
|
0, 354, 507, 4, 5, 6, 7, 8, 277, 278,
|
|
279, 280, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
|
|
20, 21, 22, 23, 24, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 39,
|
|
40, 41, 42, 43, 44, 0, 0, 0, 0, 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, 117, 118, 119,
|
|
120, 121, 122, 123, 124, 125, 126, 127, 128, 129,
|
|
130, 131, 132, 133, 134, 135, 136, 137, 138, 139,
|
|
140, 141, 142, 143, 144, 145, 146, 147, 148, 149,
|
|
150, 151, 152, 153, 154, 155, 156, 157, 158, 159,
|
|
160, 161, 162, 163, 164, 165, 166, 167, 168, 169,
|
|
170, 171, 172, 173, 174, 175, 176, 177, 178, 179,
|
|
180, 181, 182, 183, 184, 0, 267, 185, 268, 269,
|
|
270, 271, 272, 0, 0, 273, 274, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 275, 0, 0, 276, 4, 5,
|
|
6, 7, 8, 0, 0, 277, 278, 279, 280, 0,
|
|
0, 0, 0, 0, 0, 10, 11, 12, 13, 14,
|
|
15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 39, 40, 41, 42, 43, 44,
|
|
0, 0, 0, 0, 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, 117, 118, 119, 120, 121, 122, 123, 124,
|
|
125, 126, 127, 128, 129, 130, 131, 132, 133, 134,
|
|
135, 136, 137, 138, 139, 140, 141, 142, 143, 144,
|
|
145, 146, 147, 148, 149, 150, 151, 152, 153, 154,
|
|
155, 156, 157, 158, 159, 160, 161, 162, 163, 164,
|
|
165, 166, 167, 168, 169, 170, 171, 172, 173, 174,
|
|
175, 176, 177, 178, 179, 180, 181, 182, 183, 184,
|
|
0, 267, 185, 268, 269, 270, 271, 272, 0, 0,
|
|
273, 274, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 275,
|
|
0, 0, 0, 354, 4, 5, 6, 7, 8, 0,
|
|
277, 278, 279, 280, 0, 0, 0, 0, 0, 0,
|
|
0, 10, 11, 12, 13, 14, 15, 16, 17, 18,
|
|
19, 20, 21, 22, 23, 24, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
39, 40, 41, 42, 43, 44, 0, 0, 0, 0,
|
|
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, 117, 118,
|
|
119, 120, 121, 122, 123, 124, 125, 126, 127, 128,
|
|
129, 130, 131, 132, 133, 134, 135, 136, 137, 138,
|
|
139, 140, 141, 142, 143, 144, 145, 146, 147, 148,
|
|
149, 150, 151, 152, 153, 154, 155, 156, 157, 158,
|
|
159, 160, 161, 162, 163, 164, 165, 166, 167, 168,
|
|
169, 170, 171, 172, 173, 174, 175, 176, 177, 178,
|
|
179, 180, 181, 182, 183, 184, 0, 267, 185, 268,
|
|
269, 270, 271, 272, 0, 0, 273, 274, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 275, 0, 0, 397, 4,
|
|
5, 6, 7, 8, 0, 0, 277, 278, 279, 280,
|
|
0, 0, 0, 0, 0, 0, 10, 11, 12, 13,
|
|
14, 15, 16, 17, 18, 19, 20, 21, 22, 23,
|
|
24, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 39, 40, 41, 42, 43,
|
|
44, 0, 0, 0, 0, 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, 117, 118, 119, 120, 121, 122, 123,
|
|
124, 125, 126, 127, 128, 129, 130, 131, 132, 133,
|
|
134, 135, 136, 137, 138, 139, 140, 141, 142, 143,
|
|
144, 145, 146, 147, 148, 149, 150, 151, 152, 153,
|
|
154, 155, 156, 157, 158, 159, 160, 161, 162, 163,
|
|
164, 165, 166, 167, 168, 169, 170, 171, 172, 173,
|
|
174, 175, 176, 177, 178, 179, 180, 181, 182, 183,
|
|
184, 0, 267, 185, 268, 269, 270, 271, 272, 0,
|
|
0, 273, 274, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
275, 4, 5, 6, 7, 8, 0, 0, 0, 0,
|
|
416, 277, 278, 279, 280, 0, 0, 0, 10, 11,
|
|
12, 13, 14, 15, 16, 17, 18, 19, 20, 21,
|
|
22, 23, 24, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 39, 40, 41,
|
|
42, 43, 44, 0, 0, 0, 0, 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, 117, 118, 119, 120, 121,
|
|
122, 123, 124, 125, 126, 127, 128, 129, 130, 131,
|
|
132, 133, 134, 135, 136, 137, 138, 139, 140, 141,
|
|
142, 143, 144, 145, 146, 147, 148, 149, 150, 151,
|
|
152, 153, 154, 155, 156, 157, 158, 159, 160, 161,
|
|
162, 163, 164, 165, 166, 167, 168, 169, 170, 171,
|
|
172, 173, 174, 175, 176, 177, 178, 179, 180, 181,
|
|
182, 183, 184, 0, 267, 185, 268, 269, 270, 271,
|
|
272, 0, 0, 273, 274, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 275, 4, 5, 6, 7, 8, 0, 0,
|
|
0, 0, 0, 277, 278, 279, 280, 0, 0, 0,
|
|
10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
|
|
20, 21, 22, 23, 24, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 39,
|
|
40, 41, 42, 43, 44, 0, 0, 0, 0, 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, 117, 118, 119,
|
|
120, 121, 122, 123, 124, 125, 126, 127, 128, 129,
|
|
130, 131, 132, 133, 134, 135, 136, 137, 138, 139,
|
|
140, 141, 142, 143, 144, 145, 146, 147, 148, 149,
|
|
150, 151, 152, 153, 154, 155, 156, 157, 158, 159,
|
|
160, 161, 162, 163, 164, 165, 166, 167, 168, 169,
|
|
170, 171, 172, 173, 174, 175, 176, 177, 178, 179,
|
|
180, 181, 182, 183, 372, 0, 267, 185, 268, 269,
|
|
270, 271, 272, 0, 0, 273, 274, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 275, 4, 5, 6, 7, 8,
|
|
0, 0, 0, 0, 0, 277, 278, 279, 280, 0,
|
|
0, 0, 10, 11, 12, 13, 14, 15, 16, 17,
|
|
18, 19, 20, 21, 22, 23, 24, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 39, 40, 41, 42, 43, 44, 0, 0, 0,
|
|
0, 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, 117,
|
|
118, 119, 120, 121, 122, 123, 124, 125, 126, 127,
|
|
128, 129, 130, 131, 132, 133, 134, 135, 136, 137,
|
|
138, 139, 140, 141, 142, 143, 144, 145, 146, 147,
|
|
148, 149, 150, 151, 152, 153, 154, 155, 156, 157,
|
|
158, 159, 160, 161, 162, 163, 164, 165, 166, 167,
|
|
168, 169, 170, 171, 172, 173, 174, 175, 176, 177,
|
|
178, 179, 180, 181, 182, 183, 184, 0, 0, 185
|
|
};
|
|
|
|
#define yypact_value_is_default(Yystate) \
|
|
(!!((Yystate) == (-466)))
|
|
|
|
#define yytable_value_is_error(Yytable_value) \
|
|
YYID (0)
|
|
|
|
static const yytype_int16 yycheck[] =
|
|
{
|
|
0, 205, 197, 261, 0, 0, 275, 344, 220, 46,
|
|
423, 238, 352, 199, 354, 312, 315, 357, 215, 484,
|
|
199, 233, 227, 208, 209, 229, 228, 210, 211, 229,
|
|
225, 289, 234, 229, 499, 227, 227, 237, 229, 237,
|
|
234, 237, 227, 237, 229, 236, 258, 259, 233, 206,
|
|
207, 237, 231, 250, 249, 228, 325, 234, 327, 234,
|
|
237, 358, 245, 246, 217, 218, 219, 220, 221, 222,
|
|
223, 224, 225, 226, 229, 412, 516, 229, 199, 306,
|
|
520, 236, 309, 236, 236, 525, 229, 234, 229, 231,
|
|
237, 228, 234, 236, 352, 237, 354, 234, 367, 357,
|
|
228, 441, 228, 200, 403, 228, 234, 234, 234, 313,
|
|
237, 234, 228, 371, 231, 228, 529, 312, 234, 231,
|
|
315, 234, 383, 384, 385, 386, 234, 234, 199, 237,
|
|
237, 253, 254, 255, 212, 213, 242, 243, 244, 239,
|
|
232, 241, 234, 234, 235, 414, 445, 229, 485, 418,
|
|
490, 234, 235, 379, 380, 199, 381, 382, 387, 388,
|
|
236, 199, 199, 358, 237, 228, 227, 247, 249, 248,
|
|
216, 214, 230, 200, 199, 237, 227, 435, 436, 227,
|
|
237, 237, 227, 441, 199, 235, 238, 227, 227, 199,
|
|
530, 232, 228, 405, 198, 230, 230, 197, 227, 231,
|
|
199, 538, 471, 234, 228, 205, 232, 237, 403, 228,
|
|
14, 231, 212, 231, 236, 484, 212, 212, 232, 219,
|
|
237, 273, 274, 389, 391, 225, 390, 392, 229, 229,
|
|
499, 393, 490, 394, 225, 229, 311, 191, 476, 479,
|
|
292, 510, 515, 525, 404, 526, 223, 479, 499, 249,
|
|
445, 509, 212, 253, 306, 524, -1, 309, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, 530, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, 484,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
504, -1, -1, -1, 499, -1, -1, -1, -1, -1,
|
|
-1, -1, 312, 313, -1, 315, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, 376, 377, 378, 379, 380, 381,
|
|
382, 383, 384, 385, 386, 387, 388, 389, 390, 391,
|
|
392, 393, 394, -1, 344, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, 358, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, 403, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, 412, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, 423, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, 445, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, 479,
|
|
-1, -1, -1, -1, 484, 485, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, 499,
|
|
-1, -1, -1, -1, 504, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, 516, -1, -1, -1,
|
|
520, -1, -1, -1, -1, 525, -1, 0, -1, 529,
|
|
3, 4, 5, 6, 7, 8, 9, 10, 538, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, 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, 117, 118, 119, 120, 121, 122,
|
|
123, 124, 125, 126, 127, 128, 129, 130, 131, 132,
|
|
133, 134, 135, 136, 137, 138, 139, 140, 141, 142,
|
|
143, 144, 145, 146, 147, 148, 149, 150, 151, 152,
|
|
153, 154, 155, 156, 157, 158, 159, 160, 161, 162,
|
|
163, 164, 165, 166, 167, 168, 169, 170, 171, 172,
|
|
173, 174, 175, 176, 177, 178, 179, 180, 181, 182,
|
|
183, 184, 185, 186, 187, 188, 189, 190, 191, 192,
|
|
193, 194, 195, 196, 197, -1, -1, 200, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, 251, 252,
|
|
253, 254, 255, 256, 3, 4, 5, 6, 7, 8,
|
|
9, 10, 11, 12, 13, -1, 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, 117, 118,
|
|
119, 120, 121, 122, 123, 124, 125, 126, 127, 128,
|
|
129, 130, 131, 132, 133, 134, 135, 136, 137, 138,
|
|
139, 140, 141, 142, 143, 144, 145, 146, 147, 148,
|
|
149, 150, 151, 152, 153, 154, 155, 156, 157, 158,
|
|
159, 160, 161, 162, 163, 164, 165, 166, 167, 168,
|
|
169, 170, 171, 172, 173, 174, 175, 176, 177, 178,
|
|
179, 180, 181, 182, 183, 184, 185, 186, 187, 188,
|
|
189, 190, 191, 192, 193, 194, 195, 196, 197, 198,
|
|
199, 200, 201, 202, 203, 204, 205, -1, -1, 208,
|
|
209, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, 227, -1,
|
|
-1, -1, 231, 232, -1, -1, -1, -1, 237, 238,
|
|
239, 240, 241, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, 251, 252, 253, 254, 255, 256, 3, 4,
|
|
5, 6, 7, 8, 9, 10, 11, 12, 13, -1,
|
|
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, 117, 118, 119, 120, 121, 122, 123, 124,
|
|
125, 126, 127, 128, 129, 130, 131, 132, 133, 134,
|
|
135, 136, 137, 138, 139, 140, 141, 142, 143, 144,
|
|
145, 146, 147, 148, 149, 150, 151, 152, 153, 154,
|
|
155, 156, 157, 158, 159, 160, 161, 162, 163, 164,
|
|
165, 166, 167, 168, 169, 170, 171, 172, 173, 174,
|
|
175, 176, 177, 178, 179, 180, 181, 182, 183, 184,
|
|
185, 186, 187, 188, 189, 190, 191, 192, 193, 194,
|
|
195, 196, 197, 198, 199, 200, 201, 202, 203, 204,
|
|
205, -1, -1, 208, 209, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, 227, -1, -1, -1, 231, 232, -1, -1,
|
|
-1, -1, 237, 238, 239, 240, 241, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, 251, 252, 253, 254,
|
|
255, 256, 3, 4, 5, 6, 7, 8, 9, 10,
|
|
11, 12, 13, -1, 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, 117, 118, 119, 120,
|
|
121, 122, 123, 124, 125, 126, 127, 128, 129, 130,
|
|
131, 132, 133, 134, 135, 136, 137, 138, 139, 140,
|
|
141, 142, 143, 144, 145, 146, 147, 148, 149, 150,
|
|
151, 152, 153, 154, 155, 156, 157, 158, 159, 160,
|
|
161, 162, 163, 164, 165, 166, 167, 168, 169, 170,
|
|
171, 172, 173, 174, 175, 176, 177, 178, 179, 180,
|
|
181, 182, 183, 184, 185, 186, 187, 188, 189, 190,
|
|
191, 192, 193, 194, 195, 196, 197, 198, 199, 200,
|
|
201, 202, 203, 204, 205, -1, -1, 208, 209, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, 227, -1, -1, -1,
|
|
231, -1, -1, -1, -1, -1, 237, 238, 239, 240,
|
|
241, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
251, 252, 253, 254, 255, 256, 3, 4, 5, 6,
|
|
7, 8, 9, 10, 11, 12, 13, -1, 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,
|
|
117, 118, 119, 120, 121, 122, 123, 124, 125, 126,
|
|
127, 128, 129, 130, 131, 132, 133, 134, 135, 136,
|
|
137, 138, 139, 140, 141, 142, 143, 144, 145, 146,
|
|
147, 148, 149, 150, 151, 152, 153, 154, 155, 156,
|
|
157, 158, 159, 160, 161, 162, 163, 164, 165, 166,
|
|
167, 168, 169, 170, 171, 172, 173, 174, 175, 176,
|
|
177, 178, 179, 180, 181, 182, 183, 184, 185, 186,
|
|
187, 188, 189, 190, 191, 192, 193, 194, 195, 196,
|
|
197, 198, 199, 200, 201, 202, 203, 204, 205, -1,
|
|
-1, 208, 209, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
227, -1, -1, -1, 231, -1, -1, -1, -1, -1,
|
|
237, 238, 239, 240, 241, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, 251, 252, 253, 254, 255, 256,
|
|
3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
|
|
13, -1, 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, 117, 118, 119, 120, 121, 122,
|
|
123, 124, 125, 126, 127, 128, 129, 130, 131, 132,
|
|
133, 134, 135, 136, 137, 138, 139, 140, 141, 142,
|
|
143, 144, 145, 146, 147, 148, 149, 150, 151, 152,
|
|
153, 154, 155, 156, 157, 158, 159, 160, 161, 162,
|
|
163, 164, 165, 166, 167, 168, 169, 170, 171, 172,
|
|
173, 174, 175, 176, 177, 178, 179, 180, 181, 182,
|
|
183, 184, 185, 186, 187, 188, 189, 190, 191, 192,
|
|
193, 194, 195, 196, 197, 198, 199, 200, 201, 202,
|
|
203, 204, 205, -1, -1, 208, 209, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, 227, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, 237, 238, 239, 240, 241, 3,
|
|
4, 5, 6, 7, 8, 9, 10, -1, 251, 252,
|
|
253, 254, 255, 256, -1, -1, -1, -1, 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, 117, 118, 119, 120, 121, 122, 123,
|
|
124, 125, 126, 127, 128, 129, 130, 131, 132, 133,
|
|
134, 135, 136, 137, 138, 139, 140, 141, 142, 143,
|
|
144, 145, 146, 147, 148, 149, 150, 151, 152, 153,
|
|
154, 155, 156, 157, 158, 159, 160, 161, 162, 163,
|
|
164, 165, 166, 167, 168, 169, 170, 171, 172, 173,
|
|
174, 175, 176, 177, 178, 179, 180, 181, 182, 183,
|
|
184, 185, 186, 187, 188, 189, 190, 191, 192, 193,
|
|
194, 195, 196, 197, -1, 199, 200, 201, 202, 203,
|
|
204, 205, -1, -1, 208, 209, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, 227, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, 237, 238, 239, 240, 241, 3, 4,
|
|
5, 6, 7, 8, 9, 10, -1, 251, 252, 253,
|
|
254, 255, 256, -1, -1, -1, -1, 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, 117, 118, 119, 120, 121, 122, 123, 124,
|
|
125, 126, 127, 128, 129, 130, 131, 132, 133, 134,
|
|
135, 136, 137, 138, 139, 140, 141, 142, 143, 144,
|
|
145, 146, 147, 148, 149, 150, 151, 152, 153, 154,
|
|
155, 156, 157, 158, 159, 160, 161, 162, 163, 164,
|
|
165, 166, 167, 168, 169, 170, 171, 172, 173, 174,
|
|
175, 176, 177, 178, 179, 180, 181, 182, 183, 184,
|
|
185, 186, 187, 188, 189, 190, 191, 192, 193, 194,
|
|
195, 196, 197, -1, -1, 200, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -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, 4, 5, 6, 7, 8, 9,
|
|
10, -1, -1, -1, -1, -1, 251, 252, 253, 254,
|
|
255, 256, 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, 117, 118, 119,
|
|
120, 121, 122, 123, 124, 125, 126, 127, 128, 129,
|
|
130, 131, 132, 133, 134, 135, 136, 137, 138, 139,
|
|
140, 141, 142, 143, 144, 145, 146, 147, 148, 149,
|
|
150, 151, 152, 153, 154, 155, 156, 157, 158, 159,
|
|
160, 161, 162, 163, 164, 165, 166, 167, 168, 169,
|
|
170, 171, 172, 173, 174, 175, 176, 177, 178, 179,
|
|
180, 181, 182, 183, 184, 185, 186, 187, 188, 189,
|
|
190, 191, 192, 193, 194, 195, 196, 197, -1, 199,
|
|
200, 201, 202, 203, 204, 205, -1, -1, 208, 209,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, 227, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, 238, 239,
|
|
240, 241, 3, 4, 5, 6, 7, 8, 9, 10,
|
|
-1, 251, 252, 253, 254, 255, -1, -1, -1, -1,
|
|
-1, 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, 117, 118, 119, 120,
|
|
121, 122, 123, 124, 125, 126, 127, 128, 129, 130,
|
|
131, 132, 133, 134, 135, 136, 137, 138, 139, 140,
|
|
141, 142, 143, 144, 145, 146, 147, 148, 149, 150,
|
|
151, 152, 153, 154, 155, 156, 157, 158, 159, 160,
|
|
161, 162, 163, 164, 165, 166, 167, 168, 169, 170,
|
|
171, 172, 173, 174, 175, 176, 177, 178, 179, 180,
|
|
181, 182, 183, 184, 185, 186, 187, 188, 189, 190,
|
|
191, 192, 193, 194, 195, 196, 197, -1, 199, 200,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, 237, 3, 4, 5,
|
|
6, 7, 8, 9, 10, -1, -1, -1, -1, -1,
|
|
251, 252, 253, 254, 255, -1, 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, 117, 118, 119, 120, 121, 122, 123, 124, 125,
|
|
126, 127, 128, 129, 130, 131, 132, 133, 134, 135,
|
|
136, 137, 138, 139, 140, 141, 142, 143, 144, 145,
|
|
146, 147, 148, 149, 150, 151, 152, 153, 154, 155,
|
|
156, 157, 158, 159, 160, 161, 162, 163, 164, 165,
|
|
166, 167, 168, 169, 170, 171, 172, 173, 174, 175,
|
|
176, 177, 178, 179, 180, 181, 182, 183, 184, 185,
|
|
186, 187, 188, 189, 190, 191, 192, 193, 194, 195,
|
|
196, 197, -1, -1, 200, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, 232, -1, -1, -1,
|
|
-1, 3, 4, 5, 6, 7, 8, 9, 10, -1,
|
|
-1, -1, -1, -1, -1, 251, 252, 253, 254, 255,
|
|
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, 117, 118, 119, 120, 121,
|
|
122, 123, 124, 125, 126, 127, 128, 129, 130, 131,
|
|
132, 133, 134, 135, 136, 137, 138, 139, 140, 141,
|
|
142, 143, 144, 145, 146, 147, 148, 149, 150, 151,
|
|
152, 153, 154, 155, 156, 157, 158, 159, 160, 161,
|
|
162, 163, 164, 165, 166, 167, 168, 169, 170, 171,
|
|
172, 173, 174, 175, 176, 177, 178, 179, 180, 181,
|
|
182, 183, 184, 185, 186, 187, 188, 189, 190, 191,
|
|
192, 193, 194, 195, 196, 197, -1, -1, 200, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
232, -1, -1, -1, -1, 3, 4, 5, 6, 7,
|
|
8, 9, 10, -1, -1, -1, -1, -1, -1, 251,
|
|
252, 253, 254, 255, 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, 117,
|
|
118, 119, 120, 121, 122, 123, 124, 125, 126, 127,
|
|
128, 129, 130, 131, 132, 133, 134, 135, 136, 137,
|
|
138, 139, 140, 141, 142, 143, 144, 145, 146, 147,
|
|
148, 149, 150, 151, 152, 153, 154, 155, 156, 157,
|
|
158, 159, 160, 161, 162, 163, 164, 165, 166, 167,
|
|
168, 169, 170, 171, 172, 173, 174, 175, 176, 177,
|
|
178, 179, 180, 181, 182, 183, 184, 185, 186, 187,
|
|
188, 189, 190, 191, 192, 193, 194, 195, 196, 197,
|
|
-1, -1, 200, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, 232, -1, -1, -1, -1, 3,
|
|
4, 5, 6, 7, 8, 9, 10, -1, -1, -1,
|
|
-1, -1, -1, 251, 252, 253, 254, 255, 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, 117, 118, 119, 120, 121, 122, 123,
|
|
124, 125, 126, 127, 128, 129, 130, 131, 132, 133,
|
|
134, 135, 136, 137, 138, 139, 140, 141, 142, 143,
|
|
144, 145, 146, 147, 148, 149, 150, 151, 152, 153,
|
|
154, 155, 156, 157, 158, 159, 160, 161, 162, 163,
|
|
164, 165, 166, 167, 168, 169, 170, 171, 172, 173,
|
|
174, 175, 176, 177, 178, 179, 180, 181, 182, 183,
|
|
184, 185, 186, 187, 188, 189, 190, 191, 192, 193,
|
|
194, 195, 196, 197, -1, -1, 200, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, 6, 7, 8, 9,
|
|
10, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, 23, 24, 25, 26, 27, 28, 29,
|
|
30, 31, 32, 33, 34, 35, 36, 37, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, 251, 252, 253,
|
|
254, 255, 52, 53, 54, 55, 56, 57, -1, -1,
|
|
-1, -1, 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, 117, 118, 119,
|
|
120, 121, 122, 123, 124, 125, 126, 127, 128, 129,
|
|
130, 131, 132, 133, 134, 135, 136, 137, 138, 139,
|
|
140, 141, 142, 143, 144, 145, 146, 147, 148, 149,
|
|
150, 151, 152, 153, 154, 155, 156, 157, 158, 159,
|
|
160, 161, 162, 163, 164, 165, 166, 167, 168, 169,
|
|
170, 171, 172, 173, 174, 175, 176, 177, 178, 179,
|
|
180, 181, 182, 183, 184, 185, 186, 187, 188, 189,
|
|
190, 191, 192, 193, 194, 195, 196, 197, -1, 199,
|
|
200, 201, 202, 203, 204, 205, -1, -1, 208, 209,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, 227, -1, -1,
|
|
-1, 231, 232, 6, 7, 8, 9, 10, 238, 239,
|
|
240, 241, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
|
|
33, 34, 35, 36, 37, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, 52,
|
|
53, 54, 55, 56, 57, -1, -1, -1, -1, 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, 117, 118, 119, 120, 121, 122,
|
|
123, 124, 125, 126, 127, 128, 129, 130, 131, 132,
|
|
133, 134, 135, 136, 137, 138, 139, 140, 141, 142,
|
|
143, 144, 145, 146, 147, 148, 149, 150, 151, 152,
|
|
153, 154, 155, 156, 157, 158, 159, 160, 161, 162,
|
|
163, 164, 165, 166, 167, 168, 169, 170, 171, 172,
|
|
173, 174, 175, 176, 177, 178, 179, 180, 181, 182,
|
|
183, 184, 185, 186, 187, 188, 189, 190, 191, 192,
|
|
193, 194, 195, 196, 197, -1, 199, 200, 201, 202,
|
|
203, 204, 205, -1, -1, 208, 209, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, 227, -1, -1, 230, 6, 7,
|
|
8, 9, 10, -1, -1, 238, 239, 240, 241, -1,
|
|
-1, -1, -1, -1, -1, 23, 24, 25, 26, 27,
|
|
28, 29, 30, 31, 32, 33, 34, 35, 36, 37,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, 52, 53, 54, 55, 56, 57,
|
|
-1, -1, -1, -1, 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, 117,
|
|
118, 119, 120, 121, 122, 123, 124, 125, 126, 127,
|
|
128, 129, 130, 131, 132, 133, 134, 135, 136, 137,
|
|
138, 139, 140, 141, 142, 143, 144, 145, 146, 147,
|
|
148, 149, 150, 151, 152, 153, 154, 155, 156, 157,
|
|
158, 159, 160, 161, 162, 163, 164, 165, 166, 167,
|
|
168, 169, 170, 171, 172, 173, 174, 175, 176, 177,
|
|
178, 179, 180, 181, 182, 183, 184, 185, 186, 187,
|
|
188, 189, 190, 191, 192, 193, 194, 195, 196, 197,
|
|
-1, 199, 200, 201, 202, 203, 204, 205, -1, -1,
|
|
208, 209, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, 227,
|
|
-1, -1, -1, 231, 6, 7, 8, 9, 10, -1,
|
|
238, 239, 240, 241, -1, -1, -1, -1, -1, -1,
|
|
-1, 23, 24, 25, 26, 27, 28, 29, 30, 31,
|
|
32, 33, 34, 35, 36, 37, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
52, 53, 54, 55, 56, 57, -1, -1, -1, -1,
|
|
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, 117, 118, 119, 120, 121,
|
|
122, 123, 124, 125, 126, 127, 128, 129, 130, 131,
|
|
132, 133, 134, 135, 136, 137, 138, 139, 140, 141,
|
|
142, 143, 144, 145, 146, 147, 148, 149, 150, 151,
|
|
152, 153, 154, 155, 156, 157, 158, 159, 160, 161,
|
|
162, 163, 164, 165, 166, 167, 168, 169, 170, 171,
|
|
172, 173, 174, 175, 176, 177, 178, 179, 180, 181,
|
|
182, 183, 184, 185, 186, 187, 188, 189, 190, 191,
|
|
192, 193, 194, 195, 196, 197, -1, 199, 200, 201,
|
|
202, 203, 204, 205, -1, -1, 208, 209, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, 227, -1, -1, 230, 6,
|
|
7, 8, 9, 10, -1, -1, 238, 239, 240, 241,
|
|
-1, -1, -1, -1, -1, -1, 23, 24, 25, 26,
|
|
27, 28, 29, 30, 31, 32, 33, 34, 35, 36,
|
|
37, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, 52, 53, 54, 55, 56,
|
|
57, -1, -1, -1, -1, 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,
|
|
117, 118, 119, 120, 121, 122, 123, 124, 125, 126,
|
|
127, 128, 129, 130, 131, 132, 133, 134, 135, 136,
|
|
137, 138, 139, 140, 141, 142, 143, 144, 145, 146,
|
|
147, 148, 149, 150, 151, 152, 153, 154, 155, 156,
|
|
157, 158, 159, 160, 161, 162, 163, 164, 165, 166,
|
|
167, 168, 169, 170, 171, 172, 173, 174, 175, 176,
|
|
177, 178, 179, 180, 181, 182, 183, 184, 185, 186,
|
|
187, 188, 189, 190, 191, 192, 193, 194, 195, 196,
|
|
197, -1, 199, 200, 201, 202, 203, 204, 205, -1,
|
|
-1, 208, 209, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
227, 6, 7, 8, 9, 10, -1, -1, -1, -1,
|
|
237, 238, 239, 240, 241, -1, -1, -1, 23, 24,
|
|
25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
|
|
35, 36, 37, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, 52, 53, 54,
|
|
55, 56, 57, -1, -1, -1, -1, 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, 117, 118, 119, 120, 121, 122, 123, 124,
|
|
125, 126, 127, 128, 129, 130, 131, 132, 133, 134,
|
|
135, 136, 137, 138, 139, 140, 141, 142, 143, 144,
|
|
145, 146, 147, 148, 149, 150, 151, 152, 153, 154,
|
|
155, 156, 157, 158, 159, 160, 161, 162, 163, 164,
|
|
165, 166, 167, 168, 169, 170, 171, 172, 173, 174,
|
|
175, 176, 177, 178, 179, 180, 181, 182, 183, 184,
|
|
185, 186, 187, 188, 189, 190, 191, 192, 193, 194,
|
|
195, 196, 197, -1, 199, 200, 201, 202, 203, 204,
|
|
205, -1, -1, 208, 209, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, 227, 6, 7, 8, 9, 10, -1, -1,
|
|
-1, -1, -1, 238, 239, 240, 241, -1, -1, -1,
|
|
23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
|
|
33, 34, 35, 36, 37, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, 52,
|
|
53, 54, 55, 56, 57, -1, -1, -1, -1, 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, 117, 118, 119, 120, 121, 122,
|
|
123, 124, 125, 126, 127, 128, 129, 130, 131, 132,
|
|
133, 134, 135, 136, 137, 138, 139, 140, 141, 142,
|
|
143, 144, 145, 146, 147, 148, 149, 150, 151, 152,
|
|
153, 154, 155, 156, 157, 158, 159, 160, 161, 162,
|
|
163, 164, 165, 166, 167, 168, 169, 170, 171, 172,
|
|
173, 174, 175, 176, 177, 178, 179, 180, 181, 182,
|
|
183, 184, 185, 186, 187, 188, 189, 190, 191, 192,
|
|
193, 194, 195, 196, 197, -1, 199, 200, 201, 202,
|
|
203, 204, 205, -1, -1, 208, 209, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, -1, -1, -1, 227, 6, 7, 8, 9, 10,
|
|
-1, -1, -1, -1, -1, 238, 239, 240, 241, -1,
|
|
-1, -1, 23, 24, 25, 26, 27, 28, 29, 30,
|
|
31, 32, 33, 34, 35, 36, 37, -1, -1, -1,
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
-1, 52, 53, 54, 55, 56, 57, -1, -1, -1,
|
|
-1, 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, 117, 118, 119, 120,
|
|
121, 122, 123, 124, 125, 126, 127, 128, 129, 130,
|
|
131, 132, 133, 134, 135, 136, 137, 138, 139, 140,
|
|
141, 142, 143, 144, 145, 146, 147, 148, 149, 150,
|
|
151, 152, 153, 154, 155, 156, 157, 158, 159, 160,
|
|
161, 162, 163, 164, 165, 166, 167, 168, 169, 170,
|
|
171, 172, 173, 174, 175, 176, 177, 178, 179, 180,
|
|
181, 182, 183, 184, 185, 186, 187, 188, 189, 190,
|
|
191, 192, 193, 194, 195, 196, 197, -1, -1, 200
|
|
};
|
|
|
|
/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
|
|
symbol of state STATE-NUM. */
|
|
static const yytype_uint16 yystos[] =
|
|
{
|
|
0, 3, 4, 5, 6, 7, 8, 9, 10, 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, 117, 118, 119, 120, 121, 122,
|
|
123, 124, 125, 126, 127, 128, 129, 130, 131, 132,
|
|
133, 134, 135, 136, 137, 138, 139, 140, 141, 142,
|
|
143, 144, 145, 146, 147, 148, 149, 150, 151, 152,
|
|
153, 154, 155, 156, 157, 158, 159, 160, 161, 162,
|
|
163, 164, 165, 166, 167, 168, 169, 170, 171, 172,
|
|
173, 174, 175, 176, 177, 178, 179, 180, 181, 182,
|
|
183, 184, 185, 186, 187, 188, 189, 190, 191, 192,
|
|
193, 194, 195, 196, 197, 200, 251, 252, 253, 254,
|
|
255, 256, 291, 292, 295, 296, 297, 298, 302, 303,
|
|
304, 305, 306, 307, 310, 311, 312, 313, 315, 317,
|
|
318, 319, 356, 357, 358, 227, 227, 199, 231, 318,
|
|
199, 237, 237, 359, 228, 234, 299, 300, 301, 311,
|
|
315, 234, 237, 199, 199, 237, 312, 315, 229, 316,
|
|
0, 357, 200, 314, 46, 199, 308, 309, 231, 321,
|
|
315, 237, 316, 231, 338, 300, 299, 301, 199, 199,
|
|
227, 236, 316, 231, 234, 237, 294, 199, 201, 202,
|
|
203, 204, 205, 208, 209, 227, 230, 238, 239, 240,
|
|
241, 261, 262, 263, 265, 266, 267, 268, 269, 270,
|
|
271, 272, 273, 274, 275, 276, 277, 278, 279, 280,
|
|
281, 282, 283, 284, 285, 315, 229, 228, 234, 236,
|
|
228, 234, 320, 311, 315, 322, 323, 237, 237, 11,
|
|
12, 13, 15, 16, 17, 18, 19, 20, 21, 198,
|
|
231, 232, 237, 272, 285, 287, 289, 291, 295, 315,
|
|
328, 329, 330, 331, 339, 340, 341, 344, 347, 348,
|
|
355, 316, 236, 316, 231, 287, 326, 236, 293, 199,
|
|
234, 237, 272, 272, 289, 208, 209, 229, 233, 228,
|
|
228, 234, 197, 287, 227, 272, 242, 243, 244, 239,
|
|
241, 206, 207, 210, 211, 245, 246, 212, 213, 249,
|
|
248, 247, 214, 216, 215, 250, 230, 230, 285, 200,
|
|
285, 290, 309, 322, 315, 199, 324, 325, 232, 323,
|
|
237, 237, 350, 227, 227, 237, 237, 289, 227, 289,
|
|
235, 227, 232, 332, 217, 218, 219, 220, 221, 222,
|
|
223, 224, 225, 226, 236, 288, 234, 237, 232, 329,
|
|
326, 236, 326, 327, 326, 322, 199, 228, 264, 289,
|
|
199, 287, 272, 272, 272, 274, 274, 275, 275, 276,
|
|
276, 276, 276, 277, 277, 278, 279, 280, 281, 282,
|
|
283, 286, 230, 232, 324, 316, 234, 237, 329, 351,
|
|
289, 237, 289, 235, 349, 339, 287, 287, 326, 232,
|
|
234, 232, 230, 289, 237, 325, 198, 328, 340, 352,
|
|
228, 228, 289, 304, 311, 343, 333, 232, 326, 235,
|
|
227, 343, 353, 354, 335, 336, 337, 342, 345, 199,
|
|
228, 232, 287, 289, 237, 228, 14, 331, 330, 231,
|
|
236, 330, 334, 338, 228, 289, 334, 335, 339, 346,
|
|
326, 237, 232
|
|
};
|
|
|
|
#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 (pParseContext, YY_("syntax error: cannot back up")); \
|
|
YYERROR; \
|
|
} \
|
|
while (YYID (0))
|
|
|
|
/* Error token number */
|
|
#define YYTERROR 1
|
|
#define YYERRCODE 256
|
|
|
|
|
|
/* This macro is provided for backward compatibility. */
|
|
#ifndef YY_LOCATION_PRINT
|
|
# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
|
|
#endif
|
|
|
|
|
|
/* YYLEX -- calling `yylex' with the right arguments. */
|
|
#ifdef YYLEX_PARAM
|
|
# define YYLEX yylex (&yylval, YYLEX_PARAM)
|
|
#else
|
|
# define YYLEX yylex (&yylval, parseContext)
|
|
#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, pParseContext); \
|
|
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, glslang::TParseContext* pParseContext)
|
|
#else
|
|
static void
|
|
yy_symbol_value_print (yyoutput, yytype, yyvaluep, pParseContext)
|
|
FILE *yyoutput;
|
|
int yytype;
|
|
YYSTYPE const * const yyvaluep;
|
|
glslang::TParseContext* pParseContext;
|
|
#endif
|
|
{
|
|
FILE *yyo = yyoutput;
|
|
YYUSE (yyo);
|
|
if (!yyvaluep)
|
|
return;
|
|
YYUSE (pParseContext);
|
|
# 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, glslang::TParseContext* pParseContext)
|
|
#else
|
|
static void
|
|
yy_symbol_print (yyoutput, yytype, yyvaluep, pParseContext)
|
|
FILE *yyoutput;
|
|
int yytype;
|
|
YYSTYPE const * const yyvaluep;
|
|
glslang::TParseContext* pParseContext;
|
|
#endif
|
|
{
|
|
if (yytype < YYNTOKENS)
|
|
YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
|
|
else
|
|
YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
|
|
|
|
yy_symbol_value_print (yyoutput, yytype, yyvaluep, pParseContext);
|
|
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, int yyrule, glslang::TParseContext* pParseContext)
|
|
#else
|
|
static void
|
|
yy_reduce_print (yyvsp, yyrule, pParseContext)
|
|
YYSTYPE *yyvsp;
|
|
int yyrule;
|
|
glslang::TParseContext* pParseContext;
|
|
#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)])
|
|
, pParseContext);
|
|
YYFPRINTF (stderr, "\n");
|
|
}
|
|
}
|
|
|
|
# define YY_REDUCE_PRINT(Rule) \
|
|
do { \
|
|
if (yydebug) \
|
|
yy_reduce_print (yyvsp, Rule, pParseContext); \
|
|
} 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, glslang::TParseContext* pParseContext)
|
|
#else
|
|
static void
|
|
yydestruct (yymsg, yytype, yyvaluep, pParseContext)
|
|
const char *yymsg;
|
|
int yytype;
|
|
YYSTYPE *yyvaluep;
|
|
glslang::TParseContext* pParseContext;
|
|
#endif
|
|
{
|
|
YYUSE (yyvaluep);
|
|
YYUSE (pParseContext);
|
|
|
|
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 (glslang::TParseContext* pParseContext)
|
|
#else
|
|
int
|
|
yyparse (pParseContext)
|
|
glslang::TParseContext* pParseContext;
|
|
#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
|
|
#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);
|
|
|
|
/* 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.
|
|
|
|
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;
|
|
|
|
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;
|
|
|
|
#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))
|
|
|
|
/* 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;
|
|
yystacksize = YYINITDEPTH;
|
|
|
|
YYDPRINTF ((stderr, "Starting parse\n"));
|
|
|
|
yystate = 0;
|
|
yyerrstatus = 0;
|
|
yynerrs = 0;
|
|
yychar = YYEMPTY; /* Cause a token to be read. */
|
|
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;
|
|
|
|
/* 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),
|
|
&yystacksize);
|
|
|
|
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);
|
|
# undef YYSTACK_RELOCATE
|
|
if (yyss1 != yyssa)
|
|
YYSTACK_FREE (yyss1);
|
|
}
|
|
# endif
|
|
#endif /* no yyoverflow */
|
|
|
|
yyssp = yyss + yysize - 1;
|
|
yyvsp = yyvs + yysize - 1;
|
|
|
|
YYDPRINTF ((stderr, "Stack size increased to %lu\n",
|
|
(unsigned long int) yystacksize));
|
|
|
|
if (yyss + yystacksize - 1 <= yyssp)
|
|
YYABORT;
|
|
}
|
|
|
|
YYDPRINTF ((stderr, "Entering state %d\n", yystate));
|
|
|
|
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
|
|
|
|
goto yynewstate;
|
|
|
|
|
|
/*-----------------------------------------------------------.
|
|
| yydefault -- do the default action for the current state. |
|
|
`-----------------------------------------------------------*/
|
|
yydefault:
|
|
yyn = yydefact[yystate];
|
|
if (yyn == 0)
|
|
goto yyerrlab;
|
|
goto yyreduce;
|
|
|
|
|
|
/*-----------------------------.
|
|
| yyreduce -- Do a reduction. |
|
|
`-----------------------------*/
|
|
yyreduce:
|
|
/* yyn is the number of a rule to reduce with. */
|
|
yylen = yyr2[yyn];
|
|
|
|
/* If YYLEN is nonzero, implement the default value of the action:
|
|
`$$ = $1'.
|
|
|
|
Otherwise, the following line sets YYVAL to garbage.
|
|
This behavior is undocumented and Bison
|
|
users should not rely upon it. Assigning to YYVAL
|
|
unconditionally makes the parser a bit smaller, and it avoids a
|
|
GCC warning that YYVAL may be used uninitialized. */
|
|
yyval = yyvsp[1-yylen];
|
|
|
|
|
|
YY_REDUCE_PRINT (yyn);
|
|
switch (yyn)
|
|
{
|
|
case 2:
|
|
/* Line 1792 of yacc.c */
|
|
#line 244 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermTypedNode) = parseContext.handleVariable((yyvsp[(1) - (1)].lex).loc, (yyvsp[(1) - (1)].lex).symbol, (yyvsp[(1) - (1)].lex).string);
|
|
}
|
|
break;
|
|
|
|
case 3:
|
|
/* Line 1792 of yacc.c */
|
|
#line 250 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode);
|
|
}
|
|
break;
|
|
|
|
case 4:
|
|
/* Line 1792 of yacc.c */
|
|
#line 253 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[(1) - (1)].lex).i, (yyvsp[(1) - (1)].lex).loc, true);
|
|
}
|
|
break;
|
|
|
|
case 5:
|
|
/* Line 1792 of yacc.c */
|
|
#line 256 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.fullIntegerCheck((yyvsp[(1) - (1)].lex).loc, "unsigned literal");
|
|
(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[(1) - (1)].lex).u, (yyvsp[(1) - (1)].lex).loc, true);
|
|
}
|
|
break;
|
|
|
|
case 6:
|
|
/* Line 1792 of yacc.c */
|
|
#line 260 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[(1) - (1)].lex).d, EbtFloat, (yyvsp[(1) - (1)].lex).loc, true);
|
|
}
|
|
break;
|
|
|
|
case 7:
|
|
/* Line 1792 of yacc.c */
|
|
#line 263 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.doubleCheck((yyvsp[(1) - (1)].lex).loc, "double literal");
|
|
(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[(1) - (1)].lex).d, EbtDouble, (yyvsp[(1) - (1)].lex).loc, true);
|
|
}
|
|
break;
|
|
|
|
case 8:
|
|
/* Line 1792 of yacc.c */
|
|
#line 267 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[(1) - (1)].lex).b, (yyvsp[(1) - (1)].lex).loc, true);
|
|
}
|
|
break;
|
|
|
|
case 9:
|
|
/* Line 1792 of yacc.c */
|
|
#line 270 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermTypedNode) = (yyvsp[(2) - (3)].interm.intermTypedNode);
|
|
if ((yyval.interm.intermTypedNode)->getAsConstantUnion())
|
|
(yyval.interm.intermTypedNode)->getAsConstantUnion()->setExpression();
|
|
}
|
|
break;
|
|
|
|
case 10:
|
|
/* Line 1792 of yacc.c */
|
|
#line 278 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode);
|
|
}
|
|
break;
|
|
|
|
case 11:
|
|
/* Line 1792 of yacc.c */
|
|
#line 281 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermTypedNode) = parseContext.handleBracketDereference((yyvsp[(2) - (4)].lex).loc, (yyvsp[(1) - (4)].interm.intermTypedNode), (yyvsp[(3) - (4)].interm.intermTypedNode));
|
|
}
|
|
break;
|
|
|
|
case 12:
|
|
/* Line 1792 of yacc.c */
|
|
#line 284 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode);
|
|
}
|
|
break;
|
|
|
|
case 13:
|
|
/* Line 1792 of yacc.c */
|
|
#line 287 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermTypedNode) = parseContext.handleDotDereference((yyvsp[(3) - (3)].lex).loc, (yyvsp[(1) - (3)].interm.intermTypedNode), *(yyvsp[(3) - (3)].lex).string);
|
|
}
|
|
break;
|
|
|
|
case 14:
|
|
/* Line 1792 of yacc.c */
|
|
#line 290 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.variableCheck((yyvsp[(1) - (2)].interm.intermTypedNode));
|
|
parseContext.lValueErrorCheck((yyvsp[(2) - (2)].lex).loc, "++", (yyvsp[(1) - (2)].interm.intermTypedNode));
|
|
(yyval.interm.intermTypedNode) = parseContext.handleUnaryMath((yyvsp[(2) - (2)].lex).loc, "++", EOpPostIncrement, (yyvsp[(1) - (2)].interm.intermTypedNode));
|
|
}
|
|
break;
|
|
|
|
case 15:
|
|
/* Line 1792 of yacc.c */
|
|
#line 295 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.variableCheck((yyvsp[(1) - (2)].interm.intermTypedNode));
|
|
parseContext.lValueErrorCheck((yyvsp[(2) - (2)].lex).loc, "--", (yyvsp[(1) - (2)].interm.intermTypedNode));
|
|
(yyval.interm.intermTypedNode) = parseContext.handleUnaryMath((yyvsp[(2) - (2)].lex).loc, "--", EOpPostDecrement, (yyvsp[(1) - (2)].interm.intermTypedNode));
|
|
}
|
|
break;
|
|
|
|
case 16:
|
|
/* Line 1792 of yacc.c */
|
|
#line 303 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.integerCheck((yyvsp[(1) - (1)].interm.intermTypedNode), "[]");
|
|
(yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode);
|
|
}
|
|
break;
|
|
|
|
case 17:
|
|
/* Line 1792 of yacc.c */
|
|
#line 310 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermTypedNode) = parseContext.handleFunctionCall((yyvsp[(1) - (1)].interm).loc, (yyvsp[(1) - (1)].interm).function, (yyvsp[(1) - (1)].interm).intermNode);
|
|
delete (yyvsp[(1) - (1)].interm).function;
|
|
}
|
|
break;
|
|
|
|
case 18:
|
|
/* Line 1792 of yacc.c */
|
|
#line 317 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm) = (yyvsp[(1) - (1)].interm);
|
|
}
|
|
break;
|
|
|
|
case 19:
|
|
/* Line 1792 of yacc.c */
|
|
#line 323 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm) = (yyvsp[(1) - (2)].interm);
|
|
(yyval.interm).loc = (yyvsp[(2) - (2)].lex).loc;
|
|
}
|
|
break;
|
|
|
|
case 20:
|
|
/* Line 1792 of yacc.c */
|
|
#line 327 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm) = (yyvsp[(1) - (2)].interm);
|
|
(yyval.interm).loc = (yyvsp[(2) - (2)].lex).loc;
|
|
}
|
|
break;
|
|
|
|
case 21:
|
|
/* Line 1792 of yacc.c */
|
|
#line 334 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm) = (yyvsp[(1) - (2)].interm);
|
|
}
|
|
break;
|
|
|
|
case 22:
|
|
/* Line 1792 of yacc.c */
|
|
#line 337 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm) = (yyvsp[(1) - (1)].interm);
|
|
}
|
|
break;
|
|
|
|
case 23:
|
|
/* Line 1792 of yacc.c */
|
|
#line 343 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
TParameter param = { 0, new TType };
|
|
param.type->shallowCopy((yyvsp[(2) - (2)].interm.intermTypedNode)->getType());
|
|
(yyvsp[(1) - (2)].interm).function->addParameter(param);
|
|
(yyval.interm).function = (yyvsp[(1) - (2)].interm).function;
|
|
(yyval.interm).intermNode = (yyvsp[(2) - (2)].interm.intermTypedNode);
|
|
}
|
|
break;
|
|
|
|
case 24:
|
|
/* Line 1792 of yacc.c */
|
|
#line 350 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
TParameter param = { 0, new TType };
|
|
param.type->shallowCopy((yyvsp[(3) - (3)].interm.intermTypedNode)->getType());
|
|
(yyvsp[(1) - (3)].interm).function->addParameter(param);
|
|
(yyval.interm).function = (yyvsp[(1) - (3)].interm).function;
|
|
(yyval.interm).intermNode = parseContext.intermediate.growAggregate((yyvsp[(1) - (3)].interm).intermNode, (yyvsp[(3) - (3)].interm.intermTypedNode), (yyvsp[(2) - (3)].lex).loc);
|
|
}
|
|
break;
|
|
|
|
case 25:
|
|
/* Line 1792 of yacc.c */
|
|
#line 360 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm) = (yyvsp[(1) - (2)].interm);
|
|
}
|
|
break;
|
|
|
|
case 26:
|
|
/* Line 1792 of yacc.c */
|
|
#line 368 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
// Constructor
|
|
(yyval.interm).intermNode = 0;
|
|
(yyval.interm).function = parseContext.handleConstructorCall((yyvsp[(1) - (1)].interm.type).loc, (yyvsp[(1) - (1)].interm.type));
|
|
}
|
|
break;
|
|
|
|
case 27:
|
|
/* Line 1792 of yacc.c */
|
|
#line 373 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
//
|
|
// Should be a method or subroutine call, but we haven't recognized the arguments yet.
|
|
//
|
|
(yyval.interm).function = 0;
|
|
(yyval.interm).intermNode = 0;
|
|
|
|
TIntermMethod* method = (yyvsp[(1) - (1)].interm.intermTypedNode)->getAsMethodNode();
|
|
if (method) {
|
|
(yyval.interm).function = new TFunction(&method->getMethodName(), TType(EbtInt), EOpArrayLength);
|
|
(yyval.interm).intermNode = method->getObject();
|
|
} else {
|
|
TIntermSymbol* symbol = (yyvsp[(1) - (1)].interm.intermTypedNode)->getAsSymbolNode();
|
|
if (symbol) {
|
|
parseContext.reservedErrorCheck(symbol->getLoc(), symbol->getName());
|
|
TFunction *function = new TFunction(&symbol->getName(), TType(EbtVoid));
|
|
(yyval.interm).function = function;
|
|
} else
|
|
parseContext.error((yyvsp[(1) - (1)].interm.intermTypedNode)->getLoc(), "function call, method, or subroutine call expected", "", "");
|
|
}
|
|
|
|
if ((yyval.interm).function == 0) {
|
|
// error recover
|
|
TString empty("");
|
|
(yyval.interm).function = new TFunction(&empty, TType(EbtVoid), EOpNull);
|
|
}
|
|
}
|
|
break;
|
|
|
|
case 28:
|
|
/* Line 1792 of yacc.c */
|
|
#line 403 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.variableCheck((yyvsp[(1) - (1)].interm.intermTypedNode));
|
|
(yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode);
|
|
if (TIntermMethod* method = (yyvsp[(1) - (1)].interm.intermTypedNode)->getAsMethodNode())
|
|
parseContext.error((yyvsp[(1) - (1)].interm.intermTypedNode)->getLoc(), "incomplete method syntax", method->getMethodName().c_str(), "");
|
|
}
|
|
break;
|
|
|
|
case 29:
|
|
/* Line 1792 of yacc.c */
|
|
#line 409 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.lValueErrorCheck((yyvsp[(1) - (2)].lex).loc, "++", (yyvsp[(2) - (2)].interm.intermTypedNode));
|
|
(yyval.interm.intermTypedNode) = parseContext.handleUnaryMath((yyvsp[(1) - (2)].lex).loc, "++", EOpPreIncrement, (yyvsp[(2) - (2)].interm.intermTypedNode));
|
|
}
|
|
break;
|
|
|
|
case 30:
|
|
/* Line 1792 of yacc.c */
|
|
#line 413 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.lValueErrorCheck((yyvsp[(1) - (2)].lex).loc, "--", (yyvsp[(2) - (2)].interm.intermTypedNode));
|
|
(yyval.interm.intermTypedNode) = parseContext.handleUnaryMath((yyvsp[(1) - (2)].lex).loc, "--", EOpPreDecrement, (yyvsp[(2) - (2)].interm.intermTypedNode));
|
|
}
|
|
break;
|
|
|
|
case 31:
|
|
/* Line 1792 of yacc.c */
|
|
#line 417 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
if ((yyvsp[(1) - (2)].interm).op != EOpNull) {
|
|
char errorOp[2] = {0, 0};
|
|
switch((yyvsp[(1) - (2)].interm).op) {
|
|
case EOpNegative: errorOp[0] = '-'; break;
|
|
case EOpLogicalNot: errorOp[0] = '!'; break;
|
|
case EOpBitwiseNot: errorOp[0] = '~'; break;
|
|
default: break; // some compilers want this
|
|
}
|
|
(yyval.interm.intermTypedNode) = parseContext.handleUnaryMath((yyvsp[(1) - (2)].interm).loc, errorOp, (yyvsp[(1) - (2)].interm).op, (yyvsp[(2) - (2)].interm.intermTypedNode));
|
|
} else {
|
|
(yyval.interm.intermTypedNode) = (yyvsp[(2) - (2)].interm.intermTypedNode);
|
|
if ((yyval.interm.intermTypedNode)->getAsConstantUnion())
|
|
(yyval.interm.intermTypedNode)->getAsConstantUnion()->setExpression();
|
|
}
|
|
}
|
|
break;
|
|
|
|
case 32:
|
|
/* Line 1792 of yacc.c */
|
|
#line 437 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{ (yyval.interm).loc = (yyvsp[(1) - (1)].lex).loc; (yyval.interm).op = EOpNull; }
|
|
break;
|
|
|
|
case 33:
|
|
/* Line 1792 of yacc.c */
|
|
#line 438 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{ (yyval.interm).loc = (yyvsp[(1) - (1)].lex).loc; (yyval.interm).op = EOpNegative; }
|
|
break;
|
|
|
|
case 34:
|
|
/* Line 1792 of yacc.c */
|
|
#line 439 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{ (yyval.interm).loc = (yyvsp[(1) - (1)].lex).loc; (yyval.interm).op = EOpLogicalNot; }
|
|
break;
|
|
|
|
case 35:
|
|
/* Line 1792 of yacc.c */
|
|
#line 440 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{ (yyval.interm).loc = (yyvsp[(1) - (1)].lex).loc; (yyval.interm).op = EOpBitwiseNot;
|
|
parseContext.fullIntegerCheck((yyvsp[(1) - (1)].lex).loc, "bitwise not"); }
|
|
break;
|
|
|
|
case 36:
|
|
/* Line 1792 of yacc.c */
|
|
#line 446 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{ (yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode); }
|
|
break;
|
|
|
|
case 37:
|
|
/* Line 1792 of yacc.c */
|
|
#line 447 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[(2) - (3)].lex).loc, "*", EOpMul, (yyvsp[(1) - (3)].interm.intermTypedNode), (yyvsp[(3) - (3)].interm.intermTypedNode));
|
|
if ((yyval.interm.intermTypedNode) == 0)
|
|
(yyval.interm.intermTypedNode) = (yyvsp[(1) - (3)].interm.intermTypedNode);
|
|
}
|
|
break;
|
|
|
|
case 38:
|
|
/* Line 1792 of yacc.c */
|
|
#line 452 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[(2) - (3)].lex).loc, "/", EOpDiv, (yyvsp[(1) - (3)].interm.intermTypedNode), (yyvsp[(3) - (3)].interm.intermTypedNode));
|
|
if ((yyval.interm.intermTypedNode) == 0)
|
|
(yyval.interm.intermTypedNode) = (yyvsp[(1) - (3)].interm.intermTypedNode);
|
|
}
|
|
break;
|
|
|
|
case 39:
|
|
/* Line 1792 of yacc.c */
|
|
#line 457 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.fullIntegerCheck((yyvsp[(2) - (3)].lex).loc, "%");
|
|
(yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[(2) - (3)].lex).loc, "%", EOpMod, (yyvsp[(1) - (3)].interm.intermTypedNode), (yyvsp[(3) - (3)].interm.intermTypedNode));
|
|
if ((yyval.interm.intermTypedNode) == 0)
|
|
(yyval.interm.intermTypedNode) = (yyvsp[(1) - (3)].interm.intermTypedNode);
|
|
}
|
|
break;
|
|
|
|
case 40:
|
|
/* Line 1792 of yacc.c */
|
|
#line 466 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{ (yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode); }
|
|
break;
|
|
|
|
case 41:
|
|
/* Line 1792 of yacc.c */
|
|
#line 467 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[(2) - (3)].lex).loc, "+", EOpAdd, (yyvsp[(1) - (3)].interm.intermTypedNode), (yyvsp[(3) - (3)].interm.intermTypedNode));
|
|
if ((yyval.interm.intermTypedNode) == 0)
|
|
(yyval.interm.intermTypedNode) = (yyvsp[(1) - (3)].interm.intermTypedNode);
|
|
}
|
|
break;
|
|
|
|
case 42:
|
|
/* Line 1792 of yacc.c */
|
|
#line 472 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[(2) - (3)].lex).loc, "-", EOpSub, (yyvsp[(1) - (3)].interm.intermTypedNode), (yyvsp[(3) - (3)].interm.intermTypedNode));
|
|
if ((yyval.interm.intermTypedNode) == 0)
|
|
(yyval.interm.intermTypedNode) = (yyvsp[(1) - (3)].interm.intermTypedNode);
|
|
}
|
|
break;
|
|
|
|
case 43:
|
|
/* Line 1792 of yacc.c */
|
|
#line 480 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{ (yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode); }
|
|
break;
|
|
|
|
case 44:
|
|
/* Line 1792 of yacc.c */
|
|
#line 481 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.fullIntegerCheck((yyvsp[(2) - (3)].lex).loc, "bit shift left");
|
|
(yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[(2) - (3)].lex).loc, "<<", EOpLeftShift, (yyvsp[(1) - (3)].interm.intermTypedNode), (yyvsp[(3) - (3)].interm.intermTypedNode));
|
|
if ((yyval.interm.intermTypedNode) == 0)
|
|
(yyval.interm.intermTypedNode) = (yyvsp[(1) - (3)].interm.intermTypedNode);
|
|
}
|
|
break;
|
|
|
|
case 45:
|
|
/* Line 1792 of yacc.c */
|
|
#line 487 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.fullIntegerCheck((yyvsp[(2) - (3)].lex).loc, "bit shift right");
|
|
(yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[(2) - (3)].lex).loc, ">>", EOpRightShift, (yyvsp[(1) - (3)].interm.intermTypedNode), (yyvsp[(3) - (3)].interm.intermTypedNode));
|
|
if ((yyval.interm.intermTypedNode) == 0)
|
|
(yyval.interm.intermTypedNode) = (yyvsp[(1) - (3)].interm.intermTypedNode);
|
|
}
|
|
break;
|
|
|
|
case 46:
|
|
/* Line 1792 of yacc.c */
|
|
#line 496 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{ (yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode); }
|
|
break;
|
|
|
|
case 47:
|
|
/* Line 1792 of yacc.c */
|
|
#line 497 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[(2) - (3)].lex).loc, "<", EOpLessThan, (yyvsp[(1) - (3)].interm.intermTypedNode), (yyvsp[(3) - (3)].interm.intermTypedNode));
|
|
if ((yyval.interm.intermTypedNode) == 0)
|
|
(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion(false, (yyvsp[(2) - (3)].lex).loc);
|
|
}
|
|
break;
|
|
|
|
case 48:
|
|
/* Line 1792 of yacc.c */
|
|
#line 502 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[(2) - (3)].lex).loc, ">", EOpGreaterThan, (yyvsp[(1) - (3)].interm.intermTypedNode), (yyvsp[(3) - (3)].interm.intermTypedNode));
|
|
if ((yyval.interm.intermTypedNode) == 0)
|
|
(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion(false, (yyvsp[(2) - (3)].lex).loc);
|
|
}
|
|
break;
|
|
|
|
case 49:
|
|
/* Line 1792 of yacc.c */
|
|
#line 507 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[(2) - (3)].lex).loc, "<=", EOpLessThanEqual, (yyvsp[(1) - (3)].interm.intermTypedNode), (yyvsp[(3) - (3)].interm.intermTypedNode));
|
|
if ((yyval.interm.intermTypedNode) == 0)
|
|
(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion(false, (yyvsp[(2) - (3)].lex).loc);
|
|
}
|
|
break;
|
|
|
|
case 50:
|
|
/* Line 1792 of yacc.c */
|
|
#line 512 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[(2) - (3)].lex).loc, ">=", EOpGreaterThanEqual, (yyvsp[(1) - (3)].interm.intermTypedNode), (yyvsp[(3) - (3)].interm.intermTypedNode));
|
|
if ((yyval.interm.intermTypedNode) == 0)
|
|
(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion(false, (yyvsp[(2) - (3)].lex).loc);
|
|
}
|
|
break;
|
|
|
|
case 51:
|
|
/* Line 1792 of yacc.c */
|
|
#line 520 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{ (yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode); }
|
|
break;
|
|
|
|
case 52:
|
|
/* Line 1792 of yacc.c */
|
|
#line 521 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.arrayObjectCheck((yyvsp[(2) - (3)].lex).loc, (yyvsp[(1) - (3)].interm.intermTypedNode)->getType(), "array comparison");
|
|
parseContext.opaqueCheck((yyvsp[(2) - (3)].lex).loc, (yyvsp[(1) - (3)].interm.intermTypedNode)->getType(), "==");
|
|
parseContext.specializationCheck((yyvsp[(2) - (3)].lex).loc, (yyvsp[(1) - (3)].interm.intermTypedNode)->getType(), "==");
|
|
(yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[(2) - (3)].lex).loc, "==", EOpEqual, (yyvsp[(1) - (3)].interm.intermTypedNode), (yyvsp[(3) - (3)].interm.intermTypedNode));
|
|
if ((yyval.interm.intermTypedNode) == 0)
|
|
(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion(false, (yyvsp[(2) - (3)].lex).loc);
|
|
}
|
|
break;
|
|
|
|
case 53:
|
|
/* Line 1792 of yacc.c */
|
|
#line 529 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.arrayObjectCheck((yyvsp[(2) - (3)].lex).loc, (yyvsp[(1) - (3)].interm.intermTypedNode)->getType(), "array comparison");
|
|
parseContext.opaqueCheck((yyvsp[(2) - (3)].lex).loc, (yyvsp[(1) - (3)].interm.intermTypedNode)->getType(), "!=");
|
|
parseContext.specializationCheck((yyvsp[(2) - (3)].lex).loc, (yyvsp[(1) - (3)].interm.intermTypedNode)->getType(), "!=");
|
|
(yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[(2) - (3)].lex).loc, "!=", EOpNotEqual, (yyvsp[(1) - (3)].interm.intermTypedNode), (yyvsp[(3) - (3)].interm.intermTypedNode));
|
|
if ((yyval.interm.intermTypedNode) == 0)
|
|
(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion(false, (yyvsp[(2) - (3)].lex).loc);
|
|
}
|
|
break;
|
|
|
|
case 54:
|
|
/* Line 1792 of yacc.c */
|
|
#line 540 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{ (yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode); }
|
|
break;
|
|
|
|
case 55:
|
|
/* Line 1792 of yacc.c */
|
|
#line 541 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.fullIntegerCheck((yyvsp[(2) - (3)].lex).loc, "bitwise and");
|
|
(yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[(2) - (3)].lex).loc, "&", EOpAnd, (yyvsp[(1) - (3)].interm.intermTypedNode), (yyvsp[(3) - (3)].interm.intermTypedNode));
|
|
if ((yyval.interm.intermTypedNode) == 0)
|
|
(yyval.interm.intermTypedNode) = (yyvsp[(1) - (3)].interm.intermTypedNode);
|
|
}
|
|
break;
|
|
|
|
case 56:
|
|
/* Line 1792 of yacc.c */
|
|
#line 550 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{ (yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode); }
|
|
break;
|
|
|
|
case 57:
|
|
/* Line 1792 of yacc.c */
|
|
#line 551 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.fullIntegerCheck((yyvsp[(2) - (3)].lex).loc, "bitwise exclusive or");
|
|
(yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[(2) - (3)].lex).loc, "^", EOpExclusiveOr, (yyvsp[(1) - (3)].interm.intermTypedNode), (yyvsp[(3) - (3)].interm.intermTypedNode));
|
|
if ((yyval.interm.intermTypedNode) == 0)
|
|
(yyval.interm.intermTypedNode) = (yyvsp[(1) - (3)].interm.intermTypedNode);
|
|
}
|
|
break;
|
|
|
|
case 58:
|
|
/* Line 1792 of yacc.c */
|
|
#line 560 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{ (yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode); }
|
|
break;
|
|
|
|
case 59:
|
|
/* Line 1792 of yacc.c */
|
|
#line 561 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.fullIntegerCheck((yyvsp[(2) - (3)].lex).loc, "bitwise inclusive or");
|
|
(yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[(2) - (3)].lex).loc, "|", EOpInclusiveOr, (yyvsp[(1) - (3)].interm.intermTypedNode), (yyvsp[(3) - (3)].interm.intermTypedNode));
|
|
if ((yyval.interm.intermTypedNode) == 0)
|
|
(yyval.interm.intermTypedNode) = (yyvsp[(1) - (3)].interm.intermTypedNode);
|
|
}
|
|
break;
|
|
|
|
case 60:
|
|
/* Line 1792 of yacc.c */
|
|
#line 570 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{ (yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode); }
|
|
break;
|
|
|
|
case 61:
|
|
/* Line 1792 of yacc.c */
|
|
#line 571 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[(2) - (3)].lex).loc, "&&", EOpLogicalAnd, (yyvsp[(1) - (3)].interm.intermTypedNode), (yyvsp[(3) - (3)].interm.intermTypedNode));
|
|
if ((yyval.interm.intermTypedNode) == 0)
|
|
(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion(false, (yyvsp[(2) - (3)].lex).loc);
|
|
}
|
|
break;
|
|
|
|
case 62:
|
|
/* Line 1792 of yacc.c */
|
|
#line 579 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{ (yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode); }
|
|
break;
|
|
|
|
case 63:
|
|
/* Line 1792 of yacc.c */
|
|
#line 580 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[(2) - (3)].lex).loc, "^^", EOpLogicalXor, (yyvsp[(1) - (3)].interm.intermTypedNode), (yyvsp[(3) - (3)].interm.intermTypedNode));
|
|
if ((yyval.interm.intermTypedNode) == 0)
|
|
(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion(false, (yyvsp[(2) - (3)].lex).loc);
|
|
}
|
|
break;
|
|
|
|
case 64:
|
|
/* Line 1792 of yacc.c */
|
|
#line 588 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{ (yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode); }
|
|
break;
|
|
|
|
case 65:
|
|
/* Line 1792 of yacc.c */
|
|
#line 589 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[(2) - (3)].lex).loc, "||", EOpLogicalOr, (yyvsp[(1) - (3)].interm.intermTypedNode), (yyvsp[(3) - (3)].interm.intermTypedNode));
|
|
if ((yyval.interm.intermTypedNode) == 0)
|
|
(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion(false, (yyvsp[(2) - (3)].lex).loc);
|
|
}
|
|
break;
|
|
|
|
case 66:
|
|
/* Line 1792 of yacc.c */
|
|
#line 597 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{ (yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode); }
|
|
break;
|
|
|
|
case 67:
|
|
/* Line 1792 of yacc.c */
|
|
#line 598 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
++parseContext.controlFlowNestingLevel;
|
|
}
|
|
break;
|
|
|
|
case 68:
|
|
/* Line 1792 of yacc.c */
|
|
#line 601 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
--parseContext.controlFlowNestingLevel;
|
|
parseContext.boolCheck((yyvsp[(2) - (6)].lex).loc, (yyvsp[(1) - (6)].interm.intermTypedNode));
|
|
parseContext.rValueErrorCheck((yyvsp[(2) - (6)].lex).loc, "?", (yyvsp[(1) - (6)].interm.intermTypedNode));
|
|
parseContext.rValueErrorCheck((yyvsp[(5) - (6)].lex).loc, ":", (yyvsp[(4) - (6)].interm.intermTypedNode));
|
|
parseContext.rValueErrorCheck((yyvsp[(5) - (6)].lex).loc, ":", (yyvsp[(6) - (6)].interm.intermTypedNode));
|
|
(yyval.interm.intermTypedNode) = parseContext.intermediate.addSelection((yyvsp[(1) - (6)].interm.intermTypedNode), (yyvsp[(4) - (6)].interm.intermTypedNode), (yyvsp[(6) - (6)].interm.intermTypedNode), (yyvsp[(2) - (6)].lex).loc);
|
|
if ((yyval.interm.intermTypedNode) == 0) {
|
|
parseContext.binaryOpError((yyvsp[(2) - (6)].lex).loc, ":", (yyvsp[(4) - (6)].interm.intermTypedNode)->getCompleteString(), (yyvsp[(6) - (6)].interm.intermTypedNode)->getCompleteString());
|
|
(yyval.interm.intermTypedNode) = (yyvsp[(6) - (6)].interm.intermTypedNode);
|
|
}
|
|
}
|
|
break;
|
|
|
|
case 69:
|
|
/* Line 1792 of yacc.c */
|
|
#line 616 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{ (yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode); }
|
|
break;
|
|
|
|
case 70:
|
|
/* Line 1792 of yacc.c */
|
|
#line 617 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.arrayObjectCheck((yyvsp[(2) - (3)].interm).loc, (yyvsp[(1) - (3)].interm.intermTypedNode)->getType(), "array assignment");
|
|
parseContext.opaqueCheck((yyvsp[(2) - (3)].interm).loc, (yyvsp[(1) - (3)].interm.intermTypedNode)->getType(), "=");
|
|
parseContext.specializationCheck((yyvsp[(2) - (3)].interm).loc, (yyvsp[(1) - (3)].interm.intermTypedNode)->getType(), "=");
|
|
parseContext.lValueErrorCheck((yyvsp[(2) - (3)].interm).loc, "assign", (yyvsp[(1) - (3)].interm.intermTypedNode));
|
|
parseContext.rValueErrorCheck((yyvsp[(2) - (3)].interm).loc, "assign", (yyvsp[(3) - (3)].interm.intermTypedNode));
|
|
(yyval.interm.intermTypedNode) = parseContext.intermediate.addAssign((yyvsp[(2) - (3)].interm).op, (yyvsp[(1) - (3)].interm.intermTypedNode), (yyvsp[(3) - (3)].interm.intermTypedNode), (yyvsp[(2) - (3)].interm).loc);
|
|
if ((yyval.interm.intermTypedNode) == 0) {
|
|
parseContext.assignError((yyvsp[(2) - (3)].interm).loc, "assign", (yyvsp[(1) - (3)].interm.intermTypedNode)->getCompleteString(), (yyvsp[(3) - (3)].interm.intermTypedNode)->getCompleteString());
|
|
(yyval.interm.intermTypedNode) = (yyvsp[(1) - (3)].interm.intermTypedNode);
|
|
}
|
|
}
|
|
break;
|
|
|
|
case 71:
|
|
/* Line 1792 of yacc.c */
|
|
#line 632 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm).loc = (yyvsp[(1) - (1)].lex).loc;
|
|
(yyval.interm).op = EOpAssign;
|
|
}
|
|
break;
|
|
|
|
case 72:
|
|
/* Line 1792 of yacc.c */
|
|
#line 636 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm).loc = (yyvsp[(1) - (1)].lex).loc;
|
|
(yyval.interm).op = EOpMulAssign;
|
|
}
|
|
break;
|
|
|
|
case 73:
|
|
/* Line 1792 of yacc.c */
|
|
#line 640 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm).loc = (yyvsp[(1) - (1)].lex).loc;
|
|
(yyval.interm).op = EOpDivAssign;
|
|
}
|
|
break;
|
|
|
|
case 74:
|
|
/* Line 1792 of yacc.c */
|
|
#line 644 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.fullIntegerCheck((yyvsp[(1) - (1)].lex).loc, "%=");
|
|
(yyval.interm).loc = (yyvsp[(1) - (1)].lex).loc;
|
|
(yyval.interm).op = EOpModAssign;
|
|
}
|
|
break;
|
|
|
|
case 75:
|
|
/* Line 1792 of yacc.c */
|
|
#line 649 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm).loc = (yyvsp[(1) - (1)].lex).loc;
|
|
(yyval.interm).op = EOpAddAssign;
|
|
}
|
|
break;
|
|
|
|
case 76:
|
|
/* Line 1792 of yacc.c */
|
|
#line 653 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm).loc = (yyvsp[(1) - (1)].lex).loc;
|
|
(yyval.interm).op = EOpSubAssign;
|
|
}
|
|
break;
|
|
|
|
case 77:
|
|
/* Line 1792 of yacc.c */
|
|
#line 657 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.fullIntegerCheck((yyvsp[(1) - (1)].lex).loc, "bit-shift left assign");
|
|
(yyval.interm).loc = (yyvsp[(1) - (1)].lex).loc; (yyval.interm).op = EOpLeftShiftAssign;
|
|
}
|
|
break;
|
|
|
|
case 78:
|
|
/* Line 1792 of yacc.c */
|
|
#line 661 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.fullIntegerCheck((yyvsp[(1) - (1)].lex).loc, "bit-shift right assign");
|
|
(yyval.interm).loc = (yyvsp[(1) - (1)].lex).loc; (yyval.interm).op = EOpRightShiftAssign;
|
|
}
|
|
break;
|
|
|
|
case 79:
|
|
/* Line 1792 of yacc.c */
|
|
#line 665 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.fullIntegerCheck((yyvsp[(1) - (1)].lex).loc, "bitwise-and assign");
|
|
(yyval.interm).loc = (yyvsp[(1) - (1)].lex).loc; (yyval.interm).op = EOpAndAssign;
|
|
}
|
|
break;
|
|
|
|
case 80:
|
|
/* Line 1792 of yacc.c */
|
|
#line 669 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.fullIntegerCheck((yyvsp[(1) - (1)].lex).loc, "bitwise-xor assign");
|
|
(yyval.interm).loc = (yyvsp[(1) - (1)].lex).loc; (yyval.interm).op = EOpExclusiveOrAssign;
|
|
}
|
|
break;
|
|
|
|
case 81:
|
|
/* Line 1792 of yacc.c */
|
|
#line 673 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.fullIntegerCheck((yyvsp[(1) - (1)].lex).loc, "bitwise-or assign");
|
|
(yyval.interm).loc = (yyvsp[(1) - (1)].lex).loc; (yyval.interm).op = EOpInclusiveOrAssign;
|
|
}
|
|
break;
|
|
|
|
case 82:
|
|
/* Line 1792 of yacc.c */
|
|
#line 680 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode);
|
|
}
|
|
break;
|
|
|
|
case 83:
|
|
/* Line 1792 of yacc.c */
|
|
#line 683 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermTypedNode) = parseContext.intermediate.addComma((yyvsp[(1) - (3)].interm.intermTypedNode), (yyvsp[(3) - (3)].interm.intermTypedNode), (yyvsp[(2) - (3)].lex).loc);
|
|
if ((yyval.interm.intermTypedNode) == 0) {
|
|
parseContext.binaryOpError((yyvsp[(2) - (3)].lex).loc, ",", (yyvsp[(1) - (3)].interm.intermTypedNode)->getCompleteString(), (yyvsp[(3) - (3)].interm.intermTypedNode)->getCompleteString());
|
|
(yyval.interm.intermTypedNode) = (yyvsp[(3) - (3)].interm.intermTypedNode);
|
|
}
|
|
}
|
|
break;
|
|
|
|
case 84:
|
|
/* Line 1792 of yacc.c */
|
|
#line 693 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.constantValueCheck((yyvsp[(1) - (1)].interm.intermTypedNode), "");
|
|
(yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode);
|
|
}
|
|
break;
|
|
|
|
case 85:
|
|
/* Line 1792 of yacc.c */
|
|
#line 700 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.handleFunctionDeclarator((yyvsp[(1) - (2)].interm).loc, *(yyvsp[(1) - (2)].interm).function, true /* prototype */);
|
|
(yyval.interm.intermNode) = 0;
|
|
// TODO: 4.0 functionality: subroutines: make the identifier a user type for this signature
|
|
}
|
|
break;
|
|
|
|
case 86:
|
|
/* Line 1792 of yacc.c */
|
|
#line 705 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
if ((yyvsp[(1) - (2)].interm).intermNode && (yyvsp[(1) - (2)].interm).intermNode->getAsAggregate())
|
|
(yyvsp[(1) - (2)].interm).intermNode->getAsAggregate()->setOperator(EOpSequence);
|
|
(yyval.interm.intermNode) = (yyvsp[(1) - (2)].interm).intermNode;
|
|
}
|
|
break;
|
|
|
|
case 87:
|
|
/* Line 1792 of yacc.c */
|
|
#line 710 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.profileRequires((yyvsp[(1) - (4)].lex).loc, ENoProfile, 130, 0, "precision statement");
|
|
|
|
// lazy setting of the previous scope's defaults, has effect only the first time it is called in a particular scope
|
|
parseContext.symbolTable.setPreviousDefaultPrecisions(&parseContext.defaultPrecision[0]);
|
|
parseContext.setDefaultPrecision((yyvsp[(1) - (4)].lex).loc, (yyvsp[(3) - (4)].interm.type), (yyvsp[(2) - (4)].interm.type).qualifier.precision);
|
|
(yyval.interm.intermNode) = 0;
|
|
}
|
|
break;
|
|
|
|
case 88:
|
|
/* Line 1792 of yacc.c */
|
|
#line 718 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.declareBlock((yyvsp[(1) - (2)].interm).loc, *(yyvsp[(1) - (2)].interm).typeList);
|
|
(yyval.interm.intermNode) = 0;
|
|
}
|
|
break;
|
|
|
|
case 89:
|
|
/* Line 1792 of yacc.c */
|
|
#line 722 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.declareBlock((yyvsp[(1) - (3)].interm).loc, *(yyvsp[(1) - (3)].interm).typeList, (yyvsp[(2) - (3)].lex).string);
|
|
(yyval.interm.intermNode) = 0;
|
|
}
|
|
break;
|
|
|
|
case 90:
|
|
/* Line 1792 of yacc.c */
|
|
#line 726 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.declareBlock((yyvsp[(1) - (4)].interm).loc, *(yyvsp[(1) - (4)].interm).typeList, (yyvsp[(2) - (4)].lex).string, (yyvsp[(3) - (4)].interm).arraySizes);
|
|
(yyval.interm.intermNode) = 0;
|
|
}
|
|
break;
|
|
|
|
case 91:
|
|
/* Line 1792 of yacc.c */
|
|
#line 730 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.globalQualifierFixCheck((yyvsp[(1) - (2)].interm.type).loc, (yyvsp[(1) - (2)].interm.type).qualifier);
|
|
parseContext.updateStandaloneQualifierDefaults((yyvsp[(1) - (2)].interm.type).loc, (yyvsp[(1) - (2)].interm.type));
|
|
(yyval.interm.intermNode) = 0;
|
|
}
|
|
break;
|
|
|
|
case 92:
|
|
/* Line 1792 of yacc.c */
|
|
#line 735 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.checkNoShaderLayouts((yyvsp[(1) - (3)].interm.type).loc, (yyvsp[(1) - (3)].interm.type).shaderQualifiers);
|
|
parseContext.addQualifierToExisting((yyvsp[(1) - (3)].interm.type).loc, (yyvsp[(1) - (3)].interm.type).qualifier, *(yyvsp[(2) - (3)].lex).string);
|
|
(yyval.interm.intermNode) = 0;
|
|
}
|
|
break;
|
|
|
|
case 93:
|
|
/* Line 1792 of yacc.c */
|
|
#line 740 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.checkNoShaderLayouts((yyvsp[(1) - (4)].interm.type).loc, (yyvsp[(1) - (4)].interm.type).shaderQualifiers);
|
|
(yyvsp[(3) - (4)].interm.identifierList)->push_back((yyvsp[(2) - (4)].lex).string);
|
|
parseContext.addQualifierToExisting((yyvsp[(1) - (4)].interm.type).loc, (yyvsp[(1) - (4)].interm.type).qualifier, *(yyvsp[(3) - (4)].interm.identifierList));
|
|
(yyval.interm.intermNode) = 0;
|
|
}
|
|
break;
|
|
|
|
case 94:
|
|
/* Line 1792 of yacc.c */
|
|
#line 749 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{ parseContext.nestedBlockCheck((yyvsp[(1) - (3)].interm.type).loc); }
|
|
break;
|
|
|
|
case 95:
|
|
/* Line 1792 of yacc.c */
|
|
#line 749 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
--parseContext.structNestingLevel;
|
|
parseContext.blockName = (yyvsp[(2) - (6)].lex).string;
|
|
parseContext.globalQualifierFixCheck((yyvsp[(1) - (6)].interm.type).loc, (yyvsp[(1) - (6)].interm.type).qualifier);
|
|
parseContext.checkNoShaderLayouts((yyvsp[(1) - (6)].interm.type).loc, (yyvsp[(1) - (6)].interm.type).shaderQualifiers);
|
|
parseContext.currentBlockQualifier = (yyvsp[(1) - (6)].interm.type).qualifier;
|
|
(yyval.interm).loc = (yyvsp[(1) - (6)].interm.type).loc;
|
|
(yyval.interm).typeList = (yyvsp[(5) - (6)].interm.typeList);
|
|
}
|
|
break;
|
|
|
|
case 96:
|
|
/* Line 1792 of yacc.c */
|
|
#line 760 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.identifierList) = new TIdentifierList;
|
|
(yyval.interm.identifierList)->push_back((yyvsp[(2) - (2)].lex).string);
|
|
}
|
|
break;
|
|
|
|
case 97:
|
|
/* Line 1792 of yacc.c */
|
|
#line 764 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.identifierList) = (yyvsp[(1) - (3)].interm.identifierList);
|
|
(yyval.interm.identifierList)->push_back((yyvsp[(3) - (3)].lex).string);
|
|
}
|
|
break;
|
|
|
|
case 98:
|
|
/* Line 1792 of yacc.c */
|
|
#line 771 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm).function = (yyvsp[(1) - (2)].interm.function);
|
|
(yyval.interm).loc = (yyvsp[(2) - (2)].lex).loc;
|
|
}
|
|
break;
|
|
|
|
case 99:
|
|
/* Line 1792 of yacc.c */
|
|
#line 778 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.function) = (yyvsp[(1) - (1)].interm.function);
|
|
}
|
|
break;
|
|
|
|
case 100:
|
|
/* Line 1792 of yacc.c */
|
|
#line 781 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.function) = (yyvsp[(1) - (1)].interm.function);
|
|
}
|
|
break;
|
|
|
|
case 101:
|
|
/* Line 1792 of yacc.c */
|
|
#line 788 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
// Add the parameter
|
|
(yyval.interm.function) = (yyvsp[(1) - (2)].interm.function);
|
|
if ((yyvsp[(2) - (2)].interm).param.type->getBasicType() != EbtVoid)
|
|
(yyvsp[(1) - (2)].interm.function)->addParameter((yyvsp[(2) - (2)].interm).param);
|
|
else
|
|
delete (yyvsp[(2) - (2)].interm).param.type;
|
|
}
|
|
break;
|
|
|
|
case 102:
|
|
/* Line 1792 of yacc.c */
|
|
#line 796 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
//
|
|
// Only first parameter of one-parameter functions can be void
|
|
// The check for named parameters not being void is done in parameter_declarator
|
|
//
|
|
if ((yyvsp[(3) - (3)].interm).param.type->getBasicType() == EbtVoid) {
|
|
//
|
|
// This parameter > first is void
|
|
//
|
|
parseContext.error((yyvsp[(2) - (3)].lex).loc, "cannot be an argument type except for '(void)'", "void", "");
|
|
delete (yyvsp[(3) - (3)].interm).param.type;
|
|
} else {
|
|
// Add the parameter
|
|
(yyval.interm.function) = (yyvsp[(1) - (3)].interm.function);
|
|
(yyvsp[(1) - (3)].interm.function)->addParameter((yyvsp[(3) - (3)].interm).param);
|
|
}
|
|
}
|
|
break;
|
|
|
|
case 103:
|
|
/* Line 1792 of yacc.c */
|
|
#line 816 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
if ((yyvsp[(1) - (3)].interm.type).qualifier.storage != EvqGlobal && (yyvsp[(1) - (3)].interm.type).qualifier.storage != EvqTemporary) {
|
|
parseContext.error((yyvsp[(2) - (3)].lex).loc, "no qualifiers allowed for function return",
|
|
GetStorageQualifierString((yyvsp[(1) - (3)].interm.type).qualifier.storage), "");
|
|
}
|
|
if ((yyvsp[(1) - (3)].interm.type).arraySizes)
|
|
parseContext.arraySizeRequiredCheck((yyvsp[(1) - (3)].interm.type).loc, *(yyvsp[(1) - (3)].interm.type).arraySizes);
|
|
|
|
// Add the function as a prototype after parsing it (we do not support recursion)
|
|
TFunction *function;
|
|
TType type((yyvsp[(1) - (3)].interm.type));
|
|
function = new TFunction((yyvsp[(2) - (3)].lex).string, type);
|
|
(yyval.interm.function) = function;
|
|
}
|
|
break;
|
|
|
|
case 104:
|
|
/* Line 1792 of yacc.c */
|
|
#line 834 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
if ((yyvsp[(1) - (2)].interm.type).arraySizes) {
|
|
parseContext.profileRequires((yyvsp[(1) - (2)].interm.type).loc, ENoProfile, 120, E_GL_3DL_array_objects, "arrayed type");
|
|
parseContext.profileRequires((yyvsp[(1) - (2)].interm.type).loc, EEsProfile, 300, 0, "arrayed type");
|
|
parseContext.arraySizeRequiredCheck((yyvsp[(1) - (2)].interm.type).loc, *(yyvsp[(1) - (2)].interm.type).arraySizes);
|
|
}
|
|
if ((yyvsp[(1) - (2)].interm.type).basicType == EbtVoid) {
|
|
parseContext.error((yyvsp[(2) - (2)].lex).loc, "illegal use of type 'void'", (yyvsp[(2) - (2)].lex).string->c_str(), "");
|
|
}
|
|
parseContext.reservedErrorCheck((yyvsp[(2) - (2)].lex).loc, *(yyvsp[(2) - (2)].lex).string);
|
|
|
|
TParameter param = {(yyvsp[(2) - (2)].lex).string, new TType((yyvsp[(1) - (2)].interm.type))};
|
|
(yyval.interm).loc = (yyvsp[(2) - (2)].lex).loc;
|
|
(yyval.interm).param = param;
|
|
}
|
|
break;
|
|
|
|
case 105:
|
|
/* Line 1792 of yacc.c */
|
|
#line 849 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
if ((yyvsp[(1) - (3)].interm.type).arraySizes) {
|
|
parseContext.profileRequires((yyvsp[(1) - (3)].interm.type).loc, ENoProfile, 120, E_GL_3DL_array_objects, "arrayed type");
|
|
parseContext.profileRequires((yyvsp[(1) - (3)].interm.type).loc, EEsProfile, 300, 0, "arrayed type");
|
|
parseContext.arraySizeRequiredCheck((yyvsp[(1) - (3)].interm.type).loc, *(yyvsp[(1) - (3)].interm.type).arraySizes);
|
|
}
|
|
parseContext.arrayDimCheck((yyvsp[(2) - (3)].lex).loc, (yyvsp[(1) - (3)].interm.type).arraySizes, (yyvsp[(3) - (3)].interm).arraySizes);
|
|
|
|
parseContext.arraySizeRequiredCheck((yyvsp[(3) - (3)].interm).loc, *(yyvsp[(3) - (3)].interm).arraySizes);
|
|
parseContext.reservedErrorCheck((yyvsp[(2) - (3)].lex).loc, *(yyvsp[(2) - (3)].lex).string);
|
|
|
|
(yyvsp[(1) - (3)].interm.type).arraySizes = (yyvsp[(3) - (3)].interm).arraySizes;
|
|
|
|
TParameter param = { (yyvsp[(2) - (3)].lex).string, new TType((yyvsp[(1) - (3)].interm.type))};
|
|
(yyval.interm).loc = (yyvsp[(2) - (3)].lex).loc;
|
|
(yyval.interm).param = param;
|
|
}
|
|
break;
|
|
|
|
case 106:
|
|
/* Line 1792 of yacc.c */
|
|
#line 872 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm) = (yyvsp[(2) - (2)].interm);
|
|
if ((yyvsp[(1) - (2)].interm.type).qualifier.precision != EpqNone)
|
|
(yyval.interm).param.type->getQualifier().precision = (yyvsp[(1) - (2)].interm.type).qualifier.precision;
|
|
parseContext.precisionQualifierCheck((yyval.interm).loc, (yyval.interm).param.type->getBasicType(), (yyval.interm).param.type->getQualifier());
|
|
|
|
parseContext.checkNoShaderLayouts((yyvsp[(1) - (2)].interm.type).loc, (yyvsp[(1) - (2)].interm.type).shaderQualifiers);
|
|
parseContext.parameterTypeCheck((yyvsp[(2) - (2)].interm).loc, (yyvsp[(1) - (2)].interm.type).qualifier.storage, *(yyval.interm).param.type);
|
|
parseContext.paramCheckFix((yyvsp[(1) - (2)].interm.type).loc, (yyvsp[(1) - (2)].interm.type).qualifier, *(yyval.interm).param.type);
|
|
|
|
}
|
|
break;
|
|
|
|
case 107:
|
|
/* Line 1792 of yacc.c */
|
|
#line 883 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm) = (yyvsp[(1) - (1)].interm);
|
|
|
|
parseContext.parameterTypeCheck((yyvsp[(1) - (1)].interm).loc, EvqIn, *(yyvsp[(1) - (1)].interm).param.type);
|
|
parseContext.paramCheckFix((yyvsp[(1) - (1)].interm).loc, EvqTemporary, *(yyval.interm).param.type);
|
|
parseContext.precisionQualifierCheck((yyval.interm).loc, (yyval.interm).param.type->getBasicType(), (yyval.interm).param.type->getQualifier());
|
|
}
|
|
break;
|
|
|
|
case 108:
|
|
/* Line 1792 of yacc.c */
|
|
#line 893 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm) = (yyvsp[(2) - (2)].interm);
|
|
if ((yyvsp[(1) - (2)].interm.type).qualifier.precision != EpqNone)
|
|
(yyval.interm).param.type->getQualifier().precision = (yyvsp[(1) - (2)].interm.type).qualifier.precision;
|
|
parseContext.precisionQualifierCheck((yyvsp[(1) - (2)].interm.type).loc, (yyval.interm).param.type->getBasicType(), (yyval.interm).param.type->getQualifier());
|
|
|
|
parseContext.checkNoShaderLayouts((yyvsp[(1) - (2)].interm.type).loc, (yyvsp[(1) - (2)].interm.type).shaderQualifiers);
|
|
parseContext.parameterTypeCheck((yyvsp[(2) - (2)].interm).loc, (yyvsp[(1) - (2)].interm.type).qualifier.storage, *(yyval.interm).param.type);
|
|
parseContext.paramCheckFix((yyvsp[(1) - (2)].interm.type).loc, (yyvsp[(1) - (2)].interm.type).qualifier, *(yyval.interm).param.type);
|
|
}
|
|
break;
|
|
|
|
case 109:
|
|
/* Line 1792 of yacc.c */
|
|
#line 903 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm) = (yyvsp[(1) - (1)].interm);
|
|
|
|
parseContext.parameterTypeCheck((yyvsp[(1) - (1)].interm).loc, EvqIn, *(yyvsp[(1) - (1)].interm).param.type);
|
|
parseContext.paramCheckFix((yyvsp[(1) - (1)].interm).loc, EvqTemporary, *(yyval.interm).param.type);
|
|
parseContext.precisionQualifierCheck((yyval.interm).loc, (yyval.interm).param.type->getBasicType(), (yyval.interm).param.type->getQualifier());
|
|
}
|
|
break;
|
|
|
|
case 110:
|
|
/* Line 1792 of yacc.c */
|
|
#line 913 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
TParameter param = { 0, new TType((yyvsp[(1) - (1)].interm.type)) };
|
|
(yyval.interm).param = param;
|
|
if ((yyvsp[(1) - (1)].interm.type).arraySizes)
|
|
parseContext.arraySizeRequiredCheck((yyvsp[(1) - (1)].interm.type).loc, *(yyvsp[(1) - (1)].interm.type).arraySizes);
|
|
}
|
|
break;
|
|
|
|
case 111:
|
|
/* Line 1792 of yacc.c */
|
|
#line 922 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm) = (yyvsp[(1) - (1)].interm);
|
|
}
|
|
break;
|
|
|
|
case 112:
|
|
/* Line 1792 of yacc.c */
|
|
#line 925 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm) = (yyvsp[(1) - (3)].interm);
|
|
parseContext.declareVariable((yyvsp[(3) - (3)].lex).loc, *(yyvsp[(3) - (3)].lex).string, (yyvsp[(1) - (3)].interm).type);
|
|
}
|
|
break;
|
|
|
|
case 113:
|
|
/* Line 1792 of yacc.c */
|
|
#line 929 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm) = (yyvsp[(1) - (4)].interm);
|
|
parseContext.declareVariable((yyvsp[(3) - (4)].lex).loc, *(yyvsp[(3) - (4)].lex).string, (yyvsp[(1) - (4)].interm).type, (yyvsp[(4) - (4)].interm).arraySizes);
|
|
}
|
|
break;
|
|
|
|
case 114:
|
|
/* Line 1792 of yacc.c */
|
|
#line 933 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm).type = (yyvsp[(1) - (6)].interm).type;
|
|
TIntermNode* initNode = parseContext.declareVariable((yyvsp[(3) - (6)].lex).loc, *(yyvsp[(3) - (6)].lex).string, (yyvsp[(1) - (6)].interm).type, (yyvsp[(4) - (6)].interm).arraySizes, (yyvsp[(6) - (6)].interm.intermTypedNode));
|
|
(yyval.interm).intermNode = parseContext.intermediate.growAggregate((yyvsp[(1) - (6)].interm).intermNode, initNode, (yyvsp[(5) - (6)].lex).loc);
|
|
}
|
|
break;
|
|
|
|
case 115:
|
|
/* Line 1792 of yacc.c */
|
|
#line 938 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm).type = (yyvsp[(1) - (5)].interm).type;
|
|
TIntermNode* initNode = parseContext.declareVariable((yyvsp[(3) - (5)].lex).loc, *(yyvsp[(3) - (5)].lex).string, (yyvsp[(1) - (5)].interm).type, 0, (yyvsp[(5) - (5)].interm.intermTypedNode));
|
|
(yyval.interm).intermNode = parseContext.intermediate.growAggregate((yyvsp[(1) - (5)].interm).intermNode, initNode, (yyvsp[(4) - (5)].lex).loc);
|
|
}
|
|
break;
|
|
|
|
case 116:
|
|
/* Line 1792 of yacc.c */
|
|
#line 946 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm).type = (yyvsp[(1) - (1)].interm.type);
|
|
(yyval.interm).intermNode = 0;
|
|
parseContext.declareTypeDefaults((yyval.interm).loc, (yyval.interm).type);
|
|
}
|
|
break;
|
|
|
|
case 117:
|
|
/* Line 1792 of yacc.c */
|
|
#line 951 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm).type = (yyvsp[(1) - (2)].interm.type);
|
|
(yyval.interm).intermNode = 0;
|
|
parseContext.declareVariable((yyvsp[(2) - (2)].lex).loc, *(yyvsp[(2) - (2)].lex).string, (yyvsp[(1) - (2)].interm.type));
|
|
}
|
|
break;
|
|
|
|
case 118:
|
|
/* Line 1792 of yacc.c */
|
|
#line 956 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm).type = (yyvsp[(1) - (3)].interm.type);
|
|
(yyval.interm).intermNode = 0;
|
|
parseContext.declareVariable((yyvsp[(2) - (3)].lex).loc, *(yyvsp[(2) - (3)].lex).string, (yyvsp[(1) - (3)].interm.type), (yyvsp[(3) - (3)].interm).arraySizes);
|
|
}
|
|
break;
|
|
|
|
case 119:
|
|
/* Line 1792 of yacc.c */
|
|
#line 961 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm).type = (yyvsp[(1) - (5)].interm.type);
|
|
TIntermNode* initNode = parseContext.declareVariable((yyvsp[(2) - (5)].lex).loc, *(yyvsp[(2) - (5)].lex).string, (yyvsp[(1) - (5)].interm.type), (yyvsp[(3) - (5)].interm).arraySizes, (yyvsp[(5) - (5)].interm.intermTypedNode));
|
|
(yyval.interm).intermNode = parseContext.intermediate.growAggregate(0, initNode, (yyvsp[(4) - (5)].lex).loc);
|
|
}
|
|
break;
|
|
|
|
case 120:
|
|
/* Line 1792 of yacc.c */
|
|
#line 966 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm).type = (yyvsp[(1) - (4)].interm.type);
|
|
TIntermNode* initNode = parseContext.declareVariable((yyvsp[(2) - (4)].lex).loc, *(yyvsp[(2) - (4)].lex).string, (yyvsp[(1) - (4)].interm.type), 0, (yyvsp[(4) - (4)].interm.intermTypedNode));
|
|
(yyval.interm).intermNode = parseContext.intermediate.growAggregate(0, initNode, (yyvsp[(3) - (4)].lex).loc);
|
|
}
|
|
break;
|
|
|
|
case 121:
|
|
/* Line 1792 of yacc.c */
|
|
#line 975 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type) = (yyvsp[(1) - (1)].interm.type);
|
|
|
|
parseContext.globalQualifierTypeCheck((yyvsp[(1) - (1)].interm.type).loc, (yyvsp[(1) - (1)].interm.type).qualifier, (yyval.interm.type));
|
|
if ((yyvsp[(1) - (1)].interm.type).arraySizes) {
|
|
parseContext.profileRequires((yyvsp[(1) - (1)].interm.type).loc, ENoProfile, 120, E_GL_3DL_array_objects, "arrayed type");
|
|
parseContext.profileRequires((yyvsp[(1) - (1)].interm.type).loc, EEsProfile, 300, 0, "arrayed type");
|
|
}
|
|
|
|
parseContext.precisionQualifierCheck((yyval.interm.type).loc, (yyval.interm.type).basicType, (yyval.interm.type).qualifier);
|
|
}
|
|
break;
|
|
|
|
case 122:
|
|
/* Line 1792 of yacc.c */
|
|
#line 986 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.globalQualifierFixCheck((yyvsp[(1) - (2)].interm.type).loc, (yyvsp[(1) - (2)].interm.type).qualifier);
|
|
parseContext.globalQualifierTypeCheck((yyvsp[(1) - (2)].interm.type).loc, (yyvsp[(1) - (2)].interm.type).qualifier, (yyvsp[(2) - (2)].interm.type));
|
|
|
|
if ((yyvsp[(2) - (2)].interm.type).arraySizes) {
|
|
parseContext.profileRequires((yyvsp[(2) - (2)].interm.type).loc, ENoProfile, 120, E_GL_3DL_array_objects, "arrayed type");
|
|
parseContext.profileRequires((yyvsp[(2) - (2)].interm.type).loc, EEsProfile, 300, 0, "arrayed type");
|
|
}
|
|
|
|
if ((yyvsp[(2) - (2)].interm.type).arraySizes && parseContext.arrayQualifierError((yyvsp[(2) - (2)].interm.type).loc, (yyvsp[(1) - (2)].interm.type).qualifier))
|
|
(yyvsp[(2) - (2)].interm.type).arraySizes = 0;
|
|
|
|
parseContext.checkNoShaderLayouts((yyvsp[(2) - (2)].interm.type).loc, (yyvsp[(1) - (2)].interm.type).shaderQualifiers);
|
|
(yyvsp[(2) - (2)].interm.type).shaderQualifiers.merge((yyvsp[(1) - (2)].interm.type).shaderQualifiers);
|
|
parseContext.mergeQualifiers((yyvsp[(2) - (2)].interm.type).loc, (yyvsp[(2) - (2)].interm.type).qualifier, (yyvsp[(1) - (2)].interm.type).qualifier, true);
|
|
parseContext.precisionQualifierCheck((yyvsp[(2) - (2)].interm.type).loc, (yyvsp[(2) - (2)].interm.type).basicType, (yyvsp[(2) - (2)].interm.type).qualifier);
|
|
|
|
(yyval.interm.type) = (yyvsp[(2) - (2)].interm.type);
|
|
|
|
if (! (yyval.interm.type).qualifier.isInterpolation() &&
|
|
((parseContext.language == EShLangVertex && (yyval.interm.type).qualifier.storage == EvqVaryingOut) ||
|
|
(parseContext.language == EShLangFragment && (yyval.interm.type).qualifier.storage == EvqVaryingIn)))
|
|
(yyval.interm.type).qualifier.smooth = true;
|
|
}
|
|
break;
|
|
|
|
case 123:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1013 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.globalCheck((yyvsp[(1) - (1)].lex).loc, "invariant");
|
|
parseContext.profileRequires((yyval.interm.type).loc, ENoProfile, 120, 0, "invariant");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
|
|
(yyval.interm.type).qualifier.invariant = true;
|
|
}
|
|
break;
|
|
|
|
case 124:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1022 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.globalCheck((yyvsp[(1) - (1)].lex).loc, "smooth");
|
|
parseContext.profileRequires((yyvsp[(1) - (1)].lex).loc, ENoProfile, 130, 0, "smooth");
|
|
parseContext.profileRequires((yyvsp[(1) - (1)].lex).loc, EEsProfile, 300, 0, "smooth");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
|
|
(yyval.interm.type).qualifier.smooth = true;
|
|
}
|
|
break;
|
|
|
|
case 125:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1029 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.globalCheck((yyvsp[(1) - (1)].lex).loc, "flat");
|
|
parseContext.profileRequires((yyvsp[(1) - (1)].lex).loc, ENoProfile, 130, 0, "flat");
|
|
parseContext.profileRequires((yyvsp[(1) - (1)].lex).loc, EEsProfile, 300, 0, "flat");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
|
|
(yyval.interm.type).qualifier.flat = true;
|
|
}
|
|
break;
|
|
|
|
case 126:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1036 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.globalCheck((yyvsp[(1) - (1)].lex).loc, "noperspective");
|
|
parseContext.requireProfile((yyvsp[(1) - (1)].lex).loc, ~EEsProfile, "noperspective");
|
|
parseContext.profileRequires((yyvsp[(1) - (1)].lex).loc, ENoProfile, 130, 0, "noperspective");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
|
|
(yyval.interm.type).qualifier.nopersp = true;
|
|
}
|
|
break;
|
|
|
|
case 127:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1046 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type) = (yyvsp[(3) - (4)].interm.type);
|
|
}
|
|
break;
|
|
|
|
case 128:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1052 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type) = (yyvsp[(1) - (1)].interm.type);
|
|
}
|
|
break;
|
|
|
|
case 129:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1055 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type) = (yyvsp[(1) - (3)].interm.type);
|
|
(yyval.interm.type).shaderQualifiers.merge((yyvsp[(3) - (3)].interm.type).shaderQualifiers);
|
|
parseContext.mergeObjectLayoutQualifiers((yyval.interm.type).qualifier, (yyvsp[(3) - (3)].interm.type).qualifier, false);
|
|
}
|
|
break;
|
|
|
|
case 130:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1062 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
|
|
parseContext.setLayoutQualifier((yyvsp[(1) - (1)].lex).loc, (yyval.interm.type), *(yyvsp[(1) - (1)].lex).string);
|
|
}
|
|
break;
|
|
|
|
case 131:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1066 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (3)].lex).loc);
|
|
parseContext.setLayoutQualifier((yyvsp[(1) - (3)].lex).loc, (yyval.interm.type), *(yyvsp[(1) - (3)].lex).string, (yyvsp[(3) - (3)].interm.intermTypedNode));
|
|
}
|
|
break;
|
|
|
|
case 132:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1070 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{ // because "shared" is both an identifier and a keyword
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
|
|
TString strShared("shared");
|
|
parseContext.setLayoutQualifier((yyvsp[(1) - (1)].lex).loc, (yyval.interm.type), strShared);
|
|
}
|
|
break;
|
|
|
|
case 133:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1078 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
|
|
}
|
|
break;
|
|
|
|
case 134:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1084 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type) = (yyvsp[(1) - (1)].interm.type);
|
|
}
|
|
break;
|
|
|
|
case 135:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1087 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type) = (yyvsp[(1) - (2)].interm.type);
|
|
if ((yyval.interm.type).basicType == EbtVoid)
|
|
(yyval.interm.type).basicType = (yyvsp[(2) - (2)].interm.type).basicType;
|
|
|
|
(yyval.interm.type).shaderQualifiers.merge((yyvsp[(2) - (2)].interm.type).shaderQualifiers);
|
|
parseContext.mergeQualifiers((yyval.interm.type).loc, (yyval.interm.type).qualifier, (yyvsp[(2) - (2)].interm.type).qualifier, false);
|
|
}
|
|
break;
|
|
|
|
case 136:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1098 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type) = (yyvsp[(1) - (1)].interm.type);
|
|
}
|
|
break;
|
|
|
|
case 137:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1101 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type) = (yyvsp[(1) - (1)].interm.type);
|
|
}
|
|
break;
|
|
|
|
case 138:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1104 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type) = (yyvsp[(1) - (1)].interm.type);
|
|
}
|
|
break;
|
|
|
|
case 139:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1107 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
// allow inheritance of storage qualifier from block declaration
|
|
(yyval.interm.type) = (yyvsp[(1) - (1)].interm.type);
|
|
}
|
|
break;
|
|
|
|
case 140:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1111 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
// allow inheritance of storage qualifier from block declaration
|
|
(yyval.interm.type) = (yyvsp[(1) - (1)].interm.type);
|
|
}
|
|
break;
|
|
|
|
case 141:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1115 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
// allow inheritance of storage qualifier from block declaration
|
|
(yyval.interm.type) = (yyvsp[(1) - (1)].interm.type);
|
|
}
|
|
break;
|
|
|
|
case 142:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1122 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
|
|
(yyval.interm.type).qualifier.storage = EvqConst; // will later turn into EvqConstReadOnly, if the initializer is not constant
|
|
}
|
|
break;
|
|
|
|
case 143:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1126 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.requireStage((yyvsp[(1) - (1)].lex).loc, EShLangVertex, "attribute");
|
|
parseContext.checkDeprecated((yyvsp[(1) - (1)].lex).loc, ECoreProfile, 130, "attribute");
|
|
parseContext.checkDeprecated((yyvsp[(1) - (1)].lex).loc, ENoProfile, 130, "attribute");
|
|
parseContext.requireNotRemoved((yyvsp[(1) - (1)].lex).loc, ECoreProfile, 420, "attribute");
|
|
parseContext.requireNotRemoved((yyvsp[(1) - (1)].lex).loc, EEsProfile, 300, "attribute");
|
|
|
|
parseContext.globalCheck((yyvsp[(1) - (1)].lex).loc, "attribute");
|
|
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
|
|
(yyval.interm.type).qualifier.storage = EvqVaryingIn;
|
|
}
|
|
break;
|
|
|
|
case 144:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1138 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.checkDeprecated((yyvsp[(1) - (1)].lex).loc, ENoProfile, 130, "varying");
|
|
parseContext.checkDeprecated((yyvsp[(1) - (1)].lex).loc, ECoreProfile, 130, "varying");
|
|
parseContext.requireNotRemoved((yyvsp[(1) - (1)].lex).loc, ECoreProfile, 420, "varying");
|
|
parseContext.requireNotRemoved((yyvsp[(1) - (1)].lex).loc, EEsProfile, 300, "varying");
|
|
|
|
parseContext.globalCheck((yyvsp[(1) - (1)].lex).loc, "varying");
|
|
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
|
|
if (parseContext.language == EShLangVertex)
|
|
(yyval.interm.type).qualifier.storage = EvqVaryingOut;
|
|
else
|
|
(yyval.interm.type).qualifier.storage = EvqVaryingIn;
|
|
}
|
|
break;
|
|
|
|
case 145:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1152 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.globalCheck((yyvsp[(1) - (1)].lex).loc, "inout");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
|
|
(yyval.interm.type).qualifier.storage = EvqInOut;
|
|
}
|
|
break;
|
|
|
|
case 146:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1157 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.globalCheck((yyvsp[(1) - (1)].lex).loc, "in");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
|
|
// whether this is a parameter "in" or a pipeline "in" will get sorted out a bit later
|
|
(yyval.interm.type).qualifier.storage = EvqIn;
|
|
}
|
|
break;
|
|
|
|
case 147:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1163 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.globalCheck((yyvsp[(1) - (1)].lex).loc, "out");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
|
|
// whether this is a parameter "out" or a pipeline "out" will get sorted out a bit later
|
|
(yyval.interm.type).qualifier.storage = EvqOut;
|
|
}
|
|
break;
|
|
|
|
case 148:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1169 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.profileRequires((yyvsp[(1) - (1)].lex).loc, ENoProfile, 120, 0, "centroid");
|
|
parseContext.profileRequires((yyvsp[(1) - (1)].lex).loc, EEsProfile, 300, 0, "centroid");
|
|
parseContext.globalCheck((yyvsp[(1) - (1)].lex).loc, "centroid");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
|
|
(yyval.interm.type).qualifier.centroid = true;
|
|
}
|
|
break;
|
|
|
|
case 149:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1176 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.globalCheck((yyvsp[(1) - (1)].lex).loc, "patch");
|
|
parseContext.requireStage((yyvsp[(1) - (1)].lex).loc, (EShLanguageMask)(EShLangTessControlMask | EShLangTessEvaluationMask), "patch");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
|
|
(yyval.interm.type).qualifier.patch = true;
|
|
}
|
|
break;
|
|
|
|
case 150:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1182 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.globalCheck((yyvsp[(1) - (1)].lex).loc, "sample");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
|
|
(yyval.interm.type).qualifier.sample = true;
|
|
}
|
|
break;
|
|
|
|
case 151:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1187 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.globalCheck((yyvsp[(1) - (1)].lex).loc, "uniform");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
|
|
(yyval.interm.type).qualifier.storage = EvqUniform;
|
|
}
|
|
break;
|
|
|
|
case 152:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1192 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.globalCheck((yyvsp[(1) - (1)].lex).loc, "buffer");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
|
|
(yyval.interm.type).qualifier.storage = EvqBuffer;
|
|
}
|
|
break;
|
|
|
|
case 153:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1197 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.profileRequires((yyvsp[(1) - (1)].lex).loc, ECoreProfile | ECompatibilityProfile, 430, 0, "shared");
|
|
parseContext.profileRequires((yyvsp[(1) - (1)].lex).loc, EEsProfile, 310, 0, "shared");
|
|
parseContext.requireStage((yyvsp[(1) - (1)].lex).loc, EShLangCompute, "shared");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
|
|
(yyval.interm.type).qualifier.storage = EvqShared;
|
|
}
|
|
break;
|
|
|
|
case 154:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1204 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
|
|
(yyval.interm.type).qualifier.coherent = true;
|
|
}
|
|
break;
|
|
|
|
case 155:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1208 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
|
|
(yyval.interm.type).qualifier.volatil = true;
|
|
}
|
|
break;
|
|
|
|
case 156:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1212 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
|
|
(yyval.interm.type).qualifier.restrict = true;
|
|
}
|
|
break;
|
|
|
|
case 157:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1216 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
|
|
(yyval.interm.type).qualifier.readonly = true;
|
|
}
|
|
break;
|
|
|
|
case 158:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1220 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
|
|
(yyval.interm.type).qualifier.writeonly = true;
|
|
}
|
|
break;
|
|
|
|
case 159:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1224 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.spvRemoved((yyvsp[(1) - (1)].lex).loc, "subroutine");
|
|
parseContext.globalCheck((yyvsp[(1) - (1)].lex).loc, "subroutine");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
|
|
(yyval.interm.type).qualifier.storage = EvqUniform;
|
|
}
|
|
break;
|
|
|
|
case 160:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1230 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.spvRemoved((yyvsp[(1) - (4)].lex).loc, "subroutine");
|
|
parseContext.globalCheck((yyvsp[(1) - (4)].lex).loc, "subroutine");
|
|
(yyval.interm.type).init((yyvsp[(1) - (4)].lex).loc);
|
|
(yyval.interm.type).qualifier.storage = EvqUniform;
|
|
// TODO: 4.0 semantics: subroutines
|
|
// 1) make sure each identifier is a type declared earlier with SUBROUTINE
|
|
// 2) save all of the identifiers for future comparison with the declared function
|
|
}
|
|
break;
|
|
|
|
case 161:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1242 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
// TODO: 4.0 functionality: subroutine type to list
|
|
}
|
|
break;
|
|
|
|
case 162:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1245 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
}
|
|
break;
|
|
|
|
case 163:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1250 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type) = (yyvsp[(1) - (1)].interm.type);
|
|
(yyval.interm.type).qualifier.precision = parseContext.getDefaultPrecision((yyval.interm.type));
|
|
}
|
|
break;
|
|
|
|
case 164:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1254 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.arrayDimCheck((yyvsp[(2) - (2)].interm).loc, (yyvsp[(2) - (2)].interm).arraySizes, 0);
|
|
(yyval.interm.type) = (yyvsp[(1) - (2)].interm.type);
|
|
(yyval.interm.type).qualifier.precision = parseContext.getDefaultPrecision((yyval.interm.type));
|
|
(yyval.interm.type).arraySizes = (yyvsp[(2) - (2)].interm).arraySizes;
|
|
}
|
|
break;
|
|
|
|
case 165:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1263 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm).loc = (yyvsp[(1) - (2)].lex).loc;
|
|
(yyval.interm).arraySizes = new TArraySizes;
|
|
(yyval.interm).arraySizes->addInnerSize();
|
|
}
|
|
break;
|
|
|
|
case 166:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1268 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm).loc = (yyvsp[(1) - (3)].lex).loc;
|
|
(yyval.interm).arraySizes = new TArraySizes;
|
|
|
|
TArraySize size;
|
|
parseContext.arraySizeCheck((yyvsp[(2) - (3)].interm.intermTypedNode)->getLoc(), (yyvsp[(2) - (3)].interm.intermTypedNode), size);
|
|
(yyval.interm).arraySizes->addInnerSize(size);
|
|
}
|
|
break;
|
|
|
|
case 167:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1276 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm) = (yyvsp[(1) - (3)].interm);
|
|
(yyval.interm).arraySizes->addInnerSize();
|
|
}
|
|
break;
|
|
|
|
case 168:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1280 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm) = (yyvsp[(1) - (4)].interm);
|
|
|
|
TArraySize size;
|
|
parseContext.arraySizeCheck((yyvsp[(3) - (4)].interm.intermTypedNode)->getLoc(), (yyvsp[(3) - (4)].interm.intermTypedNode), size);
|
|
(yyval.interm).arraySizes->addInnerSize(size);
|
|
}
|
|
break;
|
|
|
|
case 169:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1290 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtVoid;
|
|
}
|
|
break;
|
|
|
|
case 170:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1294 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtFloat;
|
|
}
|
|
break;
|
|
|
|
case 171:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1298 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.doubleCheck((yyvsp[(1) - (1)].lex).loc, "double");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtDouble;
|
|
}
|
|
break;
|
|
|
|
case 172:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1303 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtInt;
|
|
}
|
|
break;
|
|
|
|
case 173:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1307 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.fullIntegerCheck((yyvsp[(1) - (1)].lex).loc, "unsigned integer");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtUint;
|
|
}
|
|
break;
|
|
|
|
case 174:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1312 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtBool;
|
|
}
|
|
break;
|
|
|
|
case 175:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1316 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtFloat;
|
|
(yyval.interm.type).setVector(2);
|
|
}
|
|
break;
|
|
|
|
case 176:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1321 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtFloat;
|
|
(yyval.interm.type).setVector(3);
|
|
}
|
|
break;
|
|
|
|
case 177:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1326 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtFloat;
|
|
(yyval.interm.type).setVector(4);
|
|
}
|
|
break;
|
|
|
|
case 178:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1331 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.doubleCheck((yyvsp[(1) - (1)].lex).loc, "double vector");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtDouble;
|
|
(yyval.interm.type).setVector(2);
|
|
}
|
|
break;
|
|
|
|
case 179:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1337 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.doubleCheck((yyvsp[(1) - (1)].lex).loc, "double vector");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtDouble;
|
|
(yyval.interm.type).setVector(3);
|
|
}
|
|
break;
|
|
|
|
case 180:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1343 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.doubleCheck((yyvsp[(1) - (1)].lex).loc, "double vector");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtDouble;
|
|
(yyval.interm.type).setVector(4);
|
|
}
|
|
break;
|
|
|
|
case 181:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1349 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtBool;
|
|
(yyval.interm.type).setVector(2);
|
|
}
|
|
break;
|
|
|
|
case 182:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1354 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtBool;
|
|
(yyval.interm.type).setVector(3);
|
|
}
|
|
break;
|
|
|
|
case 183:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1359 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtBool;
|
|
(yyval.interm.type).setVector(4);
|
|
}
|
|
break;
|
|
|
|
case 184:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1364 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtInt;
|
|
(yyval.interm.type).setVector(2);
|
|
}
|
|
break;
|
|
|
|
case 185:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1369 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtInt;
|
|
(yyval.interm.type).setVector(3);
|
|
}
|
|
break;
|
|
|
|
case 186:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1374 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtInt;
|
|
(yyval.interm.type).setVector(4);
|
|
}
|
|
break;
|
|
|
|
case 187:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1379 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.fullIntegerCheck((yyvsp[(1) - (1)].lex).loc, "unsigned integer vector");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtUint;
|
|
(yyval.interm.type).setVector(2);
|
|
}
|
|
break;
|
|
|
|
case 188:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1385 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.fullIntegerCheck((yyvsp[(1) - (1)].lex).loc, "unsigned integer vector");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtUint;
|
|
(yyval.interm.type).setVector(3);
|
|
}
|
|
break;
|
|
|
|
case 189:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1391 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.fullIntegerCheck((yyvsp[(1) - (1)].lex).loc, "unsigned integer vector");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtUint;
|
|
(yyval.interm.type).setVector(4);
|
|
}
|
|
break;
|
|
|
|
case 190:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1397 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtFloat;
|
|
(yyval.interm.type).setMatrix(2, 2);
|
|
}
|
|
break;
|
|
|
|
case 191:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1402 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtFloat;
|
|
(yyval.interm.type).setMatrix(3, 3);
|
|
}
|
|
break;
|
|
|
|
case 192:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1407 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtFloat;
|
|
(yyval.interm.type).setMatrix(4, 4);
|
|
}
|
|
break;
|
|
|
|
case 193:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1412 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtFloat;
|
|
(yyval.interm.type).setMatrix(2, 2);
|
|
}
|
|
break;
|
|
|
|
case 194:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1417 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtFloat;
|
|
(yyval.interm.type).setMatrix(2, 3);
|
|
}
|
|
break;
|
|
|
|
case 195:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1422 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtFloat;
|
|
(yyval.interm.type).setMatrix(2, 4);
|
|
}
|
|
break;
|
|
|
|
case 196:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1427 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtFloat;
|
|
(yyval.interm.type).setMatrix(3, 2);
|
|
}
|
|
break;
|
|
|
|
case 197:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1432 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtFloat;
|
|
(yyval.interm.type).setMatrix(3, 3);
|
|
}
|
|
break;
|
|
|
|
case 198:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1437 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtFloat;
|
|
(yyval.interm.type).setMatrix(3, 4);
|
|
}
|
|
break;
|
|
|
|
case 199:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1442 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtFloat;
|
|
(yyval.interm.type).setMatrix(4, 2);
|
|
}
|
|
break;
|
|
|
|
case 200:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1447 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtFloat;
|
|
(yyval.interm.type).setMatrix(4, 3);
|
|
}
|
|
break;
|
|
|
|
case 201:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1452 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtFloat;
|
|
(yyval.interm.type).setMatrix(4, 4);
|
|
}
|
|
break;
|
|
|
|
case 202:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1457 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.doubleCheck((yyvsp[(1) - (1)].lex).loc, "double matrix");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtDouble;
|
|
(yyval.interm.type).setMatrix(2, 2);
|
|
}
|
|
break;
|
|
|
|
case 203:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1463 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.doubleCheck((yyvsp[(1) - (1)].lex).loc, "double matrix");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtDouble;
|
|
(yyval.interm.type).setMatrix(3, 3);
|
|
}
|
|
break;
|
|
|
|
case 204:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1469 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.doubleCheck((yyvsp[(1) - (1)].lex).loc, "double matrix");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtDouble;
|
|
(yyval.interm.type).setMatrix(4, 4);
|
|
}
|
|
break;
|
|
|
|
case 205:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1475 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.doubleCheck((yyvsp[(1) - (1)].lex).loc, "double matrix");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtDouble;
|
|
(yyval.interm.type).setMatrix(2, 2);
|
|
}
|
|
break;
|
|
|
|
case 206:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1481 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.doubleCheck((yyvsp[(1) - (1)].lex).loc, "double matrix");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtDouble;
|
|
(yyval.interm.type).setMatrix(2, 3);
|
|
}
|
|
break;
|
|
|
|
case 207:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1487 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.doubleCheck((yyvsp[(1) - (1)].lex).loc, "double matrix");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtDouble;
|
|
(yyval.interm.type).setMatrix(2, 4);
|
|
}
|
|
break;
|
|
|
|
case 208:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1493 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.doubleCheck((yyvsp[(1) - (1)].lex).loc, "double matrix");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtDouble;
|
|
(yyval.interm.type).setMatrix(3, 2);
|
|
}
|
|
break;
|
|
|
|
case 209:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1499 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.doubleCheck((yyvsp[(1) - (1)].lex).loc, "double matrix");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtDouble;
|
|
(yyval.interm.type).setMatrix(3, 3);
|
|
}
|
|
break;
|
|
|
|
case 210:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1505 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.doubleCheck((yyvsp[(1) - (1)].lex).loc, "double matrix");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtDouble;
|
|
(yyval.interm.type).setMatrix(3, 4);
|
|
}
|
|
break;
|
|
|
|
case 211:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1511 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.doubleCheck((yyvsp[(1) - (1)].lex).loc, "double matrix");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtDouble;
|
|
(yyval.interm.type).setMatrix(4, 2);
|
|
}
|
|
break;
|
|
|
|
case 212:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1517 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.doubleCheck((yyvsp[(1) - (1)].lex).loc, "double matrix");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtDouble;
|
|
(yyval.interm.type).setMatrix(4, 3);
|
|
}
|
|
break;
|
|
|
|
case 213:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1523 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.doubleCheck((yyvsp[(1) - (1)].lex).loc, "double matrix");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtDouble;
|
|
(yyval.interm.type).setMatrix(4, 4);
|
|
}
|
|
break;
|
|
|
|
case 214:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1529 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.vulkanRemoved((yyvsp[(1) - (1)].lex).loc, "atomic counter types");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtAtomicUint;
|
|
}
|
|
break;
|
|
|
|
case 215:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1534 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtFloat, Esd1D);
|
|
}
|
|
break;
|
|
|
|
case 216:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1539 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtFloat, Esd2D);
|
|
}
|
|
break;
|
|
|
|
case 217:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1544 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtFloat, Esd3D);
|
|
}
|
|
break;
|
|
|
|
case 218:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1549 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtFloat, EsdCube);
|
|
}
|
|
break;
|
|
|
|
case 219:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1554 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtFloat, Esd1D, false, true);
|
|
}
|
|
break;
|
|
|
|
case 220:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1559 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtFloat, Esd2D, false, true);
|
|
}
|
|
break;
|
|
|
|
case 221:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1564 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtFloat, EsdCube, false, true);
|
|
}
|
|
break;
|
|
|
|
case 222:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1569 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtFloat, Esd1D, true);
|
|
}
|
|
break;
|
|
|
|
case 223:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1574 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtFloat, Esd2D, true);
|
|
}
|
|
break;
|
|
|
|
case 224:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1579 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtFloat, Esd1D, true, true);
|
|
}
|
|
break;
|
|
|
|
case 225:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1584 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtFloat, Esd2D, true, true);
|
|
}
|
|
break;
|
|
|
|
case 226:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1589 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtFloat, EsdCube, true);
|
|
}
|
|
break;
|
|
|
|
case 227:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1594 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtFloat, EsdCube, true, true);
|
|
}
|
|
break;
|
|
|
|
case 228:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1599 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtInt, Esd1D);
|
|
}
|
|
break;
|
|
|
|
case 229:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1604 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtInt, Esd2D);
|
|
}
|
|
break;
|
|
|
|
case 230:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1609 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtInt, Esd3D);
|
|
}
|
|
break;
|
|
|
|
case 231:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1614 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtInt, EsdCube);
|
|
}
|
|
break;
|
|
|
|
case 232:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1619 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtInt, Esd1D, true);
|
|
}
|
|
break;
|
|
|
|
case 233:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1624 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtInt, Esd2D, true);
|
|
}
|
|
break;
|
|
|
|
case 234:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1629 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtInt, EsdCube, true);
|
|
}
|
|
break;
|
|
|
|
case 235:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1634 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtUint, Esd1D);
|
|
}
|
|
break;
|
|
|
|
case 236:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1639 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtUint, Esd2D);
|
|
}
|
|
break;
|
|
|
|
case 237:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1644 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtUint, Esd3D);
|
|
}
|
|
break;
|
|
|
|
case 238:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1649 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtUint, EsdCube);
|
|
}
|
|
break;
|
|
|
|
case 239:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1654 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtUint, Esd1D, true);
|
|
}
|
|
break;
|
|
|
|
case 240:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1659 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtUint, Esd2D, true);
|
|
}
|
|
break;
|
|
|
|
case 241:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1664 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtUint, EsdCube, true);
|
|
}
|
|
break;
|
|
|
|
case 242:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1669 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtFloat, EsdRect);
|
|
}
|
|
break;
|
|
|
|
case 243:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1674 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtFloat, EsdRect, false, true);
|
|
}
|
|
break;
|
|
|
|
case 244:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1679 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtInt, EsdRect);
|
|
}
|
|
break;
|
|
|
|
case 245:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1684 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtUint, EsdRect);
|
|
}
|
|
break;
|
|
|
|
case 246:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1689 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtFloat, EsdBuffer);
|
|
}
|
|
break;
|
|
|
|
case 247:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1694 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtInt, EsdBuffer);
|
|
}
|
|
break;
|
|
|
|
case 248:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1699 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtUint, EsdBuffer);
|
|
}
|
|
break;
|
|
|
|
case 249:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1704 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtFloat, Esd2D, false, false, true);
|
|
}
|
|
break;
|
|
|
|
case 250:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1709 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtInt, Esd2D, false, false, true);
|
|
}
|
|
break;
|
|
|
|
case 251:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1714 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtUint, Esd2D, false, false, true);
|
|
}
|
|
break;
|
|
|
|
case 252:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1719 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtFloat, Esd2D, true, false, true);
|
|
}
|
|
break;
|
|
|
|
case 253:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1724 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtInt, Esd2D, true, false, true);
|
|
}
|
|
break;
|
|
|
|
case 254:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1729 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtUint, Esd2D, true, false, true);
|
|
}
|
|
break;
|
|
|
|
case 255:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1734 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setPureSampler(false);
|
|
}
|
|
break;
|
|
|
|
case 256:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1739 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setPureSampler(true);
|
|
}
|
|
break;
|
|
|
|
case 257:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1744 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setTexture(EbtFloat, Esd1D);
|
|
}
|
|
break;
|
|
|
|
case 258:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1749 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setTexture(EbtFloat, Esd2D);
|
|
}
|
|
break;
|
|
|
|
case 259:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1754 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setTexture(EbtFloat, Esd3D);
|
|
}
|
|
break;
|
|
|
|
case 260:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1759 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setTexture(EbtFloat, EsdCube);
|
|
}
|
|
break;
|
|
|
|
case 261:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1764 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setTexture(EbtFloat, Esd1D, true);
|
|
}
|
|
break;
|
|
|
|
case 262:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1769 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setTexture(EbtFloat, Esd2D, true);
|
|
}
|
|
break;
|
|
|
|
case 263:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1774 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setTexture(EbtFloat, EsdCube, true);
|
|
}
|
|
break;
|
|
|
|
case 264:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1779 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setTexture(EbtInt, Esd1D);
|
|
}
|
|
break;
|
|
|
|
case 265:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1784 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setTexture(EbtInt, Esd2D);
|
|
}
|
|
break;
|
|
|
|
case 266:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1789 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setTexture(EbtInt, Esd3D);
|
|
}
|
|
break;
|
|
|
|
case 267:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1794 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setTexture(EbtInt, EsdCube);
|
|
}
|
|
break;
|
|
|
|
case 268:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1799 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setTexture(EbtInt, Esd1D, true);
|
|
}
|
|
break;
|
|
|
|
case 269:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1804 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setTexture(EbtInt, Esd2D, true);
|
|
}
|
|
break;
|
|
|
|
case 270:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1809 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setTexture(EbtInt, EsdCube, true);
|
|
}
|
|
break;
|
|
|
|
case 271:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1814 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setTexture(EbtUint, Esd1D);
|
|
}
|
|
break;
|
|
|
|
case 272:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1819 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setTexture(EbtUint, Esd2D);
|
|
}
|
|
break;
|
|
|
|
case 273:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1824 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setTexture(EbtUint, Esd3D);
|
|
}
|
|
break;
|
|
|
|
case 274:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1829 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setTexture(EbtUint, EsdCube);
|
|
}
|
|
break;
|
|
|
|
case 275:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1834 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setTexture(EbtUint, Esd1D, true);
|
|
}
|
|
break;
|
|
|
|
case 276:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1839 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setTexture(EbtUint, Esd2D, true);
|
|
}
|
|
break;
|
|
|
|
case 277:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1844 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setTexture(EbtUint, EsdCube, true);
|
|
}
|
|
break;
|
|
|
|
case 278:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1849 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setTexture(EbtFloat, EsdRect);
|
|
}
|
|
break;
|
|
|
|
case 279:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1854 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setTexture(EbtInt, EsdRect);
|
|
}
|
|
break;
|
|
|
|
case 280:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1859 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setTexture(EbtUint, EsdRect);
|
|
}
|
|
break;
|
|
|
|
case 281:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1864 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setTexture(EbtFloat, EsdBuffer);
|
|
}
|
|
break;
|
|
|
|
case 282:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1869 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setTexture(EbtInt, EsdBuffer);
|
|
}
|
|
break;
|
|
|
|
case 283:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1874 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setTexture(EbtUint, EsdBuffer);
|
|
}
|
|
break;
|
|
|
|
case 284:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1879 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setTexture(EbtFloat, Esd2D, false, false, true);
|
|
}
|
|
break;
|
|
|
|
case 285:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1884 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setTexture(EbtInt, Esd2D, false, false, true);
|
|
}
|
|
break;
|
|
|
|
case 286:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1889 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setTexture(EbtUint, Esd2D, false, false, true);
|
|
}
|
|
break;
|
|
|
|
case 287:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1894 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setTexture(EbtFloat, Esd2D, true, false, true);
|
|
}
|
|
break;
|
|
|
|
case 288:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1899 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setTexture(EbtInt, Esd2D, true, false, true);
|
|
}
|
|
break;
|
|
|
|
case 289:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1904 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setTexture(EbtUint, Esd2D, true, false, true);
|
|
}
|
|
break;
|
|
|
|
case 290:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1909 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setImage(EbtFloat, Esd1D);
|
|
}
|
|
break;
|
|
|
|
case 291:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1914 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setImage(EbtInt, Esd1D);
|
|
}
|
|
break;
|
|
|
|
case 292:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1919 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setImage(EbtUint, Esd1D);
|
|
}
|
|
break;
|
|
|
|
case 293:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1924 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setImage(EbtFloat, Esd2D);
|
|
}
|
|
break;
|
|
|
|
case 294:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1929 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setImage(EbtInt, Esd2D);
|
|
}
|
|
break;
|
|
|
|
case 295:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1934 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setImage(EbtUint, Esd2D);
|
|
}
|
|
break;
|
|
|
|
case 296:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1939 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setImage(EbtFloat, Esd3D);
|
|
}
|
|
break;
|
|
|
|
case 297:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1944 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setImage(EbtInt, Esd3D);
|
|
}
|
|
break;
|
|
|
|
case 298:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1949 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setImage(EbtUint, Esd3D);
|
|
}
|
|
break;
|
|
|
|
case 299:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1954 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setImage(EbtFloat, EsdRect);
|
|
}
|
|
break;
|
|
|
|
case 300:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1959 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setImage(EbtInt, EsdRect);
|
|
}
|
|
break;
|
|
|
|
case 301:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1964 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setImage(EbtUint, EsdRect);
|
|
}
|
|
break;
|
|
|
|
case 302:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1969 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setImage(EbtFloat, EsdCube);
|
|
}
|
|
break;
|
|
|
|
case 303:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1974 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setImage(EbtInt, EsdCube);
|
|
}
|
|
break;
|
|
|
|
case 304:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1979 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setImage(EbtUint, EsdCube);
|
|
}
|
|
break;
|
|
|
|
case 305:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1984 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setImage(EbtFloat, EsdBuffer);
|
|
}
|
|
break;
|
|
|
|
case 306:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1989 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setImage(EbtInt, EsdBuffer);
|
|
}
|
|
break;
|
|
|
|
case 307:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1994 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setImage(EbtUint, EsdBuffer);
|
|
}
|
|
break;
|
|
|
|
case 308:
|
|
/* Line 1792 of yacc.c */
|
|
#line 1999 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setImage(EbtFloat, Esd1D, true);
|
|
}
|
|
break;
|
|
|
|
case 309:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2004 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setImage(EbtInt, Esd1D, true);
|
|
}
|
|
break;
|
|
|
|
case 310:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2009 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setImage(EbtUint, Esd1D, true);
|
|
}
|
|
break;
|
|
|
|
case 311:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2014 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setImage(EbtFloat, Esd2D, true);
|
|
}
|
|
break;
|
|
|
|
case 312:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2019 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setImage(EbtInt, Esd2D, true);
|
|
}
|
|
break;
|
|
|
|
case 313:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2024 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setImage(EbtUint, Esd2D, true);
|
|
}
|
|
break;
|
|
|
|
case 314:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2029 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setImage(EbtFloat, EsdCube, true);
|
|
}
|
|
break;
|
|
|
|
case 315:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2034 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setImage(EbtInt, EsdCube, true);
|
|
}
|
|
break;
|
|
|
|
case 316:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2039 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setImage(EbtUint, EsdCube, true);
|
|
}
|
|
break;
|
|
|
|
case 317:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2044 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setImage(EbtFloat, Esd2D, false, false, true);
|
|
}
|
|
break;
|
|
|
|
case 318:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2049 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setImage(EbtInt, Esd2D, false, false, true);
|
|
}
|
|
break;
|
|
|
|
case 319:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2054 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setImage(EbtUint, Esd2D, false, false, true);
|
|
}
|
|
break;
|
|
|
|
case 320:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2059 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setImage(EbtFloat, Esd2D, true, false, true);
|
|
}
|
|
break;
|
|
|
|
case 321:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2064 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setImage(EbtInt, Esd2D, true, false, true);
|
|
}
|
|
break;
|
|
|
|
case 322:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2069 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setImage(EbtUint, Esd2D, true, false, true);
|
|
}
|
|
break;
|
|
|
|
case 323:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2074 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{ // GL_OES_EGL_image_external
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.set(EbtFloat, Esd2D);
|
|
(yyval.interm.type).sampler.external = true;
|
|
}
|
|
break;
|
|
|
|
case 324:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2080 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.requireStage((yyvsp[(1) - (1)].lex).loc, EShLangFragment, "subpass input");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setSubpass(EbtFloat);
|
|
}
|
|
break;
|
|
|
|
case 325:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2086 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.requireStage((yyvsp[(1) - (1)].lex).loc, EShLangFragment, "subpass input");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setSubpass(EbtFloat, true);
|
|
}
|
|
break;
|
|
|
|
case 326:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2092 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.requireStage((yyvsp[(1) - (1)].lex).loc, EShLangFragment, "subpass input");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setSubpass(EbtInt);
|
|
}
|
|
break;
|
|
|
|
case 327:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2098 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.requireStage((yyvsp[(1) - (1)].lex).loc, EShLangFragment, "subpass input");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setSubpass(EbtInt, true);
|
|
}
|
|
break;
|
|
|
|
case 328:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2104 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.requireStage((yyvsp[(1) - (1)].lex).loc, EShLangFragment, "subpass input");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setSubpass(EbtUint);
|
|
}
|
|
break;
|
|
|
|
case 329:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2110 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.requireStage((yyvsp[(1) - (1)].lex).loc, EShLangFragment, "subpass input");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtSampler;
|
|
(yyval.interm.type).sampler.setSubpass(EbtUint, true);
|
|
}
|
|
break;
|
|
|
|
case 330:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2116 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.type) = (yyvsp[(1) - (1)].interm.type);
|
|
(yyval.interm.type).qualifier.storage = parseContext.symbolTable.atGlobalLevel() ? EvqGlobal : EvqTemporary;
|
|
parseContext.structTypeCheck((yyval.interm.type).loc, (yyval.interm.type));
|
|
}
|
|
break;
|
|
|
|
case 331:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2121 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
//
|
|
// This is for user defined type names. The lexical phase looked up the
|
|
// type.
|
|
//
|
|
if (const TVariable* variable = ((yyvsp[(1) - (1)].lex).symbol)->getAsVariable()) {
|
|
const TType& structure = variable->getType();
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
(yyval.interm.type).basicType = EbtStruct;
|
|
(yyval.interm.type).userDef = &structure;
|
|
} else
|
|
parseContext.error((yyvsp[(1) - (1)].lex).loc, "expected type name", (yyvsp[(1) - (1)].lex).string->c_str(), "");
|
|
}
|
|
break;
|
|
|
|
case 332:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2137 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.profileRequires((yyvsp[(1) - (1)].lex).loc, ENoProfile, 130, 0, "highp precision qualifier");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
if (parseContext.profile == EEsProfile)
|
|
(yyval.interm.type).qualifier.precision = EpqHigh;
|
|
}
|
|
break;
|
|
|
|
case 333:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2143 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.profileRequires((yyvsp[(1) - (1)].lex).loc, ENoProfile, 130, 0, "mediump precision qualifier");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
if (parseContext.profile == EEsProfile)
|
|
(yyval.interm.type).qualifier.precision = EpqMedium;
|
|
}
|
|
break;
|
|
|
|
case 334:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2149 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.profileRequires((yyvsp[(1) - (1)].lex).loc, ENoProfile, 130, 0, "lowp precision qualifier");
|
|
(yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
|
|
if (parseContext.profile == EEsProfile)
|
|
(yyval.interm.type).qualifier.precision = EpqLow;
|
|
}
|
|
break;
|
|
|
|
case 335:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2158 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{ parseContext.nestedStructCheck((yyvsp[(1) - (3)].lex).loc); }
|
|
break;
|
|
|
|
case 336:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2158 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
TType* structure = new TType((yyvsp[(5) - (6)].interm.typeList), *(yyvsp[(2) - (6)].lex).string);
|
|
parseContext.structArrayCheck((yyvsp[(2) - (6)].lex).loc, *structure);
|
|
TVariable* userTypeDef = new TVariable((yyvsp[(2) - (6)].lex).string, *structure, true);
|
|
if (! parseContext.symbolTable.insert(*userTypeDef))
|
|
parseContext.error((yyvsp[(2) - (6)].lex).loc, "redefinition", (yyvsp[(2) - (6)].lex).string->c_str(), "struct");
|
|
(yyval.interm.type).init((yyvsp[(1) - (6)].lex).loc);
|
|
(yyval.interm.type).basicType = EbtStruct;
|
|
(yyval.interm.type).userDef = structure;
|
|
--parseContext.structNestingLevel;
|
|
}
|
|
break;
|
|
|
|
case 337:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2169 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{ parseContext.nestedStructCheck((yyvsp[(1) - (2)].lex).loc); }
|
|
break;
|
|
|
|
case 338:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2169 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
TType* structure = new TType((yyvsp[(4) - (5)].interm.typeList), TString(""));
|
|
(yyval.interm.type).init((yyvsp[(1) - (5)].lex).loc);
|
|
(yyval.interm.type).basicType = EbtStruct;
|
|
(yyval.interm.type).userDef = structure;
|
|
--parseContext.structNestingLevel;
|
|
}
|
|
break;
|
|
|
|
case 339:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2179 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.typeList) = (yyvsp[(1) - (1)].interm.typeList);
|
|
}
|
|
break;
|
|
|
|
case 340:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2182 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.typeList) = (yyvsp[(1) - (2)].interm.typeList);
|
|
for (unsigned int i = 0; i < (yyvsp[(2) - (2)].interm.typeList)->size(); ++i) {
|
|
for (unsigned int j = 0; j < (yyval.interm.typeList)->size(); ++j) {
|
|
if ((*(yyval.interm.typeList))[j].type->getFieldName() == (*(yyvsp[(2) - (2)].interm.typeList))[i].type->getFieldName())
|
|
parseContext.error((*(yyvsp[(2) - (2)].interm.typeList))[i].loc, "duplicate member name:", "", (*(yyvsp[(2) - (2)].interm.typeList))[i].type->getFieldName().c_str());
|
|
}
|
|
(yyval.interm.typeList)->push_back((*(yyvsp[(2) - (2)].interm.typeList))[i]);
|
|
}
|
|
}
|
|
break;
|
|
|
|
case 341:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2195 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
if ((yyvsp[(1) - (3)].interm.type).arraySizes) {
|
|
parseContext.profileRequires((yyvsp[(1) - (3)].interm.type).loc, ENoProfile, 120, E_GL_3DL_array_objects, "arrayed type");
|
|
parseContext.profileRequires((yyvsp[(1) - (3)].interm.type).loc, EEsProfile, 300, 0, "arrayed type");
|
|
if (parseContext.profile == EEsProfile)
|
|
parseContext.arraySizeRequiredCheck((yyvsp[(1) - (3)].interm.type).loc, *(yyvsp[(1) - (3)].interm.type).arraySizes);
|
|
}
|
|
|
|
(yyval.interm.typeList) = (yyvsp[(2) - (3)].interm.typeList);
|
|
|
|
parseContext.voidErrorCheck((yyvsp[(1) - (3)].interm.type).loc, (*(yyvsp[(2) - (3)].interm.typeList))[0].type->getFieldName(), (yyvsp[(1) - (3)].interm.type).basicType);
|
|
parseContext.precisionQualifierCheck((yyvsp[(1) - (3)].interm.type).loc, (yyvsp[(1) - (3)].interm.type).basicType, (yyvsp[(1) - (3)].interm.type).qualifier);
|
|
|
|
for (unsigned int i = 0; i < (yyval.interm.typeList)->size(); ++i) {
|
|
parseContext.arrayDimCheck((yyvsp[(1) - (3)].interm.type).loc, (*(yyval.interm.typeList))[i].type, (yyvsp[(1) - (3)].interm.type).arraySizes);
|
|
(*(yyval.interm.typeList))[i].type->mergeType((yyvsp[(1) - (3)].interm.type));
|
|
}
|
|
}
|
|
break;
|
|
|
|
case 342:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2213 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.globalQualifierFixCheck((yyvsp[(1) - (4)].interm.type).loc, (yyvsp[(1) - (4)].interm.type).qualifier);
|
|
if ((yyvsp[(2) - (4)].interm.type).arraySizes) {
|
|
parseContext.profileRequires((yyvsp[(2) - (4)].interm.type).loc, ENoProfile, 120, E_GL_3DL_array_objects, "arrayed type");
|
|
parseContext.profileRequires((yyvsp[(2) - (4)].interm.type).loc, EEsProfile, 300, 0, "arrayed type");
|
|
if (parseContext.profile == EEsProfile)
|
|
parseContext.arraySizeRequiredCheck((yyvsp[(2) - (4)].interm.type).loc, *(yyvsp[(2) - (4)].interm.type).arraySizes);
|
|
}
|
|
|
|
(yyval.interm.typeList) = (yyvsp[(3) - (4)].interm.typeList);
|
|
|
|
parseContext.checkNoShaderLayouts((yyvsp[(1) - (4)].interm.type).loc, (yyvsp[(1) - (4)].interm.type).shaderQualifiers);
|
|
parseContext.voidErrorCheck((yyvsp[(2) - (4)].interm.type).loc, (*(yyvsp[(3) - (4)].interm.typeList))[0].type->getFieldName(), (yyvsp[(2) - (4)].interm.type).basicType);
|
|
parseContext.mergeQualifiers((yyvsp[(2) - (4)].interm.type).loc, (yyvsp[(2) - (4)].interm.type).qualifier, (yyvsp[(1) - (4)].interm.type).qualifier, true);
|
|
parseContext.precisionQualifierCheck((yyvsp[(2) - (4)].interm.type).loc, (yyvsp[(2) - (4)].interm.type).basicType, (yyvsp[(2) - (4)].interm.type).qualifier);
|
|
|
|
for (unsigned int i = 0; i < (yyval.interm.typeList)->size(); ++i) {
|
|
parseContext.arrayDimCheck((yyvsp[(1) - (4)].interm.type).loc, (*(yyval.interm.typeList))[i].type, (yyvsp[(2) - (4)].interm.type).arraySizes);
|
|
(*(yyval.interm.typeList))[i].type->mergeType((yyvsp[(2) - (4)].interm.type));
|
|
}
|
|
}
|
|
break;
|
|
|
|
case 343:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2237 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.typeList) = new TTypeList;
|
|
(yyval.interm.typeList)->push_back((yyvsp[(1) - (1)].interm.typeLine));
|
|
}
|
|
break;
|
|
|
|
case 344:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2241 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.typeList)->push_back((yyvsp[(3) - (3)].interm.typeLine));
|
|
}
|
|
break;
|
|
|
|
case 345:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2247 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.typeLine).type = new TType(EbtVoid);
|
|
(yyval.interm.typeLine).loc = (yyvsp[(1) - (1)].lex).loc;
|
|
(yyval.interm.typeLine).type->setFieldName(*(yyvsp[(1) - (1)].lex).string);
|
|
}
|
|
break;
|
|
|
|
case 346:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2252 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.arrayDimCheck((yyvsp[(1) - (2)].lex).loc, (yyvsp[(2) - (2)].interm).arraySizes, 0);
|
|
|
|
(yyval.interm.typeLine).type = new TType(EbtVoid);
|
|
(yyval.interm.typeLine).loc = (yyvsp[(1) - (2)].lex).loc;
|
|
(yyval.interm.typeLine).type->setFieldName(*(yyvsp[(1) - (2)].lex).string);
|
|
(yyval.interm.typeLine).type->newArraySizes(*(yyvsp[(2) - (2)].interm).arraySizes);
|
|
}
|
|
break;
|
|
|
|
case 347:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2263 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode);
|
|
}
|
|
break;
|
|
|
|
case 348:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2266 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
const char* initFeature = "{ } style initializers";
|
|
parseContext.requireProfile((yyvsp[(1) - (3)].lex).loc, ~EEsProfile, initFeature);
|
|
parseContext.profileRequires((yyvsp[(1) - (3)].lex).loc, ~EEsProfile, 420, E_GL_ARB_shading_language_420pack, initFeature);
|
|
(yyval.interm.intermTypedNode) = (yyvsp[(2) - (3)].interm.intermTypedNode);
|
|
}
|
|
break;
|
|
|
|
case 349:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2272 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
const char* initFeature = "{ } style initializers";
|
|
parseContext.requireProfile((yyvsp[(1) - (4)].lex).loc, ~EEsProfile, initFeature);
|
|
parseContext.profileRequires((yyvsp[(1) - (4)].lex).loc, ~EEsProfile, 420, E_GL_ARB_shading_language_420pack, initFeature);
|
|
(yyval.interm.intermTypedNode) = (yyvsp[(2) - (4)].interm.intermTypedNode);
|
|
}
|
|
break;
|
|
|
|
case 350:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2281 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermTypedNode) = parseContext.intermediate.growAggregate(0, (yyvsp[(1) - (1)].interm.intermTypedNode), (yyvsp[(1) - (1)].interm.intermTypedNode)->getLoc());
|
|
}
|
|
break;
|
|
|
|
case 351:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2284 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermTypedNode) = parseContext.intermediate.growAggregate((yyvsp[(1) - (3)].interm.intermTypedNode), (yyvsp[(3) - (3)].interm.intermTypedNode));
|
|
}
|
|
break;
|
|
|
|
case 352:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2290 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{ (yyval.interm.intermNode) = (yyvsp[(1) - (1)].interm.intermNode); }
|
|
break;
|
|
|
|
case 353:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2294 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{ (yyval.interm.intermNode) = (yyvsp[(1) - (1)].interm.intermNode); }
|
|
break;
|
|
|
|
case 354:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2295 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{ (yyval.interm.intermNode) = (yyvsp[(1) - (1)].interm.intermNode); }
|
|
break;
|
|
|
|
case 355:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2301 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{ (yyval.interm.intermNode) = (yyvsp[(1) - (1)].interm.intermNode); }
|
|
break;
|
|
|
|
case 356:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2302 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{ (yyval.interm.intermNode) = (yyvsp[(1) - (1)].interm.intermNode); }
|
|
break;
|
|
|
|
case 357:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2303 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{ (yyval.interm.intermNode) = (yyvsp[(1) - (1)].interm.intermNode); }
|
|
break;
|
|
|
|
case 358:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2304 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{ (yyval.interm.intermNode) = (yyvsp[(1) - (1)].interm.intermNode); }
|
|
break;
|
|
|
|
case 359:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2305 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{ (yyval.interm.intermNode) = (yyvsp[(1) - (1)].interm.intermNode); }
|
|
break;
|
|
|
|
case 360:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2306 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{ (yyval.interm.intermNode) = (yyvsp[(1) - (1)].interm.intermNode); }
|
|
break;
|
|
|
|
case 361:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2307 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{ (yyval.interm.intermNode) = (yyvsp[(1) - (1)].interm.intermNode); }
|
|
break;
|
|
|
|
case 362:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2311 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{ (yyval.interm.intermNode) = 0; }
|
|
break;
|
|
|
|
case 363:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2312 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.symbolTable.push();
|
|
++parseContext.statementNestingLevel;
|
|
}
|
|
break;
|
|
|
|
case 364:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2316 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.symbolTable.pop(&parseContext.defaultPrecision[0]);
|
|
--parseContext.statementNestingLevel;
|
|
}
|
|
break;
|
|
|
|
case 365:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2320 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
if ((yyvsp[(3) - (5)].interm.intermNode) && (yyvsp[(3) - (5)].interm.intermNode)->getAsAggregate())
|
|
(yyvsp[(3) - (5)].interm.intermNode)->getAsAggregate()->setOperator(EOpSequence);
|
|
(yyval.interm.intermNode) = (yyvsp[(3) - (5)].interm.intermNode);
|
|
}
|
|
break;
|
|
|
|
case 366:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2328 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{ (yyval.interm.intermNode) = (yyvsp[(1) - (1)].interm.intermNode); }
|
|
break;
|
|
|
|
case 367:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2329 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{ (yyval.interm.intermNode) = (yyvsp[(1) - (1)].interm.intermNode); }
|
|
break;
|
|
|
|
case 368:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2333 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
++parseContext.controlFlowNestingLevel;
|
|
}
|
|
break;
|
|
|
|
case 369:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2336 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
--parseContext.controlFlowNestingLevel;
|
|
(yyval.interm.intermNode) = (yyvsp[(2) - (2)].interm.intermNode);
|
|
}
|
|
break;
|
|
|
|
case 370:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2340 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.symbolTable.push();
|
|
++parseContext.statementNestingLevel;
|
|
++parseContext.controlFlowNestingLevel;
|
|
}
|
|
break;
|
|
|
|
case 371:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2345 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.symbolTable.pop(&parseContext.defaultPrecision[0]);
|
|
--parseContext.statementNestingLevel;
|
|
--parseContext.controlFlowNestingLevel;
|
|
(yyval.interm.intermNode) = (yyvsp[(2) - (2)].interm.intermNode);
|
|
}
|
|
break;
|
|
|
|
case 372:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2354 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermNode) = 0;
|
|
}
|
|
break;
|
|
|
|
case 373:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2357 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
if ((yyvsp[(2) - (3)].interm.intermNode) && (yyvsp[(2) - (3)].interm.intermNode)->getAsAggregate())
|
|
(yyvsp[(2) - (3)].interm.intermNode)->getAsAggregate()->setOperator(EOpSequence);
|
|
(yyval.interm.intermNode) = (yyvsp[(2) - (3)].interm.intermNode);
|
|
}
|
|
break;
|
|
|
|
case 374:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2365 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermNode) = parseContext.intermediate.makeAggregate((yyvsp[(1) - (1)].interm.intermNode));
|
|
if ((yyvsp[(1) - (1)].interm.intermNode) && (yyvsp[(1) - (1)].interm.intermNode)->getAsBranchNode() && ((yyvsp[(1) - (1)].interm.intermNode)->getAsBranchNode()->getFlowOp() == EOpCase ||
|
|
(yyvsp[(1) - (1)].interm.intermNode)->getAsBranchNode()->getFlowOp() == EOpDefault)) {
|
|
parseContext.wrapupSwitchSubsequence(0, (yyvsp[(1) - (1)].interm.intermNode));
|
|
(yyval.interm.intermNode) = 0; // start a fresh subsequence for what's after this case
|
|
}
|
|
}
|
|
break;
|
|
|
|
case 375:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2373 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
if ((yyvsp[(2) - (2)].interm.intermNode) && (yyvsp[(2) - (2)].interm.intermNode)->getAsBranchNode() && ((yyvsp[(2) - (2)].interm.intermNode)->getAsBranchNode()->getFlowOp() == EOpCase ||
|
|
(yyvsp[(2) - (2)].interm.intermNode)->getAsBranchNode()->getFlowOp() == EOpDefault)) {
|
|
parseContext.wrapupSwitchSubsequence((yyvsp[(1) - (2)].interm.intermNode) ? (yyvsp[(1) - (2)].interm.intermNode)->getAsAggregate() : 0, (yyvsp[(2) - (2)].interm.intermNode));
|
|
(yyval.interm.intermNode) = 0; // start a fresh subsequence for what's after this case
|
|
} else
|
|
(yyval.interm.intermNode) = parseContext.intermediate.growAggregate((yyvsp[(1) - (2)].interm.intermNode), (yyvsp[(2) - (2)].interm.intermNode));
|
|
}
|
|
break;
|
|
|
|
case 376:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2384 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{ (yyval.interm.intermNode) = 0; }
|
|
break;
|
|
|
|
case 377:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2385 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{ (yyval.interm.intermNode) = static_cast<TIntermNode*>((yyvsp[(1) - (2)].interm.intermTypedNode)); }
|
|
break;
|
|
|
|
case 378:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2389 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.boolCheck((yyvsp[(1) - (5)].lex).loc, (yyvsp[(3) - (5)].interm.intermTypedNode));
|
|
(yyval.interm.intermNode) = parseContext.intermediate.addSelection((yyvsp[(3) - (5)].interm.intermTypedNode), (yyvsp[(5) - (5)].interm.nodePair), (yyvsp[(1) - (5)].lex).loc);
|
|
}
|
|
break;
|
|
|
|
case 379:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2396 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.nodePair).node1 = (yyvsp[(1) - (3)].interm.intermNode);
|
|
(yyval.interm.nodePair).node2 = (yyvsp[(3) - (3)].interm.intermNode);
|
|
}
|
|
break;
|
|
|
|
case 380:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2400 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.nodePair).node1 = (yyvsp[(1) - (1)].interm.intermNode);
|
|
(yyval.interm.nodePair).node2 = 0;
|
|
}
|
|
break;
|
|
|
|
case 381:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2408 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode);
|
|
parseContext.boolCheck((yyvsp[(1) - (1)].interm.intermTypedNode)->getLoc(), (yyvsp[(1) - (1)].interm.intermTypedNode));
|
|
}
|
|
break;
|
|
|
|
case 382:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2412 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.boolCheck((yyvsp[(2) - (4)].lex).loc, (yyvsp[(1) - (4)].interm.type));
|
|
|
|
TType type((yyvsp[(1) - (4)].interm.type));
|
|
TIntermNode* initNode = parseContext.declareVariable((yyvsp[(2) - (4)].lex).loc, *(yyvsp[(2) - (4)].lex).string, (yyvsp[(1) - (4)].interm.type), 0, (yyvsp[(4) - (4)].interm.intermTypedNode));
|
|
if (initNode)
|
|
(yyval.interm.intermTypedNode) = initNode->getAsTyped();
|
|
else
|
|
(yyval.interm.intermTypedNode) = 0;
|
|
}
|
|
break;
|
|
|
|
case 383:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2425 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
// start new switch sequence on the switch stack
|
|
++parseContext.controlFlowNestingLevel;
|
|
++parseContext.statementNestingLevel;
|
|
parseContext.switchSequenceStack.push_back(new TIntermSequence);
|
|
parseContext.switchLevel.push_back(parseContext.statementNestingLevel);
|
|
parseContext.symbolTable.push();
|
|
}
|
|
break;
|
|
|
|
case 384:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2433 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermNode) = parseContext.addSwitch((yyvsp[(1) - (8)].lex).loc, (yyvsp[(3) - (8)].interm.intermTypedNode), (yyvsp[(7) - (8)].interm.intermNode) ? (yyvsp[(7) - (8)].interm.intermNode)->getAsAggregate() : 0);
|
|
delete parseContext.switchSequenceStack.back();
|
|
parseContext.switchSequenceStack.pop_back();
|
|
parseContext.switchLevel.pop_back();
|
|
parseContext.symbolTable.pop(&parseContext.defaultPrecision[0]);
|
|
--parseContext.statementNestingLevel;
|
|
--parseContext.controlFlowNestingLevel;
|
|
}
|
|
break;
|
|
|
|
case 385:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2445 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermNode) = 0;
|
|
}
|
|
break;
|
|
|
|
case 386:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2448 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermNode) = (yyvsp[(1) - (1)].interm.intermNode);
|
|
}
|
|
break;
|
|
|
|
case 387:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2454 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermNode) = 0;
|
|
if (parseContext.switchLevel.size() == 0)
|
|
parseContext.error((yyvsp[(1) - (3)].lex).loc, "cannot appear outside switch statement", "case", "");
|
|
else if (parseContext.switchLevel.back() != parseContext.statementNestingLevel)
|
|
parseContext.error((yyvsp[(1) - (3)].lex).loc, "cannot be nested inside control flow", "case", "");
|
|
else {
|
|
parseContext.constantValueCheck((yyvsp[(2) - (3)].interm.intermTypedNode), "case");
|
|
parseContext.integerCheck((yyvsp[(2) - (3)].interm.intermTypedNode), "case");
|
|
(yyval.interm.intermNode) = parseContext.intermediate.addBranch(EOpCase, (yyvsp[(2) - (3)].interm.intermTypedNode), (yyvsp[(1) - (3)].lex).loc);
|
|
}
|
|
}
|
|
break;
|
|
|
|
case 388:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2466 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermNode) = 0;
|
|
if (parseContext.switchLevel.size() == 0)
|
|
parseContext.error((yyvsp[(1) - (2)].lex).loc, "cannot appear outside switch statement", "default", "");
|
|
else if (parseContext.switchLevel.back() != parseContext.statementNestingLevel)
|
|
parseContext.error((yyvsp[(1) - (2)].lex).loc, "cannot be nested inside control flow", "default", "");
|
|
else
|
|
(yyval.interm.intermNode) = parseContext.intermediate.addBranch(EOpDefault, (yyvsp[(1) - (2)].lex).loc);
|
|
}
|
|
break;
|
|
|
|
case 389:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2478 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
if (! parseContext.limits.whileLoops)
|
|
parseContext.error((yyvsp[(1) - (2)].lex).loc, "while loops not available", "limitation", "");
|
|
parseContext.symbolTable.push();
|
|
++parseContext.loopNestingLevel;
|
|
++parseContext.statementNestingLevel;
|
|
++parseContext.controlFlowNestingLevel;
|
|
}
|
|
break;
|
|
|
|
case 390:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2486 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.symbolTable.pop(&parseContext.defaultPrecision[0]);
|
|
(yyval.interm.intermNode) = parseContext.intermediate.addLoop((yyvsp[(6) - (6)].interm.intermNode), (yyvsp[(4) - (6)].interm.intermTypedNode), 0, true, (yyvsp[(1) - (6)].lex).loc);
|
|
--parseContext.loopNestingLevel;
|
|
--parseContext.statementNestingLevel;
|
|
--parseContext.controlFlowNestingLevel;
|
|
}
|
|
break;
|
|
|
|
case 391:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2493 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
++parseContext.loopNestingLevel;
|
|
++parseContext.statementNestingLevel;
|
|
++parseContext.controlFlowNestingLevel;
|
|
}
|
|
break;
|
|
|
|
case 392:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2498 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
if (! parseContext.limits.whileLoops)
|
|
parseContext.error((yyvsp[(1) - (8)].lex).loc, "do-while loops not available", "limitation", "");
|
|
|
|
parseContext.boolCheck((yyvsp[(8) - (8)].lex).loc, (yyvsp[(6) - (8)].interm.intermTypedNode));
|
|
|
|
(yyval.interm.intermNode) = parseContext.intermediate.addLoop((yyvsp[(3) - (8)].interm.intermNode), (yyvsp[(6) - (8)].interm.intermTypedNode), 0, false, (yyvsp[(4) - (8)].lex).loc);
|
|
--parseContext.loopNestingLevel;
|
|
--parseContext.statementNestingLevel;
|
|
--parseContext.controlFlowNestingLevel;
|
|
}
|
|
break;
|
|
|
|
case 393:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2509 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.symbolTable.push();
|
|
++parseContext.loopNestingLevel;
|
|
++parseContext.statementNestingLevel;
|
|
++parseContext.controlFlowNestingLevel;
|
|
}
|
|
break;
|
|
|
|
case 394:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2515 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.symbolTable.pop(&parseContext.defaultPrecision[0]);
|
|
(yyval.interm.intermNode) = parseContext.intermediate.makeAggregate((yyvsp[(4) - (7)].interm.intermNode), (yyvsp[(2) - (7)].lex).loc);
|
|
TIntermLoop* forLoop = parseContext.intermediate.addLoop((yyvsp[(7) - (7)].interm.intermNode), reinterpret_cast<TIntermTyped*>((yyvsp[(5) - (7)].interm.nodePair).node1), reinterpret_cast<TIntermTyped*>((yyvsp[(5) - (7)].interm.nodePair).node2), true, (yyvsp[(1) - (7)].lex).loc);
|
|
if (! parseContext.limits.nonInductiveForLoops)
|
|
parseContext.inductiveLoopCheck((yyvsp[(1) - (7)].lex).loc, (yyvsp[(4) - (7)].interm.intermNode), forLoop);
|
|
(yyval.interm.intermNode) = parseContext.intermediate.growAggregate((yyval.interm.intermNode), forLoop, (yyvsp[(1) - (7)].lex).loc);
|
|
(yyval.interm.intermNode)->getAsAggregate()->setOperator(EOpSequence);
|
|
--parseContext.loopNestingLevel;
|
|
--parseContext.statementNestingLevel;
|
|
--parseContext.controlFlowNestingLevel;
|
|
}
|
|
break;
|
|
|
|
case 395:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2530 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermNode) = (yyvsp[(1) - (1)].interm.intermNode);
|
|
}
|
|
break;
|
|
|
|
case 396:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2533 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermNode) = (yyvsp[(1) - (1)].interm.intermNode);
|
|
}
|
|
break;
|
|
|
|
case 397:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2539 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode);
|
|
}
|
|
break;
|
|
|
|
case 398:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2542 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermTypedNode) = 0;
|
|
}
|
|
break;
|
|
|
|
case 399:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2548 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.nodePair).node1 = (yyvsp[(1) - (2)].interm.intermTypedNode);
|
|
(yyval.interm.nodePair).node2 = 0;
|
|
}
|
|
break;
|
|
|
|
case 400:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2552 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.nodePair).node1 = (yyvsp[(1) - (3)].interm.intermTypedNode);
|
|
(yyval.interm.nodePair).node2 = (yyvsp[(3) - (3)].interm.intermTypedNode);
|
|
}
|
|
break;
|
|
|
|
case 401:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2559 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
if (parseContext.loopNestingLevel <= 0)
|
|
parseContext.error((yyvsp[(1) - (2)].lex).loc, "continue statement only allowed in loops", "", "");
|
|
(yyval.interm.intermNode) = parseContext.intermediate.addBranch(EOpContinue, (yyvsp[(1) - (2)].lex).loc);
|
|
}
|
|
break;
|
|
|
|
case 402:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2564 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
if (parseContext.loopNestingLevel + parseContext.switchSequenceStack.size() <= 0)
|
|
parseContext.error((yyvsp[(1) - (2)].lex).loc, "break statement only allowed in switch and loops", "", "");
|
|
(yyval.interm.intermNode) = parseContext.intermediate.addBranch(EOpBreak, (yyvsp[(1) - (2)].lex).loc);
|
|
}
|
|
break;
|
|
|
|
case 403:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2569 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermNode) = parseContext.intermediate.addBranch(EOpReturn, (yyvsp[(1) - (2)].lex).loc);
|
|
if (parseContext.currentFunctionType->getBasicType() != EbtVoid)
|
|
parseContext.error((yyvsp[(1) - (2)].lex).loc, "non-void function must return a value", "return", "");
|
|
if (parseContext.inMain)
|
|
parseContext.postMainReturn = true;
|
|
}
|
|
break;
|
|
|
|
case 404:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2576 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.functionReturnsValue = true;
|
|
if (parseContext.currentFunctionType->getBasicType() == EbtVoid) {
|
|
parseContext.error((yyvsp[(1) - (3)].lex).loc, "void function cannot return a value", "return", "");
|
|
(yyval.interm.intermNode) = parseContext.intermediate.addBranch(EOpReturn, (yyvsp[(1) - (3)].lex).loc);
|
|
} else if (*(parseContext.currentFunctionType) != (yyvsp[(2) - (3)].interm.intermTypedNode)->getType()) {
|
|
TIntermTyped* converted = parseContext.intermediate.addConversion(EOpReturn, *parseContext.currentFunctionType, (yyvsp[(2) - (3)].interm.intermTypedNode));
|
|
if (converted) {
|
|
if (parseContext.version < 420)
|
|
parseContext.warn((yyvsp[(1) - (3)].lex).loc, "type conversion on return values was not explicitly allowed until version 420", "return", "");
|
|
(yyval.interm.intermNode) = parseContext.intermediate.addBranch(EOpReturn, converted, (yyvsp[(1) - (3)].lex).loc);
|
|
} else {
|
|
parseContext.error((yyvsp[(1) - (3)].lex).loc, "type does not match, or is not convertible to, the function's return type", "return", "");
|
|
(yyval.interm.intermNode) = parseContext.intermediate.addBranch(EOpReturn, (yyvsp[(2) - (3)].interm.intermTypedNode), (yyvsp[(1) - (3)].lex).loc);
|
|
}
|
|
} else
|
|
(yyval.interm.intermNode) = parseContext.intermediate.addBranch(EOpReturn, (yyvsp[(2) - (3)].interm.intermTypedNode), (yyvsp[(1) - (3)].lex).loc);
|
|
}
|
|
break;
|
|
|
|
case 405:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2594 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
parseContext.requireStage((yyvsp[(1) - (2)].lex).loc, EShLangFragment, "discard");
|
|
(yyval.interm.intermNode) = parseContext.intermediate.addBranch(EOpKill, (yyvsp[(1) - (2)].lex).loc);
|
|
}
|
|
break;
|
|
|
|
case 406:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2603 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermNode) = (yyvsp[(1) - (1)].interm.intermNode);
|
|
parseContext.intermediate.setTreeRoot((yyval.interm.intermNode));
|
|
}
|
|
break;
|
|
|
|
case 407:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2607 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermNode) = parseContext.intermediate.growAggregate((yyvsp[(1) - (2)].interm.intermNode), (yyvsp[(2) - (2)].interm.intermNode));
|
|
parseContext.intermediate.setTreeRoot((yyval.interm.intermNode));
|
|
}
|
|
break;
|
|
|
|
case 408:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2614 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermNode) = (yyvsp[(1) - (1)].interm.intermNode);
|
|
}
|
|
break;
|
|
|
|
case 409:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2617 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyval.interm.intermNode) = (yyvsp[(1) - (1)].interm.intermNode);
|
|
}
|
|
break;
|
|
|
|
case 410:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2623 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
(yyvsp[(1) - (1)].interm).function = parseContext.handleFunctionDeclarator((yyvsp[(1) - (1)].interm).loc, *(yyvsp[(1) - (1)].interm).function, false /* not prototype */);
|
|
(yyvsp[(1) - (1)].interm).intermNode = parseContext.handleFunctionDefinition((yyvsp[(1) - (1)].interm).loc, *(yyvsp[(1) - (1)].interm).function);
|
|
}
|
|
break;
|
|
|
|
case 411:
|
|
/* Line 1792 of yacc.c */
|
|
#line 2627 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
{
|
|
// May be best done as post process phase on intermediate code
|
|
if (parseContext.currentFunctionType->getBasicType() != EbtVoid && ! parseContext.functionReturnsValue)
|
|
parseContext.error((yyvsp[(1) - (3)].interm).loc, "function does not return a value:", "", (yyvsp[(1) - (3)].interm).function->getName().c_str());
|
|
parseContext.symbolTable.pop(&parseContext.defaultPrecision[0]);
|
|
(yyval.interm.intermNode) = parseContext.intermediate.growAggregate((yyvsp[(1) - (3)].interm).intermNode, (yyvsp[(3) - (3)].interm.intermNode));
|
|
parseContext.intermediate.setAggregateOperator((yyval.interm.intermNode), EOpFunction, (yyvsp[(1) - (3)].interm).function->getType(), (yyvsp[(1) - (3)].interm).loc);
|
|
(yyval.interm.intermNode)->getAsAggregate()->setName((yyvsp[(1) - (3)].interm).function->getMangledName().c_str());
|
|
|
|
// store the pragma information for debug and optimize and other vendor specific
|
|
// information. This information can be queried from the parse tree
|
|
(yyval.interm.intermNode)->getAsAggregate()->setOptimize(parseContext.contextPragma.optimize);
|
|
(yyval.interm.intermNode)->getAsAggregate()->setDebug(parseContext.contextPragma.debug);
|
|
(yyval.interm.intermNode)->getAsAggregate()->addToPragmaTable(parseContext.contextPragma.pragmaTable);
|
|
}
|
|
break;
|
|
|
|
|
|
/* Line 1792 of yacc.c */
|
|
#line 7558 "C:/Projects/glslang/glslang/MachineIndependent/glslang_tab.cpp"
|
|
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;
|
|
|
|
/* 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 (pParseContext, 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 (pParseContext, yymsgp);
|
|
if (yysyntax_error_status == 2)
|
|
goto yyexhaustedlab;
|
|
}
|
|
# undef YYSYNTAX_ERROR
|
|
#endif
|
|
}
|
|
|
|
|
|
|
|
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, pParseContext);
|
|
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;
|
|
|
|
/* 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;
|
|
|
|
|
|
yydestruct ("Error: popping",
|
|
yystos[yystate], yyvsp, pParseContext);
|
|
YYPOPSTACK (1);
|
|
yystate = *yyssp;
|
|
YY_STACK_PRINT (yyss, yyssp);
|
|
}
|
|
|
|
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
|
|
*++yyvsp = yylval;
|
|
YY_IGNORE_MAYBE_UNINITIALIZED_END
|
|
|
|
|
|
/* 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 (pParseContext, 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, pParseContext);
|
|
}
|
|
/* 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, pParseContext);
|
|
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);
|
|
}
|
|
|
|
|
|
/* Line 2055 of yacc.c */
|
|
#line 2644 "C:/Projects/glslang/glslang/MachineIndependent/glslang.y"
|
|
|