diff --git a/README.md b/README.md
index 02ba02a9..55129575 100644
--- a/README.md
+++ b/README.md
@@ -63,6 +63,12 @@ bison --defines=MachineIndependent/glslang_tab.cpp.h
-o MachineIndependent/glslang_tab.cpp
```
+The above command is also available in the bash script at:
+
+```
+glslang/updateGrammar
+```
+
Glslang is adding the ability to test with
[Google Test](https://github.com/google/googletest) framework. If you want to
build and run those tests, please make sure you have a copy of Google Tests
diff --git a/glslang/MachineIndependent/glslang_tab.cpp b/glslang/MachineIndependent/glslang_tab.cpp
index 18c1a2fa..c97c8e4d 100644
--- a/glslang/MachineIndependent/glslang_tab.cpp
+++ b/glslang/MachineIndependent/glslang_tab.cpp
@@ -1,19 +1,19 @@
-/* A Bison parser, made by GNU Bison 2.7. */
+/* A Bison parser, made by GNU Bison 3.0.4. */
/* Bison implementation for Yacc-like parsers in C
-
- Copyright (C) 1984, 1989-1990, 2000-2012 Free Software Foundation, Inc.
-
+
+ Copyright (C) 1984, 1989-1990, 2000-2015 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 . */
@@ -26,7 +26,7 @@
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. */
@@ -44,7 +44,7 @@
#define YYBISON 1
/* Bison version. */
-#define YYBISON_VERSION "2.7"
+#define YYBISON_VERSION "3.0.4"
/* Skeleton name. */
#define YYSKELETON_NAME "yacc.c"
@@ -62,8 +62,7 @@
/* Copy the first part of user declarations. */
-/* Line 371 of yacc.c */
-#line 41 "glslang.y"
+#line 41 "MachineIndependent/glslang.y" /* yacc.c:339 */
/* Based on:
@@ -88,14 +87,13 @@ Jutta Degener, 1995
using namespace glslang;
-/* Line 371 of yacc.c */
-#line 93 "glslang_tab.cpp"
+#line 91 "MachineIndependent/glslang_tab.cpp" /* yacc.c:339 */
-# ifndef YY_NULL
+# ifndef YY_NULLPTR
# if defined __cplusplus && 201103L <= __cplusplus
-# define YY_NULL nullptr
+# define YY_NULLPTR nullptr
# else
-# define YY_NULL 0
+# define YY_NULLPTR 0
# endif
# endif
@@ -109,9 +107,9 @@ using namespace glslang;
/* In a future release of Bison, this section will be replaced
by #include "glslang_tab.cpp.h". */
-#ifndef YY_YY_GLSLANG_TAB_CPP_H_INCLUDED
-# define YY_YY_GLSLANG_TAB_CPP_H_INCLUDED
-/* Enabling traces. */
+#ifndef YY_YY_MACHINEINDEPENDENT_GLSLANG_TAB_CPP_H_INCLUDED
+# define YY_YY_MACHINEINDEPENDENT_GLSLANG_TAB_CPP_H_INCLUDED
+/* Debug traces. */
#ifndef YYDEBUG
# define YYDEBUG 1
#endif
@@ -119,288 +117,287 @@ using namespace glslang;
extern int yydebug;
#endif
-/* Tokens. */
+/* Token type. */
#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,
- INT64_T = 266,
- UINT64_T = 267,
- BREAK = 268,
- CONTINUE = 269,
- DO = 270,
- ELSE = 271,
- FOR = 272,
- IF = 273,
- DISCARD = 274,
- RETURN = 275,
- SWITCH = 276,
- CASE = 277,
- DEFAULT = 278,
- SUBROUTINE = 279,
- BVEC2 = 280,
- BVEC3 = 281,
- BVEC4 = 282,
- IVEC2 = 283,
- IVEC3 = 284,
- IVEC4 = 285,
- I64VEC2 = 286,
- I64VEC3 = 287,
- I64VEC4 = 288,
- UVEC2 = 289,
- UVEC3 = 290,
- UVEC4 = 291,
- U64VEC2 = 292,
- U64VEC3 = 293,
- U64VEC4 = 294,
- VEC2 = 295,
- VEC3 = 296,
- VEC4 = 297,
- MAT2 = 298,
- MAT3 = 299,
- MAT4 = 300,
- CENTROID = 301,
- IN = 302,
- OUT = 303,
- INOUT = 304,
- UNIFORM = 305,
- PATCH = 306,
- SAMPLE = 307,
- BUFFER = 308,
- SHARED = 309,
- COHERENT = 310,
- VOLATILE = 311,
- RESTRICT = 312,
- READONLY = 313,
- WRITEONLY = 314,
- DVEC2 = 315,
- DVEC3 = 316,
- DVEC4 = 317,
- DMAT2 = 318,
- DMAT3 = 319,
- DMAT4 = 320,
- NOPERSPECTIVE = 321,
- FLAT = 322,
- SMOOTH = 323,
- LAYOUT = 324,
- MAT2X2 = 325,
- MAT2X3 = 326,
- MAT2X4 = 327,
- MAT3X2 = 328,
- MAT3X3 = 329,
- MAT3X4 = 330,
- MAT4X2 = 331,
- MAT4X3 = 332,
- MAT4X4 = 333,
- DMAT2X2 = 334,
- DMAT2X3 = 335,
- DMAT2X4 = 336,
- DMAT3X2 = 337,
- DMAT3X3 = 338,
- DMAT3X4 = 339,
- DMAT4X2 = 340,
- DMAT4X3 = 341,
- DMAT4X4 = 342,
- ATOMIC_UINT = 343,
- SAMPLER1D = 344,
- SAMPLER2D = 345,
- SAMPLER3D = 346,
- SAMPLERCUBE = 347,
- SAMPLER1DSHADOW = 348,
- SAMPLER2DSHADOW = 349,
- SAMPLERCUBESHADOW = 350,
- SAMPLER1DARRAY = 351,
- SAMPLER2DARRAY = 352,
- SAMPLER1DARRAYSHADOW = 353,
- SAMPLER2DARRAYSHADOW = 354,
- ISAMPLER1D = 355,
- ISAMPLER2D = 356,
- ISAMPLER3D = 357,
- ISAMPLERCUBE = 358,
- ISAMPLER1DARRAY = 359,
- ISAMPLER2DARRAY = 360,
- USAMPLER1D = 361,
- USAMPLER2D = 362,
- USAMPLER3D = 363,
- USAMPLERCUBE = 364,
- USAMPLER1DARRAY = 365,
- USAMPLER2DARRAY = 366,
- SAMPLER2DRECT = 367,
- SAMPLER2DRECTSHADOW = 368,
- ISAMPLER2DRECT = 369,
- USAMPLER2DRECT = 370,
- SAMPLERBUFFER = 371,
- ISAMPLERBUFFER = 372,
- USAMPLERBUFFER = 373,
- SAMPLERCUBEARRAY = 374,
- SAMPLERCUBEARRAYSHADOW = 375,
- ISAMPLERCUBEARRAY = 376,
- USAMPLERCUBEARRAY = 377,
- SAMPLER2DMS = 378,
- ISAMPLER2DMS = 379,
- USAMPLER2DMS = 380,
- SAMPLER2DMSARRAY = 381,
- ISAMPLER2DMSARRAY = 382,
- USAMPLER2DMSARRAY = 383,
- SAMPLEREXTERNALOES = 384,
- SAMPLER = 385,
- SAMPLERSHADOW = 386,
- TEXTURE1D = 387,
- TEXTURE2D = 388,
- TEXTURE3D = 389,
- TEXTURECUBE = 390,
- TEXTURE1DARRAY = 391,
- TEXTURE2DARRAY = 392,
- ITEXTURE1D = 393,
- ITEXTURE2D = 394,
- ITEXTURE3D = 395,
- ITEXTURECUBE = 396,
- ITEXTURE1DARRAY = 397,
- ITEXTURE2DARRAY = 398,
- UTEXTURE1D = 399,
- UTEXTURE2D = 400,
- UTEXTURE3D = 401,
- UTEXTURECUBE = 402,
- UTEXTURE1DARRAY = 403,
- UTEXTURE2DARRAY = 404,
- TEXTURE2DRECT = 405,
- ITEXTURE2DRECT = 406,
- UTEXTURE2DRECT = 407,
- TEXTUREBUFFER = 408,
- ITEXTUREBUFFER = 409,
- UTEXTUREBUFFER = 410,
- TEXTURECUBEARRAY = 411,
- ITEXTURECUBEARRAY = 412,
- UTEXTURECUBEARRAY = 413,
- TEXTURE2DMS = 414,
- ITEXTURE2DMS = 415,
- UTEXTURE2DMS = 416,
- TEXTURE2DMSARRAY = 417,
- ITEXTURE2DMSARRAY = 418,
- UTEXTURE2DMSARRAY = 419,
- SUBPASSINPUT = 420,
- SUBPASSINPUTMS = 421,
- ISUBPASSINPUT = 422,
- ISUBPASSINPUTMS = 423,
- USUBPASSINPUT = 424,
- USUBPASSINPUTMS = 425,
- IMAGE1D = 426,
- IIMAGE1D = 427,
- UIMAGE1D = 428,
- IMAGE2D = 429,
- IIMAGE2D = 430,
- UIMAGE2D = 431,
- IMAGE3D = 432,
- IIMAGE3D = 433,
- UIMAGE3D = 434,
- IMAGE2DRECT = 435,
- IIMAGE2DRECT = 436,
- UIMAGE2DRECT = 437,
- IMAGECUBE = 438,
- IIMAGECUBE = 439,
- UIMAGECUBE = 440,
- IMAGEBUFFER = 441,
- IIMAGEBUFFER = 442,
- UIMAGEBUFFER = 443,
- IMAGE1DARRAY = 444,
- IIMAGE1DARRAY = 445,
- UIMAGE1DARRAY = 446,
- IMAGE2DARRAY = 447,
- IIMAGE2DARRAY = 448,
- UIMAGE2DARRAY = 449,
- IMAGECUBEARRAY = 450,
- IIMAGECUBEARRAY = 451,
- UIMAGECUBEARRAY = 452,
- IMAGE2DMS = 453,
- IIMAGE2DMS = 454,
- UIMAGE2DMS = 455,
- IMAGE2DMSARRAY = 456,
- IIMAGE2DMSARRAY = 457,
- UIMAGE2DMSARRAY = 458,
- STRUCT = 459,
- VOID = 460,
- WHILE = 461,
- IDENTIFIER = 462,
- TYPE_NAME = 463,
- FLOATCONSTANT = 464,
- DOUBLECONSTANT = 465,
- INTCONSTANT = 466,
- UINTCONSTANT = 467,
- INT64CONSTANT = 468,
- UINT64CONSTANT = 469,
- BOOLCONSTANT = 470,
- LEFT_OP = 471,
- RIGHT_OP = 472,
- INC_OP = 473,
- DEC_OP = 474,
- LE_OP = 475,
- GE_OP = 476,
- EQ_OP = 477,
- NE_OP = 478,
- AND_OP = 479,
- OR_OP = 480,
- XOR_OP = 481,
- MUL_ASSIGN = 482,
- DIV_ASSIGN = 483,
- ADD_ASSIGN = 484,
- MOD_ASSIGN = 485,
- LEFT_ASSIGN = 486,
- RIGHT_ASSIGN = 487,
- AND_ASSIGN = 488,
- XOR_ASSIGN = 489,
- OR_ASSIGN = 490,
- SUB_ASSIGN = 491,
- LEFT_PAREN = 492,
- RIGHT_PAREN = 493,
- LEFT_BRACKET = 494,
- RIGHT_BRACKET = 495,
- LEFT_BRACE = 496,
- RIGHT_BRACE = 497,
- DOT = 498,
- COMMA = 499,
- COLON = 500,
- EQUAL = 501,
- SEMICOLON = 502,
- BANG = 503,
- DASH = 504,
- TILDE = 505,
- PLUS = 506,
- STAR = 507,
- SLASH = 508,
- PERCENT = 509,
- LEFT_ANGLE = 510,
- RIGHT_ANGLE = 511,
- VERTICAL_BAR = 512,
- CARET = 513,
- AMPERSAND = 514,
- QUESTION = 515,
- INVARIANT = 516,
- PRECISE = 517,
- HIGH_PRECISION = 518,
- MEDIUM_PRECISION = 519,
- LOW_PRECISION = 520,
- PRECISION = 521,
- PACKED = 522,
- RESOURCE = 523,
- SUPERP = 524
- };
+ enum yytokentype
+ {
+ ATTRIBUTE = 258,
+ VARYING = 259,
+ CONST = 260,
+ BOOL = 261,
+ FLOAT = 262,
+ DOUBLE = 263,
+ INT = 264,
+ UINT = 265,
+ INT64_T = 266,
+ UINT64_T = 267,
+ BREAK = 268,
+ CONTINUE = 269,
+ DO = 270,
+ ELSE = 271,
+ FOR = 272,
+ IF = 273,
+ DISCARD = 274,
+ RETURN = 275,
+ SWITCH = 276,
+ CASE = 277,
+ DEFAULT = 278,
+ SUBROUTINE = 279,
+ BVEC2 = 280,
+ BVEC3 = 281,
+ BVEC4 = 282,
+ IVEC2 = 283,
+ IVEC3 = 284,
+ IVEC4 = 285,
+ I64VEC2 = 286,
+ I64VEC3 = 287,
+ I64VEC4 = 288,
+ UVEC2 = 289,
+ UVEC3 = 290,
+ UVEC4 = 291,
+ U64VEC2 = 292,
+ U64VEC3 = 293,
+ U64VEC4 = 294,
+ VEC2 = 295,
+ VEC3 = 296,
+ VEC4 = 297,
+ MAT2 = 298,
+ MAT3 = 299,
+ MAT4 = 300,
+ CENTROID = 301,
+ IN = 302,
+ OUT = 303,
+ INOUT = 304,
+ UNIFORM = 305,
+ PATCH = 306,
+ SAMPLE = 307,
+ BUFFER = 308,
+ SHARED = 309,
+ COHERENT = 310,
+ VOLATILE = 311,
+ RESTRICT = 312,
+ READONLY = 313,
+ WRITEONLY = 314,
+ DVEC2 = 315,
+ DVEC3 = 316,
+ DVEC4 = 317,
+ DMAT2 = 318,
+ DMAT3 = 319,
+ DMAT4 = 320,
+ NOPERSPECTIVE = 321,
+ FLAT = 322,
+ SMOOTH = 323,
+ LAYOUT = 324,
+ MAT2X2 = 325,
+ MAT2X3 = 326,
+ MAT2X4 = 327,
+ MAT3X2 = 328,
+ MAT3X3 = 329,
+ MAT3X4 = 330,
+ MAT4X2 = 331,
+ MAT4X3 = 332,
+ MAT4X4 = 333,
+ DMAT2X2 = 334,
+ DMAT2X3 = 335,
+ DMAT2X4 = 336,
+ DMAT3X2 = 337,
+ DMAT3X3 = 338,
+ DMAT3X4 = 339,
+ DMAT4X2 = 340,
+ DMAT4X3 = 341,
+ DMAT4X4 = 342,
+ ATOMIC_UINT = 343,
+ SAMPLER1D = 344,
+ SAMPLER2D = 345,
+ SAMPLER3D = 346,
+ SAMPLERCUBE = 347,
+ SAMPLER1DSHADOW = 348,
+ SAMPLER2DSHADOW = 349,
+ SAMPLERCUBESHADOW = 350,
+ SAMPLER1DARRAY = 351,
+ SAMPLER2DARRAY = 352,
+ SAMPLER1DARRAYSHADOW = 353,
+ SAMPLER2DARRAYSHADOW = 354,
+ ISAMPLER1D = 355,
+ ISAMPLER2D = 356,
+ ISAMPLER3D = 357,
+ ISAMPLERCUBE = 358,
+ ISAMPLER1DARRAY = 359,
+ ISAMPLER2DARRAY = 360,
+ USAMPLER1D = 361,
+ USAMPLER2D = 362,
+ USAMPLER3D = 363,
+ USAMPLERCUBE = 364,
+ USAMPLER1DARRAY = 365,
+ USAMPLER2DARRAY = 366,
+ SAMPLER2DRECT = 367,
+ SAMPLER2DRECTSHADOW = 368,
+ ISAMPLER2DRECT = 369,
+ USAMPLER2DRECT = 370,
+ SAMPLERBUFFER = 371,
+ ISAMPLERBUFFER = 372,
+ USAMPLERBUFFER = 373,
+ SAMPLERCUBEARRAY = 374,
+ SAMPLERCUBEARRAYSHADOW = 375,
+ ISAMPLERCUBEARRAY = 376,
+ USAMPLERCUBEARRAY = 377,
+ SAMPLER2DMS = 378,
+ ISAMPLER2DMS = 379,
+ USAMPLER2DMS = 380,
+ SAMPLER2DMSARRAY = 381,
+ ISAMPLER2DMSARRAY = 382,
+ USAMPLER2DMSARRAY = 383,
+ SAMPLEREXTERNALOES = 384,
+ SAMPLER = 385,
+ SAMPLERSHADOW = 386,
+ TEXTURE1D = 387,
+ TEXTURE2D = 388,
+ TEXTURE3D = 389,
+ TEXTURECUBE = 390,
+ TEXTURE1DARRAY = 391,
+ TEXTURE2DARRAY = 392,
+ ITEXTURE1D = 393,
+ ITEXTURE2D = 394,
+ ITEXTURE3D = 395,
+ ITEXTURECUBE = 396,
+ ITEXTURE1DARRAY = 397,
+ ITEXTURE2DARRAY = 398,
+ UTEXTURE1D = 399,
+ UTEXTURE2D = 400,
+ UTEXTURE3D = 401,
+ UTEXTURECUBE = 402,
+ UTEXTURE1DARRAY = 403,
+ UTEXTURE2DARRAY = 404,
+ TEXTURE2DRECT = 405,
+ ITEXTURE2DRECT = 406,
+ UTEXTURE2DRECT = 407,
+ TEXTUREBUFFER = 408,
+ ITEXTUREBUFFER = 409,
+ UTEXTUREBUFFER = 410,
+ TEXTURECUBEARRAY = 411,
+ ITEXTURECUBEARRAY = 412,
+ UTEXTURECUBEARRAY = 413,
+ TEXTURE2DMS = 414,
+ ITEXTURE2DMS = 415,
+ UTEXTURE2DMS = 416,
+ TEXTURE2DMSARRAY = 417,
+ ITEXTURE2DMSARRAY = 418,
+ UTEXTURE2DMSARRAY = 419,
+ SUBPASSINPUT = 420,
+ SUBPASSINPUTMS = 421,
+ ISUBPASSINPUT = 422,
+ ISUBPASSINPUTMS = 423,
+ USUBPASSINPUT = 424,
+ USUBPASSINPUTMS = 425,
+ IMAGE1D = 426,
+ IIMAGE1D = 427,
+ UIMAGE1D = 428,
+ IMAGE2D = 429,
+ IIMAGE2D = 430,
+ UIMAGE2D = 431,
+ IMAGE3D = 432,
+ IIMAGE3D = 433,
+ UIMAGE3D = 434,
+ IMAGE2DRECT = 435,
+ IIMAGE2DRECT = 436,
+ UIMAGE2DRECT = 437,
+ IMAGECUBE = 438,
+ IIMAGECUBE = 439,
+ UIMAGECUBE = 440,
+ IMAGEBUFFER = 441,
+ IIMAGEBUFFER = 442,
+ UIMAGEBUFFER = 443,
+ IMAGE1DARRAY = 444,
+ IIMAGE1DARRAY = 445,
+ UIMAGE1DARRAY = 446,
+ IMAGE2DARRAY = 447,
+ IIMAGE2DARRAY = 448,
+ UIMAGE2DARRAY = 449,
+ IMAGECUBEARRAY = 450,
+ IIMAGECUBEARRAY = 451,
+ UIMAGECUBEARRAY = 452,
+ IMAGE2DMS = 453,
+ IIMAGE2DMS = 454,
+ UIMAGE2DMS = 455,
+ IMAGE2DMSARRAY = 456,
+ IIMAGE2DMSARRAY = 457,
+ UIMAGE2DMSARRAY = 458,
+ STRUCT = 459,
+ VOID = 460,
+ WHILE = 461,
+ IDENTIFIER = 462,
+ TYPE_NAME = 463,
+ FLOATCONSTANT = 464,
+ DOUBLECONSTANT = 465,
+ INTCONSTANT = 466,
+ UINTCONSTANT = 467,
+ INT64CONSTANT = 468,
+ UINT64CONSTANT = 469,
+ BOOLCONSTANT = 470,
+ LEFT_OP = 471,
+ RIGHT_OP = 472,
+ INC_OP = 473,
+ DEC_OP = 474,
+ LE_OP = 475,
+ GE_OP = 476,
+ EQ_OP = 477,
+ NE_OP = 478,
+ AND_OP = 479,
+ OR_OP = 480,
+ XOR_OP = 481,
+ MUL_ASSIGN = 482,
+ DIV_ASSIGN = 483,
+ ADD_ASSIGN = 484,
+ MOD_ASSIGN = 485,
+ LEFT_ASSIGN = 486,
+ RIGHT_ASSIGN = 487,
+ AND_ASSIGN = 488,
+ XOR_ASSIGN = 489,
+ OR_ASSIGN = 490,
+ SUB_ASSIGN = 491,
+ LEFT_PAREN = 492,
+ RIGHT_PAREN = 493,
+ LEFT_BRACKET = 494,
+ RIGHT_BRACKET = 495,
+ LEFT_BRACE = 496,
+ RIGHT_BRACE = 497,
+ DOT = 498,
+ COMMA = 499,
+ COLON = 500,
+ EQUAL = 501,
+ SEMICOLON = 502,
+ BANG = 503,
+ DASH = 504,
+ TILDE = 505,
+ PLUS = 506,
+ STAR = 507,
+ SLASH = 508,
+ PERCENT = 509,
+ LEFT_ANGLE = 510,
+ RIGHT_ANGLE = 511,
+ VERTICAL_BAR = 512,
+ CARET = 513,
+ AMPERSAND = 514,
+ QUESTION = 515,
+ INVARIANT = 516,
+ PRECISE = 517,
+ HIGH_PRECISION = 518,
+ MEDIUM_PRECISION = 519,
+ LOW_PRECISION = 520,
+ PRECISION = 521,
+ PACKED = 522,
+ RESOURCE = 523,
+ SUPERP = 524
+ };
#endif
-
+/* Value type. */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
-typedef union YYSTYPE
+
+union YYSTYPE
{
-/* Line 387 of yacc.c */
-#line 66 "glslang.y"
+#line 66 "MachineIndependent/glslang.y" /* yacc.c:355 */
struct {
glslang::TSourceLoc loc;
@@ -434,35 +431,22 @@ typedef union YYSTYPE
};
} interm;
+#line 435 "MachineIndependent/glslang_tab.cpp" /* yacc.c:355 */
+};
-/* Line 387 of yacc.c */
-#line 440 "glslang_tab.cpp"
-} YYSTYPE;
+typedef union YYSTYPE 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_GLSLANG_TAB_CPP_H_INCLUDED */
+int yyparse (glslang::TParseContext* pParseContext);
+
+#endif /* !YY_YY_MACHINEINDEPENDENT_GLSLANG_TAB_CPP_H_INCLUDED */
/* Copy the second part of user declarations. */
-/* Line 390 of yacc.c */
-#line 100 "glslang.y"
+#line 100 "MachineIndependent/glslang.y" /* yacc.c:358 */
/* windows only pragma */
@@ -478,8 +462,7 @@ int yyparse ();
extern int yylex(YYSTYPE*, TParseContext&);
-/* Line 390 of yacc.c */
-#line 483 "glslang_tab.cpp"
+#line 466 "MachineIndependent/glslang_tab.cpp" /* yacc.c:358 */
#ifdef short
# undef short
@@ -493,11 +476,8 @@ typedef unsigned char yytype_uint8;
#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;
+typedef signed char yytype_int8;
#endif
#ifdef YYTYPE_UINT16
@@ -517,8 +497,7 @@ typedef short int yytype_int16;
# 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)
+# elif ! defined YYSIZE_T
# include /* INFRINGES ON USER NAME SPACE */
# define YYSIZE_T size_t
# else
@@ -540,6 +519,33 @@ typedef short int yytype_int16;
# endif
#endif
+#ifndef YY_ATTRIBUTE
+# if (defined __GNUC__ \
+ && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \
+ || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C
+# define YY_ATTRIBUTE(Spec) __attribute__(Spec)
+# else
+# define YY_ATTRIBUTE(Spec) /* empty */
+# endif
+#endif
+
+#ifndef YY_ATTRIBUTE_PURE
+# define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__))
+#endif
+
+#ifndef YY_ATTRIBUTE_UNUSED
+# define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__))
+#endif
+
+#if !defined _Noreturn \
+ && (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112)
+# if defined _MSC_VER && 1200 <= _MSC_VER
+# define _Noreturn __declspec (noreturn)
+# else
+# define _Noreturn YY_ATTRIBUTE ((__noreturn__))
+# endif
+#endif
+
/* Suppress unused-variable warnings by "using" E. */
#if ! defined lint || defined __GNUC__
# define YYUSE(E) ((void) (E))
@@ -547,23 +553,25 @@ typedef short int yytype_int16;
# define YYUSE(E) /* empty */
#endif
-/* Identity function, used to suppress warnings about constant conditions. */
-#ifndef lint
-# define YYID(N) (N)
+#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
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-static int
-YYID (int yyi)
-#else
-static int
-YYID (yyi)
- int yyi;
+# define YY_INITIAL_VALUE(Value) Value
#endif
-{
- return yyi;
-}
+#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
+
#if ! defined yyoverflow || YYERROR_VERBOSE
@@ -582,8 +590,7 @@ YYID (yyi)
# 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)
+# if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS
# include /* INFRINGES ON USER NAME SPACE */
/* Use EXIT_SUCCESS as a witness for stdlib.h. */
# ifndef EXIT_SUCCESS
@@ -595,8 +602,8 @@ YYID (yyi)
# endif
# ifdef YYSTACK_ALLOC
- /* Pacify GCC's `empty if-body' warning. */
-# define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
+ /* Pacify GCC's 'empty if-body' warning. */
+# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
# ifndef YYSTACK_ALLOC_MAXIMUM
/* The OS might guarantee only one guard page at the bottom of the stack,
and a page size can be as small as 4096 bytes. So we cannot safely
@@ -612,7 +619,7 @@ YYID (yyi)
# endif
# if (defined __cplusplus && ! defined EXIT_SUCCESS \
&& ! ((defined YYMALLOC || defined malloc) \
- && (defined YYFREE || defined free)))
+ && (defined YYFREE || defined free)))
# include /* INFRINGES ON USER NAME SPACE */
# ifndef EXIT_SUCCESS
# define EXIT_SUCCESS 0
@@ -620,15 +627,13 @@ YYID (yyi)
# endif
# ifndef YYMALLOC
# define YYMALLOC malloc
-# if ! defined malloc && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
+# if ! defined malloc && ! defined EXIT_SUCCESS
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)
+# if ! defined free && ! defined EXIT_SUCCESS
void free (void *); /* INFRINGES ON USER NAME SPACE */
# endif
# endif
@@ -638,7 +643,7 @@ void free (void *); /* INFRINGES ON USER NAME SPACE */
#if (! defined yyoverflow \
&& (! defined __cplusplus \
- || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
+ || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
/* A type that is properly aligned for any stack member. */
union yyalloc
@@ -663,16 +668,16 @@ union yyalloc
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))
+# 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 (0)
#endif
@@ -691,7 +696,7 @@ union yyalloc
for (yyi = 0; yyi < (Count); yyi++) \
(Dst)[yyi] = (Src)[yyi]; \
} \
- while (YYID (0))
+ while (0)
# endif
# endif
#endif /* !YYCOPY_NEEDED */
@@ -707,17 +712,19 @@ union yyalloc
#define YYNNTS 100
/* YYNRULES -- Number of rules. */
#define YYNRULES 421
-/* YYNRULES -- Number of states. */
+/* YYNSTATES -- Number of states. */
#define YYNSTATES 553
-/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
+/* YYTRANSLATE[YYX] -- Symbol number corresponding to YYX as returned
+ by yylex, with out-of-bounds checking. */
#define YYUNDEFTOK 2
#define YYMAXUTOK 524
-#define YYTRANSLATE(YYX) \
+#define YYTRANSLATE(YYX) \
((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
-/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
+/* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM
+ as returned by yylex, without out-of-bounds checking. */
static const yytype_uint16 yytranslate[] =
{
0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
@@ -776,168 +783,7 @@ static const yytype_uint16 yytranslate[] =
};
#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,
- 19, 21, 25, 27, 32, 34, 38, 41, 44, 46,
- 48, 50, 53, 56, 59, 61, 64, 68, 71, 73,
- 75, 77, 80, 83, 86, 88, 90, 92, 94, 96,
- 100, 104, 108, 110, 114, 118, 120, 124, 128, 130,
- 134, 138, 142, 146, 148, 152, 156, 158, 162, 164,
- 168, 170, 174, 176, 180, 182, 186, 188, 192, 194,
- 195, 202, 204, 208, 210, 212, 214, 216, 218, 220,
- 222, 224, 226, 228, 230, 232, 236, 238, 241, 244,
- 249, 252, 256, 261, 264, 268, 273, 274, 281, 284,
- 288, 291, 293, 295, 298, 302, 306, 309, 313, 316,
- 318, 321, 323, 325, 327, 331, 336, 343, 349, 351,
- 354, 358, 364, 369, 371, 374, 376, 378, 380, 382,
- 387, 389, 393, 395, 399, 401, 403, 405, 408, 410,
- 412, 414, 416, 418, 420, 422, 424, 426, 428, 430,
- 432, 434, 436, 438, 440, 442, 444, 446, 448, 450,
- 452, 454, 456, 461, 463, 467, 469, 472, 475, 479,
- 483, 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, 818, 820, 822, 824,
- 826, 828, 830, 832, 834, 836, 837, 844, 845, 851,
- 853, 856, 860, 865, 867, 871, 873, 876, 878, 882,
- 887, 889, 893, 895, 897, 899, 901, 903, 905, 907,
- 909, 911, 913, 916, 917, 918, 924, 926, 928, 929,
- 932, 933, 936, 939, 943, 945, 948, 950, 953, 959,
- 963, 965, 967, 972, 973, 982, 983, 985, 989, 992,
- 993, 1000, 1001, 1010, 1011, 1019, 1021, 1023, 1025, 1026,
- 1029, 1033, 1036, 1039, 1042, 1046, 1049, 1051, 1054, 1056,
- 1058, 1059
-};
-
-/* YYRHS -- A `-1'-separated list of the rules' RHS. */
-static const yytype_int16 yyrhs[] =
-{
- 366, 0, -1, 207, -1, 271, -1, 211, -1, 212,
- -1, 213, -1, 214, -1, 209, -1, 210, -1, 215,
- -1, 237, 299, 238, -1, 272, -1, 273, 239, 274,
- 240, -1, 275, -1, 273, 243, 207, -1, 273, 218,
- -1, 273, 219, -1, 299, -1, 276, -1, 277, -1,
- 279, 238, -1, 278, 238, -1, 280, 205, -1, 280,
- -1, 280, 297, -1, 279, 244, 297, -1, 281, 237,
- -1, 325, -1, 273, -1, 273, -1, 218, 282, -1,
- 219, 282, -1, 283, 282, -1, 251, -1, 249, -1,
- 248, -1, 250, -1, 282, -1, 284, 252, 282, -1,
- 284, 253, 282, -1, 284, 254, 282, -1, 284, -1,
- 285, 251, 284, -1, 285, 249, 284, -1, 285, -1,
- 286, 216, 285, -1, 286, 217, 285, -1, 286, -1,
- 287, 255, 286, -1, 287, 256, 286, -1, 287, 220,
- 286, -1, 287, 221, 286, -1, 287, -1, 288, 222,
- 287, -1, 288, 223, 287, -1, 288, -1, 289, 259,
- 288, -1, 289, -1, 290, 258, 289, -1, 290, -1,
- 291, 257, 290, -1, 291, -1, 292, 224, 291, -1,
- 292, -1, 293, 226, 292, -1, 293, -1, 294, 225,
- 293, -1, 294, -1, -1, 294, 260, 296, 299, 245,
- 297, -1, 295, -1, 282, 298, 297, -1, 246, -1,
- 227, -1, 228, -1, 230, -1, 229, -1, 236, -1,
- 231, -1, 232, -1, 233, -1, 234, -1, 235, -1,
- 297, -1, 299, 244, 297, -1, 295, -1, 305, 247,
- -1, 312, 247, -1, 266, 328, 325, 247, -1, 302,
- 247, -1, 302, 207, 247, -1, 302, 207, 326, 247,
- -1, 321, 247, -1, 321, 207, 247, -1, 321, 207,
- 304, 247, -1, -1, 321, 207, 241, 303, 332, 242,
- -1, 244, 207, -1, 304, 244, 207, -1, 306, 238,
- -1, 308, -1, 307, -1, 308, 310, -1, 307, 244,
- 310, -1, 314, 207, 237, -1, 325, 207, -1, 325,
- 207, 326, -1, 321, 309, -1, 309, -1, 321, 311,
- -1, 311, -1, 325, -1, 313, -1, 312, 244, 207,
- -1, 312, 244, 207, 326, -1, 312, 244, 207, 326,
- 246, 336, -1, 312, 244, 207, 246, 336, -1, 314,
- -1, 314, 207, -1, 314, 207, 326, -1, 314, 207,
- 326, 246, 336, -1, 314, 207, 246, 336, -1, 325,
- -1, 321, 325, -1, 261, -1, 68, -1, 67, -1,
- 66, -1, 69, 237, 318, 238, -1, 319, -1, 318,
- 244, 319, -1, 207, -1, 207, 246, 300, -1, 54,
- -1, 262, -1, 322, -1, 321, 322, -1, 323, -1,
- 317, -1, 328, -1, 316, -1, 315, -1, 320, -1,
- 5, -1, 3, -1, 4, -1, 49, -1, 47, -1,
- 48, -1, 46, -1, 51, -1, 52, -1, 50, -1,
- 53, -1, 54, -1, 55, -1, 56, -1, 57, -1,
- 58, -1, 59, -1, 24, -1, 24, 237, 324, 238,
- -1, 208, -1, 324, 244, 208, -1, 327, -1, 327,
- 326, -1, 239, 240, -1, 239, 295, 240, -1, 326,
- 239, 240, -1, 326, 239, 295, 240, -1, 205, -1,
- 7, -1, 8, -1, 9, -1, 10, -1, 11, -1,
- 12, -1, 6, -1, 40, -1, 41, -1, 42, -1,
- 60, -1, 61, -1, 62, -1, 25, -1, 26, -1,
- 27, -1, 28, -1, 29, -1, 30, -1, 31, -1,
- 32, -1, 33, -1, 34, -1, 35, -1, 36, -1,
- 37, -1, 38, -1, 39, -1, 43, -1, 44, -1,
- 45, -1, 70, -1, 71, -1, 72, -1, 73, -1,
- 74, -1, 75, -1, 76, -1, 77, -1, 78, -1,
- 63, -1, 64, -1, 65, -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, 92, -1, 93, -1, 94, -1, 95, -1,
- 96, -1, 97, -1, 98, -1, 99, -1, 119, -1,
- 120, -1, 100, -1, 101, -1, 102, -1, 103, -1,
- 104, -1, 105, -1, 121, -1, 106, -1, 107, -1,
- 108, -1, 109, -1, 110, -1, 111, -1, 122, -1,
- 112, -1, 113, -1, 114, -1, 115, -1, 116, -1,
- 117, -1, 118, -1, 123, -1, 124, -1, 125, -1,
- 126, -1, 127, -1, 128, -1, 130, -1, 131, -1,
- 132, -1, 133, -1, 134, -1, 135, -1, 136, -1,
- 137, -1, 156, -1, 138, -1, 139, -1, 140, -1,
- 141, -1, 142, -1, 143, -1, 157, -1, 144, -1,
- 145, -1, 146, -1, 147, -1, 148, -1, 149, -1,
- 158, -1, 150, -1, 151, -1, 152, -1, 153, -1,
- 154, -1, 155, -1, 159, -1, 160, -1, 161, -1,
- 162, -1, 163, -1, 164, -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, 196, -1, 197, -1,
- 198, -1, 199, -1, 200, -1, 201, -1, 202, -1,
- 203, -1, 129, -1, 165, -1, 166, -1, 167, -1,
- 168, -1, 169, -1, 170, -1, 329, -1, 208, -1,
- 263, -1, 264, -1, 265, -1, -1, 204, 207, 241,
- 330, 332, 242, -1, -1, 204, 241, 331, 332, 242,
- -1, 333, -1, 332, 333, -1, 325, 334, 247, -1,
- 321, 325, 334, 247, -1, 335, -1, 334, 244, 335,
- -1, 207, -1, 207, 326, -1, 297, -1, 241, 337,
- 242, -1, 241, 337, 244, 242, -1, 336, -1, 337,
- 244, 336, -1, 301, -1, 341, -1, 340, -1, 338,
- -1, 350, -1, 351, -1, 354, -1, 357, -1, 358,
- -1, 365, -1, 241, 242, -1, -1, -1, 241, 342,
- 349, 343, 242, -1, 348, -1, 340, -1, -1, 346,
- 341, -1, -1, 347, 340, -1, 241, 242, -1, 241,
- 349, 242, -1, 339, -1, 349, 339, -1, 247, -1,
- 299, 247, -1, 18, 237, 299, 238, 352, -1, 345,
- 16, 345, -1, 345, -1, 299, -1, 314, 207, 246,
- 336, -1, -1, 21, 237, 299, 238, 355, 241, 356,
- 242, -1, -1, 349, -1, 22, 299, 245, -1, 23,
- 245, -1, -1, 206, 237, 359, 353, 238, 344, -1,
- -1, 15, 360, 339, 206, 237, 299, 238, 247, -1,
- -1, 17, 237, 361, 362, 364, 238, 344, -1, 350,
- -1, 338, -1, 353, -1, -1, 363, 247, -1, 363,
- 247, 299, -1, 14, 247, -1, 13, 247, -1, 20,
- 247, -1, 20, 299, 247, -1, 19, 247, -1, 367,
- -1, 366, 367, -1, 368, -1, 301, -1, -1, 305,
- 369, 348, -1
-};
-
-/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
+ /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */
static const yytype_uint16 yyrline[] =
{
0, 246, 246, 252, 255, 258, 262, 266, 270, 273,
@@ -1077,13 +923,13 @@ static const char *const yytname[] =
"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
+ "external_declaration", "function_definition", "$@13", YY_NULLPTR
};
#endif
# ifdef YYPRINT
-/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
- token YYLEX-NUM. */
+/* YYTOKNUM[NUM] -- (External) token number corresponding to the
+ (internal) symbol number NUM (which must be that of a token). */
static const yytype_uint16 yytoknum[] =
{
0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
@@ -1116,183 +962,18 @@ static const yytype_uint16 yytoknum[] =
};
# endif
-/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
-static const yytype_uint16 yyr1[] =
-{
- 0, 270, 271, 272, 272, 272, 272, 272, 272, 272,
- 272, 272, 273, 273, 273, 273, 273, 273, 274, 275,
- 276, 277, 277, 278, 278, 279, 279, 280, 281, 281,
- 282, 282, 282, 282, 283, 283, 283, 283, 284, 284,
- 284, 284, 285, 285, 285, 286, 286, 286, 287, 287,
- 287, 287, 287, 288, 288, 288, 289, 289, 290, 290,
- 291, 291, 292, 292, 293, 293, 294, 294, 295, 296,
- 295, 297, 297, 298, 298, 298, 298, 298, 298, 298,
- 298, 298, 298, 298, 299, 299, 300, 301, 301, 301,
- 301, 301, 301, 301, 301, 301, 303, 302, 304, 304,
- 305, 306, 306, 307, 307, 308, 309, 309, 310, 310,
- 310, 310, 311, 312, 312, 312, 312, 312, 313, 313,
- 313, 313, 313, 314, 314, 315, 316, 316, 316, 317,
- 318, 318, 319, 319, 319, 320, 321, 321, 322, 322,
- 322, 322, 322, 322, 323, 323, 323, 323, 323, 323,
- 323, 323, 323, 323, 323, 323, 323, 323, 323, 323,
- 323, 323, 323, 324, 324, 325, 325, 326, 326, 326,
- 326, 327, 327, 327, 327, 327, 327, 327, 327, 327,
- 327, 327, 327, 327, 327, 327, 327, 327, 327, 327,
- 327, 327, 327, 327, 327, 327, 327, 327, 327, 327,
- 327, 327, 327, 327, 327, 327, 327, 327, 327, 327,
- 327, 327, 327, 327, 327, 327, 327, 327, 327, 327,
- 327, 327, 327, 327, 327, 327, 327, 327, 327, 327,
- 327, 327, 327, 327, 327, 327, 327, 327, 327, 327,
- 327, 327, 327, 327, 327, 327, 327, 327, 327, 327,
- 327, 327, 327, 327, 327, 327, 327, 327, 327, 327,
- 327, 327, 327, 327, 327, 327, 327, 327, 327, 327,
- 327, 327, 327, 327, 327, 327, 327, 327, 327, 327,
- 327, 327, 327, 327, 327, 327, 327, 327, 327, 327,
- 327, 327, 327, 327, 327, 327, 327, 327, 327, 327,
- 327, 327, 327, 327, 327, 327, 327, 327, 327, 327,
- 327, 327, 327, 327, 327, 327, 327, 327, 327, 327,
- 327, 327, 327, 327, 327, 327, 327, 327, 327, 327,
- 327, 327, 327, 327, 327, 327, 327, 327, 327, 327,
- 327, 327, 328, 328, 328, 330, 329, 331, 329, 332,
- 332, 333, 333, 334, 334, 335, 335, 336, 336, 336,
- 337, 337, 338, 339, 339, 340, 340, 340, 340, 340,
- 340, 340, 341, 342, 343, 341, 344, 344, 346, 345,
- 347, 345, 348, 348, 349, 349, 350, 350, 351, 352,
- 352, 353, 353, 355, 354, 356, 356, 357, 357, 359,
- 358, 360, 358, 361, 358, 362, 362, 363, 363, 364,
- 364, 365, 365, 365, 365, 365, 366, 366, 367, 367,
- 369, 368
-};
-
-/* 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, 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, 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, 145, 146, 144, 178, 172, 173, 174, 175, 176,
- 177, 161, 185, 186, 187, 188, 189, 190, 191, 192,
- 193, 194, 195, 196, 197, 198, 199, 179, 180, 181,
- 200, 201, 202, 150, 148, 149, 147, 153, 151, 152,
- 154, 155, 156, 157, 158, 159, 160, 182, 183, 184,
- 212, 213, 214, 128, 127, 126, 0, 203, 204, 205,
- 206, 207, 208, 209, 210, 211, 215, 216, 217, 218,
- 219, 220, 221, 222, 223, 224, 225, 226, 227, 228,
- 229, 230, 231, 232, 233, 234, 235, 238, 239, 240,
- 241, 242, 243, 245, 246, 247, 248, 249, 250, 252,
- 253, 254, 255, 256, 257, 258, 236, 237, 244, 251,
- 259, 260, 261, 262, 263, 264, 333, 265, 266, 267,
- 268, 269, 270, 271, 272, 274, 275, 276, 277, 278,
- 279, 281, 282, 283, 284, 285, 286, 288, 289, 290,
- 291, 292, 293, 273, 280, 287, 294, 295, 296, 297,
- 298, 299, 334, 335, 336, 337, 338, 339, 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, 0, 171, 341, 125, 135, 342, 343, 344, 0,
- 419, 0, 420, 0, 102, 101, 0, 113, 118, 142,
- 141, 139, 143, 0, 136, 138, 123, 165, 140, 340,
- 0, 416, 418, 0, 0, 0, 347, 0, 0, 90,
- 87, 0, 100, 0, 109, 103, 111, 0, 112, 0,
- 88, 119, 0, 93, 137, 124, 0, 166, 1, 417,
- 163, 0, 134, 132, 0, 130, 345, 0, 0, 91,
- 0, 0, 421, 104, 108, 110, 106, 114, 105, 0,
- 120, 96, 0, 94, 0, 2, 8, 9, 4, 5,
- 6, 7, 10, 0, 0, 0, 167, 36, 35, 37,
- 34, 3, 12, 30, 14, 19, 20, 0, 0, 24,
- 0, 38, 0, 42, 45, 48, 53, 56, 58, 60,
- 62, 64, 66, 68, 0, 28, 0, 162, 0, 0,
- 129, 0, 0, 0, 0, 0, 349, 89, 92, 0,
- 0, 401, 0, 0, 0, 0, 0, 0, 0, 0,
- 373, 382, 386, 38, 71, 84, 0, 362, 0, 123,
- 365, 384, 364, 363, 0, 366, 367, 368, 369, 370,
- 371, 107, 0, 115, 0, 357, 122, 0, 0, 98,
- 0, 95, 31, 32, 0, 16, 17, 0, 0, 22,
- 21, 0, 171, 25, 27, 33, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 69, 168, 169, 0, 164,
- 86, 133, 131, 0, 0, 355, 0, 353, 348, 350,
- 412, 411, 0, 403, 0, 415, 413, 0, 0, 0,
- 398, 399, 372, 0, 74, 75, 77, 76, 79, 80,
- 81, 82, 83, 78, 73, 0, 0, 387, 383, 385,
- 117, 0, 360, 0, 121, 0, 99, 11, 0, 18,
- 15, 26, 39, 40, 41, 44, 43, 46, 47, 51,
- 52, 49, 50, 54, 55, 57, 59, 61, 63, 65,
- 67, 0, 170, 346, 0, 356, 0, 351, 0, 0,
- 0, 414, 0, 397, 0, 374, 72, 85, 116, 358,
- 0, 97, 13, 0, 352, 354, 0, 406, 405, 408,
- 380, 393, 391, 0, 0, 0, 0, 359, 361, 0,
- 0, 407, 0, 0, 390, 0, 0, 388, 0, 0,
- 0, 375, 70, 0, 409, 0, 380, 379, 381, 395,
- 0, 377, 400, 376, 0, 410, 404, 389, 396, 0,
- 392, 402, 394
-};
-
-/* YYDEFGOTO[NTERM-NUM]. */
-static const yytype_int16 yydefgoto[] =
-{
- -1, 291, 292, 293, 458, 294, 295, 296, 297, 298,
- 299, 300, 343, 302, 303, 304, 305, 306, 307, 308,
- 309, 310, 311, 312, 313, 344, 481, 345, 445, 346,
- 411, 347, 201, 368, 274, 348, 203, 204, 205, 234,
- 235, 236, 206, 207, 208, 209, 210, 211, 254, 255,
- 212, 213, 214, 215, 251, 315, 247, 217, 218, 219,
- 322, 257, 325, 326, 416, 417, 366, 453, 350, 351,
- 352, 353, 433, 516, 542, 524, 525, 526, 543, 354,
- 355, 356, 527, 515, 357, 528, 549, 358, 359, 494,
- 422, 489, 509, 522, 523, 360, 220, 221, 222, 231
-};
-
-/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
- STATE-NUM. */
#define YYPACT_NINF -496
+
+#define yypact_value_is_default(Yystate) \
+ (!!((Yystate) == (-496)))
+
+#define YYTABLE_NINF -379
+
+#define yytable_value_is_error(Yytable_value) \
+ 0
+
+ /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
+ STATE-NUM. */
static const yytype_int16 yypact[] =
{
2394, -496, -496, -496, -496, -496, -496, -496, -496, -496,
@@ -1353,7 +1034,70 @@ static const yytype_int16 yypact[] =
-496, -496, -496
};
-/* YYPGOTO[NTERM-NUM]. */
+ /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.
+ Performed when YYTABLE does not specify something else to do. Zero
+ means the default is an error. */
+static const yytype_uint16 yydefact[] =
+{
+ 0, 145, 146, 144, 178, 172, 173, 174, 175, 176,
+ 177, 161, 185, 186, 187, 188, 189, 190, 191, 192,
+ 193, 194, 195, 196, 197, 198, 199, 179, 180, 181,
+ 200, 201, 202, 150, 148, 149, 147, 153, 151, 152,
+ 154, 155, 156, 157, 158, 159, 160, 182, 183, 184,
+ 212, 213, 214, 128, 127, 126, 0, 203, 204, 205,
+ 206, 207, 208, 209, 210, 211, 215, 216, 217, 218,
+ 219, 220, 221, 222, 223, 224, 225, 226, 227, 228,
+ 229, 230, 231, 232, 233, 234, 235, 238, 239, 240,
+ 241, 242, 243, 245, 246, 247, 248, 249, 250, 252,
+ 253, 254, 255, 256, 257, 258, 236, 237, 244, 251,
+ 259, 260, 261, 262, 263, 264, 333, 265, 266, 267,
+ 268, 269, 270, 271, 272, 274, 275, 276, 277, 278,
+ 279, 281, 282, 283, 284, 285, 286, 288, 289, 290,
+ 291, 292, 293, 273, 280, 287, 294, 295, 296, 297,
+ 298, 299, 334, 335, 336, 337, 338, 339, 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, 0, 171, 341, 125, 135, 342, 343, 344, 0,
+ 419, 0, 420, 0, 102, 101, 0, 113, 118, 142,
+ 141, 139, 143, 0, 136, 138, 123, 165, 140, 340,
+ 0, 416, 418, 0, 0, 0, 347, 0, 0, 90,
+ 87, 0, 100, 0, 109, 103, 111, 0, 112, 0,
+ 88, 119, 0, 93, 137, 124, 0, 166, 1, 417,
+ 163, 0, 134, 132, 0, 130, 345, 0, 0, 91,
+ 0, 0, 421, 104, 108, 110, 106, 114, 105, 0,
+ 120, 96, 0, 94, 0, 2, 8, 9, 4, 5,
+ 6, 7, 10, 0, 0, 0, 167, 36, 35, 37,
+ 34, 3, 12, 30, 14, 19, 20, 0, 0, 24,
+ 0, 38, 0, 42, 45, 48, 53, 56, 58, 60,
+ 62, 64, 66, 68, 0, 28, 0, 162, 0, 0,
+ 129, 0, 0, 0, 0, 0, 349, 89, 92, 0,
+ 0, 401, 0, 0, 0, 0, 0, 0, 0, 0,
+ 373, 382, 386, 38, 71, 84, 0, 362, 0, 123,
+ 365, 384, 364, 363, 0, 366, 367, 368, 369, 370,
+ 371, 107, 0, 115, 0, 357, 122, 0, 0, 98,
+ 0, 95, 31, 32, 0, 16, 17, 0, 0, 22,
+ 21, 0, 171, 25, 27, 33, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 69, 168, 169, 0, 164,
+ 86, 133, 131, 0, 0, 355, 0, 353, 348, 350,
+ 412, 411, 0, 403, 0, 415, 413, 0, 0, 0,
+ 398, 399, 372, 0, 74, 75, 77, 76, 79, 80,
+ 81, 82, 83, 78, 73, 0, 0, 387, 383, 385,
+ 117, 0, 360, 0, 121, 0, 99, 11, 0, 18,
+ 15, 26, 39, 40, 41, 44, 43, 46, 47, 51,
+ 52, 49, 50, 54, 55, 57, 59, 61, 63, 65,
+ 67, 0, 170, 346, 0, 356, 0, 351, 0, 0,
+ 0, 414, 0, 397, 0, 374, 72, 85, 116, 358,
+ 0, 97, 13, 0, 352, 354, 0, 406, 405, 408,
+ 380, 393, 391, 0, 0, 0, 0, 359, 361, 0,
+ 0, 407, 0, 0, 390, 0, 0, 388, 0, 0,
+ 0, 375, 70, 0, 409, 0, 380, 379, 381, 395,
+ 0, 377, 400, 376, 0, 410, 404, 389, 396, 0,
+ 392, 402, 394
+};
+
+ /* YYPGOTO[NTERM-NUM]. */
static const yytype_int16 yypgoto[] =
{
-496, -496, -496, -496, -496, -496, -496, -496, -496, -496,
@@ -1368,10 +1112,24 @@ static const yytype_int16 yypgoto[] =
-496, -496, -496, -496, -496, -496, -496, 28, -496, -496
};
-/* 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 -379
+ /* YYDEFGOTO[NTERM-NUM]. */
+static const yytype_int16 yydefgoto[] =
+{
+ -1, 291, 292, 293, 458, 294, 295, 296, 297, 298,
+ 299, 300, 343, 302, 303, 304, 305, 306, 307, 308,
+ 309, 310, 311, 312, 313, 344, 481, 345, 445, 346,
+ 411, 347, 201, 368, 274, 348, 203, 204, 205, 234,
+ 235, 236, 206, 207, 208, 209, 210, 211, 254, 255,
+ 212, 213, 214, 215, 251, 315, 247, 217, 218, 219,
+ 322, 257, 325, 326, 416, 417, 366, 453, 350, 351,
+ 352, 353, 433, 516, 542, 524, 525, 526, 543, 354,
+ 355, 356, 527, 515, 357, 528, 549, 358, 359, 494,
+ 422, 489, 509, 522, 523, 360, 220, 221, 222, 231
+};
+
+ /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If
+ positive, shift that token. If negative, reduce the rule whose
+ number is the opposite. If YYTABLE_NINF, syntax error. */
static const yytype_int16 yytable[] =
{
216, 237, 244, 365, 200, 374, 202, 260, 449, 252,
@@ -1971,12 +1729,6 @@ static const yytype_int16 yytable[] =
192, 0, 0, 193
};
-#define yypact_value_is_default(Yystate) \
- (!!((Yystate) == (-496)))
-
-#define yytable_value_is_error(Yytable_value) \
- YYID (0)
-
static const yytype_int16 yycheck[] =
{
0, 205, 213, 269, 0, 285, 0, 228, 354, 54,
@@ -2576,8 +2328,8 @@ static const yytype_int16 yycheck[] =
205, -1, -1, 208
};
-/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
- symbol of state STATE-NUM. */
+ /* 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, 11,
@@ -2638,30 +2390,112 @@ static const yytype_uint16 yystos[] =
336, 247, 242
};
-#define yyerrok (yyerrstatus = 0)
-#define yyclearin (yychar = YYEMPTY)
-#define YYEMPTY (-2)
-#define YYEOF 0
+ /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
+static const yytype_uint16 yyr1[] =
+{
+ 0, 270, 271, 272, 272, 272, 272, 272, 272, 272,
+ 272, 272, 273, 273, 273, 273, 273, 273, 274, 275,
+ 276, 277, 277, 278, 278, 279, 279, 280, 281, 281,
+ 282, 282, 282, 282, 283, 283, 283, 283, 284, 284,
+ 284, 284, 285, 285, 285, 286, 286, 286, 287, 287,
+ 287, 287, 287, 288, 288, 288, 289, 289, 290, 290,
+ 291, 291, 292, 292, 293, 293, 294, 294, 295, 296,
+ 295, 297, 297, 298, 298, 298, 298, 298, 298, 298,
+ 298, 298, 298, 298, 299, 299, 300, 301, 301, 301,
+ 301, 301, 301, 301, 301, 301, 303, 302, 304, 304,
+ 305, 306, 306, 307, 307, 308, 309, 309, 310, 310,
+ 310, 310, 311, 312, 312, 312, 312, 312, 313, 313,
+ 313, 313, 313, 314, 314, 315, 316, 316, 316, 317,
+ 318, 318, 319, 319, 319, 320, 321, 321, 322, 322,
+ 322, 322, 322, 322, 323, 323, 323, 323, 323, 323,
+ 323, 323, 323, 323, 323, 323, 323, 323, 323, 323,
+ 323, 323, 323, 324, 324, 325, 325, 326, 326, 326,
+ 326, 327, 327, 327, 327, 327, 327, 327, 327, 327,
+ 327, 327, 327, 327, 327, 327, 327, 327, 327, 327,
+ 327, 327, 327, 327, 327, 327, 327, 327, 327, 327,
+ 327, 327, 327, 327, 327, 327, 327, 327, 327, 327,
+ 327, 327, 327, 327, 327, 327, 327, 327, 327, 327,
+ 327, 327, 327, 327, 327, 327, 327, 327, 327, 327,
+ 327, 327, 327, 327, 327, 327, 327, 327, 327, 327,
+ 327, 327, 327, 327, 327, 327, 327, 327, 327, 327,
+ 327, 327, 327, 327, 327, 327, 327, 327, 327, 327,
+ 327, 327, 327, 327, 327, 327, 327, 327, 327, 327,
+ 327, 327, 327, 327, 327, 327, 327, 327, 327, 327,
+ 327, 327, 327, 327, 327, 327, 327, 327, 327, 327,
+ 327, 327, 327, 327, 327, 327, 327, 327, 327, 327,
+ 327, 327, 327, 327, 327, 327, 327, 327, 327, 327,
+ 327, 327, 327, 327, 327, 327, 327, 327, 327, 327,
+ 327, 327, 327, 327, 327, 327, 327, 327, 327, 327,
+ 327, 327, 327, 327, 327, 327, 327, 327, 327, 327,
+ 327, 327, 328, 328, 328, 330, 329, 331, 329, 332,
+ 332, 333, 333, 334, 334, 335, 335, 336, 336, 336,
+ 337, 337, 338, 339, 339, 340, 340, 340, 340, 340,
+ 340, 340, 341, 342, 343, 341, 344, 344, 346, 345,
+ 347, 345, 348, 348, 349, 349, 350, 350, 351, 352,
+ 352, 353, 353, 355, 354, 356, 356, 357, 357, 359,
+ 358, 360, 358, 361, 358, 362, 362, 363, 363, 364,
+ 364, 365, 365, 365, 365, 365, 366, 366, 367, 367,
+ 369, 368
+};
-#define YYACCEPT goto yyacceptlab
-#define YYABORT goto yyabortlab
-#define YYERROR goto yyerrorlab
+ /* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */
+static const yytype_uint8 yyr2[] =
+{
+ 0, 2, 1, 1, 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, 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
+};
-/* 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 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
-#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)
@@ -2678,27 +2512,15 @@ do \
else \
{ \
yyerror (pParseContext, YY_("syntax error: cannot back up")); \
- YYERROR; \
- } \
-while (YYID (0))
+ YYERROR; \
+ } \
+while (0)
/* Error token number */
-#define YYTERROR 1
-#define YYERRCODE 256
+#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
@@ -2708,58 +2530,47 @@ while (YYID (0))
# define YYFPRINTF fprintf
# endif
-# define YYDPRINTF(Args) \
-do { \
- if (yydebug) \
- YYFPRINTF Args; \
-} while (YYID (0))
+# define YYDPRINTF(Args) \
+do { \
+ if (yydebug) \
+ YYFPRINTF Args; \
+} while (0)
-# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
-do { \
- if (yydebug) \
- { \
- YYFPRINTF (stderr, "%s ", Title); \
- yy_symbol_print (stderr, \
- Type, Value, pParseContext); \
- YYFPRINTF (stderr, "\n"); \
- } \
-} while (YYID (0))
+/* This macro is provided for backward compatibility. */
+#ifndef YY_LOCATION_PRINT
+# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
+#endif
-/*--------------------------------.
-| Print this symbol on YYOUTPUT. |
-`--------------------------------*/
+# 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 (0)
+
+
+/*----------------------------------------.
+| Print this symbol's value 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);
+ YYUSE (pParseContext);
if (!yyvaluep)
return;
- YYUSE (pParseContext);
# ifdef YYPRINT
if (yytype < YYNTOKENS)
YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
-# else
- YYUSE (yyoutput);
# endif
- switch (yytype)
- {
- default:
- break;
- }
+ YYUSE (yytype);
}
@@ -2767,23 +2578,11 @@ yy_symbol_value_print (yyoutput, yytype, yyvaluep, pParseContext)
| 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]);
+ YYFPRINTF (yyoutput, "%s %s (",
+ yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]);
yy_symbol_value_print (yyoutput, yytype, yyvaluep, pParseContext);
YYFPRINTF (yyoutput, ")");
@@ -2794,16 +2593,8 @@ yy_symbol_print (yyoutput, yytype, yyvaluep, pParseContext)
| 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++)
@@ -2814,50 +2605,42 @@ yy_stack_print (yybottom, yytop)
YYFPRINTF (stderr, "\n");
}
-# define YY_STACK_PRINT(Bottom, Top) \
-do { \
- if (yydebug) \
- yy_stack_print ((Bottom), (Top)); \
-} while (YYID (0))
+# define YY_STACK_PRINT(Bottom, Top) \
+do { \
+ if (yydebug) \
+ yy_stack_print ((Bottom), (Top)); \
+} while (0)
/*------------------------------------------------.
| Report that the YYRULE is going to be reduced. |
`------------------------------------------------*/
-#if (defined __STDC__ || defined __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
+yy_reduce_print (yytype_int16 *yyssp, YYSTYPE *yyvsp, int yyrule, glslang::TParseContext* pParseContext)
{
+ unsigned long int yylno = yyrline[yyrule];
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);
+ 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);
+ yy_symbol_print (stderr,
+ yystos[yyssp[yyi + 1 - yynrhs]],
+ &(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))
+# define YY_REDUCE_PRINT(Rule) \
+do { \
+ if (yydebug) \
+ yy_reduce_print (yyssp, yyvsp, Rule, pParseContext); \
+} while (0)
/* Nonzero means print parse trace. It is left uninitialized so that
multiple parsers can coexist. */
@@ -2871,7 +2654,7 @@ int yydebug;
/* YYINITDEPTH -- initial size of the parser's stacks. */
-#ifndef YYINITDEPTH
+#ifndef YYINITDEPTH
# define YYINITDEPTH 200
#endif
@@ -2894,15 +2677,8 @@ int yydebug;
# 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++)
@@ -2918,16 +2694,8 @@ yystrlen (yystr)
# 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;
@@ -2957,27 +2725,27 @@ yytnamerr (char *yyres, const char *yystr)
char const *yyp = yystr;
for (;;)
- switch (*++yyp)
- {
- case '\'':
- case ',':
- goto do_not_strip_quotes;
+ 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 (*++yyp != '\\')
+ goto do_not_strip_quotes;
+ /* Fall through. */
+ default:
+ if (yyres)
+ yyres[yyn] = *yyp;
+ yyn++;
+ break;
- case '"':
- if (yyres)
- yyres[yyn] = '\0';
- return yyn;
- }
+ case '"':
+ if (yyres)
+ yyres[yyn] = '\0';
+ return yyn;
+ }
do_not_strip_quotes: ;
}
@@ -3000,11 +2768,11 @@ 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 yysize0 = yytnamerr (YY_NULLPTR, yytname[yytoken]);
YYSIZE_T yysize = yysize0;
enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
/* Internationalized format string. */
- const char *yyformat = YY_NULL;
+ const char *yyformat = YY_NULLPTR;
/* Arguments of yyformat. */
char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
/* Number of reported tokens (one for the "unexpected", one per
@@ -3012,10 +2780,6 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,
int yycount = 0;
/* There are many possibilities here to consider:
- - Assume YYFAIL is not used. It's too flawed to consider. See
-
- 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
@@ -3065,7 +2829,7 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,
}
yyarg[yycount++] = yytname[yyx];
{
- YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULL, yytname[yyx]);
+ YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULLPTR, yytname[yyx]);
if (! (yysize <= yysize1
&& yysize1 <= YYSTACK_ALLOC_MAXIMUM))
return 2;
@@ -3132,33 +2896,18 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,
| 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;
- }
+ YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
+ YYUSE (yytype);
+ YY_IGNORE_MAYBE_UNINITIALIZED_END
}
@@ -3168,56 +2917,18 @@ yydestruct (yymsg, yytype, yyvaluep, pParseContext)
| 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
+/* The semantic value of the lookahead symbol. */
/* 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);
+YY_INITIAL_VALUE (static YYSTYPE yyval_default;)
+YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default);
/* Number of syntax errors so far. */
int yynerrs;
@@ -3227,8 +2938,8 @@ YYSTYPE yylval YY_INITIAL_VALUE(yyval_default);
int yyerrstatus;
/* The stacks and their tools:
- `yyss': related to states.
- `yyvs': related to semantic values.
+ 'yyss': related to states.
+ 'yyvs': related to semantic values.
Refer to the stacks through separate pointers, to allow yyoverflow
to reallocate them elsewhere. */
@@ -3296,23 +3007,23 @@ YYSTYPE yylval YY_INITIAL_VALUE(yyval_default);
#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;
+ /* 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);
+ /* 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;
+ yyss = yyss1;
+ yyvs = yyvs1;
}
#else /* no yyoverflow */
# ifndef YYSTACK_RELOCATE
@@ -3320,22 +3031,22 @@ YYSTYPE yylval YY_INITIAL_VALUE(yyval_default);
# else
/* Extend the stack our own way. */
if (YYMAXDEPTH <= yystacksize)
- goto yyexhaustedlab;
+ goto yyexhaustedlab;
yystacksize *= 2;
if (YYMAXDEPTH < yystacksize)
- yystacksize = YYMAXDEPTH;
+ 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);
+ 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);
+ if (yyss1 != yyssa)
+ YYSTACK_FREE (yyss1);
}
# endif
#endif /* no yyoverflow */
@@ -3344,10 +3055,10 @@ YYSTYPE yylval YY_INITIAL_VALUE(yyval_default);
yyvsp = yyvs + yysize - 1;
YYDPRINTF ((stderr, "Stack size increased to %lu\n",
- (unsigned long int) yystacksize));
+ (unsigned long int) yystacksize));
if (yyss + yystacksize - 1 <= yyssp)
- YYABORT;
+ YYABORT;
}
YYDPRINTF ((stderr, "Entering state %d\n", yystate));
@@ -3376,7 +3087,7 @@ yybackup:
if (yychar == YYEMPTY)
{
YYDPRINTF ((stderr, "Reading a token: "));
- yychar = YYLEX;
+ yychar = yylex (&yylval, parseContext);
}
if (yychar <= YYEOF)
@@ -3441,7 +3152,7 @@ yyreduce:
yylen = yyr2[yyn];
/* If YYLEN is nonzero, implement the default value of the action:
- `$$ = $1'.
+ '$$ = $1'.
Otherwise, the following line sets YYVAL to garbage.
This behavior is undocumented and Bison
@@ -3455,248 +3166,247 @@ yyreduce:
switch (yyn)
{
case 2:
-/* Line 1792 of yacc.c */
-#line 246 "glslang.y"
+#line 246 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.intermTypedNode) = parseContext.handleVariable((yyvsp[(1) - (1)].lex).loc, (yyvsp[(1) - (1)].lex).symbol, (yyvsp[(1) - (1)].lex).string);
+ (yyval.interm.intermTypedNode) = parseContext.handleVariable((yyvsp[0].lex).loc, (yyvsp[0].lex).symbol, (yyvsp[0].lex).string);
}
+#line 3174 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 3:
-/* Line 1792 of yacc.c */
-#line 252 "glslang.y"
+#line 252 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode);
+ (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode);
}
+#line 3182 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 4:
-/* Line 1792 of yacc.c */
-#line 255 "glslang.y"
+#line 255 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[(1) - (1)].lex).i, (yyvsp[(1) - (1)].lex).loc, true);
+ (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).i, (yyvsp[0].lex).loc, true);
}
+#line 3190 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 5:
-/* Line 1792 of yacc.c */
-#line 258 "glslang.y"
+#line 258 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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);
+ parseContext.fullIntegerCheck((yyvsp[0].lex).loc, "unsigned literal");
+ (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).u, (yyvsp[0].lex).loc, true);
}
+#line 3199 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 6:
-/* Line 1792 of yacc.c */
-#line 262 "glslang.y"
+#line 262 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.int64Check((yyvsp[(1) - (1)].lex).loc, "64-bit integer literal");
- (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[(1) - (1)].lex).i64, (yyvsp[(1) - (1)].lex).loc, true);
+ parseContext.int64Check((yyvsp[0].lex).loc, "64-bit integer literal");
+ (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).i64, (yyvsp[0].lex).loc, true);
}
+#line 3208 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 7:
-/* Line 1792 of yacc.c */
-#line 266 "glslang.y"
+#line 266 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.int64Check((yyvsp[(1) - (1)].lex).loc, "64-bit unsigned integer literal");
- (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[(1) - (1)].lex).u64, (yyvsp[(1) - (1)].lex).loc, true);
+ parseContext.int64Check((yyvsp[0].lex).loc, "64-bit unsigned integer literal");
+ (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).u64, (yyvsp[0].lex).loc, true);
}
+#line 3217 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 8:
-/* Line 1792 of yacc.c */
-#line 270 "glslang.y"
+#line 270 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[(1) - (1)].lex).d, EbtFloat, (yyvsp[(1) - (1)].lex).loc, true);
+ (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).d, EbtFloat, (yyvsp[0].lex).loc, true);
}
+#line 3225 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 9:
-/* Line 1792 of yacc.c */
-#line 273 "glslang.y"
+#line 273 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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);
+ parseContext.doubleCheck((yyvsp[0].lex).loc, "double literal");
+ (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).d, EbtDouble, (yyvsp[0].lex).loc, true);
}
+#line 3234 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 10:
-/* Line 1792 of yacc.c */
-#line 277 "glslang.y"
+#line 277 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[(1) - (1)].lex).b, (yyvsp[(1) - (1)].lex).loc, true);
+ (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).b, (yyvsp[0].lex).loc, true);
}
+#line 3242 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 11:
-/* Line 1792 of yacc.c */
-#line 280 "glslang.y"
+#line 280 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.intermTypedNode) = (yyvsp[(2) - (3)].interm.intermTypedNode);
+ (yyval.interm.intermTypedNode) = (yyvsp[-1].interm.intermTypedNode);
if ((yyval.interm.intermTypedNode)->getAsConstantUnion())
(yyval.interm.intermTypedNode)->getAsConstantUnion()->setExpression();
}
+#line 3252 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 12:
-/* Line 1792 of yacc.c */
-#line 288 "glslang.y"
+#line 288 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode);
+ (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode);
}
+#line 3260 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 13:
-/* Line 1792 of yacc.c */
-#line 291 "glslang.y"
+#line 291 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.intermTypedNode) = parseContext.handleBracketDereference((yyvsp[(2) - (4)].lex).loc, (yyvsp[(1) - (4)].interm.intermTypedNode), (yyvsp[(3) - (4)].interm.intermTypedNode));
+ (yyval.interm.intermTypedNode) = parseContext.handleBracketDereference((yyvsp[-2].lex).loc, (yyvsp[-3].interm.intermTypedNode), (yyvsp[-1].interm.intermTypedNode));
}
+#line 3268 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 14:
-/* Line 1792 of yacc.c */
-#line 294 "glslang.y"
+#line 294 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode);
+ (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode);
}
+#line 3276 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 15:
-/* Line 1792 of yacc.c */
-#line 297 "glslang.y"
+#line 297 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.intermTypedNode) = parseContext.handleDotDereference((yyvsp[(3) - (3)].lex).loc, (yyvsp[(1) - (3)].interm.intermTypedNode), *(yyvsp[(3) - (3)].lex).string);
+ (yyval.interm.intermTypedNode) = parseContext.handleDotDereference((yyvsp[0].lex).loc, (yyvsp[-2].interm.intermTypedNode), *(yyvsp[0].lex).string);
}
+#line 3284 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 16:
-/* Line 1792 of yacc.c */
-#line 300 "glslang.y"
+#line 300 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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));
+ parseContext.variableCheck((yyvsp[-1].interm.intermTypedNode));
+ parseContext.lValueErrorCheck((yyvsp[0].lex).loc, "++", (yyvsp[-1].interm.intermTypedNode));
+ (yyval.interm.intermTypedNode) = parseContext.handleUnaryMath((yyvsp[0].lex).loc, "++", EOpPostIncrement, (yyvsp[-1].interm.intermTypedNode));
}
+#line 3294 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 17:
-/* Line 1792 of yacc.c */
-#line 305 "glslang.y"
+#line 305 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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));
+ parseContext.variableCheck((yyvsp[-1].interm.intermTypedNode));
+ parseContext.lValueErrorCheck((yyvsp[0].lex).loc, "--", (yyvsp[-1].interm.intermTypedNode));
+ (yyval.interm.intermTypedNode) = parseContext.handleUnaryMath((yyvsp[0].lex).loc, "--", EOpPostDecrement, (yyvsp[-1].interm.intermTypedNode));
}
+#line 3304 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 18:
-/* Line 1792 of yacc.c */
-#line 313 "glslang.y"
+#line 313 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.integerCheck((yyvsp[(1) - (1)].interm.intermTypedNode), "[]");
- (yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode);
+ parseContext.integerCheck((yyvsp[0].interm.intermTypedNode), "[]");
+ (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode);
}
+#line 3313 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 19:
-/* Line 1792 of yacc.c */
-#line 320 "glslang.y"
+#line 320 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (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;
+ (yyval.interm.intermTypedNode) = parseContext.handleFunctionCall((yyvsp[0].interm).loc, (yyvsp[0].interm).function, (yyvsp[0].interm).intermNode);
+ delete (yyvsp[0].interm).function;
}
+#line 3322 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 20:
-/* Line 1792 of yacc.c */
-#line 327 "glslang.y"
+#line 327 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm) = (yyvsp[(1) - (1)].interm);
+ (yyval.interm) = (yyvsp[0].interm);
}
+#line 3330 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 21:
-/* Line 1792 of yacc.c */
-#line 333 "glslang.y"
+#line 333 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm) = (yyvsp[(1) - (2)].interm);
- (yyval.interm).loc = (yyvsp[(2) - (2)].lex).loc;
+ (yyval.interm) = (yyvsp[-1].interm);
+ (yyval.interm).loc = (yyvsp[0].lex).loc;
}
+#line 3339 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 22:
-/* Line 1792 of yacc.c */
-#line 337 "glslang.y"
+#line 337 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm) = (yyvsp[(1) - (2)].interm);
- (yyval.interm).loc = (yyvsp[(2) - (2)].lex).loc;
+ (yyval.interm) = (yyvsp[-1].interm);
+ (yyval.interm).loc = (yyvsp[0].lex).loc;
}
+#line 3348 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 23:
-/* Line 1792 of yacc.c */
-#line 344 "glslang.y"
+#line 344 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm) = (yyvsp[(1) - (2)].interm);
+ (yyval.interm) = (yyvsp[-1].interm);
}
+#line 3356 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 24:
-/* Line 1792 of yacc.c */
-#line 347 "glslang.y"
+#line 347 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm) = (yyvsp[(1) - (1)].interm);
+ (yyval.interm) = (yyvsp[0].interm);
}
+#line 3364 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 25:
-/* Line 1792 of yacc.c */
-#line 353 "glslang.y"
+#line 353 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
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);
+ param.type->shallowCopy((yyvsp[0].interm.intermTypedNode)->getType());
+ (yyvsp[-1].interm).function->addParameter(param);
+ (yyval.interm).function = (yyvsp[-1].interm).function;
+ (yyval.interm).intermNode = (yyvsp[0].interm.intermTypedNode);
}
+#line 3376 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 26:
-/* Line 1792 of yacc.c */
-#line 360 "glslang.y"
+#line 360 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
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);
+ param.type->shallowCopy((yyvsp[0].interm.intermTypedNode)->getType());
+ (yyvsp[-2].interm).function->addParameter(param);
+ (yyval.interm).function = (yyvsp[-2].interm).function;
+ (yyval.interm).intermNode = parseContext.intermediate.growAggregate((yyvsp[-2].interm).intermNode, (yyvsp[0].interm.intermTypedNode), (yyvsp[-1].lex).loc);
}
+#line 3388 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 27:
-/* Line 1792 of yacc.c */
-#line 370 "glslang.y"
+#line 370 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm) = (yyvsp[(1) - (2)].interm);
+ (yyval.interm) = (yyvsp[-1].interm);
}
+#line 3396 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 28:
-/* Line 1792 of yacc.c */
-#line 378 "glslang.y"
+#line 378 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
// Constructor
(yyval.interm).intermNode = 0;
- (yyval.interm).function = parseContext.handleConstructorCall((yyvsp[(1) - (1)].interm.type).loc, (yyvsp[(1) - (1)].interm.type));
+ (yyval.interm).function = parseContext.handleConstructorCall((yyvsp[0].interm.type).loc, (yyvsp[0].interm.type));
}
+#line 3406 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 29:
-/* Line 1792 of yacc.c */
-#line 383 "glslang.y"
+#line 383 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
//
// Should be a method or subroutine call, but we haven't recognized the arguments yet.
@@ -3704,18 +3414,18 @@ yyreduce:
(yyval.interm).function = 0;
(yyval.interm).intermNode = 0;
- TIntermMethod* method = (yyvsp[(1) - (1)].interm.intermTypedNode)->getAsMethodNode();
+ TIntermMethod* method = (yyvsp[0].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();
+ TIntermSymbol* symbol = (yyvsp[0].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", "", "");
+ parseContext.error((yyvsp[0].interm.intermTypedNode)->getLoc(), "function call, method, or subroutine call expected", "", "");
}
if ((yyval.interm).function == 0) {
@@ -3724,3693 +3434,3693 @@ yyreduce:
(yyval.interm).function = new TFunction(&empty, TType(EbtVoid), EOpNull);
}
}
+#line 3438 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 30:
-/* Line 1792 of yacc.c */
-#line 413 "glslang.y"
+#line 413 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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(), "");
+ parseContext.variableCheck((yyvsp[0].interm.intermTypedNode));
+ (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode);
+ if (TIntermMethod* method = (yyvsp[0].interm.intermTypedNode)->getAsMethodNode())
+ parseContext.error((yyvsp[0].interm.intermTypedNode)->getLoc(), "incomplete method syntax", method->getMethodName().c_str(), "");
}
+#line 3449 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 31:
-/* Line 1792 of yacc.c */
-#line 419 "glslang.y"
+#line 419 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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));
+ parseContext.lValueErrorCheck((yyvsp[-1].lex).loc, "++", (yyvsp[0].interm.intermTypedNode));
+ (yyval.interm.intermTypedNode) = parseContext.handleUnaryMath((yyvsp[-1].lex).loc, "++", EOpPreIncrement, (yyvsp[0].interm.intermTypedNode));
}
+#line 3458 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 32:
-/* Line 1792 of yacc.c */
-#line 423 "glslang.y"
+#line 423 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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));
+ parseContext.lValueErrorCheck((yyvsp[-1].lex).loc, "--", (yyvsp[0].interm.intermTypedNode));
+ (yyval.interm.intermTypedNode) = parseContext.handleUnaryMath((yyvsp[-1].lex).loc, "--", EOpPreDecrement, (yyvsp[0].interm.intermTypedNode));
}
+#line 3467 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 33:
-/* Line 1792 of yacc.c */
-#line 427 "glslang.y"
+#line 427 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- if ((yyvsp[(1) - (2)].interm).op != EOpNull) {
+ if ((yyvsp[-1].interm).op != EOpNull) {
char errorOp[2] = {0, 0};
- switch((yyvsp[(1) - (2)].interm).op) {
+ switch((yyvsp[-1].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));
+ (yyval.interm.intermTypedNode) = parseContext.handleUnaryMath((yyvsp[-1].interm).loc, errorOp, (yyvsp[-1].interm).op, (yyvsp[0].interm.intermTypedNode));
} else {
- (yyval.interm.intermTypedNode) = (yyvsp[(2) - (2)].interm.intermTypedNode);
+ (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode);
if ((yyval.interm.intermTypedNode)->getAsConstantUnion())
(yyval.interm.intermTypedNode)->getAsConstantUnion()->setExpression();
}
}
+#line 3488 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 34:
-/* Line 1792 of yacc.c */
-#line 447 "glslang.y"
- { (yyval.interm).loc = (yyvsp[(1) - (1)].lex).loc; (yyval.interm).op = EOpNull; }
+#line 447 "MachineIndependent/glslang.y" /* yacc.c:1646 */
+ { (yyval.interm).loc = (yyvsp[0].lex).loc; (yyval.interm).op = EOpNull; }
+#line 3494 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 35:
-/* Line 1792 of yacc.c */
-#line 448 "glslang.y"
- { (yyval.interm).loc = (yyvsp[(1) - (1)].lex).loc; (yyval.interm).op = EOpNegative; }
+#line 448 "MachineIndependent/glslang.y" /* yacc.c:1646 */
+ { (yyval.interm).loc = (yyvsp[0].lex).loc; (yyval.interm).op = EOpNegative; }
+#line 3500 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 36:
-/* Line 1792 of yacc.c */
-#line 449 "glslang.y"
- { (yyval.interm).loc = (yyvsp[(1) - (1)].lex).loc; (yyval.interm).op = EOpLogicalNot; }
+#line 449 "MachineIndependent/glslang.y" /* yacc.c:1646 */
+ { (yyval.interm).loc = (yyvsp[0].lex).loc; (yyval.interm).op = EOpLogicalNot; }
+#line 3506 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 37:
-/* Line 1792 of yacc.c */
-#line 450 "glslang.y"
- { (yyval.interm).loc = (yyvsp[(1) - (1)].lex).loc; (yyval.interm).op = EOpBitwiseNot;
- parseContext.fullIntegerCheck((yyvsp[(1) - (1)].lex).loc, "bitwise not"); }
+#line 450 "MachineIndependent/glslang.y" /* yacc.c:1646 */
+ { (yyval.interm).loc = (yyvsp[0].lex).loc; (yyval.interm).op = EOpBitwiseNot;
+ parseContext.fullIntegerCheck((yyvsp[0].lex).loc, "bitwise not"); }
+#line 3513 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 38:
-/* Line 1792 of yacc.c */
-#line 456 "glslang.y"
- { (yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode); }
+#line 456 "MachineIndependent/glslang.y" /* yacc.c:1646 */
+ { (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); }
+#line 3519 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 39:
-/* Line 1792 of yacc.c */
-#line 457 "glslang.y"
+#line 457 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[(2) - (3)].lex).loc, "*", EOpMul, (yyvsp[(1) - (3)].interm.intermTypedNode), (yyvsp[(3) - (3)].interm.intermTypedNode));
+ (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[-1].lex).loc, "*", EOpMul, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
if ((yyval.interm.intermTypedNode) == 0)
- (yyval.interm.intermTypedNode) = (yyvsp[(1) - (3)].interm.intermTypedNode);
+ (yyval.interm.intermTypedNode) = (yyvsp[-2].interm.intermTypedNode);
}
+#line 3529 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 40:
-/* Line 1792 of yacc.c */
-#line 462 "glslang.y"
+#line 462 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[(2) - (3)].lex).loc, "/", EOpDiv, (yyvsp[(1) - (3)].interm.intermTypedNode), (yyvsp[(3) - (3)].interm.intermTypedNode));
+ (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[-1].lex).loc, "/", EOpDiv, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
if ((yyval.interm.intermTypedNode) == 0)
- (yyval.interm.intermTypedNode) = (yyvsp[(1) - (3)].interm.intermTypedNode);
+ (yyval.interm.intermTypedNode) = (yyvsp[-2].interm.intermTypedNode);
}
+#line 3539 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 41:
-/* Line 1792 of yacc.c */
-#line 467 "glslang.y"
+#line 467 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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));
+ parseContext.fullIntegerCheck((yyvsp[-1].lex).loc, "%");
+ (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[-1].lex).loc, "%", EOpMod, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
if ((yyval.interm.intermTypedNode) == 0)
- (yyval.interm.intermTypedNode) = (yyvsp[(1) - (3)].interm.intermTypedNode);
+ (yyval.interm.intermTypedNode) = (yyvsp[-2].interm.intermTypedNode);
}
+#line 3550 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 42:
-/* Line 1792 of yacc.c */
-#line 476 "glslang.y"
- { (yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode); }
+#line 476 "MachineIndependent/glslang.y" /* yacc.c:1646 */
+ { (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); }
+#line 3556 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 43:
-/* Line 1792 of yacc.c */
-#line 477 "glslang.y"
+#line 477 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[(2) - (3)].lex).loc, "+", EOpAdd, (yyvsp[(1) - (3)].interm.intermTypedNode), (yyvsp[(3) - (3)].interm.intermTypedNode));
+ (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[-1].lex).loc, "+", EOpAdd, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
if ((yyval.interm.intermTypedNode) == 0)
- (yyval.interm.intermTypedNode) = (yyvsp[(1) - (3)].interm.intermTypedNode);
+ (yyval.interm.intermTypedNode) = (yyvsp[-2].interm.intermTypedNode);
}
+#line 3566 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 44:
-/* Line 1792 of yacc.c */
-#line 482 "glslang.y"
+#line 482 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[(2) - (3)].lex).loc, "-", EOpSub, (yyvsp[(1) - (3)].interm.intermTypedNode), (yyvsp[(3) - (3)].interm.intermTypedNode));
+ (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[-1].lex).loc, "-", EOpSub, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
if ((yyval.interm.intermTypedNode) == 0)
- (yyval.interm.intermTypedNode) = (yyvsp[(1) - (3)].interm.intermTypedNode);
+ (yyval.interm.intermTypedNode) = (yyvsp[-2].interm.intermTypedNode);
}
+#line 3576 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 45:
-/* Line 1792 of yacc.c */
-#line 490 "glslang.y"
- { (yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode); }
+#line 490 "MachineIndependent/glslang.y" /* yacc.c:1646 */
+ { (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); }
+#line 3582 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 46:
-/* Line 1792 of yacc.c */
-#line 491 "glslang.y"
+#line 491 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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));
+ parseContext.fullIntegerCheck((yyvsp[-1].lex).loc, "bit shift left");
+ (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[-1].lex).loc, "<<", EOpLeftShift, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
if ((yyval.interm.intermTypedNode) == 0)
- (yyval.interm.intermTypedNode) = (yyvsp[(1) - (3)].interm.intermTypedNode);
+ (yyval.interm.intermTypedNode) = (yyvsp[-2].interm.intermTypedNode);
}
+#line 3593 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 47:
-/* Line 1792 of yacc.c */
-#line 497 "glslang.y"
+#line 497 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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));
+ parseContext.fullIntegerCheck((yyvsp[-1].lex).loc, "bit shift right");
+ (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[-1].lex).loc, ">>", EOpRightShift, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
if ((yyval.interm.intermTypedNode) == 0)
- (yyval.interm.intermTypedNode) = (yyvsp[(1) - (3)].interm.intermTypedNode);
+ (yyval.interm.intermTypedNode) = (yyvsp[-2].interm.intermTypedNode);
}
+#line 3604 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 48:
-/* Line 1792 of yacc.c */
-#line 506 "glslang.y"
- { (yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode); }
+#line 506 "MachineIndependent/glslang.y" /* yacc.c:1646 */
+ { (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); }
+#line 3610 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 49:
-/* Line 1792 of yacc.c */
-#line 507 "glslang.y"
+#line 507 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[(2) - (3)].lex).loc, "<", EOpLessThan, (yyvsp[(1) - (3)].interm.intermTypedNode), (yyvsp[(3) - (3)].interm.intermTypedNode));
+ (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[-1].lex).loc, "<", EOpLessThan, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
if ((yyval.interm.intermTypedNode) == 0)
- (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion(false, (yyvsp[(2) - (3)].lex).loc);
+ (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion(false, (yyvsp[-1].lex).loc);
}
+#line 3620 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 50:
-/* Line 1792 of yacc.c */
-#line 512 "glslang.y"
+#line 512 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[(2) - (3)].lex).loc, ">", EOpGreaterThan, (yyvsp[(1) - (3)].interm.intermTypedNode), (yyvsp[(3) - (3)].interm.intermTypedNode));
+ (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[-1].lex).loc, ">", EOpGreaterThan, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
if ((yyval.interm.intermTypedNode) == 0)
- (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion(false, (yyvsp[(2) - (3)].lex).loc);
+ (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion(false, (yyvsp[-1].lex).loc);
}
+#line 3630 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 51:
-/* Line 1792 of yacc.c */
-#line 517 "glslang.y"
+#line 517 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[(2) - (3)].lex).loc, "<=", EOpLessThanEqual, (yyvsp[(1) - (3)].interm.intermTypedNode), (yyvsp[(3) - (3)].interm.intermTypedNode));
+ (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[-1].lex).loc, "<=", EOpLessThanEqual, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
if ((yyval.interm.intermTypedNode) == 0)
- (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion(false, (yyvsp[(2) - (3)].lex).loc);
+ (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion(false, (yyvsp[-1].lex).loc);
}
+#line 3640 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 52:
-/* Line 1792 of yacc.c */
-#line 522 "glslang.y"
+#line 522 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[(2) - (3)].lex).loc, ">=", EOpGreaterThanEqual, (yyvsp[(1) - (3)].interm.intermTypedNode), (yyvsp[(3) - (3)].interm.intermTypedNode));
+ (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[-1].lex).loc, ">=", EOpGreaterThanEqual, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
if ((yyval.interm.intermTypedNode) == 0)
- (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion(false, (yyvsp[(2) - (3)].lex).loc);
+ (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion(false, (yyvsp[-1].lex).loc);
}
+#line 3650 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 53:
-/* Line 1792 of yacc.c */
-#line 530 "glslang.y"
- { (yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode); }
+#line 530 "MachineIndependent/glslang.y" /* yacc.c:1646 */
+ { (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); }
+#line 3656 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 54:
-/* Line 1792 of yacc.c */
-#line 531 "glslang.y"
+#line 531 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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));
+ parseContext.arrayObjectCheck((yyvsp[-1].lex).loc, (yyvsp[-2].interm.intermTypedNode)->getType(), "array comparison");
+ parseContext.opaqueCheck((yyvsp[-1].lex).loc, (yyvsp[-2].interm.intermTypedNode)->getType(), "==");
+ parseContext.specializationCheck((yyvsp[-1].lex).loc, (yyvsp[-2].interm.intermTypedNode)->getType(), "==");
+ (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[-1].lex).loc, "==", EOpEqual, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
if ((yyval.interm.intermTypedNode) == 0)
- (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion(false, (yyvsp[(2) - (3)].lex).loc);
+ (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion(false, (yyvsp[-1].lex).loc);
}
+#line 3669 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 55:
-/* Line 1792 of yacc.c */
-#line 539 "glslang.y"
+#line 539 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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));
+ parseContext.arrayObjectCheck((yyvsp[-1].lex).loc, (yyvsp[-2].interm.intermTypedNode)->getType(), "array comparison");
+ parseContext.opaqueCheck((yyvsp[-1].lex).loc, (yyvsp[-2].interm.intermTypedNode)->getType(), "!=");
+ parseContext.specializationCheck((yyvsp[-1].lex).loc, (yyvsp[-2].interm.intermTypedNode)->getType(), "!=");
+ (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[-1].lex).loc, "!=", EOpNotEqual, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
if ((yyval.interm.intermTypedNode) == 0)
- (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion(false, (yyvsp[(2) - (3)].lex).loc);
+ (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion(false, (yyvsp[-1].lex).loc);
}
+#line 3682 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 56:
-/* Line 1792 of yacc.c */
-#line 550 "glslang.y"
- { (yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode); }
+#line 550 "MachineIndependent/glslang.y" /* yacc.c:1646 */
+ { (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); }
+#line 3688 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 57:
-/* Line 1792 of yacc.c */
-#line 551 "glslang.y"
+#line 551 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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));
+ parseContext.fullIntegerCheck((yyvsp[-1].lex).loc, "bitwise and");
+ (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[-1].lex).loc, "&", EOpAnd, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
if ((yyval.interm.intermTypedNode) == 0)
- (yyval.interm.intermTypedNode) = (yyvsp[(1) - (3)].interm.intermTypedNode);
+ (yyval.interm.intermTypedNode) = (yyvsp[-2].interm.intermTypedNode);
}
+#line 3699 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 58:
-/* Line 1792 of yacc.c */
-#line 560 "glslang.y"
- { (yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode); }
+#line 560 "MachineIndependent/glslang.y" /* yacc.c:1646 */
+ { (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); }
+#line 3705 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 59:
-/* Line 1792 of yacc.c */
-#line 561 "glslang.y"
+#line 561 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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));
+ parseContext.fullIntegerCheck((yyvsp[-1].lex).loc, "bitwise exclusive or");
+ (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[-1].lex).loc, "^", EOpExclusiveOr, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
if ((yyval.interm.intermTypedNode) == 0)
- (yyval.interm.intermTypedNode) = (yyvsp[(1) - (3)].interm.intermTypedNode);
+ (yyval.interm.intermTypedNode) = (yyvsp[-2].interm.intermTypedNode);
}
+#line 3716 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 60:
-/* Line 1792 of yacc.c */
-#line 570 "glslang.y"
- { (yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode); }
+#line 570 "MachineIndependent/glslang.y" /* yacc.c:1646 */
+ { (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); }
+#line 3722 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 61:
-/* Line 1792 of yacc.c */
-#line 571 "glslang.y"
+#line 571 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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));
+ parseContext.fullIntegerCheck((yyvsp[-1].lex).loc, "bitwise inclusive or");
+ (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[-1].lex).loc, "|", EOpInclusiveOr, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
if ((yyval.interm.intermTypedNode) == 0)
- (yyval.interm.intermTypedNode) = (yyvsp[(1) - (3)].interm.intermTypedNode);
+ (yyval.interm.intermTypedNode) = (yyvsp[-2].interm.intermTypedNode);
}
+#line 3733 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 62:
-/* Line 1792 of yacc.c */
-#line 580 "glslang.y"
- { (yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode); }
+#line 580 "MachineIndependent/glslang.y" /* yacc.c:1646 */
+ { (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); }
+#line 3739 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 63:
-/* Line 1792 of yacc.c */
-#line 581 "glslang.y"
+#line 581 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[(2) - (3)].lex).loc, "&&", EOpLogicalAnd, (yyvsp[(1) - (3)].interm.intermTypedNode), (yyvsp[(3) - (3)].interm.intermTypedNode));
+ (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[-1].lex).loc, "&&", EOpLogicalAnd, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
if ((yyval.interm.intermTypedNode) == 0)
- (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion(false, (yyvsp[(2) - (3)].lex).loc);
+ (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion(false, (yyvsp[-1].lex).loc);
}
+#line 3749 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 64:
-/* Line 1792 of yacc.c */
-#line 589 "glslang.y"
- { (yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode); }
+#line 589 "MachineIndependent/glslang.y" /* yacc.c:1646 */
+ { (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); }
+#line 3755 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 65:
-/* Line 1792 of yacc.c */
-#line 590 "glslang.y"
+#line 590 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[(2) - (3)].lex).loc, "^^", EOpLogicalXor, (yyvsp[(1) - (3)].interm.intermTypedNode), (yyvsp[(3) - (3)].interm.intermTypedNode));
+ (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[-1].lex).loc, "^^", EOpLogicalXor, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
if ((yyval.interm.intermTypedNode) == 0)
- (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion(false, (yyvsp[(2) - (3)].lex).loc);
+ (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion(false, (yyvsp[-1].lex).loc);
}
+#line 3765 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 66:
-/* Line 1792 of yacc.c */
-#line 598 "glslang.y"
- { (yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode); }
+#line 598 "MachineIndependent/glslang.y" /* yacc.c:1646 */
+ { (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); }
+#line 3771 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 67:
-/* Line 1792 of yacc.c */
-#line 599 "glslang.y"
+#line 599 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[(2) - (3)].lex).loc, "||", EOpLogicalOr, (yyvsp[(1) - (3)].interm.intermTypedNode), (yyvsp[(3) - (3)].interm.intermTypedNode));
+ (yyval.interm.intermTypedNode) = parseContext.handleBinaryMath((yyvsp[-1].lex).loc, "||", EOpLogicalOr, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
if ((yyval.interm.intermTypedNode) == 0)
- (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion(false, (yyvsp[(2) - (3)].lex).loc);
+ (yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion(false, (yyvsp[-1].lex).loc);
}
+#line 3781 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 68:
-/* Line 1792 of yacc.c */
-#line 607 "glslang.y"
- { (yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode); }
+#line 607 "MachineIndependent/glslang.y" /* yacc.c:1646 */
+ { (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); }
+#line 3787 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 69:
-/* Line 1792 of yacc.c */
-#line 608 "glslang.y"
+#line 608 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
++parseContext.controlFlowNestingLevel;
}
+#line 3795 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 70:
-/* Line 1792 of yacc.c */
-#line 611 "glslang.y"
+#line 611 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
--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);
+ parseContext.boolCheck((yyvsp[-4].lex).loc, (yyvsp[-5].interm.intermTypedNode));
+ parseContext.rValueErrorCheck((yyvsp[-4].lex).loc, "?", (yyvsp[-5].interm.intermTypedNode));
+ parseContext.rValueErrorCheck((yyvsp[-1].lex).loc, ":", (yyvsp[-2].interm.intermTypedNode));
+ parseContext.rValueErrorCheck((yyvsp[-1].lex).loc, ":", (yyvsp[0].interm.intermTypedNode));
+ (yyval.interm.intermTypedNode) = parseContext.intermediate.addSelection((yyvsp[-5].interm.intermTypedNode), (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode), (yyvsp[-4].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);
+ parseContext.binaryOpError((yyvsp[-4].lex).loc, ":", (yyvsp[-2].interm.intermTypedNode)->getCompleteString(), (yyvsp[0].interm.intermTypedNode)->getCompleteString());
+ (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode);
}
}
+#line 3812 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 71:
-/* Line 1792 of yacc.c */
-#line 626 "glslang.y"
- { (yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode); }
+#line 626 "MachineIndependent/glslang.y" /* yacc.c:1646 */
+ { (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); }
+#line 3818 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 72:
-/* Line 1792 of yacc.c */
-#line 627 "glslang.y"
+#line 627 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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);
+ parseContext.arrayObjectCheck((yyvsp[-1].interm).loc, (yyvsp[-2].interm.intermTypedNode)->getType(), "array assignment");
+ parseContext.opaqueCheck((yyvsp[-1].interm).loc, (yyvsp[-2].interm.intermTypedNode)->getType(), "=");
+ parseContext.specializationCheck((yyvsp[-1].interm).loc, (yyvsp[-2].interm.intermTypedNode)->getType(), "=");
+ parseContext.lValueErrorCheck((yyvsp[-1].interm).loc, "assign", (yyvsp[-2].interm.intermTypedNode));
+ parseContext.rValueErrorCheck((yyvsp[-1].interm).loc, "assign", (yyvsp[0].interm.intermTypedNode));
+ (yyval.interm.intermTypedNode) = parseContext.intermediate.addAssign((yyvsp[-1].interm).op, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode), (yyvsp[-1].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);
+ parseContext.assignError((yyvsp[-1].interm).loc, "assign", (yyvsp[-2].interm.intermTypedNode)->getCompleteString(), (yyvsp[0].interm.intermTypedNode)->getCompleteString());
+ (yyval.interm.intermTypedNode) = (yyvsp[-2].interm.intermTypedNode);
}
}
+#line 3835 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 73:
-/* Line 1792 of yacc.c */
-#line 642 "glslang.y"
+#line 642 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm).loc = (yyvsp[(1) - (1)].lex).loc;
+ (yyval.interm).loc = (yyvsp[0].lex).loc;
(yyval.interm).op = EOpAssign;
}
+#line 3844 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 74:
-/* Line 1792 of yacc.c */
-#line 646 "glslang.y"
+#line 646 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm).loc = (yyvsp[(1) - (1)].lex).loc;
+ (yyval.interm).loc = (yyvsp[0].lex).loc;
(yyval.interm).op = EOpMulAssign;
}
+#line 3853 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 75:
-/* Line 1792 of yacc.c */
-#line 650 "glslang.y"
+#line 650 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm).loc = (yyvsp[(1) - (1)].lex).loc;
+ (yyval.interm).loc = (yyvsp[0].lex).loc;
(yyval.interm).op = EOpDivAssign;
}
+#line 3862 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 76:
-/* Line 1792 of yacc.c */
-#line 654 "glslang.y"
+#line 654 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.fullIntegerCheck((yyvsp[(1) - (1)].lex).loc, "%=");
- (yyval.interm).loc = (yyvsp[(1) - (1)].lex).loc;
+ parseContext.fullIntegerCheck((yyvsp[0].lex).loc, "%=");
+ (yyval.interm).loc = (yyvsp[0].lex).loc;
(yyval.interm).op = EOpModAssign;
}
+#line 3872 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 77:
-/* Line 1792 of yacc.c */
-#line 659 "glslang.y"
+#line 659 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm).loc = (yyvsp[(1) - (1)].lex).loc;
+ (yyval.interm).loc = (yyvsp[0].lex).loc;
(yyval.interm).op = EOpAddAssign;
}
+#line 3881 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 78:
-/* Line 1792 of yacc.c */
-#line 663 "glslang.y"
+#line 663 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm).loc = (yyvsp[(1) - (1)].lex).loc;
+ (yyval.interm).loc = (yyvsp[0].lex).loc;
(yyval.interm).op = EOpSubAssign;
}
+#line 3890 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 79:
-/* Line 1792 of yacc.c */
-#line 667 "glslang.y"
+#line 667 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.fullIntegerCheck((yyvsp[(1) - (1)].lex).loc, "bit-shift left assign");
- (yyval.interm).loc = (yyvsp[(1) - (1)].lex).loc; (yyval.interm).op = EOpLeftShiftAssign;
+ parseContext.fullIntegerCheck((yyvsp[0].lex).loc, "bit-shift left assign");
+ (yyval.interm).loc = (yyvsp[0].lex).loc; (yyval.interm).op = EOpLeftShiftAssign;
}
+#line 3899 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 80:
-/* Line 1792 of yacc.c */
-#line 671 "glslang.y"
+#line 671 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.fullIntegerCheck((yyvsp[(1) - (1)].lex).loc, "bit-shift right assign");
- (yyval.interm).loc = (yyvsp[(1) - (1)].lex).loc; (yyval.interm).op = EOpRightShiftAssign;
+ parseContext.fullIntegerCheck((yyvsp[0].lex).loc, "bit-shift right assign");
+ (yyval.interm).loc = (yyvsp[0].lex).loc; (yyval.interm).op = EOpRightShiftAssign;
}
+#line 3908 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 81:
-/* Line 1792 of yacc.c */
-#line 675 "glslang.y"
+#line 675 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.fullIntegerCheck((yyvsp[(1) - (1)].lex).loc, "bitwise-and assign");
- (yyval.interm).loc = (yyvsp[(1) - (1)].lex).loc; (yyval.interm).op = EOpAndAssign;
+ parseContext.fullIntegerCheck((yyvsp[0].lex).loc, "bitwise-and assign");
+ (yyval.interm).loc = (yyvsp[0].lex).loc; (yyval.interm).op = EOpAndAssign;
}
+#line 3917 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 82:
-/* Line 1792 of yacc.c */
-#line 679 "glslang.y"
+#line 679 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.fullIntegerCheck((yyvsp[(1) - (1)].lex).loc, "bitwise-xor assign");
- (yyval.interm).loc = (yyvsp[(1) - (1)].lex).loc; (yyval.interm).op = EOpExclusiveOrAssign;
+ parseContext.fullIntegerCheck((yyvsp[0].lex).loc, "bitwise-xor assign");
+ (yyval.interm).loc = (yyvsp[0].lex).loc; (yyval.interm).op = EOpExclusiveOrAssign;
}
+#line 3926 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 83:
-/* Line 1792 of yacc.c */
-#line 683 "glslang.y"
+#line 683 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.fullIntegerCheck((yyvsp[(1) - (1)].lex).loc, "bitwise-or assign");
- (yyval.interm).loc = (yyvsp[(1) - (1)].lex).loc; (yyval.interm).op = EOpInclusiveOrAssign;
+ parseContext.fullIntegerCheck((yyvsp[0].lex).loc, "bitwise-or assign");
+ (yyval.interm).loc = (yyvsp[0].lex).loc; (yyval.interm).op = EOpInclusiveOrAssign;
}
+#line 3935 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 84:
-/* Line 1792 of yacc.c */
-#line 690 "glslang.y"
+#line 690 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode);
+ (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode);
}
+#line 3943 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 85:
-/* Line 1792 of yacc.c */
-#line 693 "glslang.y"
+#line 693 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.intermTypedNode) = parseContext.intermediate.addComma((yyvsp[(1) - (3)].interm.intermTypedNode), (yyvsp[(3) - (3)].interm.intermTypedNode), (yyvsp[(2) - (3)].lex).loc);
+ (yyval.interm.intermTypedNode) = parseContext.intermediate.addComma((yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode), (yyvsp[-1].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);
+ parseContext.binaryOpError((yyvsp[-1].lex).loc, ",", (yyvsp[-2].interm.intermTypedNode)->getCompleteString(), (yyvsp[0].interm.intermTypedNode)->getCompleteString());
+ (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode);
}
}
+#line 3955 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 86:
-/* Line 1792 of yacc.c */
-#line 703 "glslang.y"
+#line 703 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.constantValueCheck((yyvsp[(1) - (1)].interm.intermTypedNode), "");
- (yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode);
+ parseContext.constantValueCheck((yyvsp[0].interm.intermTypedNode), "");
+ (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode);
}
+#line 3964 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 87:
-/* Line 1792 of yacc.c */
-#line 710 "glslang.y"
+#line 710 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.handleFunctionDeclarator((yyvsp[(1) - (2)].interm).loc, *(yyvsp[(1) - (2)].interm).function, true /* prototype */);
+ parseContext.handleFunctionDeclarator((yyvsp[-1].interm).loc, *(yyvsp[-1].interm).function, true /* prototype */);
(yyval.interm.intermNode) = 0;
// TODO: 4.0 functionality: subroutines: make the identifier a user type for this signature
}
+#line 3974 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 88:
-/* Line 1792 of yacc.c */
-#line 715 "glslang.y"
+#line 715 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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;
+ if ((yyvsp[-1].interm).intermNode && (yyvsp[-1].interm).intermNode->getAsAggregate())
+ (yyvsp[-1].interm).intermNode->getAsAggregate()->setOperator(EOpSequence);
+ (yyval.interm.intermNode) = (yyvsp[-1].interm).intermNode;
}
+#line 3984 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 89:
-/* Line 1792 of yacc.c */
-#line 720 "glslang.y"
+#line 720 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.profileRequires((yyvsp[(1) - (4)].lex).loc, ENoProfile, 130, 0, "precision statement");
+ parseContext.profileRequires((yyvsp[-3].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);
+ parseContext.setDefaultPrecision((yyvsp[-3].lex).loc, (yyvsp[-1].interm.type), (yyvsp[-2].interm.type).qualifier.precision);
(yyval.interm.intermNode) = 0;
}
+#line 3997 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 90:
-/* Line 1792 of yacc.c */
-#line 728 "glslang.y"
+#line 728 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.declareBlock((yyvsp[(1) - (2)].interm).loc, *(yyvsp[(1) - (2)].interm).typeList);
+ parseContext.declareBlock((yyvsp[-1].interm).loc, *(yyvsp[-1].interm).typeList);
(yyval.interm.intermNode) = 0;
}
+#line 4006 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 91:
-/* Line 1792 of yacc.c */
-#line 732 "glslang.y"
+#line 732 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.declareBlock((yyvsp[(1) - (3)].interm).loc, *(yyvsp[(1) - (3)].interm).typeList, (yyvsp[(2) - (3)].lex).string);
+ parseContext.declareBlock((yyvsp[-2].interm).loc, *(yyvsp[-2].interm).typeList, (yyvsp[-1].lex).string);
(yyval.interm.intermNode) = 0;
}
+#line 4015 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 92:
-/* Line 1792 of yacc.c */
-#line 736 "glslang.y"
+#line 736 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.declareBlock((yyvsp[(1) - (4)].interm).loc, *(yyvsp[(1) - (4)].interm).typeList, (yyvsp[(2) - (4)].lex).string, (yyvsp[(3) - (4)].interm).arraySizes);
+ parseContext.declareBlock((yyvsp[-3].interm).loc, *(yyvsp[-3].interm).typeList, (yyvsp[-2].lex).string, (yyvsp[-1].interm).arraySizes);
(yyval.interm.intermNode) = 0;
}
+#line 4024 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 93:
-/* Line 1792 of yacc.c */
-#line 740 "glslang.y"
+#line 740 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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));
+ parseContext.globalQualifierFixCheck((yyvsp[-1].interm.type).loc, (yyvsp[-1].interm.type).qualifier);
+ parseContext.updateStandaloneQualifierDefaults((yyvsp[-1].interm.type).loc, (yyvsp[-1].interm.type));
(yyval.interm.intermNode) = 0;
}
+#line 4034 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 94:
-/* Line 1792 of yacc.c */
-#line 745 "glslang.y"
+#line 745 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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);
+ parseContext.checkNoShaderLayouts((yyvsp[-2].interm.type).loc, (yyvsp[-2].interm.type).shaderQualifiers);
+ parseContext.addQualifierToExisting((yyvsp[-2].interm.type).loc, (yyvsp[-2].interm.type).qualifier, *(yyvsp[-1].lex).string);
(yyval.interm.intermNode) = 0;
}
+#line 4044 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 95:
-/* Line 1792 of yacc.c */
-#line 750 "glslang.y"
+#line 750 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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));
+ parseContext.checkNoShaderLayouts((yyvsp[-3].interm.type).loc, (yyvsp[-3].interm.type).shaderQualifiers);
+ (yyvsp[-1].interm.identifierList)->push_back((yyvsp[-2].lex).string);
+ parseContext.addQualifierToExisting((yyvsp[-3].interm.type).loc, (yyvsp[-3].interm.type).qualifier, *(yyvsp[-1].interm.identifierList));
(yyval.interm.intermNode) = 0;
}
+#line 4055 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 96:
-/* Line 1792 of yacc.c */
-#line 759 "glslang.y"
- { parseContext.nestedBlockCheck((yyvsp[(1) - (3)].interm.type).loc); }
+#line 759 "MachineIndependent/glslang.y" /* yacc.c:1646 */
+ { parseContext.nestedBlockCheck((yyvsp[-2].interm.type).loc); }
+#line 4061 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 97:
-/* Line 1792 of yacc.c */
-#line 759 "glslang.y"
+#line 759 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
--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);
+ parseContext.blockName = (yyvsp[-4].lex).string;
+ parseContext.globalQualifierFixCheck((yyvsp[-5].interm.type).loc, (yyvsp[-5].interm.type).qualifier);
+ parseContext.checkNoShaderLayouts((yyvsp[-5].interm.type).loc, (yyvsp[-5].interm.type).shaderQualifiers);
+ parseContext.currentBlockQualifier = (yyvsp[-5].interm.type).qualifier;
+ (yyval.interm).loc = (yyvsp[-5].interm.type).loc;
+ (yyval.interm).typeList = (yyvsp[-1].interm.typeList);
}
+#line 4075 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 98:
-/* Line 1792 of yacc.c */
-#line 770 "glslang.y"
+#line 770 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
(yyval.interm.identifierList) = new TIdentifierList;
- (yyval.interm.identifierList)->push_back((yyvsp[(2) - (2)].lex).string);
+ (yyval.interm.identifierList)->push_back((yyvsp[0].lex).string);
}
+#line 4084 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 99:
-/* Line 1792 of yacc.c */
-#line 774 "glslang.y"
+#line 774 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.identifierList) = (yyvsp[(1) - (3)].interm.identifierList);
- (yyval.interm.identifierList)->push_back((yyvsp[(3) - (3)].lex).string);
+ (yyval.interm.identifierList) = (yyvsp[-2].interm.identifierList);
+ (yyval.interm.identifierList)->push_back((yyvsp[0].lex).string);
}
+#line 4093 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 100:
-/* Line 1792 of yacc.c */
-#line 781 "glslang.y"
+#line 781 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm).function = (yyvsp[(1) - (2)].interm.function);
- (yyval.interm).loc = (yyvsp[(2) - (2)].lex).loc;
+ (yyval.interm).function = (yyvsp[-1].interm.function);
+ (yyval.interm).loc = (yyvsp[0].lex).loc;
}
+#line 4102 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 101:
-/* Line 1792 of yacc.c */
-#line 788 "glslang.y"
+#line 788 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.function) = (yyvsp[(1) - (1)].interm.function);
+ (yyval.interm.function) = (yyvsp[0].interm.function);
}
+#line 4110 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 102:
-/* Line 1792 of yacc.c */
-#line 791 "glslang.y"
+#line 791 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.function) = (yyvsp[(1) - (1)].interm.function);
+ (yyval.interm.function) = (yyvsp[0].interm.function);
}
+#line 4118 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 103:
-/* Line 1792 of yacc.c */
-#line 798 "glslang.y"
+#line 798 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
// 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);
+ (yyval.interm.function) = (yyvsp[-1].interm.function);
+ if ((yyvsp[0].interm).param.type->getBasicType() != EbtVoid)
+ (yyvsp[-1].interm.function)->addParameter((yyvsp[0].interm).param);
else
- delete (yyvsp[(2) - (2)].interm).param.type;
+ delete (yyvsp[0].interm).param.type;
}
+#line 4131 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 104:
-/* Line 1792 of yacc.c */
-#line 806 "glslang.y"
+#line 806 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
//
// 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) {
+ if ((yyvsp[0].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;
+ parseContext.error((yyvsp[-1].lex).loc, "cannot be an argument type except for '(void)'", "void", "");
+ delete (yyvsp[0].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);
+ (yyval.interm.function) = (yyvsp[-2].interm.function);
+ (yyvsp[-2].interm.function)->addParameter((yyvsp[0].interm).param);
}
}
+#line 4153 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 105:
-/* Line 1792 of yacc.c */
-#line 826 "glslang.y"
+#line 826 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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[-2].interm.type).qualifier.storage != EvqGlobal && (yyvsp[-2].interm.type).qualifier.storage != EvqTemporary) {
+ parseContext.error((yyvsp[-1].lex).loc, "no qualifiers allowed for function return",
+ GetStorageQualifierString((yyvsp[-2].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);
+ if ((yyvsp[-2].interm.type).arraySizes)
+ parseContext.arraySizeRequiredCheck((yyvsp[-2].interm.type).loc, *(yyvsp[-2].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);
+ TType type((yyvsp[-2].interm.type));
+ function = new TFunction((yyvsp[-1].lex).string, type);
(yyval.interm.function) = function;
}
+#line 4172 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 106:
-/* Line 1792 of yacc.c */
-#line 844 "glslang.y"
+#line 844 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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].interm.type).arraySizes) {
+ parseContext.profileRequires((yyvsp[-1].interm.type).loc, ENoProfile, 120, E_GL_3DL_array_objects, "arrayed type");
+ parseContext.profileRequires((yyvsp[-1].interm.type).loc, EEsProfile, 300, 0, "arrayed type");
+ parseContext.arraySizeRequiredCheck((yyvsp[-1].interm.type).loc, *(yyvsp[-1].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(), "");
+ if ((yyvsp[-1].interm.type).basicType == EbtVoid) {
+ parseContext.error((yyvsp[0].lex).loc, "illegal use of type 'void'", (yyvsp[0].lex).string->c_str(), "");
}
- parseContext.reservedErrorCheck((yyvsp[(2) - (2)].lex).loc, *(yyvsp[(2) - (2)].lex).string);
+ parseContext.reservedErrorCheck((yyvsp[0].lex).loc, *(yyvsp[0].lex).string);
- TParameter param = {(yyvsp[(2) - (2)].lex).string, new TType((yyvsp[(1) - (2)].interm.type))};
- (yyval.interm).loc = (yyvsp[(2) - (2)].lex).loc;
+ TParameter param = {(yyvsp[0].lex).string, new TType((yyvsp[-1].interm.type))};
+ (yyval.interm).loc = (yyvsp[0].lex).loc;
(yyval.interm).param = param;
}
+#line 4192 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 107:
-/* Line 1792 of yacc.c */
-#line 859 "glslang.y"
+#line 859 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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);
+ if ((yyvsp[-2].interm.type).arraySizes) {
+ parseContext.profileRequires((yyvsp[-2].interm.type).loc, ENoProfile, 120, E_GL_3DL_array_objects, "arrayed type");
+ parseContext.profileRequires((yyvsp[-2].interm.type).loc, EEsProfile, 300, 0, "arrayed type");
+ parseContext.arraySizeRequiredCheck((yyvsp[-2].interm.type).loc, *(yyvsp[-2].interm.type).arraySizes);
}
- parseContext.arrayDimCheck((yyvsp[(2) - (3)].lex).loc, (yyvsp[(1) - (3)].interm.type).arraySizes, (yyvsp[(3) - (3)].interm).arraySizes);
+ parseContext.arrayDimCheck((yyvsp[-1].lex).loc, (yyvsp[-2].interm.type).arraySizes, (yyvsp[0].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);
+ parseContext.arraySizeRequiredCheck((yyvsp[0].interm).loc, *(yyvsp[0].interm).arraySizes);
+ parseContext.reservedErrorCheck((yyvsp[-1].lex).loc, *(yyvsp[-1].lex).string);
- (yyvsp[(1) - (3)].interm.type).arraySizes = (yyvsp[(3) - (3)].interm).arraySizes;
+ (yyvsp[-2].interm.type).arraySizes = (yyvsp[0].interm).arraySizes;
- TParameter param = { (yyvsp[(2) - (3)].lex).string, new TType((yyvsp[(1) - (3)].interm.type))};
- (yyval.interm).loc = (yyvsp[(2) - (3)].lex).loc;
+ TParameter param = { (yyvsp[-1].lex).string, new TType((yyvsp[-2].interm.type))};
+ (yyval.interm).loc = (yyvsp[-1].lex).loc;
(yyval.interm).param = param;
}
+#line 4214 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 108:
-/* Line 1792 of yacc.c */
-#line 882 "glslang.y"
+#line 882 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (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;
+ (yyval.interm) = (yyvsp[0].interm);
+ if ((yyvsp[-1].interm.type).qualifier.precision != EpqNone)
+ (yyval.interm).param.type->getQualifier().precision = (yyvsp[-1].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);
+ parseContext.checkNoShaderLayouts((yyvsp[-1].interm.type).loc, (yyvsp[-1].interm.type).shaderQualifiers);
+ parseContext.parameterTypeCheck((yyvsp[0].interm).loc, (yyvsp[-1].interm.type).qualifier.storage, *(yyval.interm).param.type);
+ parseContext.paramCheckFix((yyvsp[-1].interm.type).loc, (yyvsp[-1].interm.type).qualifier, *(yyval.interm).param.type);
}
+#line 4230 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 109:
-/* Line 1792 of yacc.c */
-#line 893 "glslang.y"
+#line 893 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm) = (yyvsp[(1) - (1)].interm);
+ (yyval.interm) = (yyvsp[0].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.parameterTypeCheck((yyvsp[0].interm).loc, EvqIn, *(yyvsp[0].interm).param.type);
+ parseContext.paramCheckFix((yyvsp[0].interm).loc, EvqTemporary, *(yyval.interm).param.type);
parseContext.precisionQualifierCheck((yyval.interm).loc, (yyval.interm).param.type->getBasicType(), (yyval.interm).param.type->getQualifier());
}
+#line 4242 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 110:
-/* Line 1792 of yacc.c */
-#line 903 "glslang.y"
+#line 903 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (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());
+ (yyval.interm) = (yyvsp[0].interm);
+ if ((yyvsp[-1].interm.type).qualifier.precision != EpqNone)
+ (yyval.interm).param.type->getQualifier().precision = (yyvsp[-1].interm.type).qualifier.precision;
+ parseContext.precisionQualifierCheck((yyvsp[-1].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);
+ parseContext.checkNoShaderLayouts((yyvsp[-1].interm.type).loc, (yyvsp[-1].interm.type).shaderQualifiers);
+ parseContext.parameterTypeCheck((yyvsp[0].interm).loc, (yyvsp[-1].interm.type).qualifier.storage, *(yyval.interm).param.type);
+ parseContext.paramCheckFix((yyvsp[-1].interm.type).loc, (yyvsp[-1].interm.type).qualifier, *(yyval.interm).param.type);
}
+#line 4257 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 111:
-/* Line 1792 of yacc.c */
-#line 913 "glslang.y"
+#line 913 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm) = (yyvsp[(1) - (1)].interm);
+ (yyval.interm) = (yyvsp[0].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.parameterTypeCheck((yyvsp[0].interm).loc, EvqIn, *(yyvsp[0].interm).param.type);
+ parseContext.paramCheckFix((yyvsp[0].interm).loc, EvqTemporary, *(yyval.interm).param.type);
parseContext.precisionQualifierCheck((yyval.interm).loc, (yyval.interm).param.type->getBasicType(), (yyval.interm).param.type->getQualifier());
}
+#line 4269 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 112:
-/* Line 1792 of yacc.c */
-#line 923 "glslang.y"
+#line 923 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- TParameter param = { 0, new TType((yyvsp[(1) - (1)].interm.type)) };
+ TParameter param = { 0, new TType((yyvsp[0].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);
+ if ((yyvsp[0].interm.type).arraySizes)
+ parseContext.arraySizeRequiredCheck((yyvsp[0].interm.type).loc, *(yyvsp[0].interm.type).arraySizes);
}
+#line 4280 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 113:
-/* Line 1792 of yacc.c */
-#line 932 "glslang.y"
+#line 932 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm) = (yyvsp[(1) - (1)].interm);
+ (yyval.interm) = (yyvsp[0].interm);
}
+#line 4288 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 114:
-/* Line 1792 of yacc.c */
-#line 935 "glslang.y"
+#line 935 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm) = (yyvsp[(1) - (3)].interm);
- parseContext.declareVariable((yyvsp[(3) - (3)].lex).loc, *(yyvsp[(3) - (3)].lex).string, (yyvsp[(1) - (3)].interm).type);
+ (yyval.interm) = (yyvsp[-2].interm);
+ parseContext.declareVariable((yyvsp[0].lex).loc, *(yyvsp[0].lex).string, (yyvsp[-2].interm).type);
}
+#line 4297 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 115:
-/* Line 1792 of yacc.c */
-#line 939 "glslang.y"
+#line 939 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (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);
+ (yyval.interm) = (yyvsp[-3].interm);
+ parseContext.declareVariable((yyvsp[-1].lex).loc, *(yyvsp[-1].lex).string, (yyvsp[-3].interm).type, (yyvsp[0].interm).arraySizes);
}
+#line 4306 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 116:
-/* Line 1792 of yacc.c */
-#line 943 "glslang.y"
+#line 943 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (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);
+ (yyval.interm).type = (yyvsp[-5].interm).type;
+ TIntermNode* initNode = parseContext.declareVariable((yyvsp[-3].lex).loc, *(yyvsp[-3].lex).string, (yyvsp[-5].interm).type, (yyvsp[-2].interm).arraySizes, (yyvsp[0].interm.intermTypedNode));
+ (yyval.interm).intermNode = parseContext.intermediate.growAggregate((yyvsp[-5].interm).intermNode, initNode, (yyvsp[-1].lex).loc);
}
+#line 4316 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 117:
-/* Line 1792 of yacc.c */
-#line 948 "glslang.y"
+#line 948 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (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);
+ (yyval.interm).type = (yyvsp[-4].interm).type;
+ TIntermNode* initNode = parseContext.declareVariable((yyvsp[-2].lex).loc, *(yyvsp[-2].lex).string, (yyvsp[-4].interm).type, 0, (yyvsp[0].interm.intermTypedNode));
+ (yyval.interm).intermNode = parseContext.intermediate.growAggregate((yyvsp[-4].interm).intermNode, initNode, (yyvsp[-1].lex).loc);
}
+#line 4326 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 118:
-/* Line 1792 of yacc.c */
-#line 956 "glslang.y"
+#line 956 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm).type = (yyvsp[(1) - (1)].interm.type);
+ (yyval.interm).type = (yyvsp[0].interm.type);
(yyval.interm).intermNode = 0;
parseContext.declareTypeDefaults((yyval.interm).loc, (yyval.interm).type);
}
+#line 4336 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 119:
-/* Line 1792 of yacc.c */
-#line 961 "glslang.y"
+#line 961 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm).type = (yyvsp[(1) - (2)].interm.type);
+ (yyval.interm).type = (yyvsp[-1].interm.type);
(yyval.interm).intermNode = 0;
- parseContext.declareVariable((yyvsp[(2) - (2)].lex).loc, *(yyvsp[(2) - (2)].lex).string, (yyvsp[(1) - (2)].interm.type));
+ parseContext.declareVariable((yyvsp[0].lex).loc, *(yyvsp[0].lex).string, (yyvsp[-1].interm.type));
}
+#line 4346 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 120:
-/* Line 1792 of yacc.c */
-#line 966 "glslang.y"
+#line 966 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm).type = (yyvsp[(1) - (3)].interm.type);
+ (yyval.interm).type = (yyvsp[-2].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);
+ parseContext.declareVariable((yyvsp[-1].lex).loc, *(yyvsp[-1].lex).string, (yyvsp[-2].interm.type), (yyvsp[0].interm).arraySizes);
}
+#line 4356 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 121:
-/* Line 1792 of yacc.c */
-#line 971 "glslang.y"
+#line 971 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (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);
+ (yyval.interm).type = (yyvsp[-4].interm.type);
+ TIntermNode* initNode = parseContext.declareVariable((yyvsp[-3].lex).loc, *(yyvsp[-3].lex).string, (yyvsp[-4].interm.type), (yyvsp[-2].interm).arraySizes, (yyvsp[0].interm.intermTypedNode));
+ (yyval.interm).intermNode = parseContext.intermediate.growAggregate(0, initNode, (yyvsp[-1].lex).loc);
}
+#line 4366 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 122:
-/* Line 1792 of yacc.c */
-#line 976 "glslang.y"
+#line 976 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (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);
+ (yyval.interm).type = (yyvsp[-3].interm.type);
+ TIntermNode* initNode = parseContext.declareVariable((yyvsp[-2].lex).loc, *(yyvsp[-2].lex).string, (yyvsp[-3].interm.type), 0, (yyvsp[0].interm.intermTypedNode));
+ (yyval.interm).intermNode = parseContext.intermediate.growAggregate(0, initNode, (yyvsp[-1].lex).loc);
}
+#line 4376 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 123:
-/* Line 1792 of yacc.c */
-#line 985 "glslang.y"
+#line 985 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type) = (yyvsp[(1) - (1)].interm.type);
+ (yyval.interm.type) = (yyvsp[0].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.globalQualifierTypeCheck((yyvsp[0].interm.type).loc, (yyvsp[0].interm.type).qualifier, (yyval.interm.type));
+ if ((yyvsp[0].interm.type).arraySizes) {
+ parseContext.profileRequires((yyvsp[0].interm.type).loc, ENoProfile, 120, E_GL_3DL_array_objects, "arrayed type");
+ parseContext.profileRequires((yyvsp[0].interm.type).loc, EEsProfile, 300, 0, "arrayed type");
}
parseContext.precisionQualifierCheck((yyval.interm.type).loc, (yyval.interm.type).basicType, (yyval.interm.type).qualifier);
}
+#line 4392 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 124:
-/* Line 1792 of yacc.c */
-#line 996 "glslang.y"
+#line 996 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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));
+ parseContext.globalQualifierFixCheck((yyvsp[-1].interm.type).loc, (yyvsp[-1].interm.type).qualifier);
+ parseContext.globalQualifierTypeCheck((yyvsp[-1].interm.type).loc, (yyvsp[-1].interm.type).qualifier, (yyvsp[0].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[0].interm.type).arraySizes) {
+ parseContext.profileRequires((yyvsp[0].interm.type).loc, ENoProfile, 120, E_GL_3DL_array_objects, "arrayed type");
+ parseContext.profileRequires((yyvsp[0].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;
+ if ((yyvsp[0].interm.type).arraySizes && parseContext.arrayQualifierError((yyvsp[0].interm.type).loc, (yyvsp[-1].interm.type).qualifier))
+ (yyvsp[0].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);
+ parseContext.checkNoShaderLayouts((yyvsp[0].interm.type).loc, (yyvsp[-1].interm.type).shaderQualifiers);
+ (yyvsp[0].interm.type).shaderQualifiers.merge((yyvsp[-1].interm.type).shaderQualifiers);
+ parseContext.mergeQualifiers((yyvsp[0].interm.type).loc, (yyvsp[0].interm.type).qualifier, (yyvsp[-1].interm.type).qualifier, true);
+ parseContext.precisionQualifierCheck((yyvsp[0].interm.type).loc, (yyvsp[0].interm.type).basicType, (yyvsp[0].interm.type).qualifier);
- (yyval.interm.type) = (yyvsp[(2) - (2)].interm.type);
+ (yyval.interm.type) = (yyvsp[0].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;
}
+#line 4421 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 125:
-/* Line 1792 of yacc.c */
-#line 1023 "glslang.y"
+#line 1023 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.globalCheck((yyvsp[(1) - (1)].lex).loc, "invariant");
+ parseContext.globalCheck((yyvsp[0].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).init((yyvsp[0].lex).loc);
(yyval.interm.type).qualifier.invariant = true;
}
+#line 4432 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 126:
-/* Line 1792 of yacc.c */
-#line 1032 "glslang.y"
+#line 1032 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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);
+ parseContext.globalCheck((yyvsp[0].lex).loc, "smooth");
+ parseContext.profileRequires((yyvsp[0].lex).loc, ENoProfile, 130, 0, "smooth");
+ parseContext.profileRequires((yyvsp[0].lex).loc, EEsProfile, 300, 0, "smooth");
+ (yyval.interm.type).init((yyvsp[0].lex).loc);
(yyval.interm.type).qualifier.smooth = true;
}
+#line 4444 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 127:
-/* Line 1792 of yacc.c */
-#line 1039 "glslang.y"
+#line 1039 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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);
+ parseContext.globalCheck((yyvsp[0].lex).loc, "flat");
+ parseContext.profileRequires((yyvsp[0].lex).loc, ENoProfile, 130, 0, "flat");
+ parseContext.profileRequires((yyvsp[0].lex).loc, EEsProfile, 300, 0, "flat");
+ (yyval.interm.type).init((yyvsp[0].lex).loc);
(yyval.interm.type).qualifier.flat = true;
}
+#line 4456 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 128:
-/* Line 1792 of yacc.c */
-#line 1046 "glslang.y"
+#line 1046 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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);
+ parseContext.globalCheck((yyvsp[0].lex).loc, "noperspective");
+ parseContext.requireProfile((yyvsp[0].lex).loc, ~EEsProfile, "noperspective");
+ parseContext.profileRequires((yyvsp[0].lex).loc, ENoProfile, 130, 0, "noperspective");
+ (yyval.interm.type).init((yyvsp[0].lex).loc);
(yyval.interm.type).qualifier.nopersp = true;
}
+#line 4468 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 129:
-/* Line 1792 of yacc.c */
-#line 1056 "glslang.y"
+#line 1056 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type) = (yyvsp[(3) - (4)].interm.type);
+ (yyval.interm.type) = (yyvsp[-1].interm.type);
}
+#line 4476 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 130:
-/* Line 1792 of yacc.c */
-#line 1062 "glslang.y"
+#line 1062 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type) = (yyvsp[(1) - (1)].interm.type);
+ (yyval.interm.type) = (yyvsp[0].interm.type);
}
+#line 4484 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 131:
-/* Line 1792 of yacc.c */
-#line 1065 "glslang.y"
+#line 1065 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (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);
+ (yyval.interm.type) = (yyvsp[-2].interm.type);
+ (yyval.interm.type).shaderQualifiers.merge((yyvsp[0].interm.type).shaderQualifiers);
+ parseContext.mergeObjectLayoutQualifiers((yyval.interm.type).qualifier, (yyvsp[0].interm.type).qualifier, false);
}
+#line 4494 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 132:
-/* Line 1792 of yacc.c */
-#line 1072 "glslang.y"
+#line 1072 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
- parseContext.setLayoutQualifier((yyvsp[(1) - (1)].lex).loc, (yyval.interm.type), *(yyvsp[(1) - (1)].lex).string);
+ (yyval.interm.type).init((yyvsp[0].lex).loc);
+ parseContext.setLayoutQualifier((yyvsp[0].lex).loc, (yyval.interm.type), *(yyvsp[0].lex).string);
}
+#line 4503 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 133:
-/* Line 1792 of yacc.c */
-#line 1076 "glslang.y"
+#line 1076 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (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));
+ (yyval.interm.type).init((yyvsp[-2].lex).loc);
+ parseContext.setLayoutQualifier((yyvsp[-2].lex).loc, (yyval.interm.type), *(yyvsp[-2].lex).string, (yyvsp[0].interm.intermTypedNode));
}
+#line 4512 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 134:
-/* Line 1792 of yacc.c */
-#line 1080 "glslang.y"
+#line 1080 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{ // because "shared" is both an identifier and a keyword
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
+ (yyval.interm.type).init((yyvsp[0].lex).loc);
TString strShared("shared");
- parseContext.setLayoutQualifier((yyvsp[(1) - (1)].lex).loc, (yyval.interm.type), strShared);
+ parseContext.setLayoutQualifier((yyvsp[0].lex).loc, (yyval.interm.type), strShared);
}
+#line 4522 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 135:
-/* Line 1792 of yacc.c */
-#line 1088 "glslang.y"
+#line 1088 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
+ (yyval.interm.type).init((yyvsp[0].lex).loc);
}
+#line 4530 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 136:
-/* Line 1792 of yacc.c */
-#line 1094 "glslang.y"
+#line 1094 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type) = (yyvsp[(1) - (1)].interm.type);
+ (yyval.interm.type) = (yyvsp[0].interm.type);
}
+#line 4538 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 137:
-/* Line 1792 of yacc.c */
-#line 1097 "glslang.y"
+#line 1097 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type) = (yyvsp[(1) - (2)].interm.type);
+ (yyval.interm.type) = (yyvsp[-1].interm.type);
if ((yyval.interm.type).basicType == EbtVoid)
- (yyval.interm.type).basicType = (yyvsp[(2) - (2)].interm.type).basicType;
+ (yyval.interm.type).basicType = (yyvsp[0].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);
+ (yyval.interm.type).shaderQualifiers.merge((yyvsp[0].interm.type).shaderQualifiers);
+ parseContext.mergeQualifiers((yyval.interm.type).loc, (yyval.interm.type).qualifier, (yyvsp[0].interm.type).qualifier, false);
}
+#line 4551 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 138:
-/* Line 1792 of yacc.c */
-#line 1108 "glslang.y"
+#line 1108 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type) = (yyvsp[(1) - (1)].interm.type);
+ (yyval.interm.type) = (yyvsp[0].interm.type);
}
+#line 4559 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 139:
-/* Line 1792 of yacc.c */
-#line 1111 "glslang.y"
+#line 1111 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type) = (yyvsp[(1) - (1)].interm.type);
+ (yyval.interm.type) = (yyvsp[0].interm.type);
}
+#line 4567 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 140:
-/* Line 1792 of yacc.c */
-#line 1114 "glslang.y"
+#line 1114 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type) = (yyvsp[(1) - (1)].interm.type);
+ (yyval.interm.type) = (yyvsp[0].interm.type);
}
+#line 4575 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 141:
-/* Line 1792 of yacc.c */
-#line 1117 "glslang.y"
+#line 1117 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
// allow inheritance of storage qualifier from block declaration
- (yyval.interm.type) = (yyvsp[(1) - (1)].interm.type);
+ (yyval.interm.type) = (yyvsp[0].interm.type);
}
+#line 4584 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 142:
-/* Line 1792 of yacc.c */
-#line 1121 "glslang.y"
+#line 1121 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
// allow inheritance of storage qualifier from block declaration
- (yyval.interm.type) = (yyvsp[(1) - (1)].interm.type);
+ (yyval.interm.type) = (yyvsp[0].interm.type);
}
+#line 4593 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 143:
-/* Line 1792 of yacc.c */
-#line 1125 "glslang.y"
+#line 1125 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
// allow inheritance of storage qualifier from block declaration
- (yyval.interm.type) = (yyvsp[(1) - (1)].interm.type);
+ (yyval.interm.type) = (yyvsp[0].interm.type);
}
+#line 4602 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 144:
-/* Line 1792 of yacc.c */
-#line 1132 "glslang.y"
+#line 1132 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
+ (yyval.interm.type).init((yyvsp[0].lex).loc);
(yyval.interm.type).qualifier.storage = EvqConst; // will later turn into EvqConstReadOnly, if the initializer is not constant
}
+#line 4611 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 145:
-/* Line 1792 of yacc.c */
-#line 1136 "glslang.y"
+#line 1136 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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.requireStage((yyvsp[0].lex).loc, EShLangVertex, "attribute");
+ parseContext.checkDeprecated((yyvsp[0].lex).loc, ECoreProfile, 130, "attribute");
+ parseContext.checkDeprecated((yyvsp[0].lex).loc, ENoProfile, 130, "attribute");
+ parseContext.requireNotRemoved((yyvsp[0].lex).loc, ECoreProfile, 420, "attribute");
+ parseContext.requireNotRemoved((yyvsp[0].lex).loc, EEsProfile, 300, "attribute");
- parseContext.globalCheck((yyvsp[(1) - (1)].lex).loc, "attribute");
+ parseContext.globalCheck((yyvsp[0].lex).loc, "attribute");
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
+ (yyval.interm.type).init((yyvsp[0].lex).loc);
(yyval.interm.type).qualifier.storage = EvqVaryingIn;
}
+#line 4628 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 146:
-/* Line 1792 of yacc.c */
-#line 1148 "glslang.y"
+#line 1148 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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.checkDeprecated((yyvsp[0].lex).loc, ENoProfile, 130, "varying");
+ parseContext.checkDeprecated((yyvsp[0].lex).loc, ECoreProfile, 130, "varying");
+ parseContext.requireNotRemoved((yyvsp[0].lex).loc, ECoreProfile, 420, "varying");
+ parseContext.requireNotRemoved((yyvsp[0].lex).loc, EEsProfile, 300, "varying");
- parseContext.globalCheck((yyvsp[(1) - (1)].lex).loc, "varying");
+ parseContext.globalCheck((yyvsp[0].lex).loc, "varying");
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
+ (yyval.interm.type).init((yyvsp[0].lex).loc);
if (parseContext.language == EShLangVertex)
(yyval.interm.type).qualifier.storage = EvqVaryingOut;
else
(yyval.interm.type).qualifier.storage = EvqVaryingIn;
}
+#line 4647 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 147:
-/* Line 1792 of yacc.c */
-#line 1162 "glslang.y"
+#line 1162 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.globalCheck((yyvsp[(1) - (1)].lex).loc, "inout");
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
+ parseContext.globalCheck((yyvsp[0].lex).loc, "inout");
+ (yyval.interm.type).init((yyvsp[0].lex).loc);
(yyval.interm.type).qualifier.storage = EvqInOut;
}
+#line 4657 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 148:
-/* Line 1792 of yacc.c */
-#line 1167 "glslang.y"
+#line 1167 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.globalCheck((yyvsp[(1) - (1)].lex).loc, "in");
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
+ parseContext.globalCheck((yyvsp[0].lex).loc, "in");
+ (yyval.interm.type).init((yyvsp[0].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;
}
+#line 4668 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 149:
-/* Line 1792 of yacc.c */
-#line 1173 "glslang.y"
+#line 1173 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.globalCheck((yyvsp[(1) - (1)].lex).loc, "out");
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
+ parseContext.globalCheck((yyvsp[0].lex).loc, "out");
+ (yyval.interm.type).init((yyvsp[0].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;
}
+#line 4679 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 150:
-/* Line 1792 of yacc.c */
-#line 1179 "glslang.y"
+#line 1179 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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);
+ parseContext.profileRequires((yyvsp[0].lex).loc, ENoProfile, 120, 0, "centroid");
+ parseContext.profileRequires((yyvsp[0].lex).loc, EEsProfile, 300, 0, "centroid");
+ parseContext.globalCheck((yyvsp[0].lex).loc, "centroid");
+ (yyval.interm.type).init((yyvsp[0].lex).loc);
(yyval.interm.type).qualifier.centroid = true;
}
+#line 4691 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 151:
-/* Line 1792 of yacc.c */
-#line 1186 "glslang.y"
+#line 1186 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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);
+ parseContext.globalCheck((yyvsp[0].lex).loc, "patch");
+ parseContext.requireStage((yyvsp[0].lex).loc, (EShLanguageMask)(EShLangTessControlMask | EShLangTessEvaluationMask), "patch");
+ (yyval.interm.type).init((yyvsp[0].lex).loc);
(yyval.interm.type).qualifier.patch = true;
}
+#line 4702 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 152:
-/* Line 1792 of yacc.c */
-#line 1192 "glslang.y"
+#line 1192 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.globalCheck((yyvsp[(1) - (1)].lex).loc, "sample");
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
+ parseContext.globalCheck((yyvsp[0].lex).loc, "sample");
+ (yyval.interm.type).init((yyvsp[0].lex).loc);
(yyval.interm.type).qualifier.sample = true;
}
+#line 4712 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 153:
-/* Line 1792 of yacc.c */
-#line 1197 "glslang.y"
+#line 1197 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.globalCheck((yyvsp[(1) - (1)].lex).loc, "uniform");
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
+ parseContext.globalCheck((yyvsp[0].lex).loc, "uniform");
+ (yyval.interm.type).init((yyvsp[0].lex).loc);
(yyval.interm.type).qualifier.storage = EvqUniform;
}
+#line 4722 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 154:
-/* Line 1792 of yacc.c */
-#line 1202 "glslang.y"
+#line 1202 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.globalCheck((yyvsp[(1) - (1)].lex).loc, "buffer");
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
+ parseContext.globalCheck((yyvsp[0].lex).loc, "buffer");
+ (yyval.interm.type).init((yyvsp[0].lex).loc);
(yyval.interm.type).qualifier.storage = EvqBuffer;
}
+#line 4732 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 155:
-/* Line 1792 of yacc.c */
-#line 1207 "glslang.y"
+#line 1207 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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);
+ parseContext.profileRequires((yyvsp[0].lex).loc, ECoreProfile | ECompatibilityProfile, 430, 0, "shared");
+ parseContext.profileRequires((yyvsp[0].lex).loc, EEsProfile, 310, 0, "shared");
+ parseContext.requireStage((yyvsp[0].lex).loc, EShLangCompute, "shared");
+ (yyval.interm.type).init((yyvsp[0].lex).loc);
(yyval.interm.type).qualifier.storage = EvqShared;
}
+#line 4744 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 156:
-/* Line 1792 of yacc.c */
-#line 1214 "glslang.y"
+#line 1214 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
+ (yyval.interm.type).init((yyvsp[0].lex).loc);
(yyval.interm.type).qualifier.coherent = true;
}
+#line 4753 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 157:
-/* Line 1792 of yacc.c */
-#line 1218 "glslang.y"
+#line 1218 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
+ (yyval.interm.type).init((yyvsp[0].lex).loc);
(yyval.interm.type).qualifier.volatil = true;
}
+#line 4762 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 158:
-/* Line 1792 of yacc.c */
-#line 1222 "glslang.y"
+#line 1222 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
+ (yyval.interm.type).init((yyvsp[0].lex).loc);
(yyval.interm.type).qualifier.restrict = true;
}
+#line 4771 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 159:
-/* Line 1792 of yacc.c */
-#line 1226 "glslang.y"
+#line 1226 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
+ (yyval.interm.type).init((yyvsp[0].lex).loc);
(yyval.interm.type).qualifier.readonly = true;
}
+#line 4780 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 160:
-/* Line 1792 of yacc.c */
-#line 1230 "glslang.y"
+#line 1230 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc);
+ (yyval.interm.type).init((yyvsp[0].lex).loc);
(yyval.interm.type).qualifier.writeonly = true;
}
+#line 4789 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 161:
-/* Line 1792 of yacc.c */
-#line 1234 "glslang.y"
+#line 1234 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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);
+ parseContext.spvRemoved((yyvsp[0].lex).loc, "subroutine");
+ parseContext.globalCheck((yyvsp[0].lex).loc, "subroutine");
+ (yyval.interm.type).init((yyvsp[0].lex).loc);
(yyval.interm.type).qualifier.storage = EvqUniform;
}
+#line 4800 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 162:
-/* Line 1792 of yacc.c */
-#line 1240 "glslang.y"
+#line 1240 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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);
+ parseContext.spvRemoved((yyvsp[-3].lex).loc, "subroutine");
+ parseContext.globalCheck((yyvsp[-3].lex).loc, "subroutine");
+ (yyval.interm.type).init((yyvsp[-3].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
}
+#line 4814 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 163:
-/* Line 1792 of yacc.c */
-#line 1252 "glslang.y"
+#line 1252 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
// TODO: 4.0 functionality: subroutine type to list
}
+#line 4822 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 164:
-/* Line 1792 of yacc.c */
-#line 1255 "glslang.y"
+#line 1255 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
}
+#line 4829 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 165:
-/* Line 1792 of yacc.c */
-#line 1260 "glslang.y"
+#line 1260 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type) = (yyvsp[(1) - (1)].interm.type);
+ (yyval.interm.type) = (yyvsp[0].interm.type);
(yyval.interm.type).qualifier.precision = parseContext.getDefaultPrecision((yyval.interm.type));
}
+#line 4838 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 166:
-/* Line 1792 of yacc.c */
-#line 1264 "glslang.y"
+#line 1264 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.arrayDimCheck((yyvsp[(2) - (2)].interm).loc, (yyvsp[(2) - (2)].interm).arraySizes, 0);
- (yyval.interm.type) = (yyvsp[(1) - (2)].interm.type);
+ parseContext.arrayDimCheck((yyvsp[0].interm).loc, (yyvsp[0].interm).arraySizes, 0);
+ (yyval.interm.type) = (yyvsp[-1].interm.type);
(yyval.interm.type).qualifier.precision = parseContext.getDefaultPrecision((yyval.interm.type));
- (yyval.interm.type).arraySizes = (yyvsp[(2) - (2)].interm).arraySizes;
+ (yyval.interm.type).arraySizes = (yyvsp[0].interm).arraySizes;
}
+#line 4849 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 167:
-/* Line 1792 of yacc.c */
-#line 1273 "glslang.y"
+#line 1273 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm).loc = (yyvsp[(1) - (2)].lex).loc;
+ (yyval.interm).loc = (yyvsp[-1].lex).loc;
(yyval.interm).arraySizes = new TArraySizes;
(yyval.interm).arraySizes->addInnerSize();
}
+#line 4859 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 168:
-/* Line 1792 of yacc.c */
-#line 1278 "glslang.y"
+#line 1278 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm).loc = (yyvsp[(1) - (3)].lex).loc;
+ (yyval.interm).loc = (yyvsp[-2].lex).loc;
(yyval.interm).arraySizes = new TArraySizes;
TArraySize size;
- parseContext.arraySizeCheck((yyvsp[(2) - (3)].interm.intermTypedNode)->getLoc(), (yyvsp[(2) - (3)].interm.intermTypedNode), size);
+ parseContext.arraySizeCheck((yyvsp[-1].interm.intermTypedNode)->getLoc(), (yyvsp[-1].interm.intermTypedNode), size);
(yyval.interm).arraySizes->addInnerSize(size);
}
+#line 4872 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 169:
-/* Line 1792 of yacc.c */
-#line 1286 "glslang.y"
+#line 1286 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm) = (yyvsp[(1) - (3)].interm);
+ (yyval.interm) = (yyvsp[-2].interm);
(yyval.interm).arraySizes->addInnerSize();
}
+#line 4881 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 170:
-/* Line 1792 of yacc.c */
-#line 1290 "glslang.y"
+#line 1290 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm) = (yyvsp[(1) - (4)].interm);
+ (yyval.interm) = (yyvsp[-3].interm);
TArraySize size;
- parseContext.arraySizeCheck((yyvsp[(3) - (4)].interm.intermTypedNode)->getLoc(), (yyvsp[(3) - (4)].interm.intermTypedNode), size);
+ parseContext.arraySizeCheck((yyvsp[-1].interm.intermTypedNode)->getLoc(), (yyvsp[-1].interm.intermTypedNode), size);
(yyval.interm).arraySizes->addInnerSize(size);
}
+#line 4893 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 171:
-/* Line 1792 of yacc.c */
-#line 1300 "glslang.y"
+#line 1300 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtVoid;
}
+#line 4902 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 172:
-/* Line 1792 of yacc.c */
-#line 1304 "glslang.y"
+#line 1304 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtFloat;
}
+#line 4911 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 173:
-/* Line 1792 of yacc.c */
-#line 1308 "glslang.y"
+#line 1308 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.doubleCheck((yyvsp[(1) - (1)].lex).loc, "double");
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ parseContext.doubleCheck((yyvsp[0].lex).loc, "double");
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtDouble;
}
+#line 4921 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 174:
-/* Line 1792 of yacc.c */
-#line 1313 "glslang.y"
+#line 1313 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtInt;
}
+#line 4930 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 175:
-/* Line 1792 of yacc.c */
-#line 1317 "glslang.y"
+#line 1317 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.fullIntegerCheck((yyvsp[(1) - (1)].lex).loc, "unsigned integer");
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ parseContext.fullIntegerCheck((yyvsp[0].lex).loc, "unsigned integer");
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtUint;
}
+#line 4940 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 176:
-/* Line 1792 of yacc.c */
-#line 1322 "glslang.y"
+#line 1322 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.int64Check((yyvsp[(1) - (1)].lex).loc, "64-bit integer", parseContext.symbolTable.atBuiltInLevel());
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ parseContext.int64Check((yyvsp[0].lex).loc, "64-bit integer", parseContext.symbolTable.atBuiltInLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtInt64;
}
+#line 4950 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 177:
-/* Line 1792 of yacc.c */
-#line 1327 "glslang.y"
+#line 1327 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.int64Check((yyvsp[(1) - (1)].lex).loc, "64-bit unsigned integer", parseContext.symbolTable.atBuiltInLevel());
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ parseContext.int64Check((yyvsp[0].lex).loc, "64-bit unsigned integer", parseContext.symbolTable.atBuiltInLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtUint64;
}
+#line 4960 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 178:
-/* Line 1792 of yacc.c */
-#line 1332 "glslang.y"
+#line 1332 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtBool;
}
+#line 4969 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 179:
-/* Line 1792 of yacc.c */
-#line 1336 "glslang.y"
+#line 1336 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtFloat;
(yyval.interm.type).setVector(2);
}
+#line 4979 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 180:
-/* Line 1792 of yacc.c */
-#line 1341 "glslang.y"
+#line 1341 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtFloat;
(yyval.interm.type).setVector(3);
}
+#line 4989 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 181:
-/* Line 1792 of yacc.c */
-#line 1346 "glslang.y"
+#line 1346 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtFloat;
(yyval.interm.type).setVector(4);
}
+#line 4999 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 182:
-/* Line 1792 of yacc.c */
-#line 1351 "glslang.y"
+#line 1351 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.doubleCheck((yyvsp[(1) - (1)].lex).loc, "double vector");
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ parseContext.doubleCheck((yyvsp[0].lex).loc, "double vector");
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtDouble;
(yyval.interm.type).setVector(2);
}
+#line 5010 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 183:
-/* Line 1792 of yacc.c */
-#line 1357 "glslang.y"
+#line 1357 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.doubleCheck((yyvsp[(1) - (1)].lex).loc, "double vector");
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ parseContext.doubleCheck((yyvsp[0].lex).loc, "double vector");
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtDouble;
(yyval.interm.type).setVector(3);
}
+#line 5021 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 184:
-/* Line 1792 of yacc.c */
-#line 1363 "glslang.y"
+#line 1363 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.doubleCheck((yyvsp[(1) - (1)].lex).loc, "double vector");
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ parseContext.doubleCheck((yyvsp[0].lex).loc, "double vector");
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtDouble;
(yyval.interm.type).setVector(4);
}
+#line 5032 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 185:
-/* Line 1792 of yacc.c */
-#line 1369 "glslang.y"
+#line 1369 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtBool;
(yyval.interm.type).setVector(2);
}
+#line 5042 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 186:
-/* Line 1792 of yacc.c */
-#line 1374 "glslang.y"
+#line 1374 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtBool;
(yyval.interm.type).setVector(3);
}
+#line 5052 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 187:
-/* Line 1792 of yacc.c */
-#line 1379 "glslang.y"
+#line 1379 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtBool;
(yyval.interm.type).setVector(4);
}
+#line 5062 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 188:
-/* Line 1792 of yacc.c */
-#line 1384 "glslang.y"
+#line 1384 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtInt;
(yyval.interm.type).setVector(2);
}
+#line 5072 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 189:
-/* Line 1792 of yacc.c */
-#line 1389 "glslang.y"
+#line 1389 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtInt;
(yyval.interm.type).setVector(3);
}
+#line 5082 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 190:
-/* Line 1792 of yacc.c */
-#line 1394 "glslang.y"
+#line 1394 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtInt;
(yyval.interm.type).setVector(4);
}
+#line 5092 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 191:
-/* Line 1792 of yacc.c */
-#line 1399 "glslang.y"
+#line 1399 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.int64Check((yyvsp[(1) - (1)].lex).loc, "64-bit integer vector", parseContext.symbolTable.atBuiltInLevel());
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ parseContext.int64Check((yyvsp[0].lex).loc, "64-bit integer vector", parseContext.symbolTable.atBuiltInLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtInt64;
(yyval.interm.type).setVector(2);
}
+#line 5103 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 192:
-/* Line 1792 of yacc.c */
-#line 1405 "glslang.y"
+#line 1405 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.int64Check((yyvsp[(1) - (1)].lex).loc, "64-bit integer vector", parseContext.symbolTable.atBuiltInLevel());
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ parseContext.int64Check((yyvsp[0].lex).loc, "64-bit integer vector", parseContext.symbolTable.atBuiltInLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtInt64;
(yyval.interm.type).setVector(3);
}
+#line 5114 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 193:
-/* Line 1792 of yacc.c */
-#line 1411 "glslang.y"
+#line 1411 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.int64Check((yyvsp[(1) - (1)].lex).loc, "64-bit integer vector", parseContext.symbolTable.atBuiltInLevel());
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ parseContext.int64Check((yyvsp[0].lex).loc, "64-bit integer vector", parseContext.symbolTable.atBuiltInLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtInt64;
(yyval.interm.type).setVector(4);
}
+#line 5125 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 194:
-/* Line 1792 of yacc.c */
-#line 1417 "glslang.y"
+#line 1417 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.fullIntegerCheck((yyvsp[(1) - (1)].lex).loc, "unsigned integer vector");
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ parseContext.fullIntegerCheck((yyvsp[0].lex).loc, "unsigned integer vector");
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtUint;
(yyval.interm.type).setVector(2);
}
+#line 5136 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 195:
-/* Line 1792 of yacc.c */
-#line 1423 "glslang.y"
+#line 1423 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.fullIntegerCheck((yyvsp[(1) - (1)].lex).loc, "unsigned integer vector");
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ parseContext.fullIntegerCheck((yyvsp[0].lex).loc, "unsigned integer vector");
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtUint;
(yyval.interm.type).setVector(3);
}
+#line 5147 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 196:
-/* Line 1792 of yacc.c */
-#line 1429 "glslang.y"
+#line 1429 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.fullIntegerCheck((yyvsp[(1) - (1)].lex).loc, "unsigned integer vector");
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ parseContext.fullIntegerCheck((yyvsp[0].lex).loc, "unsigned integer vector");
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtUint;
(yyval.interm.type).setVector(4);
}
+#line 5158 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 197:
-/* Line 1792 of yacc.c */
-#line 1435 "glslang.y"
+#line 1435 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.int64Check((yyvsp[(1) - (1)].lex).loc, "64-bit unsigned integer vector", parseContext.symbolTable.atBuiltInLevel());
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ parseContext.int64Check((yyvsp[0].lex).loc, "64-bit unsigned integer vector", parseContext.symbolTable.atBuiltInLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtUint64;
(yyval.interm.type).setVector(2);
}
+#line 5169 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 198:
-/* Line 1792 of yacc.c */
-#line 1441 "glslang.y"
+#line 1441 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.int64Check((yyvsp[(1) - (1)].lex).loc, "64-bit unsigned integer vector", parseContext.symbolTable.atBuiltInLevel());
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ parseContext.int64Check((yyvsp[0].lex).loc, "64-bit unsigned integer vector", parseContext.symbolTable.atBuiltInLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtUint64;
(yyval.interm.type).setVector(3);
}
+#line 5180 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 199:
-/* Line 1792 of yacc.c */
-#line 1447 "glslang.y"
+#line 1447 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.int64Check((yyvsp[(1) - (1)].lex).loc, "64-bit unsigned integer vector", parseContext.symbolTable.atBuiltInLevel());
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ parseContext.int64Check((yyvsp[0].lex).loc, "64-bit unsigned integer vector", parseContext.symbolTable.atBuiltInLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtUint64;
(yyval.interm.type).setVector(4);
}
+#line 5191 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 200:
-/* Line 1792 of yacc.c */
-#line 1453 "glslang.y"
+#line 1453 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtFloat;
(yyval.interm.type).setMatrix(2, 2);
}
+#line 5201 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 201:
-/* Line 1792 of yacc.c */
-#line 1458 "glslang.y"
+#line 1458 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtFloat;
(yyval.interm.type).setMatrix(3, 3);
}
+#line 5211 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 202:
-/* Line 1792 of yacc.c */
-#line 1463 "glslang.y"
+#line 1463 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtFloat;
(yyval.interm.type).setMatrix(4, 4);
}
+#line 5221 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 203:
-/* Line 1792 of yacc.c */
-#line 1468 "glslang.y"
+#line 1468 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtFloat;
(yyval.interm.type).setMatrix(2, 2);
}
+#line 5231 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 204:
-/* Line 1792 of yacc.c */
-#line 1473 "glslang.y"
+#line 1473 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtFloat;
(yyval.interm.type).setMatrix(2, 3);
}
+#line 5241 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 205:
-/* Line 1792 of yacc.c */
-#line 1478 "glslang.y"
+#line 1478 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtFloat;
(yyval.interm.type).setMatrix(2, 4);
}
+#line 5251 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 206:
-/* Line 1792 of yacc.c */
-#line 1483 "glslang.y"
+#line 1483 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtFloat;
(yyval.interm.type).setMatrix(3, 2);
}
+#line 5261 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 207:
-/* Line 1792 of yacc.c */
-#line 1488 "glslang.y"
+#line 1488 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtFloat;
(yyval.interm.type).setMatrix(3, 3);
}
+#line 5271 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 208:
-/* Line 1792 of yacc.c */
-#line 1493 "glslang.y"
+#line 1493 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtFloat;
(yyval.interm.type).setMatrix(3, 4);
}
+#line 5281 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 209:
-/* Line 1792 of yacc.c */
-#line 1498 "glslang.y"
+#line 1498 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtFloat;
(yyval.interm.type).setMatrix(4, 2);
}
+#line 5291 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 210:
-/* Line 1792 of yacc.c */
-#line 1503 "glslang.y"
+#line 1503 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtFloat;
(yyval.interm.type).setMatrix(4, 3);
}
+#line 5301 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 211:
-/* Line 1792 of yacc.c */
-#line 1508 "glslang.y"
+#line 1508 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtFloat;
(yyval.interm.type).setMatrix(4, 4);
}
+#line 5311 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 212:
-/* Line 1792 of yacc.c */
-#line 1513 "glslang.y"
+#line 1513 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.doubleCheck((yyvsp[(1) - (1)].lex).loc, "double matrix");
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ parseContext.doubleCheck((yyvsp[0].lex).loc, "double matrix");
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtDouble;
(yyval.interm.type).setMatrix(2, 2);
}
+#line 5322 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 213:
-/* Line 1792 of yacc.c */
-#line 1519 "glslang.y"
+#line 1519 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.doubleCheck((yyvsp[(1) - (1)].lex).loc, "double matrix");
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ parseContext.doubleCheck((yyvsp[0].lex).loc, "double matrix");
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtDouble;
(yyval.interm.type).setMatrix(3, 3);
}
+#line 5333 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 214:
-/* Line 1792 of yacc.c */
-#line 1525 "glslang.y"
+#line 1525 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.doubleCheck((yyvsp[(1) - (1)].lex).loc, "double matrix");
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ parseContext.doubleCheck((yyvsp[0].lex).loc, "double matrix");
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtDouble;
(yyval.interm.type).setMatrix(4, 4);
}
+#line 5344 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 215:
-/* Line 1792 of yacc.c */
-#line 1531 "glslang.y"
+#line 1531 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.doubleCheck((yyvsp[(1) - (1)].lex).loc, "double matrix");
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ parseContext.doubleCheck((yyvsp[0].lex).loc, "double matrix");
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtDouble;
(yyval.interm.type).setMatrix(2, 2);
}
+#line 5355 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 216:
-/* Line 1792 of yacc.c */
-#line 1537 "glslang.y"
+#line 1537 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.doubleCheck((yyvsp[(1) - (1)].lex).loc, "double matrix");
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ parseContext.doubleCheck((yyvsp[0].lex).loc, "double matrix");
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtDouble;
(yyval.interm.type).setMatrix(2, 3);
}
+#line 5366 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 217:
-/* Line 1792 of yacc.c */
-#line 1543 "glslang.y"
+#line 1543 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.doubleCheck((yyvsp[(1) - (1)].lex).loc, "double matrix");
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ parseContext.doubleCheck((yyvsp[0].lex).loc, "double matrix");
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtDouble;
(yyval.interm.type).setMatrix(2, 4);
}
+#line 5377 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 218:
-/* Line 1792 of yacc.c */
-#line 1549 "glslang.y"
+#line 1549 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.doubleCheck((yyvsp[(1) - (1)].lex).loc, "double matrix");
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ parseContext.doubleCheck((yyvsp[0].lex).loc, "double matrix");
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtDouble;
(yyval.interm.type).setMatrix(3, 2);
}
+#line 5388 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 219:
-/* Line 1792 of yacc.c */
-#line 1555 "glslang.y"
+#line 1555 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.doubleCheck((yyvsp[(1) - (1)].lex).loc, "double matrix");
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ parseContext.doubleCheck((yyvsp[0].lex).loc, "double matrix");
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtDouble;
(yyval.interm.type).setMatrix(3, 3);
}
+#line 5399 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 220:
-/* Line 1792 of yacc.c */
-#line 1561 "glslang.y"
+#line 1561 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.doubleCheck((yyvsp[(1) - (1)].lex).loc, "double matrix");
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ parseContext.doubleCheck((yyvsp[0].lex).loc, "double matrix");
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtDouble;
(yyval.interm.type).setMatrix(3, 4);
}
+#line 5410 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 221:
-/* Line 1792 of yacc.c */
-#line 1567 "glslang.y"
+#line 1567 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.doubleCheck((yyvsp[(1) - (1)].lex).loc, "double matrix");
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ parseContext.doubleCheck((yyvsp[0].lex).loc, "double matrix");
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtDouble;
(yyval.interm.type).setMatrix(4, 2);
}
+#line 5421 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 222:
-/* Line 1792 of yacc.c */
-#line 1573 "glslang.y"
+#line 1573 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.doubleCheck((yyvsp[(1) - (1)].lex).loc, "double matrix");
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ parseContext.doubleCheck((yyvsp[0].lex).loc, "double matrix");
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtDouble;
(yyval.interm.type).setMatrix(4, 3);
}
+#line 5432 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 223:
-/* Line 1792 of yacc.c */
-#line 1579 "glslang.y"
+#line 1579 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.doubleCheck((yyvsp[(1) - (1)].lex).loc, "double matrix");
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ parseContext.doubleCheck((yyvsp[0].lex).loc, "double matrix");
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtDouble;
(yyval.interm.type).setMatrix(4, 4);
}
+#line 5443 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 224:
-/* Line 1792 of yacc.c */
-#line 1585 "glslang.y"
+#line 1585 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.vulkanRemoved((yyvsp[(1) - (1)].lex).loc, "atomic counter types");
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ parseContext.vulkanRemoved((yyvsp[0].lex).loc, "atomic counter types");
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtAtomicUint;
}
+#line 5453 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 225:
-/* Line 1792 of yacc.c */
-#line 1590 "glslang.y"
+#line 1590 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtFloat, Esd1D);
}
+#line 5463 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 226:
-/* Line 1792 of yacc.c */
-#line 1595 "glslang.y"
+#line 1595 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtFloat, Esd2D);
}
+#line 5473 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 227:
-/* Line 1792 of yacc.c */
-#line 1600 "glslang.y"
+#line 1600 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtFloat, Esd3D);
}
+#line 5483 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 228:
-/* Line 1792 of yacc.c */
-#line 1605 "glslang.y"
+#line 1605 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtFloat, EsdCube);
}
+#line 5493 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 229:
-/* Line 1792 of yacc.c */
-#line 1610 "glslang.y"
+#line 1610 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtFloat, Esd1D, false, true);
}
+#line 5503 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 230:
-/* Line 1792 of yacc.c */
-#line 1615 "glslang.y"
+#line 1615 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtFloat, Esd2D, false, true);
}
+#line 5513 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 231:
-/* Line 1792 of yacc.c */
-#line 1620 "glslang.y"
+#line 1620 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtFloat, EsdCube, false, true);
}
+#line 5523 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 232:
-/* Line 1792 of yacc.c */
-#line 1625 "glslang.y"
+#line 1625 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtFloat, Esd1D, true);
}
+#line 5533 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 233:
-/* Line 1792 of yacc.c */
-#line 1630 "glslang.y"
+#line 1630 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtFloat, Esd2D, true);
}
+#line 5543 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 234:
-/* Line 1792 of yacc.c */
-#line 1635 "glslang.y"
+#line 1635 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtFloat, Esd1D, true, true);
}
+#line 5553 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 235:
-/* Line 1792 of yacc.c */
-#line 1640 "glslang.y"
+#line 1640 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtFloat, Esd2D, true, true);
}
+#line 5563 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 236:
-/* Line 1792 of yacc.c */
-#line 1645 "glslang.y"
+#line 1645 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtFloat, EsdCube, true);
}
+#line 5573 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 237:
-/* Line 1792 of yacc.c */
-#line 1650 "glslang.y"
+#line 1650 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtFloat, EsdCube, true, true);
}
+#line 5583 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 238:
-/* Line 1792 of yacc.c */
-#line 1655 "glslang.y"
+#line 1655 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtInt, Esd1D);
}
+#line 5593 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 239:
-/* Line 1792 of yacc.c */
-#line 1660 "glslang.y"
+#line 1660 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtInt, Esd2D);
}
+#line 5603 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 240:
-/* Line 1792 of yacc.c */
-#line 1665 "glslang.y"
+#line 1665 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtInt, Esd3D);
}
+#line 5613 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 241:
-/* Line 1792 of yacc.c */
-#line 1670 "glslang.y"
+#line 1670 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtInt, EsdCube);
}
+#line 5623 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 242:
-/* Line 1792 of yacc.c */
-#line 1675 "glslang.y"
+#line 1675 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtInt, Esd1D, true);
}
+#line 5633 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 243:
-/* Line 1792 of yacc.c */
-#line 1680 "glslang.y"
+#line 1680 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtInt, Esd2D, true);
}
+#line 5643 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 244:
-/* Line 1792 of yacc.c */
-#line 1685 "glslang.y"
+#line 1685 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtInt, EsdCube, true);
}
+#line 5653 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 245:
-/* Line 1792 of yacc.c */
-#line 1690 "glslang.y"
+#line 1690 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtUint, Esd1D);
}
+#line 5663 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 246:
-/* Line 1792 of yacc.c */
-#line 1695 "glslang.y"
+#line 1695 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtUint, Esd2D);
}
+#line 5673 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 247:
-/* Line 1792 of yacc.c */
-#line 1700 "glslang.y"
+#line 1700 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtUint, Esd3D);
}
+#line 5683 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 248:
-/* Line 1792 of yacc.c */
-#line 1705 "glslang.y"
+#line 1705 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtUint, EsdCube);
}
+#line 5693 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 249:
-/* Line 1792 of yacc.c */
-#line 1710 "glslang.y"
+#line 1710 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtUint, Esd1D, true);
}
+#line 5703 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 250:
-/* Line 1792 of yacc.c */
-#line 1715 "glslang.y"
+#line 1715 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtUint, Esd2D, true);
}
+#line 5713 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 251:
-/* Line 1792 of yacc.c */
-#line 1720 "glslang.y"
+#line 1720 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtUint, EsdCube, true);
}
+#line 5723 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 252:
-/* Line 1792 of yacc.c */
-#line 1725 "glslang.y"
+#line 1725 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtFloat, EsdRect);
}
+#line 5733 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 253:
-/* Line 1792 of yacc.c */
-#line 1730 "glslang.y"
+#line 1730 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtFloat, EsdRect, false, true);
}
+#line 5743 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 254:
-/* Line 1792 of yacc.c */
-#line 1735 "glslang.y"
+#line 1735 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtInt, EsdRect);
}
+#line 5753 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 255:
-/* Line 1792 of yacc.c */
-#line 1740 "glslang.y"
+#line 1740 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtUint, EsdRect);
}
+#line 5763 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 256:
-/* Line 1792 of yacc.c */
-#line 1745 "glslang.y"
+#line 1745 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtFloat, EsdBuffer);
}
+#line 5773 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 257:
-/* Line 1792 of yacc.c */
-#line 1750 "glslang.y"
+#line 1750 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtInt, EsdBuffer);
}
+#line 5783 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 258:
-/* Line 1792 of yacc.c */
-#line 1755 "glslang.y"
+#line 1755 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtUint, EsdBuffer);
}
+#line 5793 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 259:
-/* Line 1792 of yacc.c */
-#line 1760 "glslang.y"
+#line 1760 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtFloat, Esd2D, false, false, true);
}
+#line 5803 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 260:
-/* Line 1792 of yacc.c */
-#line 1765 "glslang.y"
+#line 1765 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtInt, Esd2D, false, false, true);
}
+#line 5813 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 261:
-/* Line 1792 of yacc.c */
-#line 1770 "glslang.y"
+#line 1770 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtUint, Esd2D, false, false, true);
}
+#line 5823 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 262:
-/* Line 1792 of yacc.c */
-#line 1775 "glslang.y"
+#line 1775 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtFloat, Esd2D, true, false, true);
}
+#line 5833 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 263:
-/* Line 1792 of yacc.c */
-#line 1780 "glslang.y"
+#line 1780 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtInt, Esd2D, true, false, true);
}
+#line 5843 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 264:
-/* Line 1792 of yacc.c */
-#line 1785 "glslang.y"
+#line 1785 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtUint, Esd2D, true, false, true);
}
+#line 5853 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 265:
-/* Line 1792 of yacc.c */
-#line 1790 "glslang.y"
+#line 1790 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setPureSampler(false);
}
+#line 5863 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 266:
-/* Line 1792 of yacc.c */
-#line 1795 "glslang.y"
+#line 1795 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setPureSampler(true);
}
+#line 5873 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 267:
-/* Line 1792 of yacc.c */
-#line 1800 "glslang.y"
+#line 1800 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setTexture(EbtFloat, Esd1D);
}
+#line 5883 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 268:
-/* Line 1792 of yacc.c */
-#line 1805 "glslang.y"
+#line 1805 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setTexture(EbtFloat, Esd2D);
}
+#line 5893 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 269:
-/* Line 1792 of yacc.c */
-#line 1810 "glslang.y"
+#line 1810 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setTexture(EbtFloat, Esd3D);
}
+#line 5903 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 270:
-/* Line 1792 of yacc.c */
-#line 1815 "glslang.y"
+#line 1815 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setTexture(EbtFloat, EsdCube);
}
+#line 5913 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 271:
-/* Line 1792 of yacc.c */
-#line 1820 "glslang.y"
+#line 1820 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setTexture(EbtFloat, Esd1D, true);
}
+#line 5923 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 272:
-/* Line 1792 of yacc.c */
-#line 1825 "glslang.y"
+#line 1825 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setTexture(EbtFloat, Esd2D, true);
}
+#line 5933 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 273:
-/* Line 1792 of yacc.c */
-#line 1830 "glslang.y"
+#line 1830 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setTexture(EbtFloat, EsdCube, true);
}
+#line 5943 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 274:
-/* Line 1792 of yacc.c */
-#line 1835 "glslang.y"
+#line 1835 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setTexture(EbtInt, Esd1D);
}
+#line 5953 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 275:
-/* Line 1792 of yacc.c */
-#line 1840 "glslang.y"
+#line 1840 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setTexture(EbtInt, Esd2D);
}
+#line 5963 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 276:
-/* Line 1792 of yacc.c */
-#line 1845 "glslang.y"
+#line 1845 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setTexture(EbtInt, Esd3D);
}
+#line 5973 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 277:
-/* Line 1792 of yacc.c */
-#line 1850 "glslang.y"
+#line 1850 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setTexture(EbtInt, EsdCube);
}
+#line 5983 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 278:
-/* Line 1792 of yacc.c */
-#line 1855 "glslang.y"
+#line 1855 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setTexture(EbtInt, Esd1D, true);
}
+#line 5993 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 279:
-/* Line 1792 of yacc.c */
-#line 1860 "glslang.y"
+#line 1860 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setTexture(EbtInt, Esd2D, true);
}
+#line 6003 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 280:
-/* Line 1792 of yacc.c */
-#line 1865 "glslang.y"
+#line 1865 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setTexture(EbtInt, EsdCube, true);
}
+#line 6013 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 281:
-/* Line 1792 of yacc.c */
-#line 1870 "glslang.y"
+#line 1870 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setTexture(EbtUint, Esd1D);
}
+#line 6023 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 282:
-/* Line 1792 of yacc.c */
-#line 1875 "glslang.y"
+#line 1875 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setTexture(EbtUint, Esd2D);
}
+#line 6033 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 283:
-/* Line 1792 of yacc.c */
-#line 1880 "glslang.y"
+#line 1880 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setTexture(EbtUint, Esd3D);
}
+#line 6043 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 284:
-/* Line 1792 of yacc.c */
-#line 1885 "glslang.y"
+#line 1885 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setTexture(EbtUint, EsdCube);
}
+#line 6053 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 285:
-/* Line 1792 of yacc.c */
-#line 1890 "glslang.y"
+#line 1890 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setTexture(EbtUint, Esd1D, true);
}
+#line 6063 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 286:
-/* Line 1792 of yacc.c */
-#line 1895 "glslang.y"
+#line 1895 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setTexture(EbtUint, Esd2D, true);
}
+#line 6073 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 287:
-/* Line 1792 of yacc.c */
-#line 1900 "glslang.y"
+#line 1900 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setTexture(EbtUint, EsdCube, true);
}
+#line 6083 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 288:
-/* Line 1792 of yacc.c */
-#line 1905 "glslang.y"
+#line 1905 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setTexture(EbtFloat, EsdRect);
}
+#line 6093 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 289:
-/* Line 1792 of yacc.c */
-#line 1910 "glslang.y"
+#line 1910 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setTexture(EbtInt, EsdRect);
}
+#line 6103 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 290:
-/* Line 1792 of yacc.c */
-#line 1915 "glslang.y"
+#line 1915 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setTexture(EbtUint, EsdRect);
}
+#line 6113 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 291:
-/* Line 1792 of yacc.c */
-#line 1920 "glslang.y"
+#line 1920 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setTexture(EbtFloat, EsdBuffer);
}
+#line 6123 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 292:
-/* Line 1792 of yacc.c */
-#line 1925 "glslang.y"
+#line 1925 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setTexture(EbtInt, EsdBuffer);
}
+#line 6133 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 293:
-/* Line 1792 of yacc.c */
-#line 1930 "glslang.y"
+#line 1930 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setTexture(EbtUint, EsdBuffer);
}
+#line 6143 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 294:
-/* Line 1792 of yacc.c */
-#line 1935 "glslang.y"
+#line 1935 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setTexture(EbtFloat, Esd2D, false, false, true);
}
+#line 6153 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 295:
-/* Line 1792 of yacc.c */
-#line 1940 "glslang.y"
+#line 1940 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setTexture(EbtInt, Esd2D, false, false, true);
}
+#line 6163 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 296:
-/* Line 1792 of yacc.c */
-#line 1945 "glslang.y"
+#line 1945 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setTexture(EbtUint, Esd2D, false, false, true);
}
+#line 6173 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 297:
-/* Line 1792 of yacc.c */
-#line 1950 "glslang.y"
+#line 1950 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setTexture(EbtFloat, Esd2D, true, false, true);
}
+#line 6183 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 298:
-/* Line 1792 of yacc.c */
-#line 1955 "glslang.y"
+#line 1955 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setTexture(EbtInt, Esd2D, true, false, true);
}
+#line 6193 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 299:
-/* Line 1792 of yacc.c */
-#line 1960 "glslang.y"
+#line 1960 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setTexture(EbtUint, Esd2D, true, false, true);
}
+#line 6203 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 300:
-/* Line 1792 of yacc.c */
-#line 1965 "glslang.y"
+#line 1965 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setImage(EbtFloat, Esd1D);
}
+#line 6213 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 301:
-/* Line 1792 of yacc.c */
-#line 1970 "glslang.y"
+#line 1970 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setImage(EbtInt, Esd1D);
}
+#line 6223 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 302:
-/* Line 1792 of yacc.c */
-#line 1975 "glslang.y"
+#line 1975 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setImage(EbtUint, Esd1D);
}
+#line 6233 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 303:
-/* Line 1792 of yacc.c */
-#line 1980 "glslang.y"
+#line 1980 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setImage(EbtFloat, Esd2D);
}
+#line 6243 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 304:
-/* Line 1792 of yacc.c */
-#line 1985 "glslang.y"
+#line 1985 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setImage(EbtInt, Esd2D);
}
+#line 6253 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 305:
-/* Line 1792 of yacc.c */
-#line 1990 "glslang.y"
+#line 1990 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setImage(EbtUint, Esd2D);
}
+#line 6263 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 306:
-/* Line 1792 of yacc.c */
-#line 1995 "glslang.y"
+#line 1995 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setImage(EbtFloat, Esd3D);
}
+#line 6273 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 307:
-/* Line 1792 of yacc.c */
-#line 2000 "glslang.y"
+#line 2000 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setImage(EbtInt, Esd3D);
}
+#line 6283 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 308:
-/* Line 1792 of yacc.c */
-#line 2005 "glslang.y"
+#line 2005 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setImage(EbtUint, Esd3D);
}
+#line 6293 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 309:
-/* Line 1792 of yacc.c */
-#line 2010 "glslang.y"
+#line 2010 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setImage(EbtFloat, EsdRect);
}
+#line 6303 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 310:
-/* Line 1792 of yacc.c */
-#line 2015 "glslang.y"
+#line 2015 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setImage(EbtInt, EsdRect);
}
+#line 6313 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 311:
-/* Line 1792 of yacc.c */
-#line 2020 "glslang.y"
+#line 2020 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setImage(EbtUint, EsdRect);
}
+#line 6323 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 312:
-/* Line 1792 of yacc.c */
-#line 2025 "glslang.y"
+#line 2025 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setImage(EbtFloat, EsdCube);
}
+#line 6333 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 313:
-/* Line 1792 of yacc.c */
-#line 2030 "glslang.y"
+#line 2030 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setImage(EbtInt, EsdCube);
}
+#line 6343 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 314:
-/* Line 1792 of yacc.c */
-#line 2035 "glslang.y"
+#line 2035 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setImage(EbtUint, EsdCube);
}
+#line 6353 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 315:
-/* Line 1792 of yacc.c */
-#line 2040 "glslang.y"
+#line 2040 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setImage(EbtFloat, EsdBuffer);
}
+#line 6363 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 316:
-/* Line 1792 of yacc.c */
-#line 2045 "glslang.y"
+#line 2045 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setImage(EbtInt, EsdBuffer);
}
+#line 6373 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 317:
-/* Line 1792 of yacc.c */
-#line 2050 "glslang.y"
+#line 2050 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setImage(EbtUint, EsdBuffer);
}
+#line 6383 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 318:
-/* Line 1792 of yacc.c */
-#line 2055 "glslang.y"
+#line 2055 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setImage(EbtFloat, Esd1D, true);
}
+#line 6393 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 319:
-/* Line 1792 of yacc.c */
-#line 2060 "glslang.y"
+#line 2060 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setImage(EbtInt, Esd1D, true);
}
+#line 6403 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 320:
-/* Line 1792 of yacc.c */
-#line 2065 "glslang.y"
+#line 2065 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setImage(EbtUint, Esd1D, true);
}
+#line 6413 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 321:
-/* Line 1792 of yacc.c */
-#line 2070 "glslang.y"
+#line 2070 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setImage(EbtFloat, Esd2D, true);
}
+#line 6423 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 322:
-/* Line 1792 of yacc.c */
-#line 2075 "glslang.y"
+#line 2075 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setImage(EbtInt, Esd2D, true);
}
+#line 6433 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 323:
-/* Line 1792 of yacc.c */
-#line 2080 "glslang.y"
+#line 2080 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setImage(EbtUint, Esd2D, true);
}
+#line 6443 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 324:
-/* Line 1792 of yacc.c */
-#line 2085 "glslang.y"
+#line 2085 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setImage(EbtFloat, EsdCube, true);
}
+#line 6453 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 325:
-/* Line 1792 of yacc.c */
-#line 2090 "glslang.y"
+#line 2090 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setImage(EbtInt, EsdCube, true);
}
+#line 6463 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 326:
-/* Line 1792 of yacc.c */
-#line 2095 "glslang.y"
+#line 2095 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setImage(EbtUint, EsdCube, true);
}
+#line 6473 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 327:
-/* Line 1792 of yacc.c */
-#line 2100 "glslang.y"
+#line 2100 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setImage(EbtFloat, Esd2D, false, false, true);
}
+#line 6483 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 328:
-/* Line 1792 of yacc.c */
-#line 2105 "glslang.y"
+#line 2105 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setImage(EbtInt, Esd2D, false, false, true);
}
+#line 6493 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 329:
-/* Line 1792 of yacc.c */
-#line 2110 "glslang.y"
+#line 2110 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setImage(EbtUint, Esd2D, false, false, true);
}
+#line 6503 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 330:
-/* Line 1792 of yacc.c */
-#line 2115 "glslang.y"
+#line 2115 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setImage(EbtFloat, Esd2D, true, false, true);
}
+#line 6513 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 331:
-/* Line 1792 of yacc.c */
-#line 2120 "glslang.y"
+#line 2120 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setImage(EbtInt, Esd2D, true, false, true);
}
+#line 6523 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 332:
-/* Line 1792 of yacc.c */
-#line 2125 "glslang.y"
+#line 2125 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setImage(EbtUint, Esd2D, true, false, true);
}
+#line 6533 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 333:
-/* Line 1792 of yacc.c */
-#line 2130 "glslang.y"
+#line 2130 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{ // GL_OES_EGL_image_external
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.set(EbtFloat, Esd2D);
(yyval.interm.type).sampler.external = true;
}
+#line 6544 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 334:
-/* Line 1792 of yacc.c */
-#line 2136 "glslang.y"
+#line 2136 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.requireStage((yyvsp[(1) - (1)].lex).loc, EShLangFragment, "subpass input");
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ parseContext.requireStage((yyvsp[0].lex).loc, EShLangFragment, "subpass input");
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setSubpass(EbtFloat);
}
+#line 6555 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 335:
-/* Line 1792 of yacc.c */
-#line 2142 "glslang.y"
+#line 2142 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.requireStage((yyvsp[(1) - (1)].lex).loc, EShLangFragment, "subpass input");
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ parseContext.requireStage((yyvsp[0].lex).loc, EShLangFragment, "subpass input");
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setSubpass(EbtFloat, true);
}
+#line 6566 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 336:
-/* Line 1792 of yacc.c */
-#line 2148 "glslang.y"
+#line 2148 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.requireStage((yyvsp[(1) - (1)].lex).loc, EShLangFragment, "subpass input");
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ parseContext.requireStage((yyvsp[0].lex).loc, EShLangFragment, "subpass input");
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setSubpass(EbtInt);
}
+#line 6577 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 337:
-/* Line 1792 of yacc.c */
-#line 2154 "glslang.y"
+#line 2154 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.requireStage((yyvsp[(1) - (1)].lex).loc, EShLangFragment, "subpass input");
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ parseContext.requireStage((yyvsp[0].lex).loc, EShLangFragment, "subpass input");
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setSubpass(EbtInt, true);
}
+#line 6588 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 338:
-/* Line 1792 of yacc.c */
-#line 2160 "glslang.y"
+#line 2160 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.requireStage((yyvsp[(1) - (1)].lex).loc, EShLangFragment, "subpass input");
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ parseContext.requireStage((yyvsp[0].lex).loc, EShLangFragment, "subpass input");
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setSubpass(EbtUint);
}
+#line 6599 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 339:
-/* Line 1792 of yacc.c */
-#line 2166 "glslang.y"
+#line 2166 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.requireStage((yyvsp[(1) - (1)].lex).loc, EShLangFragment, "subpass input");
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ parseContext.requireStage((yyvsp[0].lex).loc, EShLangFragment, "subpass input");
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
(yyval.interm.type).basicType = EbtSampler;
(yyval.interm.type).sampler.setSubpass(EbtUint, true);
}
+#line 6610 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 340:
-/* Line 1792 of yacc.c */
-#line 2172 "glslang.y"
+#line 2172 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.type) = (yyvsp[(1) - (1)].interm.type);
+ (yyval.interm.type) = (yyvsp[0].interm.type);
(yyval.interm.type).qualifier.storage = parseContext.symbolTable.atGlobalLevel() ? EvqGlobal : EvqTemporary;
parseContext.structTypeCheck((yyval.interm.type).loc, (yyval.interm.type));
}
+#line 6620 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 341:
-/* Line 1792 of yacc.c */
-#line 2177 "glslang.y"
+#line 2177 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
//
// This is for user defined type names. The lexical phase looked up the
// type.
//
- if (const TVariable* variable = ((yyvsp[(1) - (1)].lex).symbol)->getAsVariable()) {
+ if (const TVariable* variable = ((yyvsp[0].lex).symbol)->getAsVariable()) {
const TType& structure = variable->getType();
- (yyval.interm.type).init((yyvsp[(1) - (1)].lex).loc, parseContext.symbolTable.atGlobalLevel());
+ (yyval.interm.type).init((yyvsp[0].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(), "");
+ parseContext.error((yyvsp[0].lex).loc, "expected type name", (yyvsp[0].lex).string->c_str(), "");
}
+#line 6638 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 342:
-/* Line 1792 of yacc.c */
-#line 2193 "glslang.y"
+#line 2193 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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());
+ parseContext.profileRequires((yyvsp[0].lex).loc, ENoProfile, 130, 0, "highp precision qualifier");
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
if (parseContext.profile == EEsProfile)
(yyval.interm.type).qualifier.precision = EpqHigh;
}
+#line 6649 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 343:
-/* Line 1792 of yacc.c */
-#line 2199 "glslang.y"
+#line 2199 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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());
+ parseContext.profileRequires((yyvsp[0].lex).loc, ENoProfile, 130, 0, "mediump precision qualifier");
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
if (parseContext.profile == EEsProfile)
(yyval.interm.type).qualifier.precision = EpqMedium;
}
+#line 6660 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 344:
-/* Line 1792 of yacc.c */
-#line 2205 "glslang.y"
+#line 2205 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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());
+ parseContext.profileRequires((yyvsp[0].lex).loc, ENoProfile, 130, 0, "lowp precision qualifier");
+ (yyval.interm.type).init((yyvsp[0].lex).loc, parseContext.symbolTable.atGlobalLevel());
if (parseContext.profile == EEsProfile)
(yyval.interm.type).qualifier.precision = EpqLow;
}
+#line 6671 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 345:
-/* Line 1792 of yacc.c */
-#line 2214 "glslang.y"
- { parseContext.nestedStructCheck((yyvsp[(1) - (3)].lex).loc); }
+#line 2214 "MachineIndependent/glslang.y" /* yacc.c:1646 */
+ { parseContext.nestedStructCheck((yyvsp[-2].lex).loc); }
+#line 6677 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 346:
-/* Line 1792 of yacc.c */
-#line 2214 "glslang.y"
+#line 2214 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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);
+ TType* structure = new TType((yyvsp[-1].interm.typeList), *(yyvsp[-4].lex).string);
+ parseContext.structArrayCheck((yyvsp[-4].lex).loc, *structure);
+ TVariable* userTypeDef = new TVariable((yyvsp[-4].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);
+ parseContext.error((yyvsp[-4].lex).loc, "redefinition", (yyvsp[-4].lex).string->c_str(), "struct");
+ (yyval.interm.type).init((yyvsp[-5].lex).loc);
(yyval.interm.type).basicType = EbtStruct;
(yyval.interm.type).userDef = structure;
--parseContext.structNestingLevel;
}
+#line 6693 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 347:
-/* Line 1792 of yacc.c */
-#line 2225 "glslang.y"
- { parseContext.nestedStructCheck((yyvsp[(1) - (2)].lex).loc); }
+#line 2225 "MachineIndependent/glslang.y" /* yacc.c:1646 */
+ { parseContext.nestedStructCheck((yyvsp[-1].lex).loc); }
+#line 6699 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 348:
-/* Line 1792 of yacc.c */
-#line 2225 "glslang.y"
+#line 2225 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- TType* structure = new TType((yyvsp[(4) - (5)].interm.typeList), TString(""));
- (yyval.interm.type).init((yyvsp[(1) - (5)].lex).loc);
+ TType* structure = new TType((yyvsp[-1].interm.typeList), TString(""));
+ (yyval.interm.type).init((yyvsp[-4].lex).loc);
(yyval.interm.type).basicType = EbtStruct;
(yyval.interm.type).userDef = structure;
--parseContext.structNestingLevel;
}
+#line 6711 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 349:
-/* Line 1792 of yacc.c */
-#line 2235 "glslang.y"
+#line 2235 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.typeList) = (yyvsp[(1) - (1)].interm.typeList);
+ (yyval.interm.typeList) = (yyvsp[0].interm.typeList);
}
+#line 6719 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 350:
-/* Line 1792 of yacc.c */
-#line 2238 "glslang.y"
+#line 2238 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.typeList) = (yyvsp[(1) - (2)].interm.typeList);
- for (unsigned int i = 0; i < (yyvsp[(2) - (2)].interm.typeList)->size(); ++i) {
+ (yyval.interm.typeList) = (yyvsp[-1].interm.typeList);
+ for (unsigned int i = 0; i < (yyvsp[0].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());
+ if ((*(yyval.interm.typeList))[j].type->getFieldName() == (*(yyvsp[0].interm.typeList))[i].type->getFieldName())
+ parseContext.error((*(yyvsp[0].interm.typeList))[i].loc, "duplicate member name:", "", (*(yyvsp[0].interm.typeList))[i].type->getFieldName().c_str());
}
- (yyval.interm.typeList)->push_back((*(yyvsp[(2) - (2)].interm.typeList))[i]);
+ (yyval.interm.typeList)->push_back((*(yyvsp[0].interm.typeList))[i]);
}
}
+#line 6734 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 351:
-/* Line 1792 of yacc.c */
-#line 2251 "glslang.y"
+#line 2251 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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 ((yyvsp[-2].interm.type).arraySizes) {
+ parseContext.profileRequires((yyvsp[-2].interm.type).loc, ENoProfile, 120, E_GL_3DL_array_objects, "arrayed type");
+ parseContext.profileRequires((yyvsp[-2].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);
+ parseContext.arraySizeRequiredCheck((yyvsp[-2].interm.type).loc, *(yyvsp[-2].interm.type).arraySizes);
}
- (yyval.interm.typeList) = (yyvsp[(2) - (3)].interm.typeList);
+ (yyval.interm.typeList) = (yyvsp[-1].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);
+ parseContext.voidErrorCheck((yyvsp[-2].interm.type).loc, (*(yyvsp[-1].interm.typeList))[0].type->getFieldName(), (yyvsp[-2].interm.type).basicType);
+ parseContext.precisionQualifierCheck((yyvsp[-2].interm.type).loc, (yyvsp[-2].interm.type).basicType, (yyvsp[-2].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));
+ parseContext.arrayDimCheck((yyvsp[-2].interm.type).loc, (*(yyval.interm.typeList))[i].type, (yyvsp[-2].interm.type).arraySizes);
+ (*(yyval.interm.typeList))[i].type->mergeType((yyvsp[-2].interm.type));
}
}
+#line 6757 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 352:
-/* Line 1792 of yacc.c */
-#line 2269 "glslang.y"
+#line 2269 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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");
+ parseContext.globalQualifierFixCheck((yyvsp[-3].interm.type).loc, (yyvsp[-3].interm.type).qualifier);
+ if ((yyvsp[-2].interm.type).arraySizes) {
+ parseContext.profileRequires((yyvsp[-2].interm.type).loc, ENoProfile, 120, E_GL_3DL_array_objects, "arrayed type");
+ parseContext.profileRequires((yyvsp[-2].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);
+ parseContext.arraySizeRequiredCheck((yyvsp[-2].interm.type).loc, *(yyvsp[-2].interm.type).arraySizes);
}
- (yyval.interm.typeList) = (yyvsp[(3) - (4)].interm.typeList);
+ (yyval.interm.typeList) = (yyvsp[-1].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);
+ parseContext.checkNoShaderLayouts((yyvsp[-3].interm.type).loc, (yyvsp[-3].interm.type).shaderQualifiers);
+ parseContext.voidErrorCheck((yyvsp[-2].interm.type).loc, (*(yyvsp[-1].interm.typeList))[0].type->getFieldName(), (yyvsp[-2].interm.type).basicType);
+ parseContext.mergeQualifiers((yyvsp[-2].interm.type).loc, (yyvsp[-2].interm.type).qualifier, (yyvsp[-3].interm.type).qualifier, true);
+ parseContext.precisionQualifierCheck((yyvsp[-2].interm.type).loc, (yyvsp[-2].interm.type).basicType, (yyvsp[-2].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));
+ parseContext.arrayDimCheck((yyvsp[-3].interm.type).loc, (*(yyval.interm.typeList))[i].type, (yyvsp[-2].interm.type).arraySizes);
+ (*(yyval.interm.typeList))[i].type->mergeType((yyvsp[-2].interm.type));
}
}
+#line 6783 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 353:
-/* Line 1792 of yacc.c */
-#line 2293 "glslang.y"
+#line 2293 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
(yyval.interm.typeList) = new TTypeList;
- (yyval.interm.typeList)->push_back((yyvsp[(1) - (1)].interm.typeLine));
+ (yyval.interm.typeList)->push_back((yyvsp[0].interm.typeLine));
}
+#line 6792 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 354:
-/* Line 1792 of yacc.c */
-#line 2297 "glslang.y"
+#line 2297 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.typeList)->push_back((yyvsp[(3) - (3)].interm.typeLine));
+ (yyval.interm.typeList)->push_back((yyvsp[0].interm.typeLine));
}
+#line 6800 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 355:
-/* Line 1792 of yacc.c */
-#line 2303 "glslang.y"
+#line 2303 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
(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);
+ (yyval.interm.typeLine).loc = (yyvsp[0].lex).loc;
+ (yyval.interm.typeLine).type->setFieldName(*(yyvsp[0].lex).string);
}
+#line 6810 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 356:
-/* Line 1792 of yacc.c */
-#line 2308 "glslang.y"
+#line 2308 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.arrayDimCheck((yyvsp[(1) - (2)].lex).loc, (yyvsp[(2) - (2)].interm).arraySizes, 0);
+ parseContext.arrayDimCheck((yyvsp[-1].lex).loc, (yyvsp[0].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);
+ (yyval.interm.typeLine).loc = (yyvsp[-1].lex).loc;
+ (yyval.interm.typeLine).type->setFieldName(*(yyvsp[-1].lex).string);
+ (yyval.interm.typeLine).type->newArraySizes(*(yyvsp[0].interm).arraySizes);
}
+#line 6823 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 357:
-/* Line 1792 of yacc.c */
-#line 2319 "glslang.y"
+#line 2319 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode);
+ (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode);
}
+#line 6831 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 358:
-/* Line 1792 of yacc.c */
-#line 2322 "glslang.y"
+#line 2322 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
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);
+ parseContext.requireProfile((yyvsp[-2].lex).loc, ~EEsProfile, initFeature);
+ parseContext.profileRequires((yyvsp[-2].lex).loc, ~EEsProfile, 420, E_GL_ARB_shading_language_420pack, initFeature);
+ (yyval.interm.intermTypedNode) = (yyvsp[-1].interm.intermTypedNode);
}
+#line 6842 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 359:
-/* Line 1792 of yacc.c */
-#line 2328 "glslang.y"
+#line 2328 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
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);
+ parseContext.requireProfile((yyvsp[-3].lex).loc, ~EEsProfile, initFeature);
+ parseContext.profileRequires((yyvsp[-3].lex).loc, ~EEsProfile, 420, E_GL_ARB_shading_language_420pack, initFeature);
+ (yyval.interm.intermTypedNode) = (yyvsp[-2].interm.intermTypedNode);
}
+#line 6853 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 360:
-/* Line 1792 of yacc.c */
-#line 2337 "glslang.y"
+#line 2337 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.intermTypedNode) = parseContext.intermediate.growAggregate(0, (yyvsp[(1) - (1)].interm.intermTypedNode), (yyvsp[(1) - (1)].interm.intermTypedNode)->getLoc());
+ (yyval.interm.intermTypedNode) = parseContext.intermediate.growAggregate(0, (yyvsp[0].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode)->getLoc());
}
+#line 6861 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 361:
-/* Line 1792 of yacc.c */
-#line 2340 "glslang.y"
+#line 2340 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.intermTypedNode) = parseContext.intermediate.growAggregate((yyvsp[(1) - (3)].interm.intermTypedNode), (yyvsp[(3) - (3)].interm.intermTypedNode));
+ (yyval.interm.intermTypedNode) = parseContext.intermediate.growAggregate((yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode));
}
+#line 6869 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 362:
-/* Line 1792 of yacc.c */
-#line 2346 "glslang.y"
- { (yyval.interm.intermNode) = (yyvsp[(1) - (1)].interm.intermNode); }
+#line 2346 "MachineIndependent/glslang.y" /* yacc.c:1646 */
+ { (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); }
+#line 6875 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 363:
-/* Line 1792 of yacc.c */
-#line 2350 "glslang.y"
- { (yyval.interm.intermNode) = (yyvsp[(1) - (1)].interm.intermNode); }
+#line 2350 "MachineIndependent/glslang.y" /* yacc.c:1646 */
+ { (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); }
+#line 6881 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 364:
-/* Line 1792 of yacc.c */
-#line 2351 "glslang.y"
- { (yyval.interm.intermNode) = (yyvsp[(1) - (1)].interm.intermNode); }
+#line 2351 "MachineIndependent/glslang.y" /* yacc.c:1646 */
+ { (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); }
+#line 6887 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 365:
-/* Line 1792 of yacc.c */
-#line 2357 "glslang.y"
- { (yyval.interm.intermNode) = (yyvsp[(1) - (1)].interm.intermNode); }
+#line 2357 "MachineIndependent/glslang.y" /* yacc.c:1646 */
+ { (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); }
+#line 6893 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 366:
-/* Line 1792 of yacc.c */
-#line 2358 "glslang.y"
- { (yyval.interm.intermNode) = (yyvsp[(1) - (1)].interm.intermNode); }
+#line 2358 "MachineIndependent/glslang.y" /* yacc.c:1646 */
+ { (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); }
+#line 6899 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 367:
-/* Line 1792 of yacc.c */
-#line 2359 "glslang.y"
- { (yyval.interm.intermNode) = (yyvsp[(1) - (1)].interm.intermNode); }
+#line 2359 "MachineIndependent/glslang.y" /* yacc.c:1646 */
+ { (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); }
+#line 6905 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 368:
-/* Line 1792 of yacc.c */
-#line 2360 "glslang.y"
- { (yyval.interm.intermNode) = (yyvsp[(1) - (1)].interm.intermNode); }
+#line 2360 "MachineIndependent/glslang.y" /* yacc.c:1646 */
+ { (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); }
+#line 6911 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 369:
-/* Line 1792 of yacc.c */
-#line 2361 "glslang.y"
- { (yyval.interm.intermNode) = (yyvsp[(1) - (1)].interm.intermNode); }
+#line 2361 "MachineIndependent/glslang.y" /* yacc.c:1646 */
+ { (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); }
+#line 6917 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 370:
-/* Line 1792 of yacc.c */
-#line 2362 "glslang.y"
- { (yyval.interm.intermNode) = (yyvsp[(1) - (1)].interm.intermNode); }
+#line 2362 "MachineIndependent/glslang.y" /* yacc.c:1646 */
+ { (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); }
+#line 6923 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 371:
-/* Line 1792 of yacc.c */
-#line 2363 "glslang.y"
- { (yyval.interm.intermNode) = (yyvsp[(1) - (1)].interm.intermNode); }
+#line 2363 "MachineIndependent/glslang.y" /* yacc.c:1646 */
+ { (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); }
+#line 6929 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 372:
-/* Line 1792 of yacc.c */
-#line 2367 "glslang.y"
+#line 2367 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{ (yyval.interm.intermNode) = 0; }
+#line 6935 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 373:
-/* Line 1792 of yacc.c */
-#line 2368 "glslang.y"
+#line 2368 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
parseContext.symbolTable.push();
++parseContext.statementNestingLevel;
}
+#line 6944 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 374:
-/* Line 1792 of yacc.c */
-#line 2372 "glslang.y"
+#line 2372 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
parseContext.symbolTable.pop(&parseContext.defaultPrecision[0]);
--parseContext.statementNestingLevel;
}
+#line 6953 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 375:
-/* Line 1792 of yacc.c */
-#line 2376 "glslang.y"
+#line 2376 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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);
+ if ((yyvsp[-2].interm.intermNode) && (yyvsp[-2].interm.intermNode)->getAsAggregate())
+ (yyvsp[-2].interm.intermNode)->getAsAggregate()->setOperator(EOpSequence);
+ (yyval.interm.intermNode) = (yyvsp[-2].interm.intermNode);
}
+#line 6963 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 376:
-/* Line 1792 of yacc.c */
-#line 2384 "glslang.y"
- { (yyval.interm.intermNode) = (yyvsp[(1) - (1)].interm.intermNode); }
+#line 2384 "MachineIndependent/glslang.y" /* yacc.c:1646 */
+ { (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); }
+#line 6969 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 377:
-/* Line 1792 of yacc.c */
-#line 2385 "glslang.y"
- { (yyval.interm.intermNode) = (yyvsp[(1) - (1)].interm.intermNode); }
+#line 2385 "MachineIndependent/glslang.y" /* yacc.c:1646 */
+ { (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); }
+#line 6975 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 378:
-/* Line 1792 of yacc.c */
-#line 2389 "glslang.y"
+#line 2389 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
++parseContext.controlFlowNestingLevel;
}
+#line 6983 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 379:
-/* Line 1792 of yacc.c */
-#line 2392 "glslang.y"
+#line 2392 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
--parseContext.controlFlowNestingLevel;
- (yyval.interm.intermNode) = (yyvsp[(2) - (2)].interm.intermNode);
+ (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode);
}
+#line 6992 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 380:
-/* Line 1792 of yacc.c */
-#line 2396 "glslang.y"
+#line 2396 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
parseContext.symbolTable.push();
++parseContext.statementNestingLevel;
++parseContext.controlFlowNestingLevel;
}
+#line 7002 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 381:
-/* Line 1792 of yacc.c */
-#line 2401 "glslang.y"
+#line 2401 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
parseContext.symbolTable.pop(&parseContext.defaultPrecision[0]);
--parseContext.statementNestingLevel;
--parseContext.controlFlowNestingLevel;
- (yyval.interm.intermNode) = (yyvsp[(2) - (2)].interm.intermNode);
+ (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode);
}
+#line 7013 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 382:
-/* Line 1792 of yacc.c */
-#line 2410 "glslang.y"
+#line 2410 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
(yyval.interm.intermNode) = 0;
}
+#line 7021 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 383:
-/* Line 1792 of yacc.c */
-#line 2413 "glslang.y"
+#line 2413 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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);
+ if ((yyvsp[-1].interm.intermNode) && (yyvsp[-1].interm.intermNode)->getAsAggregate())
+ (yyvsp[-1].interm.intermNode)->getAsAggregate()->setOperator(EOpSequence);
+ (yyval.interm.intermNode) = (yyvsp[-1].interm.intermNode);
}
+#line 7031 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 384:
-/* Line 1792 of yacc.c */
-#line 2421 "glslang.y"
+#line 2421 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (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) = parseContext.intermediate.makeAggregate((yyvsp[0].interm.intermNode));
+ if ((yyvsp[0].interm.intermNode) && (yyvsp[0].interm.intermNode)->getAsBranchNode() && ((yyvsp[0].interm.intermNode)->getAsBranchNode()->getFlowOp() == EOpCase ||
+ (yyvsp[0].interm.intermNode)->getAsBranchNode()->getFlowOp() == EOpDefault)) {
+ parseContext.wrapupSwitchSubsequence(0, (yyvsp[0].interm.intermNode));
(yyval.interm.intermNode) = 0; // start a fresh subsequence for what's after this case
}
}
+#line 7044 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 385:
-/* Line 1792 of yacc.c */
-#line 2429 "glslang.y"
+#line 2429 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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));
+ if ((yyvsp[0].interm.intermNode) && (yyvsp[0].interm.intermNode)->getAsBranchNode() && ((yyvsp[0].interm.intermNode)->getAsBranchNode()->getFlowOp() == EOpCase ||
+ (yyvsp[0].interm.intermNode)->getAsBranchNode()->getFlowOp() == EOpDefault)) {
+ parseContext.wrapupSwitchSubsequence((yyvsp[-1].interm.intermNode) ? (yyvsp[-1].interm.intermNode)->getAsAggregate() : 0, (yyvsp[0].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));
+ (yyval.interm.intermNode) = parseContext.intermediate.growAggregate((yyvsp[-1].interm.intermNode), (yyvsp[0].interm.intermNode));
}
+#line 7057 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 386:
-/* Line 1792 of yacc.c */
-#line 2440 "glslang.y"
+#line 2440 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{ (yyval.interm.intermNode) = 0; }
+#line 7063 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 387:
-/* Line 1792 of yacc.c */
-#line 2441 "glslang.y"
- { (yyval.interm.intermNode) = static_cast((yyvsp[(1) - (2)].interm.intermTypedNode)); }
+#line 2441 "MachineIndependent/glslang.y" /* yacc.c:1646 */
+ { (yyval.interm.intermNode) = static_cast((yyvsp[-1].interm.intermTypedNode)); }
+#line 7069 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 388:
-/* Line 1792 of yacc.c */
-#line 2445 "glslang.y"
+#line 2445 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- 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);
+ parseContext.boolCheck((yyvsp[-4].lex).loc, (yyvsp[-2].interm.intermTypedNode));
+ (yyval.interm.intermNode) = parseContext.intermediate.addSelection((yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.nodePair), (yyvsp[-4].lex).loc);
}
+#line 7078 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 389:
-/* Line 1792 of yacc.c */
-#line 2452 "glslang.y"
+#line 2452 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.nodePair).node1 = (yyvsp[(1) - (3)].interm.intermNode);
- (yyval.interm.nodePair).node2 = (yyvsp[(3) - (3)].interm.intermNode);
+ (yyval.interm.nodePair).node1 = (yyvsp[-2].interm.intermNode);
+ (yyval.interm.nodePair).node2 = (yyvsp[0].interm.intermNode);
}
+#line 7087 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 390:
-/* Line 1792 of yacc.c */
-#line 2456 "glslang.y"
+#line 2456 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.nodePair).node1 = (yyvsp[(1) - (1)].interm.intermNode);
+ (yyval.interm.nodePair).node1 = (yyvsp[0].interm.intermNode);
(yyval.interm.nodePair).node2 = 0;
}
+#line 7096 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 391:
-/* Line 1792 of yacc.c */
-#line 2464 "glslang.y"
+#line 2464 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode);
- parseContext.boolCheck((yyvsp[(1) - (1)].interm.intermTypedNode)->getLoc(), (yyvsp[(1) - (1)].interm.intermTypedNode));
+ (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode);
+ parseContext.boolCheck((yyvsp[0].interm.intermTypedNode)->getLoc(), (yyvsp[0].interm.intermTypedNode));
}
+#line 7105 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 392:
-/* Line 1792 of yacc.c */
-#line 2468 "glslang.y"
+#line 2468 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.boolCheck((yyvsp[(2) - (4)].lex).loc, (yyvsp[(1) - (4)].interm.type));
+ parseContext.boolCheck((yyvsp[-2].lex).loc, (yyvsp[-3].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));
+ TType type((yyvsp[-3].interm.type));
+ TIntermNode* initNode = parseContext.declareVariable((yyvsp[-2].lex).loc, *(yyvsp[-2].lex).string, (yyvsp[-3].interm.type), 0, (yyvsp[0].interm.intermTypedNode));
if (initNode)
(yyval.interm.intermTypedNode) = initNode->getAsTyped();
else
(yyval.interm.intermTypedNode) = 0;
}
+#line 7120 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 393:
-/* Line 1792 of yacc.c */
-#line 2481 "glslang.y"
+#line 2481 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
// start new switch sequence on the switch stack
++parseContext.controlFlowNestingLevel;
@@ -7419,13 +7129,13 @@ yyreduce:
parseContext.switchLevel.push_back(parseContext.statementNestingLevel);
parseContext.symbolTable.push();
}
+#line 7133 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 394:
-/* Line 1792 of yacc.c */
-#line 2489 "glslang.y"
+#line 2489 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (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);
+ (yyval.interm.intermNode) = parseContext.addSwitch((yyvsp[-7].lex).loc, (yyvsp[-5].interm.intermTypedNode), (yyvsp[-1].interm.intermNode) ? (yyvsp[-1].interm.intermNode)->getAsAggregate() : 0);
delete parseContext.switchSequenceStack.back();
parseContext.switchSequenceStack.pop_back();
parseContext.switchLevel.pop_back();
@@ -7433,302 +7143,302 @@ yyreduce:
--parseContext.statementNestingLevel;
--parseContext.controlFlowNestingLevel;
}
+#line 7147 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 395:
-/* Line 1792 of yacc.c */
-#line 2501 "glslang.y"
+#line 2501 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
(yyval.interm.intermNode) = 0;
}
+#line 7155 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 396:
-/* Line 1792 of yacc.c */
-#line 2504 "glslang.y"
+#line 2504 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.intermNode) = (yyvsp[(1) - (1)].interm.intermNode);
+ (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode);
}
+#line 7163 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 397:
-/* Line 1792 of yacc.c */
-#line 2510 "glslang.y"
+#line 2510 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
(yyval.interm.intermNode) = 0;
if (parseContext.switchLevel.size() == 0)
- parseContext.error((yyvsp[(1) - (3)].lex).loc, "cannot appear outside switch statement", "case", "");
+ parseContext.error((yyvsp[-2].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", "");
+ parseContext.error((yyvsp[-2].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);
+ parseContext.constantValueCheck((yyvsp[-1].interm.intermTypedNode), "case");
+ parseContext.integerCheck((yyvsp[-1].interm.intermTypedNode), "case");
+ (yyval.interm.intermNode) = parseContext.intermediate.addBranch(EOpCase, (yyvsp[-1].interm.intermTypedNode), (yyvsp[-2].lex).loc);
}
}
+#line 7180 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 398:
-/* Line 1792 of yacc.c */
-#line 2522 "glslang.y"
+#line 2522 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
(yyval.interm.intermNode) = 0;
if (parseContext.switchLevel.size() == 0)
- parseContext.error((yyvsp[(1) - (2)].lex).loc, "cannot appear outside switch statement", "default", "");
+ parseContext.error((yyvsp[-1].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", "");
+ parseContext.error((yyvsp[-1].lex).loc, "cannot be nested inside control flow", "default", "");
else
- (yyval.interm.intermNode) = parseContext.intermediate.addBranch(EOpDefault, (yyvsp[(1) - (2)].lex).loc);
+ (yyval.interm.intermNode) = parseContext.intermediate.addBranch(EOpDefault, (yyvsp[-1].lex).loc);
}
+#line 7194 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 399:
-/* Line 1792 of yacc.c */
-#line 2534 "glslang.y"
+#line 2534 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
if (! parseContext.limits.whileLoops)
- parseContext.error((yyvsp[(1) - (2)].lex).loc, "while loops not available", "limitation", "");
+ parseContext.error((yyvsp[-1].lex).loc, "while loops not available", "limitation", "");
parseContext.symbolTable.push();
++parseContext.loopNestingLevel;
++parseContext.statementNestingLevel;
++parseContext.controlFlowNestingLevel;
}
+#line 7207 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 400:
-/* Line 1792 of yacc.c */
-#line 2542 "glslang.y"
+#line 2542 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
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);
+ (yyval.interm.intermNode) = parseContext.intermediate.addLoop((yyvsp[0].interm.intermNode), (yyvsp[-2].interm.intermTypedNode), 0, true, (yyvsp[-5].lex).loc);
--parseContext.loopNestingLevel;
--parseContext.statementNestingLevel;
--parseContext.controlFlowNestingLevel;
}
+#line 7219 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 401:
-/* Line 1792 of yacc.c */
-#line 2549 "glslang.y"
+#line 2549 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
++parseContext.loopNestingLevel;
++parseContext.statementNestingLevel;
++parseContext.controlFlowNestingLevel;
}
+#line 7229 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 402:
-/* Line 1792 of yacc.c */
-#line 2554 "glslang.y"
+#line 2554 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
if (! parseContext.limits.whileLoops)
- parseContext.error((yyvsp[(1) - (8)].lex).loc, "do-while loops not available", "limitation", "");
+ parseContext.error((yyvsp[-7].lex).loc, "do-while loops not available", "limitation", "");
- parseContext.boolCheck((yyvsp[(8) - (8)].lex).loc, (yyvsp[(6) - (8)].interm.intermTypedNode));
+ parseContext.boolCheck((yyvsp[0].lex).loc, (yyvsp[-2].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);
+ (yyval.interm.intermNode) = parseContext.intermediate.addLoop((yyvsp[-5].interm.intermNode), (yyvsp[-2].interm.intermTypedNode), 0, false, (yyvsp[-4].lex).loc);
--parseContext.loopNestingLevel;
--parseContext.statementNestingLevel;
--parseContext.controlFlowNestingLevel;
}
+#line 7245 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 403:
-/* Line 1792 of yacc.c */
-#line 2565 "glslang.y"
+#line 2565 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
parseContext.symbolTable.push();
++parseContext.loopNestingLevel;
++parseContext.statementNestingLevel;
++parseContext.controlFlowNestingLevel;
}
+#line 7256 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 404:
-/* Line 1792 of yacc.c */
-#line 2571 "glslang.y"
+#line 2571 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
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((yyvsp[(5) - (7)].interm.nodePair).node1), reinterpret_cast((yyvsp[(5) - (7)].interm.nodePair).node2), true, (yyvsp[(1) - (7)].lex).loc);
+ (yyval.interm.intermNode) = parseContext.intermediate.makeAggregate((yyvsp[-3].interm.intermNode), (yyvsp[-5].lex).loc);
+ TIntermLoop* forLoop = parseContext.intermediate.addLoop((yyvsp[0].interm.intermNode), reinterpret_cast((yyvsp[-2].interm.nodePair).node1), reinterpret_cast((yyvsp[-2].interm.nodePair).node2), true, (yyvsp[-6].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);
+ parseContext.inductiveLoopCheck((yyvsp[-6].lex).loc, (yyvsp[-3].interm.intermNode), forLoop);
+ (yyval.interm.intermNode) = parseContext.intermediate.growAggregate((yyval.interm.intermNode), forLoop, (yyvsp[-6].lex).loc);
(yyval.interm.intermNode)->getAsAggregate()->setOperator(EOpSequence);
--parseContext.loopNestingLevel;
--parseContext.statementNestingLevel;
--parseContext.controlFlowNestingLevel;
}
+#line 7273 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 405:
-/* Line 1792 of yacc.c */
-#line 2586 "glslang.y"
+#line 2586 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.intermNode) = (yyvsp[(1) - (1)].interm.intermNode);
+ (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode);
}
+#line 7281 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 406:
-/* Line 1792 of yacc.c */
-#line 2589 "glslang.y"
+#line 2589 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.intermNode) = (yyvsp[(1) - (1)].interm.intermNode);
+ (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode);
}
+#line 7289 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 407:
-/* Line 1792 of yacc.c */
-#line 2595 "glslang.y"
+#line 2595 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.intermTypedNode) = (yyvsp[(1) - (1)].interm.intermTypedNode);
+ (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode);
}
+#line 7297 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 408:
-/* Line 1792 of yacc.c */
-#line 2598 "glslang.y"
+#line 2598 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
(yyval.interm.intermTypedNode) = 0;
}
+#line 7305 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 409:
-/* Line 1792 of yacc.c */
-#line 2604 "glslang.y"
+#line 2604 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.nodePair).node1 = (yyvsp[(1) - (2)].interm.intermTypedNode);
+ (yyval.interm.nodePair).node1 = (yyvsp[-1].interm.intermTypedNode);
(yyval.interm.nodePair).node2 = 0;
}
+#line 7314 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 410:
-/* Line 1792 of yacc.c */
-#line 2608 "glslang.y"
+#line 2608 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.nodePair).node1 = (yyvsp[(1) - (3)].interm.intermTypedNode);
- (yyval.interm.nodePair).node2 = (yyvsp[(3) - (3)].interm.intermTypedNode);
+ (yyval.interm.nodePair).node1 = (yyvsp[-2].interm.intermTypedNode);
+ (yyval.interm.nodePair).node2 = (yyvsp[0].interm.intermTypedNode);
}
+#line 7323 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 411:
-/* Line 1792 of yacc.c */
-#line 2615 "glslang.y"
+#line 2615 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
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);
+ parseContext.error((yyvsp[-1].lex).loc, "continue statement only allowed in loops", "", "");
+ (yyval.interm.intermNode) = parseContext.intermediate.addBranch(EOpContinue, (yyvsp[-1].lex).loc);
}
+#line 7333 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 412:
-/* Line 1792 of yacc.c */
-#line 2620 "glslang.y"
+#line 2620 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
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);
+ parseContext.error((yyvsp[-1].lex).loc, "break statement only allowed in switch and loops", "", "");
+ (yyval.interm.intermNode) = parseContext.intermediate.addBranch(EOpBreak, (yyvsp[-1].lex).loc);
}
+#line 7343 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 413:
-/* Line 1792 of yacc.c */
-#line 2625 "glslang.y"
+#line 2625 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.intermNode) = parseContext.intermediate.addBranch(EOpReturn, (yyvsp[(1) - (2)].lex).loc);
+ (yyval.interm.intermNode) = parseContext.intermediate.addBranch(EOpReturn, (yyvsp[-1].lex).loc);
if (parseContext.currentFunctionType->getBasicType() != EbtVoid)
- parseContext.error((yyvsp[(1) - (2)].lex).loc, "non-void function must return a value", "return", "");
+ parseContext.error((yyvsp[-1].lex).loc, "non-void function must return a value", "return", "");
if (parseContext.inMain)
parseContext.postMainReturn = true;
}
+#line 7355 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 414:
-/* Line 1792 of yacc.c */
-#line 2632 "glslang.y"
+#line 2632 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
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));
+ parseContext.error((yyvsp[-2].lex).loc, "void function cannot return a value", "return", "");
+ (yyval.interm.intermNode) = parseContext.intermediate.addBranch(EOpReturn, (yyvsp[-2].lex).loc);
+ } else if (*(parseContext.currentFunctionType) != (yyvsp[-1].interm.intermTypedNode)->getType()) {
+ TIntermTyped* converted = parseContext.intermediate.addConversion(EOpReturn, *parseContext.currentFunctionType, (yyvsp[-1].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);
+ parseContext.warn((yyvsp[-2].lex).loc, "type conversion on return values was not explicitly allowed until version 420", "return", "");
+ (yyval.interm.intermNode) = parseContext.intermediate.addBranch(EOpReturn, converted, (yyvsp[-2].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);
+ parseContext.error((yyvsp[-2].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[-1].interm.intermTypedNode), (yyvsp[-2].lex).loc);
}
} else
- (yyval.interm.intermNode) = parseContext.intermediate.addBranch(EOpReturn, (yyvsp[(2) - (3)].interm.intermTypedNode), (yyvsp[(1) - (3)].lex).loc);
+ (yyval.interm.intermNode) = parseContext.intermediate.addBranch(EOpReturn, (yyvsp[-1].interm.intermTypedNode), (yyvsp[-2].lex).loc);
}
+#line 7378 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 415:
-/* Line 1792 of yacc.c */
-#line 2650 "glslang.y"
+#line 2650 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- parseContext.requireStage((yyvsp[(1) - (2)].lex).loc, EShLangFragment, "discard");
- (yyval.interm.intermNode) = parseContext.intermediate.addBranch(EOpKill, (yyvsp[(1) - (2)].lex).loc);
+ parseContext.requireStage((yyvsp[-1].lex).loc, EShLangFragment, "discard");
+ (yyval.interm.intermNode) = parseContext.intermediate.addBranch(EOpKill, (yyvsp[-1].lex).loc);
}
+#line 7387 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 416:
-/* Line 1792 of yacc.c */
-#line 2659 "glslang.y"
+#line 2659 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.intermNode) = (yyvsp[(1) - (1)].interm.intermNode);
+ (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode);
parseContext.intermediate.setTreeRoot((yyval.interm.intermNode));
}
+#line 7396 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 417:
-/* Line 1792 of yacc.c */
-#line 2663 "glslang.y"
+#line 2663 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.intermNode) = parseContext.intermediate.growAggregate((yyvsp[(1) - (2)].interm.intermNode), (yyvsp[(2) - (2)].interm.intermNode));
+ (yyval.interm.intermNode) = parseContext.intermediate.growAggregate((yyvsp[-1].interm.intermNode), (yyvsp[0].interm.intermNode));
parseContext.intermediate.setTreeRoot((yyval.interm.intermNode));
}
+#line 7405 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 418:
-/* Line 1792 of yacc.c */
-#line 2670 "glslang.y"
+#line 2670 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.intermNode) = (yyvsp[(1) - (1)].interm.intermNode);
+ (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode);
}
+#line 7413 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 419:
-/* Line 1792 of yacc.c */
-#line 2673 "glslang.y"
+#line 2673 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (yyval.interm.intermNode) = (yyvsp[(1) - (1)].interm.intermNode);
+ (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode);
}
+#line 7421 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 420:
-/* Line 1792 of yacc.c */
-#line 2679 "glslang.y"
+#line 2679 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
- (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);
+ (yyvsp[0].interm).function = parseContext.handleFunctionDeclarator((yyvsp[0].interm).loc, *(yyvsp[0].interm).function, false /* not prototype */);
+ (yyvsp[0].interm).intermNode = parseContext.handleFunctionDefinition((yyvsp[0].interm).loc, *(yyvsp[0].interm).function);
}
+#line 7430 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
case 421:
-/* Line 1792 of yacc.c */
-#line 2683 "glslang.y"
+#line 2683 "MachineIndependent/glslang.y" /* yacc.c:1646 */
{
// 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.error((yyvsp[-2].interm).loc, "function does not return a value:", "", (yyvsp[-2].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());
+ (yyval.interm.intermNode) = parseContext.intermediate.growAggregate((yyvsp[-2].interm).intermNode, (yyvsp[0].interm.intermNode));
+ parseContext.intermediate.setAggregateOperator((yyval.interm.intermNode), EOpFunction, (yyvsp[-2].interm).function->getType(), (yyvsp[-2].interm).loc);
+ (yyval.interm.intermNode)->getAsAggregate()->setName((yyvsp[-2].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
@@ -7736,11 +7446,11 @@ yyreduce:
(yyval.interm.intermNode)->getAsAggregate()->setDebug(parseContext.contextPragma.debug);
(yyval.interm.intermNode)->getAsAggregate()->addToPragmaTable(parseContext.contextPragma.pragmaTable);
}
+#line 7450 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
break;
-/* Line 1792 of yacc.c */
-#line 7744 "glslang_tab.cpp"
+#line 7454 "MachineIndependent/glslang_tab.cpp" /* yacc.c:1646 */
default: break;
}
/* User semantic actions sometimes alter yychar, and that requires
@@ -7762,7 +7472,7 @@ yyreduce:
*++yyvsp = yyval;
- /* Now `shift' the result of the reduction. Determine what state
+ /* 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. */
@@ -7777,9 +7487,9 @@ yyreduce:
goto yynewstate;
-/*------------------------------------.
-| yyerrlab -- here on detecting error |
-`------------------------------------*/
+/*--------------------------------------.
+| yyerrlab -- here on detecting error. |
+`--------------------------------------*/
yyerrlab:
/* Make sure we have latest lookahead translation. See comments at
user semantic actions for why this is necessary. */
@@ -7830,20 +7540,20 @@ yyerrlab:
if (yyerrstatus == 3)
{
/* If just tried and failed to reuse lookahead token after an
- error, discard it. */
+ error, discard it. */
if (yychar <= YYEOF)
- {
- /* Return failure if at end of input. */
- if (yychar == YYEOF)
- YYABORT;
- }
+ {
+ /* Return failure if at end of input. */
+ if (yychar == YYEOF)
+ YYABORT;
+ }
else
- {
- yydestruct ("Error: discarding",
- yytoken, &yylval, pParseContext);
- yychar = YYEMPTY;
- }
+ {
+ yydestruct ("Error: discarding",
+ yytoken, &yylval, pParseContext);
+ yychar = YYEMPTY;
+ }
}
/* Else will try to reuse lookahead token after shifting the error
@@ -7862,7 +7572,7 @@ yyerrorlab:
if (/*CONSTCOND*/ 0)
goto yyerrorlab;
- /* Do not reclaim the symbols of the rule which action triggered
+ /* Do not reclaim the symbols of the rule whose action triggered
this YYERROR. */
YYPOPSTACK (yylen);
yylen = 0;
@@ -7875,29 +7585,29 @@ yyerrorlab:
| yyerrlab1 -- common code for both syntax error and YYERROR. |
`-------------------------------------------------------------*/
yyerrlab1:
- yyerrstatus = 3; /* Each real token shifted decrements this. */
+ 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;
- }
- }
+ {
+ 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;
+ YYABORT;
yydestruct ("Error: popping",
- yystos[yystate], yyvsp, pParseContext);
+ yystos[yystate], yyvsp, pParseContext);
YYPOPSTACK (1);
yystate = *yyssp;
YY_STACK_PRINT (yyss, yyssp);
@@ -7948,14 +7658,14 @@ yyreturn:
yydestruct ("Cleanup: discarding lookahead",
yytoken, &yylval, pParseContext);
}
- /* Do not reclaim the symbols of the rule which action triggered
+ /* Do not reclaim the symbols of the rule whose action triggered
this YYABORT or YYACCEPT. */
YYPOPSTACK (yylen);
YY_STACK_PRINT (yyss, yyssp);
while (yyssp != yyss)
{
yydestruct ("Cleanup: popping",
- yystos[*yyssp], yyvsp, pParseContext);
+ yystos[*yyssp], yyvsp, pParseContext);
YYPOPSTACK (1);
}
#ifndef yyoverflow
@@ -7966,11 +7676,7 @@ yyreturn:
if (yymsg != yymsgbuf)
YYSTACK_FREE (yymsg);
#endif
- /* Make sure YYID is used. */
- return YYID (yyresult);
+ return yyresult;
}
-
-
-/* Line 2055 of yacc.c */
-#line 2700 "glslang.y"
+#line 2700 "MachineIndependent/glslang.y" /* yacc.c:1906 */
diff --git a/glslang/MachineIndependent/glslang_tab.cpp.h b/glslang/MachineIndependent/glslang_tab.cpp.h
index 03f5706b..e7d8fae8 100644
--- a/glslang/MachineIndependent/glslang_tab.cpp.h
+++ b/glslang/MachineIndependent/glslang_tab.cpp.h
@@ -1,19 +1,19 @@
-/* A Bison parser, made by GNU Bison 2.7. */
+/* A Bison parser, made by GNU Bison 3.0.4. */
/* Bison interface for Yacc-like parsers in C
-
- Copyright (C) 1984, 1989-1990, 2000-2012 Free Software Foundation, Inc.
-
+
+ Copyright (C) 1984, 1989-1990, 2000-2015 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 . */
@@ -26,13 +26,13 @@
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. */
-#ifndef YY_YY_GLSLANG_TAB_CPP_H_INCLUDED
-# define YY_YY_GLSLANG_TAB_CPP_H_INCLUDED
-/* Enabling traces. */
+#ifndef YY_YY_MACHINEINDEPENDENT_GLSLANG_TAB_CPP_H_INCLUDED
+# define YY_YY_MACHINEINDEPENDENT_GLSLANG_TAB_CPP_H_INCLUDED
+/* Debug traces. */
#ifndef YYDEBUG
# define YYDEBUG 1
#endif
@@ -40,288 +40,287 @@
extern int yydebug;
#endif
-/* Tokens. */
+/* Token type. */
#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,
- INT64_T = 266,
- UINT64_T = 267,
- BREAK = 268,
- CONTINUE = 269,
- DO = 270,
- ELSE = 271,
- FOR = 272,
- IF = 273,
- DISCARD = 274,
- RETURN = 275,
- SWITCH = 276,
- CASE = 277,
- DEFAULT = 278,
- SUBROUTINE = 279,
- BVEC2 = 280,
- BVEC3 = 281,
- BVEC4 = 282,
- IVEC2 = 283,
- IVEC3 = 284,
- IVEC4 = 285,
- I64VEC2 = 286,
- I64VEC3 = 287,
- I64VEC4 = 288,
- UVEC2 = 289,
- UVEC3 = 290,
- UVEC4 = 291,
- U64VEC2 = 292,
- U64VEC3 = 293,
- U64VEC4 = 294,
- VEC2 = 295,
- VEC3 = 296,
- VEC4 = 297,
- MAT2 = 298,
- MAT3 = 299,
- MAT4 = 300,
- CENTROID = 301,
- IN = 302,
- OUT = 303,
- INOUT = 304,
- UNIFORM = 305,
- PATCH = 306,
- SAMPLE = 307,
- BUFFER = 308,
- SHARED = 309,
- COHERENT = 310,
- VOLATILE = 311,
- RESTRICT = 312,
- READONLY = 313,
- WRITEONLY = 314,
- DVEC2 = 315,
- DVEC3 = 316,
- DVEC4 = 317,
- DMAT2 = 318,
- DMAT3 = 319,
- DMAT4 = 320,
- NOPERSPECTIVE = 321,
- FLAT = 322,
- SMOOTH = 323,
- LAYOUT = 324,
- MAT2X2 = 325,
- MAT2X3 = 326,
- MAT2X4 = 327,
- MAT3X2 = 328,
- MAT3X3 = 329,
- MAT3X4 = 330,
- MAT4X2 = 331,
- MAT4X3 = 332,
- MAT4X4 = 333,
- DMAT2X2 = 334,
- DMAT2X3 = 335,
- DMAT2X4 = 336,
- DMAT3X2 = 337,
- DMAT3X3 = 338,
- DMAT3X4 = 339,
- DMAT4X2 = 340,
- DMAT4X3 = 341,
- DMAT4X4 = 342,
- ATOMIC_UINT = 343,
- SAMPLER1D = 344,
- SAMPLER2D = 345,
- SAMPLER3D = 346,
- SAMPLERCUBE = 347,
- SAMPLER1DSHADOW = 348,
- SAMPLER2DSHADOW = 349,
- SAMPLERCUBESHADOW = 350,
- SAMPLER1DARRAY = 351,
- SAMPLER2DARRAY = 352,
- SAMPLER1DARRAYSHADOW = 353,
- SAMPLER2DARRAYSHADOW = 354,
- ISAMPLER1D = 355,
- ISAMPLER2D = 356,
- ISAMPLER3D = 357,
- ISAMPLERCUBE = 358,
- ISAMPLER1DARRAY = 359,
- ISAMPLER2DARRAY = 360,
- USAMPLER1D = 361,
- USAMPLER2D = 362,
- USAMPLER3D = 363,
- USAMPLERCUBE = 364,
- USAMPLER1DARRAY = 365,
- USAMPLER2DARRAY = 366,
- SAMPLER2DRECT = 367,
- SAMPLER2DRECTSHADOW = 368,
- ISAMPLER2DRECT = 369,
- USAMPLER2DRECT = 370,
- SAMPLERBUFFER = 371,
- ISAMPLERBUFFER = 372,
- USAMPLERBUFFER = 373,
- SAMPLERCUBEARRAY = 374,
- SAMPLERCUBEARRAYSHADOW = 375,
- ISAMPLERCUBEARRAY = 376,
- USAMPLERCUBEARRAY = 377,
- SAMPLER2DMS = 378,
- ISAMPLER2DMS = 379,
- USAMPLER2DMS = 380,
- SAMPLER2DMSARRAY = 381,
- ISAMPLER2DMSARRAY = 382,
- USAMPLER2DMSARRAY = 383,
- SAMPLEREXTERNALOES = 384,
- SAMPLER = 385,
- SAMPLERSHADOW = 386,
- TEXTURE1D = 387,
- TEXTURE2D = 388,
- TEXTURE3D = 389,
- TEXTURECUBE = 390,
- TEXTURE1DARRAY = 391,
- TEXTURE2DARRAY = 392,
- ITEXTURE1D = 393,
- ITEXTURE2D = 394,
- ITEXTURE3D = 395,
- ITEXTURECUBE = 396,
- ITEXTURE1DARRAY = 397,
- ITEXTURE2DARRAY = 398,
- UTEXTURE1D = 399,
- UTEXTURE2D = 400,
- UTEXTURE3D = 401,
- UTEXTURECUBE = 402,
- UTEXTURE1DARRAY = 403,
- UTEXTURE2DARRAY = 404,
- TEXTURE2DRECT = 405,
- ITEXTURE2DRECT = 406,
- UTEXTURE2DRECT = 407,
- TEXTUREBUFFER = 408,
- ITEXTUREBUFFER = 409,
- UTEXTUREBUFFER = 410,
- TEXTURECUBEARRAY = 411,
- ITEXTURECUBEARRAY = 412,
- UTEXTURECUBEARRAY = 413,
- TEXTURE2DMS = 414,
- ITEXTURE2DMS = 415,
- UTEXTURE2DMS = 416,
- TEXTURE2DMSARRAY = 417,
- ITEXTURE2DMSARRAY = 418,
- UTEXTURE2DMSARRAY = 419,
- SUBPASSINPUT = 420,
- SUBPASSINPUTMS = 421,
- ISUBPASSINPUT = 422,
- ISUBPASSINPUTMS = 423,
- USUBPASSINPUT = 424,
- USUBPASSINPUTMS = 425,
- IMAGE1D = 426,
- IIMAGE1D = 427,
- UIMAGE1D = 428,
- IMAGE2D = 429,
- IIMAGE2D = 430,
- UIMAGE2D = 431,
- IMAGE3D = 432,
- IIMAGE3D = 433,
- UIMAGE3D = 434,
- IMAGE2DRECT = 435,
- IIMAGE2DRECT = 436,
- UIMAGE2DRECT = 437,
- IMAGECUBE = 438,
- IIMAGECUBE = 439,
- UIMAGECUBE = 440,
- IMAGEBUFFER = 441,
- IIMAGEBUFFER = 442,
- UIMAGEBUFFER = 443,
- IMAGE1DARRAY = 444,
- IIMAGE1DARRAY = 445,
- UIMAGE1DARRAY = 446,
- IMAGE2DARRAY = 447,
- IIMAGE2DARRAY = 448,
- UIMAGE2DARRAY = 449,
- IMAGECUBEARRAY = 450,
- IIMAGECUBEARRAY = 451,
- UIMAGECUBEARRAY = 452,
- IMAGE2DMS = 453,
- IIMAGE2DMS = 454,
- UIMAGE2DMS = 455,
- IMAGE2DMSARRAY = 456,
- IIMAGE2DMSARRAY = 457,
- UIMAGE2DMSARRAY = 458,
- STRUCT = 459,
- VOID = 460,
- WHILE = 461,
- IDENTIFIER = 462,
- TYPE_NAME = 463,
- FLOATCONSTANT = 464,
- DOUBLECONSTANT = 465,
- INTCONSTANT = 466,
- UINTCONSTANT = 467,
- INT64CONSTANT = 468,
- UINT64CONSTANT = 469,
- BOOLCONSTANT = 470,
- LEFT_OP = 471,
- RIGHT_OP = 472,
- INC_OP = 473,
- DEC_OP = 474,
- LE_OP = 475,
- GE_OP = 476,
- EQ_OP = 477,
- NE_OP = 478,
- AND_OP = 479,
- OR_OP = 480,
- XOR_OP = 481,
- MUL_ASSIGN = 482,
- DIV_ASSIGN = 483,
- ADD_ASSIGN = 484,
- MOD_ASSIGN = 485,
- LEFT_ASSIGN = 486,
- RIGHT_ASSIGN = 487,
- AND_ASSIGN = 488,
- XOR_ASSIGN = 489,
- OR_ASSIGN = 490,
- SUB_ASSIGN = 491,
- LEFT_PAREN = 492,
- RIGHT_PAREN = 493,
- LEFT_BRACKET = 494,
- RIGHT_BRACKET = 495,
- LEFT_BRACE = 496,
- RIGHT_BRACE = 497,
- DOT = 498,
- COMMA = 499,
- COLON = 500,
- EQUAL = 501,
- SEMICOLON = 502,
- BANG = 503,
- DASH = 504,
- TILDE = 505,
- PLUS = 506,
- STAR = 507,
- SLASH = 508,
- PERCENT = 509,
- LEFT_ANGLE = 510,
- RIGHT_ANGLE = 511,
- VERTICAL_BAR = 512,
- CARET = 513,
- AMPERSAND = 514,
- QUESTION = 515,
- INVARIANT = 516,
- PRECISE = 517,
- HIGH_PRECISION = 518,
- MEDIUM_PRECISION = 519,
- LOW_PRECISION = 520,
- PRECISION = 521,
- PACKED = 522,
- RESOURCE = 523,
- SUPERP = 524
- };
+ enum yytokentype
+ {
+ ATTRIBUTE = 258,
+ VARYING = 259,
+ CONST = 260,
+ BOOL = 261,
+ FLOAT = 262,
+ DOUBLE = 263,
+ INT = 264,
+ UINT = 265,
+ INT64_T = 266,
+ UINT64_T = 267,
+ BREAK = 268,
+ CONTINUE = 269,
+ DO = 270,
+ ELSE = 271,
+ FOR = 272,
+ IF = 273,
+ DISCARD = 274,
+ RETURN = 275,
+ SWITCH = 276,
+ CASE = 277,
+ DEFAULT = 278,
+ SUBROUTINE = 279,
+ BVEC2 = 280,
+ BVEC3 = 281,
+ BVEC4 = 282,
+ IVEC2 = 283,
+ IVEC3 = 284,
+ IVEC4 = 285,
+ I64VEC2 = 286,
+ I64VEC3 = 287,
+ I64VEC4 = 288,
+ UVEC2 = 289,
+ UVEC3 = 290,
+ UVEC4 = 291,
+ U64VEC2 = 292,
+ U64VEC3 = 293,
+ U64VEC4 = 294,
+ VEC2 = 295,
+ VEC3 = 296,
+ VEC4 = 297,
+ MAT2 = 298,
+ MAT3 = 299,
+ MAT4 = 300,
+ CENTROID = 301,
+ IN = 302,
+ OUT = 303,
+ INOUT = 304,
+ UNIFORM = 305,
+ PATCH = 306,
+ SAMPLE = 307,
+ BUFFER = 308,
+ SHARED = 309,
+ COHERENT = 310,
+ VOLATILE = 311,
+ RESTRICT = 312,
+ READONLY = 313,
+ WRITEONLY = 314,
+ DVEC2 = 315,
+ DVEC3 = 316,
+ DVEC4 = 317,
+ DMAT2 = 318,
+ DMAT3 = 319,
+ DMAT4 = 320,
+ NOPERSPECTIVE = 321,
+ FLAT = 322,
+ SMOOTH = 323,
+ LAYOUT = 324,
+ MAT2X2 = 325,
+ MAT2X3 = 326,
+ MAT2X4 = 327,
+ MAT3X2 = 328,
+ MAT3X3 = 329,
+ MAT3X4 = 330,
+ MAT4X2 = 331,
+ MAT4X3 = 332,
+ MAT4X4 = 333,
+ DMAT2X2 = 334,
+ DMAT2X3 = 335,
+ DMAT2X4 = 336,
+ DMAT3X2 = 337,
+ DMAT3X3 = 338,
+ DMAT3X4 = 339,
+ DMAT4X2 = 340,
+ DMAT4X3 = 341,
+ DMAT4X4 = 342,
+ ATOMIC_UINT = 343,
+ SAMPLER1D = 344,
+ SAMPLER2D = 345,
+ SAMPLER3D = 346,
+ SAMPLERCUBE = 347,
+ SAMPLER1DSHADOW = 348,
+ SAMPLER2DSHADOW = 349,
+ SAMPLERCUBESHADOW = 350,
+ SAMPLER1DARRAY = 351,
+ SAMPLER2DARRAY = 352,
+ SAMPLER1DARRAYSHADOW = 353,
+ SAMPLER2DARRAYSHADOW = 354,
+ ISAMPLER1D = 355,
+ ISAMPLER2D = 356,
+ ISAMPLER3D = 357,
+ ISAMPLERCUBE = 358,
+ ISAMPLER1DARRAY = 359,
+ ISAMPLER2DARRAY = 360,
+ USAMPLER1D = 361,
+ USAMPLER2D = 362,
+ USAMPLER3D = 363,
+ USAMPLERCUBE = 364,
+ USAMPLER1DARRAY = 365,
+ USAMPLER2DARRAY = 366,
+ SAMPLER2DRECT = 367,
+ SAMPLER2DRECTSHADOW = 368,
+ ISAMPLER2DRECT = 369,
+ USAMPLER2DRECT = 370,
+ SAMPLERBUFFER = 371,
+ ISAMPLERBUFFER = 372,
+ USAMPLERBUFFER = 373,
+ SAMPLERCUBEARRAY = 374,
+ SAMPLERCUBEARRAYSHADOW = 375,
+ ISAMPLERCUBEARRAY = 376,
+ USAMPLERCUBEARRAY = 377,
+ SAMPLER2DMS = 378,
+ ISAMPLER2DMS = 379,
+ USAMPLER2DMS = 380,
+ SAMPLER2DMSARRAY = 381,
+ ISAMPLER2DMSARRAY = 382,
+ USAMPLER2DMSARRAY = 383,
+ SAMPLEREXTERNALOES = 384,
+ SAMPLER = 385,
+ SAMPLERSHADOW = 386,
+ TEXTURE1D = 387,
+ TEXTURE2D = 388,
+ TEXTURE3D = 389,
+ TEXTURECUBE = 390,
+ TEXTURE1DARRAY = 391,
+ TEXTURE2DARRAY = 392,
+ ITEXTURE1D = 393,
+ ITEXTURE2D = 394,
+ ITEXTURE3D = 395,
+ ITEXTURECUBE = 396,
+ ITEXTURE1DARRAY = 397,
+ ITEXTURE2DARRAY = 398,
+ UTEXTURE1D = 399,
+ UTEXTURE2D = 400,
+ UTEXTURE3D = 401,
+ UTEXTURECUBE = 402,
+ UTEXTURE1DARRAY = 403,
+ UTEXTURE2DARRAY = 404,
+ TEXTURE2DRECT = 405,
+ ITEXTURE2DRECT = 406,
+ UTEXTURE2DRECT = 407,
+ TEXTUREBUFFER = 408,
+ ITEXTUREBUFFER = 409,
+ UTEXTUREBUFFER = 410,
+ TEXTURECUBEARRAY = 411,
+ ITEXTURECUBEARRAY = 412,
+ UTEXTURECUBEARRAY = 413,
+ TEXTURE2DMS = 414,
+ ITEXTURE2DMS = 415,
+ UTEXTURE2DMS = 416,
+ TEXTURE2DMSARRAY = 417,
+ ITEXTURE2DMSARRAY = 418,
+ UTEXTURE2DMSARRAY = 419,
+ SUBPASSINPUT = 420,
+ SUBPASSINPUTMS = 421,
+ ISUBPASSINPUT = 422,
+ ISUBPASSINPUTMS = 423,
+ USUBPASSINPUT = 424,
+ USUBPASSINPUTMS = 425,
+ IMAGE1D = 426,
+ IIMAGE1D = 427,
+ UIMAGE1D = 428,
+ IMAGE2D = 429,
+ IIMAGE2D = 430,
+ UIMAGE2D = 431,
+ IMAGE3D = 432,
+ IIMAGE3D = 433,
+ UIMAGE3D = 434,
+ IMAGE2DRECT = 435,
+ IIMAGE2DRECT = 436,
+ UIMAGE2DRECT = 437,
+ IMAGECUBE = 438,
+ IIMAGECUBE = 439,
+ UIMAGECUBE = 440,
+ IMAGEBUFFER = 441,
+ IIMAGEBUFFER = 442,
+ UIMAGEBUFFER = 443,
+ IMAGE1DARRAY = 444,
+ IIMAGE1DARRAY = 445,
+ UIMAGE1DARRAY = 446,
+ IMAGE2DARRAY = 447,
+ IIMAGE2DARRAY = 448,
+ UIMAGE2DARRAY = 449,
+ IMAGECUBEARRAY = 450,
+ IIMAGECUBEARRAY = 451,
+ UIMAGECUBEARRAY = 452,
+ IMAGE2DMS = 453,
+ IIMAGE2DMS = 454,
+ UIMAGE2DMS = 455,
+ IMAGE2DMSARRAY = 456,
+ IIMAGE2DMSARRAY = 457,
+ UIMAGE2DMSARRAY = 458,
+ STRUCT = 459,
+ VOID = 460,
+ WHILE = 461,
+ IDENTIFIER = 462,
+ TYPE_NAME = 463,
+ FLOATCONSTANT = 464,
+ DOUBLECONSTANT = 465,
+ INTCONSTANT = 466,
+ UINTCONSTANT = 467,
+ INT64CONSTANT = 468,
+ UINT64CONSTANT = 469,
+ BOOLCONSTANT = 470,
+ LEFT_OP = 471,
+ RIGHT_OP = 472,
+ INC_OP = 473,
+ DEC_OP = 474,
+ LE_OP = 475,
+ GE_OP = 476,
+ EQ_OP = 477,
+ NE_OP = 478,
+ AND_OP = 479,
+ OR_OP = 480,
+ XOR_OP = 481,
+ MUL_ASSIGN = 482,
+ DIV_ASSIGN = 483,
+ ADD_ASSIGN = 484,
+ MOD_ASSIGN = 485,
+ LEFT_ASSIGN = 486,
+ RIGHT_ASSIGN = 487,
+ AND_ASSIGN = 488,
+ XOR_ASSIGN = 489,
+ OR_ASSIGN = 490,
+ SUB_ASSIGN = 491,
+ LEFT_PAREN = 492,
+ RIGHT_PAREN = 493,
+ LEFT_BRACKET = 494,
+ RIGHT_BRACKET = 495,
+ LEFT_BRACE = 496,
+ RIGHT_BRACE = 497,
+ DOT = 498,
+ COMMA = 499,
+ COLON = 500,
+ EQUAL = 501,
+ SEMICOLON = 502,
+ BANG = 503,
+ DASH = 504,
+ TILDE = 505,
+ PLUS = 506,
+ STAR = 507,
+ SLASH = 508,
+ PERCENT = 509,
+ LEFT_ANGLE = 510,
+ RIGHT_ANGLE = 511,
+ VERTICAL_BAR = 512,
+ CARET = 513,
+ AMPERSAND = 514,
+ QUESTION = 515,
+ INVARIANT = 516,
+ PRECISE = 517,
+ HIGH_PRECISION = 518,
+ MEDIUM_PRECISION = 519,
+ LOW_PRECISION = 520,
+ PRECISION = 521,
+ PACKED = 522,
+ RESOURCE = 523,
+ SUPERP = 524
+ };
#endif
-
+/* Value type. */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
-typedef union YYSTYPE
+
+union YYSTYPE
{
-/* Line 2058 of yacc.c */
-#line 66 "glslang.y"
+#line 66 "MachineIndependent/glslang.y" /* yacc.c:1909 */
struct {
glslang::TSourceLoc loc;
@@ -355,28 +354,16 @@ typedef union YYSTYPE
};
} interm;
+#line 358 "MachineIndependent/glslang_tab.cpp.h" /* yacc.c:1909 */
+};
-/* Line 2058 of yacc.c */
-#line 361 "glslang_tab.cpp.h"
-} YYSTYPE;
+typedef union YYSTYPE 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_GLSLANG_TAB_CPP_H_INCLUDED */
+int yyparse (glslang::TParseContext* pParseContext);
+
+#endif /* !YY_YY_MACHINEINDEPENDENT_GLSLANG_TAB_CPP_H_INCLUDED */
diff --git a/glslang/updateGrammar b/glslang/updateGrammar
new file mode 100755
index 00000000..f8fa81da
--- /dev/null
+++ b/glslang/updateGrammar
@@ -0,0 +1,3 @@
+#!/usr/bin/env bash
+
+bison --defines=MachineIndependent/glslang_tab.cpp.h -t MachineIndependent/glslang.y -o MachineIndependent/glslang_tab.cpp