| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271 |
- /* A Bison parser, made by GNU Bison 2.7. */
- /* Skeleton interface for Bison GLR parsers in C
-
- Copyright (C) 2002-2012 Free Software Foundation, Inc.
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
- /* As a special exception, you may create a larger work that contains
- part or all of the Bison parser skeleton and distribute that work
- under terms of your choice, so long as that work isn't itself a
- parser generator using the skeleton or a modified version thereof
- as a parser skeleton. Alternatively, if you modify or redistribute
- the parser skeleton itself, you may (at your option) remove this
- special exception, which will cause the skeleton and the resulting
- Bison output files to be licensed under the GNU General Public
- License without this special exception.
-
- This special exception was added by the Free Software Foundation in
- version 2.2 of Bison. */
- #ifndef YY_YY_BSPARSERFX_H_INCLUDED
- # define YY_YY_BSPARSERFX_H_INCLUDED
- /* Enabling traces. */
- #ifndef YYDEBUG
- # define YYDEBUG 0
- #endif
- #if YYDEBUG
- extern int yydebug;
- #endif
- /* "%code requires" blocks. */
- /* Line 2579 of glr.c */
- #line 9 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsParserFX.y"
- #include "BsMMAlloc.h"
- #include "BsASTFX.h"
- #include "BsIncludeHandler.h"
- #ifndef YY_TYPEDEF_YY_SCANNER_T
- #define YY_TYPEDEF_YY_SCANNER_T
- typedef void* yyscan_t;
- #endif
- typedef struct YYLTYPE {
- int first_line;
- int first_column;
- int last_line;
- int last_column;
- char *filename;
- } YYLTYPE;
- #define YYLTYPE_IS_DECLARED 1
- #define YYLLOC_DEFAULT(Current, Rhs, N) \
- do \
- if (N) \
- { \
- (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
- (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
- (Current).last_line = YYRHSLOC (Rhs, N).last_line; \
- (Current).last_column = YYRHSLOC (Rhs, N).last_column; \
- (Current).filename = YYRHSLOC (Rhs, 1).filename; \
- } \
- else \
- { \
- (Current).first_line = (Current).last_line = YYRHSLOC (Rhs, 0).last_line; \
- (Current).first_column = (Current).last_column = YYRHSLOC (Rhs, 0).last_column; \
- (Current).filename = NULL; \
- } \
- while (0)
- #define ADD_PARAMETER(OUTPUT, TYPE, NAME) \
- OUTPUT = nodeCreate(parse_state->memContext, NT_Parameter); \
- nodePush(parse_state, OUTPUT); \
- \
- NodeOption paramType; \
- paramType.type = OT_ParamType; \
- paramType.value.intValue = TYPE; \
- \
- NodeOption paramName; \
- paramName.type = OT_Identifier; \
- paramName.value.strValue = NAME; \
- \
- nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, ¶mType); \
- nodeOptionsAdd(parse_state->memContext, parse_state->topNode->options, ¶mName); \
- /* Line 2579 of glr.c */
- #line 101 "BsParserFX.h"
- /* Tokens. */
- #ifndef YYTOKENTYPE
- # define YYTOKENTYPE
- /* Put the tokens into the symbol table, so that GDB and other debuggers
- know about them. */
- enum yytokentype {
- TOKEN_INTEGER = 258,
- TOKEN_FLOAT = 259,
- TOKEN_BOOLEAN = 260,
- TOKEN_STRING = 261,
- TOKEN_IDENTIFIER = 262,
- TOKEN_FILLMODEVALUE = 263,
- TOKEN_CULLMODEVALUE = 264,
- TOKEN_COMPFUNCVALUE = 265,
- TOKEN_OPVALUE = 266,
- TOKEN_COLORMASK = 267,
- TOKEN_ADDRMODEVALUE = 268,
- TOKEN_FILTERVALUE = 269,
- TOKEN_BLENDOPVALUE = 270,
- TOKEN_BUFFERUSAGE = 271,
- TOKEN_QUEUETYPE = 272,
- TOKEN_FLOATTYPE = 273,
- TOKEN_FLOAT2TYPE = 274,
- TOKEN_FLOAT3TYPE = 275,
- TOKEN_FLOAT4TYPE = 276,
- TOKEN_INTTYPE = 277,
- TOKEN_INT2TYPE = 278,
- TOKEN_INT3TYPE = 279,
- TOKEN_INT4TYPE = 280,
- TOKEN_COLORTYPE = 281,
- TOKEN_MAT2x2TYPE = 282,
- TOKEN_MAT2x3TYPE = 283,
- TOKEN_MAT2x4TYPE = 284,
- TOKEN_MAT3x2TYPE = 285,
- TOKEN_MAT3x3TYPE = 286,
- TOKEN_MAT3x4TYPE = 287,
- TOKEN_MAT4x2TYPE = 288,
- TOKEN_MAT4x3TYPE = 289,
- TOKEN_MAT4x4TYPE = 290,
- TOKEN_SAMPLER1D = 291,
- TOKEN_SAMPLER2D = 292,
- TOKEN_SAMPLER3D = 293,
- TOKEN_SAMPLERCUBE = 294,
- TOKEN_SAMPLER2DMS = 295,
- TOKEN_TEXTURE1D = 296,
- TOKEN_TEXTURE2D = 297,
- TOKEN_TEXTURE3D = 298,
- TOKEN_TEXTURECUBE = 299,
- TOKEN_TEXTURE2DMS = 300,
- TOKEN_RWTEXTURE1D = 301,
- TOKEN_RWTEXTURE2D = 302,
- TOKEN_RWTEXTURE3D = 303,
- TOKEN_RWTEXTURE2DMS = 304,
- TOKEN_BYTEBUFFER = 305,
- TOKEN_STRUCTBUFFER = 306,
- TOKEN_RWTYPEDBUFFER = 307,
- TOKEN_RWBYTEBUFFER = 308,
- TOKEN_RWSTRUCTBUFFER = 309,
- TOKEN_RWAPPENDBUFFER = 310,
- TOKEN_RWCONSUMEBUFFER = 311,
- TOKEN_PARAMSBLOCK = 312,
- TOKEN_AUTO = 313,
- TOKEN_ALIAS = 314,
- TOKEN_SHARED = 315,
- TOKEN_USAGE = 316,
- TOKEN_BASE = 317,
- TOKEN_INHERITS = 318,
- TOKEN_SEPARABLE = 319,
- TOKEN_SORT = 320,
- TOKEN_PRIORITY = 321,
- TOKEN_TRANSPARENT = 322,
- TOKEN_PARAMETERS = 323,
- TOKEN_BLOCKS = 324,
- TOKEN_TECHNIQUE = 325,
- TOKEN_RENDERER = 326,
- TOKEN_LANGUAGE = 327,
- TOKEN_PASS = 328,
- TOKEN_TAGS = 329,
- TOKEN_VERTEX = 330,
- TOKEN_FRAGMENT = 331,
- TOKEN_GEOMETRY = 332,
- TOKEN_HULL = 333,
- TOKEN_DOMAIN = 334,
- TOKEN_COMPUTE = 335,
- TOKEN_COMMON = 336,
- TOKEN_STENCILREF = 337,
- TOKEN_FILLMODE = 338,
- TOKEN_CULLMODE = 339,
- TOKEN_DEPTHBIAS = 340,
- TOKEN_SDEPTHBIAS = 341,
- TOKEN_DEPTHCLIP = 342,
- TOKEN_SCISSOR = 343,
- TOKEN_MULTISAMPLE = 344,
- TOKEN_AALINE = 345,
- TOKEN_DEPTHREAD = 346,
- TOKEN_DEPTHWRITE = 347,
- TOKEN_COMPAREFUNC = 348,
- TOKEN_STENCIL = 349,
- TOKEN_STENCILREADMASK = 350,
- TOKEN_STENCILWRITEMASK = 351,
- TOKEN_STENCILOPFRONT = 352,
- TOKEN_STENCILOPBACK = 353,
- TOKEN_FAIL = 354,
- TOKEN_ZFAIL = 355,
- TOKEN_ALPHATOCOVERAGE = 356,
- TOKEN_INDEPENDANTBLEND = 357,
- TOKEN_TARGET = 358,
- TOKEN_INDEX = 359,
- TOKEN_BLEND = 360,
- TOKEN_COLOR = 361,
- TOKEN_ALPHA = 362,
- TOKEN_WRITEMASK = 363,
- TOKEN_SOURCE = 364,
- TOKEN_DEST = 365,
- TOKEN_OP = 366,
- TOKEN_ADDRMODE = 367,
- TOKEN_MINFILTER = 368,
- TOKEN_MAGFILTER = 369,
- TOKEN_MIPFILTER = 370,
- TOKEN_MAXANISO = 371,
- TOKEN_MIPBIAS = 372,
- TOKEN_MIPMIN = 373,
- TOKEN_MIPMAX = 374,
- TOKEN_BORDERCOLOR = 375,
- TOKEN_U = 376,
- TOKEN_V = 377,
- TOKEN_W = 378
- };
- #endif
- #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
- typedef union YYSTYPE
- {
- /* Line 2579 of glr.c */
- #line 73 "C:/Projects/BansheeEngineDev/BansheeEngine/Source/BansheeSL/BsParserFX.y"
- int intValue;
- float floatValue;
- float matrixValue[16];
- int intVectorValue[4];
- const char* strValue;
- ASTFXNode* nodePtr;
- NodeOption nodeOption;
- /* Line 2579 of glr.c */
- #line 249 "BsParserFX.h"
- } YYSTYPE;
- # define YYSTYPE_IS_TRIVIAL 1
- # define yystype YYSTYPE /* obsolescent; will be withdrawn */
- # define YYSTYPE_IS_DECLARED 1
- #endif
- #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
- typedef struct YYLTYPE
- {
- int first_line;
- int first_column;
- int last_line;
- int last_column;
- } YYLTYPE;
- # define yyltype YYLTYPE /* obsolescent; will be withdrawn */
- # define YYLTYPE_IS_DECLARED 1
- # define YYLTYPE_IS_TRIVIAL 1
- #endif
- int yyparse (ParseState* parse_state, yyscan_t scanner);
- #endif /* !YY_YY_BSPARSERFX_H_INCLUDED */
|