mirror of
https://github.com/ZDoom/ZDRay.git
synced 2024-11-26 05:41:42 +00:00
507 lines
12 KiB
C
507 lines
12 KiB
C
/* A Bison parser, made by GNU Bison 3.0.4. */
|
|
|
|
/* Bison interface for Yacc-like parsers in C
|
|
|
|
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 <http://www.gnu.org/licenses/>. */
|
|
|
|
/* As a special exception, you may create a larger work that contains
|
|
part or all of the Bison parser skeleton and distribute that work
|
|
under terms of your choice, so long as that work isn't itself a
|
|
parser generator using the skeleton or a modified version thereof
|
|
as a parser skeleton. Alternatively, if you modify or redistribute
|
|
the parser skeleton itself, you may (at your option) remove this
|
|
special exception, which will cause the skeleton and the resulting
|
|
Bison output files to be licensed under the GNU General Public
|
|
License without this special exception.
|
|
|
|
This special exception was added by the Free Software Foundation in
|
|
version 2.2 of Bison. */
|
|
|
|
#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
|
|
#if YYDEBUG
|
|
extern int yydebug;
|
|
#endif
|
|
|
|
/* Token type. */
|
|
#ifndef YYTOKENTYPE
|
|
# define YYTOKENTYPE
|
|
enum yytokentype
|
|
{
|
|
ATTRIBUTE = 258,
|
|
VARYING = 259,
|
|
FLOAT16_T = 260,
|
|
FLOAT = 261,
|
|
FLOAT32_T = 262,
|
|
DOUBLE = 263,
|
|
FLOAT64_T = 264,
|
|
CONST = 265,
|
|
BOOL = 266,
|
|
INT = 267,
|
|
UINT = 268,
|
|
INT64_T = 269,
|
|
UINT64_T = 270,
|
|
INT32_T = 271,
|
|
UINT32_T = 272,
|
|
INT16_T = 273,
|
|
UINT16_T = 274,
|
|
INT8_T = 275,
|
|
UINT8_T = 276,
|
|
BREAK = 277,
|
|
CONTINUE = 278,
|
|
DO = 279,
|
|
ELSE = 280,
|
|
FOR = 281,
|
|
IF = 282,
|
|
DISCARD = 283,
|
|
RETURN = 284,
|
|
SWITCH = 285,
|
|
CASE = 286,
|
|
DEFAULT = 287,
|
|
SUBROUTINE = 288,
|
|
BVEC2 = 289,
|
|
BVEC3 = 290,
|
|
BVEC4 = 291,
|
|
IVEC2 = 292,
|
|
IVEC3 = 293,
|
|
IVEC4 = 294,
|
|
UVEC2 = 295,
|
|
UVEC3 = 296,
|
|
UVEC4 = 297,
|
|
I64VEC2 = 298,
|
|
I64VEC3 = 299,
|
|
I64VEC4 = 300,
|
|
U64VEC2 = 301,
|
|
U64VEC3 = 302,
|
|
U64VEC4 = 303,
|
|
I32VEC2 = 304,
|
|
I32VEC3 = 305,
|
|
I32VEC4 = 306,
|
|
U32VEC2 = 307,
|
|
U32VEC3 = 308,
|
|
U32VEC4 = 309,
|
|
I16VEC2 = 310,
|
|
I16VEC3 = 311,
|
|
I16VEC4 = 312,
|
|
U16VEC2 = 313,
|
|
U16VEC3 = 314,
|
|
U16VEC4 = 315,
|
|
I8VEC2 = 316,
|
|
I8VEC3 = 317,
|
|
I8VEC4 = 318,
|
|
U8VEC2 = 319,
|
|
U8VEC3 = 320,
|
|
U8VEC4 = 321,
|
|
VEC2 = 322,
|
|
VEC3 = 323,
|
|
VEC4 = 324,
|
|
MAT2 = 325,
|
|
MAT3 = 326,
|
|
MAT4 = 327,
|
|
CENTROID = 328,
|
|
IN = 329,
|
|
OUT = 330,
|
|
INOUT = 331,
|
|
UNIFORM = 332,
|
|
PATCH = 333,
|
|
SAMPLE = 334,
|
|
BUFFER = 335,
|
|
SHARED = 336,
|
|
NONUNIFORM = 337,
|
|
PAYLOADNV = 338,
|
|
PAYLOADINNV = 339,
|
|
HITATTRNV = 340,
|
|
CALLDATANV = 341,
|
|
CALLDATAINNV = 342,
|
|
COHERENT = 343,
|
|
VOLATILE = 344,
|
|
RESTRICT = 345,
|
|
READONLY = 346,
|
|
WRITEONLY = 347,
|
|
DEVICECOHERENT = 348,
|
|
QUEUEFAMILYCOHERENT = 349,
|
|
WORKGROUPCOHERENT = 350,
|
|
SUBGROUPCOHERENT = 351,
|
|
NONPRIVATE = 352,
|
|
DVEC2 = 353,
|
|
DVEC3 = 354,
|
|
DVEC4 = 355,
|
|
DMAT2 = 356,
|
|
DMAT3 = 357,
|
|
DMAT4 = 358,
|
|
F16VEC2 = 359,
|
|
F16VEC3 = 360,
|
|
F16VEC4 = 361,
|
|
F16MAT2 = 362,
|
|
F16MAT3 = 363,
|
|
F16MAT4 = 364,
|
|
F32VEC2 = 365,
|
|
F32VEC3 = 366,
|
|
F32VEC4 = 367,
|
|
F32MAT2 = 368,
|
|
F32MAT3 = 369,
|
|
F32MAT4 = 370,
|
|
F64VEC2 = 371,
|
|
F64VEC3 = 372,
|
|
F64VEC4 = 373,
|
|
F64MAT2 = 374,
|
|
F64MAT3 = 375,
|
|
F64MAT4 = 376,
|
|
NOPERSPECTIVE = 377,
|
|
FLAT = 378,
|
|
SMOOTH = 379,
|
|
LAYOUT = 380,
|
|
EXPLICITINTERPAMD = 381,
|
|
PERVERTEXNV = 382,
|
|
PERPRIMITIVENV = 383,
|
|
PERVIEWNV = 384,
|
|
PERTASKNV = 385,
|
|
MAT2X2 = 386,
|
|
MAT2X3 = 387,
|
|
MAT2X4 = 388,
|
|
MAT3X2 = 389,
|
|
MAT3X3 = 390,
|
|
MAT3X4 = 391,
|
|
MAT4X2 = 392,
|
|
MAT4X3 = 393,
|
|
MAT4X4 = 394,
|
|
DMAT2X2 = 395,
|
|
DMAT2X3 = 396,
|
|
DMAT2X4 = 397,
|
|
DMAT3X2 = 398,
|
|
DMAT3X3 = 399,
|
|
DMAT3X4 = 400,
|
|
DMAT4X2 = 401,
|
|
DMAT4X3 = 402,
|
|
DMAT4X4 = 403,
|
|
F16MAT2X2 = 404,
|
|
F16MAT2X3 = 405,
|
|
F16MAT2X4 = 406,
|
|
F16MAT3X2 = 407,
|
|
F16MAT3X3 = 408,
|
|
F16MAT3X4 = 409,
|
|
F16MAT4X2 = 410,
|
|
F16MAT4X3 = 411,
|
|
F16MAT4X4 = 412,
|
|
F32MAT2X2 = 413,
|
|
F32MAT2X3 = 414,
|
|
F32MAT2X4 = 415,
|
|
F32MAT3X2 = 416,
|
|
F32MAT3X3 = 417,
|
|
F32MAT3X4 = 418,
|
|
F32MAT4X2 = 419,
|
|
F32MAT4X3 = 420,
|
|
F32MAT4X4 = 421,
|
|
F64MAT2X2 = 422,
|
|
F64MAT2X3 = 423,
|
|
F64MAT2X4 = 424,
|
|
F64MAT3X2 = 425,
|
|
F64MAT3X3 = 426,
|
|
F64MAT3X4 = 427,
|
|
F64MAT4X2 = 428,
|
|
F64MAT4X3 = 429,
|
|
F64MAT4X4 = 430,
|
|
ATOMIC_UINT = 431,
|
|
ACCSTRUCTNV = 432,
|
|
SAMPLER1D = 433,
|
|
SAMPLER2D = 434,
|
|
SAMPLER3D = 435,
|
|
SAMPLERCUBE = 436,
|
|
SAMPLER1DSHADOW = 437,
|
|
SAMPLER2DSHADOW = 438,
|
|
SAMPLERCUBESHADOW = 439,
|
|
SAMPLER1DARRAY = 440,
|
|
SAMPLER2DARRAY = 441,
|
|
SAMPLER1DARRAYSHADOW = 442,
|
|
SAMPLER2DARRAYSHADOW = 443,
|
|
ISAMPLER1D = 444,
|
|
ISAMPLER2D = 445,
|
|
ISAMPLER3D = 446,
|
|
ISAMPLERCUBE = 447,
|
|
ISAMPLER1DARRAY = 448,
|
|
ISAMPLER2DARRAY = 449,
|
|
USAMPLER1D = 450,
|
|
USAMPLER2D = 451,
|
|
USAMPLER3D = 452,
|
|
USAMPLERCUBE = 453,
|
|
USAMPLER1DARRAY = 454,
|
|
USAMPLER2DARRAY = 455,
|
|
SAMPLER2DRECT = 456,
|
|
SAMPLER2DRECTSHADOW = 457,
|
|
ISAMPLER2DRECT = 458,
|
|
USAMPLER2DRECT = 459,
|
|
SAMPLERBUFFER = 460,
|
|
ISAMPLERBUFFER = 461,
|
|
USAMPLERBUFFER = 462,
|
|
SAMPLERCUBEARRAY = 463,
|
|
SAMPLERCUBEARRAYSHADOW = 464,
|
|
ISAMPLERCUBEARRAY = 465,
|
|
USAMPLERCUBEARRAY = 466,
|
|
SAMPLER2DMS = 467,
|
|
ISAMPLER2DMS = 468,
|
|
USAMPLER2DMS = 469,
|
|
SAMPLER2DMSARRAY = 470,
|
|
ISAMPLER2DMSARRAY = 471,
|
|
USAMPLER2DMSARRAY = 472,
|
|
SAMPLEREXTERNALOES = 473,
|
|
SAMPLEREXTERNAL2DY2YEXT = 474,
|
|
F16SAMPLER1D = 475,
|
|
F16SAMPLER2D = 476,
|
|
F16SAMPLER3D = 477,
|
|
F16SAMPLER2DRECT = 478,
|
|
F16SAMPLERCUBE = 479,
|
|
F16SAMPLER1DARRAY = 480,
|
|
F16SAMPLER2DARRAY = 481,
|
|
F16SAMPLERCUBEARRAY = 482,
|
|
F16SAMPLERBUFFER = 483,
|
|
F16SAMPLER2DMS = 484,
|
|
F16SAMPLER2DMSARRAY = 485,
|
|
F16SAMPLER1DSHADOW = 486,
|
|
F16SAMPLER2DSHADOW = 487,
|
|
F16SAMPLER1DARRAYSHADOW = 488,
|
|
F16SAMPLER2DARRAYSHADOW = 489,
|
|
F16SAMPLER2DRECTSHADOW = 490,
|
|
F16SAMPLERCUBESHADOW = 491,
|
|
F16SAMPLERCUBEARRAYSHADOW = 492,
|
|
SAMPLER = 493,
|
|
SAMPLERSHADOW = 494,
|
|
TEXTURE1D = 495,
|
|
TEXTURE2D = 496,
|
|
TEXTURE3D = 497,
|
|
TEXTURECUBE = 498,
|
|
TEXTURE1DARRAY = 499,
|
|
TEXTURE2DARRAY = 500,
|
|
ITEXTURE1D = 501,
|
|
ITEXTURE2D = 502,
|
|
ITEXTURE3D = 503,
|
|
ITEXTURECUBE = 504,
|
|
ITEXTURE1DARRAY = 505,
|
|
ITEXTURE2DARRAY = 506,
|
|
UTEXTURE1D = 507,
|
|
UTEXTURE2D = 508,
|
|
UTEXTURE3D = 509,
|
|
UTEXTURECUBE = 510,
|
|
UTEXTURE1DARRAY = 511,
|
|
UTEXTURE2DARRAY = 512,
|
|
TEXTURE2DRECT = 513,
|
|
ITEXTURE2DRECT = 514,
|
|
UTEXTURE2DRECT = 515,
|
|
TEXTUREBUFFER = 516,
|
|
ITEXTUREBUFFER = 517,
|
|
UTEXTUREBUFFER = 518,
|
|
TEXTURECUBEARRAY = 519,
|
|
ITEXTURECUBEARRAY = 520,
|
|
UTEXTURECUBEARRAY = 521,
|
|
TEXTURE2DMS = 522,
|
|
ITEXTURE2DMS = 523,
|
|
UTEXTURE2DMS = 524,
|
|
TEXTURE2DMSARRAY = 525,
|
|
ITEXTURE2DMSARRAY = 526,
|
|
UTEXTURE2DMSARRAY = 527,
|
|
F16TEXTURE1D = 528,
|
|
F16TEXTURE2D = 529,
|
|
F16TEXTURE3D = 530,
|
|
F16TEXTURE2DRECT = 531,
|
|
F16TEXTURECUBE = 532,
|
|
F16TEXTURE1DARRAY = 533,
|
|
F16TEXTURE2DARRAY = 534,
|
|
F16TEXTURECUBEARRAY = 535,
|
|
F16TEXTUREBUFFER = 536,
|
|
F16TEXTURE2DMS = 537,
|
|
F16TEXTURE2DMSARRAY = 538,
|
|
SUBPASSINPUT = 539,
|
|
SUBPASSINPUTMS = 540,
|
|
ISUBPASSINPUT = 541,
|
|
ISUBPASSINPUTMS = 542,
|
|
USUBPASSINPUT = 543,
|
|
USUBPASSINPUTMS = 544,
|
|
F16SUBPASSINPUT = 545,
|
|
F16SUBPASSINPUTMS = 546,
|
|
IMAGE1D = 547,
|
|
IIMAGE1D = 548,
|
|
UIMAGE1D = 549,
|
|
IMAGE2D = 550,
|
|
IIMAGE2D = 551,
|
|
UIMAGE2D = 552,
|
|
IMAGE3D = 553,
|
|
IIMAGE3D = 554,
|
|
UIMAGE3D = 555,
|
|
IMAGE2DRECT = 556,
|
|
IIMAGE2DRECT = 557,
|
|
UIMAGE2DRECT = 558,
|
|
IMAGECUBE = 559,
|
|
IIMAGECUBE = 560,
|
|
UIMAGECUBE = 561,
|
|
IMAGEBUFFER = 562,
|
|
IIMAGEBUFFER = 563,
|
|
UIMAGEBUFFER = 564,
|
|
IMAGE1DARRAY = 565,
|
|
IIMAGE1DARRAY = 566,
|
|
UIMAGE1DARRAY = 567,
|
|
IMAGE2DARRAY = 568,
|
|
IIMAGE2DARRAY = 569,
|
|
UIMAGE2DARRAY = 570,
|
|
IMAGECUBEARRAY = 571,
|
|
IIMAGECUBEARRAY = 572,
|
|
UIMAGECUBEARRAY = 573,
|
|
IMAGE2DMS = 574,
|
|
IIMAGE2DMS = 575,
|
|
UIMAGE2DMS = 576,
|
|
IMAGE2DMSARRAY = 577,
|
|
IIMAGE2DMSARRAY = 578,
|
|
UIMAGE2DMSARRAY = 579,
|
|
F16IMAGE1D = 580,
|
|
F16IMAGE2D = 581,
|
|
F16IMAGE3D = 582,
|
|
F16IMAGE2DRECT = 583,
|
|
F16IMAGECUBE = 584,
|
|
F16IMAGE1DARRAY = 585,
|
|
F16IMAGE2DARRAY = 586,
|
|
F16IMAGECUBEARRAY = 587,
|
|
F16IMAGEBUFFER = 588,
|
|
F16IMAGE2DMS = 589,
|
|
F16IMAGE2DMSARRAY = 590,
|
|
STRUCT = 591,
|
|
VOID = 592,
|
|
WHILE = 593,
|
|
IDENTIFIER = 594,
|
|
TYPE_NAME = 595,
|
|
FLOATCONSTANT = 596,
|
|
DOUBLECONSTANT = 597,
|
|
INT16CONSTANT = 598,
|
|
UINT16CONSTANT = 599,
|
|
INT32CONSTANT = 600,
|
|
UINT32CONSTANT = 601,
|
|
INTCONSTANT = 602,
|
|
UINTCONSTANT = 603,
|
|
INT64CONSTANT = 604,
|
|
UINT64CONSTANT = 605,
|
|
BOOLCONSTANT = 606,
|
|
FLOAT16CONSTANT = 607,
|
|
LEFT_OP = 608,
|
|
RIGHT_OP = 609,
|
|
INC_OP = 610,
|
|
DEC_OP = 611,
|
|
LE_OP = 612,
|
|
GE_OP = 613,
|
|
EQ_OP = 614,
|
|
NE_OP = 615,
|
|
AND_OP = 616,
|
|
OR_OP = 617,
|
|
XOR_OP = 618,
|
|
MUL_ASSIGN = 619,
|
|
DIV_ASSIGN = 620,
|
|
ADD_ASSIGN = 621,
|
|
MOD_ASSIGN = 622,
|
|
LEFT_ASSIGN = 623,
|
|
RIGHT_ASSIGN = 624,
|
|
AND_ASSIGN = 625,
|
|
XOR_ASSIGN = 626,
|
|
OR_ASSIGN = 627,
|
|
SUB_ASSIGN = 628,
|
|
LEFT_PAREN = 629,
|
|
RIGHT_PAREN = 630,
|
|
LEFT_BRACKET = 631,
|
|
RIGHT_BRACKET = 632,
|
|
LEFT_BRACE = 633,
|
|
RIGHT_BRACE = 634,
|
|
DOT = 635,
|
|
COMMA = 636,
|
|
COLON = 637,
|
|
EQUAL = 638,
|
|
SEMICOLON = 639,
|
|
BANG = 640,
|
|
DASH = 641,
|
|
TILDE = 642,
|
|
PLUS = 643,
|
|
STAR = 644,
|
|
SLASH = 645,
|
|
PERCENT = 646,
|
|
LEFT_ANGLE = 647,
|
|
RIGHT_ANGLE = 648,
|
|
VERTICAL_BAR = 649,
|
|
CARET = 650,
|
|
AMPERSAND = 651,
|
|
QUESTION = 652,
|
|
INVARIANT = 653,
|
|
PRECISE = 654,
|
|
HIGH_PRECISION = 655,
|
|
MEDIUM_PRECISION = 656,
|
|
LOW_PRECISION = 657,
|
|
PRECISION = 658,
|
|
PACKED = 659,
|
|
RESOURCE = 660,
|
|
SUPERP = 661
|
|
};
|
|
#endif
|
|
|
|
/* Value type. */
|
|
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
|
|
|
union YYSTYPE
|
|
{
|
|
#line 71 "MachineIndependent/glslang.y" /* yacc.c:1909 */
|
|
|
|
struct {
|
|
glslang::TSourceLoc loc;
|
|
union {
|
|
glslang::TString *string;
|
|
int i;
|
|
unsigned int u;
|
|
long long i64;
|
|
unsigned long long u64;
|
|
bool b;
|
|
double d;
|
|
};
|
|
glslang::TSymbol* symbol;
|
|
} lex;
|
|
struct {
|
|
glslang::TSourceLoc loc;
|
|
glslang::TOperator op;
|
|
union {
|
|
TIntermNode* intermNode;
|
|
glslang::TIntermNodePair nodePair;
|
|
glslang::TIntermTyped* intermTypedNode;
|
|
glslang::TAttributes* attributes;
|
|
};
|
|
union {
|
|
glslang::TPublicType type;
|
|
glslang::TFunction* function;
|
|
glslang::TParameter param;
|
|
glslang::TTypeLoc typeLine;
|
|
glslang::TTypeList* typeList;
|
|
glslang::TArraySizes* arraySizes;
|
|
glslang::TIdentifierList* identifierList;
|
|
};
|
|
} interm;
|
|
|
|
#line 496 "MachineIndependent/glslang_tab.cpp.h" /* yacc.c:1909 */
|
|
};
|
|
|
|
typedef union YYSTYPE YYSTYPE;
|
|
# define YYSTYPE_IS_TRIVIAL 1
|
|
# define YYSTYPE_IS_DECLARED 1
|
|
#endif
|
|
|
|
|
|
|
|
int yyparse (glslang::TParseContext* pParseContext);
|
|
|
|
#endif /* !YY_YY_MACHINEINDEPENDENT_GLSLANG_TAB_CPP_H_INCLUDED */
|