1/* A Bison parser, made by GNU Bison 2.7. */
2
3/* Skeleton interface for Bison GLR parsers in C
4
5 Copyright (C) 2002-2012 Free Software Foundation, Inc.
6
7 This program is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>. */
19
20/* As a special exception, you may create a larger work that contains
21 part or all of the Bison parser skeleton and distribute that work
22 under terms of your choice, so long as that work isn't itself a
23 parser generator using the skeleton or a modified version thereof
24 as a parser skeleton. Alternatively, if you modify or redistribute
25 the parser skeleton itself, you may (at your option) remove this
26 special exception, which will cause the skeleton and the resulting
27 Bison output files to be licensed under the GNU General Public
28 License without this special exception.
29
30 This special exception was added by the Free Software Foundation in
31 version 2.2 of Bison. */
32
33#ifndef YY_YY_BSPARSERFX_H_INCLUDED
34# define YY_YY_BSPARSERFX_H_INCLUDED
35/* Enabling traces. */
36#ifndef YYDEBUG
37# define YYDEBUG 0
38#endif
39#if YYDEBUG
40extern int yydebug;
41#endif
42/* "%code requires" blocks. */
43
44
45#include "BsMMAlloc.h"
46#include "BsASTFX.h"
47#include "BsIncludeHandler.h"
48
49#define YY_NO_UNISTD_H 1
50#ifndef YY_TYPEDEF_YY_SCANNER_T
51#define YY_TYPEDEF_YY_SCANNER_T
52 typedef void* yyscan_t;
53#endif
54
55typedef struct YYLTYPE {
56 int first_line;
57 int first_column;
58 int last_line;
59 int last_column;
60 char *filename;
61} YYLTYPE;
62#define YYLTYPE_IS_DECLARED 1
63
64#define YYLLOC_DEFAULT(Current, Rhs, N) \
65 do \
66 if (N) \
67 { \
68 (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
69 (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
70 (Current).last_line = YYRHSLOC (Rhs, N).last_line; \
71 (Current).last_column = YYRHSLOC (Rhs, N).last_column; \
72 (Current).filename = YYRHSLOC (Rhs, 1).filename; \
73 } \
74 else \
75 { \
76 (Current).first_line = (Current).last_line = YYRHSLOC (Rhs, 0).last_line; \
77 (Current).first_column = (Current).last_column = YYRHSLOC (Rhs, 0).last_column; \
78 (Current).filename = NULL; \
79 } \
80 while (0)
81
82
83
84
85
86/* Tokens. */
87#ifndef YYTOKENTYPE
88# define YYTOKENTYPE
89 /* Put the tokens into the symbol table, so that GDB and other debuggers
90 know about them. */
91 enum yytokentype {
92 TOKEN_INTEGER = 258,
93 TOKEN_FLOAT = 259,
94 TOKEN_BOOLEAN = 260,
95 TOKEN_STRING = 261,
96 TOKEN_IDENTIFIER = 262,
97 TOKEN_FILLMODEVALUE = 263,
98 TOKEN_CULLANDQUEUEVALUE = 264,
99 TOKEN_COMPFUNCVALUE = 265,
100 TOKEN_OPVALUE = 266,
101 TOKEN_BLENDOPVALUE = 267,
102 TOKEN_COLORMASK = 268,
103 TOKEN_OPTIONS = 269,
104 TOKEN_SHADER = 270,
105 TOKEN_SUBSHADER = 271,
106 TOKEN_MIXIN = 272,
107 TOKEN_SEPARABLE = 273,
108 TOKEN_SORT = 274,
109 TOKEN_PRIORITY = 275,
110 TOKEN_TRANSPARENT = 276,
111 TOKEN_FORWARD = 277,
112 TOKEN_FEATURESET = 278,
113 TOKEN_PASS = 279,
114 TOKEN_TAGS = 280,
115 TOKEN_VARIATIONS = 281,
116 TOKEN_CODE = 282,
117 TOKEN_BLEND = 283,
118 TOKEN_RASTER = 284,
119 TOKEN_DEPTH = 285,
120 TOKEN_STENCIL = 286,
121 TOKEN_VARIATION = 287,
122 TOKEN_FILLMODE = 288,
123 TOKEN_CULLMODE = 289,
124 TOKEN_DEPTHBIAS = 290,
125 TOKEN_SDEPTHBIAS = 291,
126 TOKEN_DEPTHCLIP = 292,
127 TOKEN_SCISSOR = 293,
128 TOKEN_MULTISAMPLE = 294,
129 TOKEN_AALINE = 295,
130 TOKEN_DEPTHREAD = 296,
131 TOKEN_DEPTHWRITE = 297,
132 TOKEN_COMPAREFUNC = 298,
133 TOKEN_STENCILREF = 299,
134 TOKEN_ENABLED = 300,
135 TOKEN_READMASK = 301,
136 TOKEN_WRITEMASK = 302,
137 TOKEN_STENCILOPFRONT = 303,
138 TOKEN_STENCILOPBACK = 304,
139 TOKEN_FAIL = 305,
140 TOKEN_ZFAIL = 306,
141 TOKEN_ALPHATOCOVERAGE = 307,
142 TOKEN_INDEPENDANTBLEND = 308,
143 TOKEN_TARGET = 309,
144 TOKEN_INDEX = 310,
145 TOKEN_COLOR = 311,
146 TOKEN_ALPHA = 312,
147 TOKEN_SOURCE = 313,
148 TOKEN_DEST = 314,
149 TOKEN_OP = 315,
150 TOKEN_NAME = 316,
151 TOKEN_SHOW = 317
152 };
153#endif
154
155#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
156typedef union YYSTYPE
157{
158
159
160 int intValue;
161 float floatValue;
162 float matrixValue[16];
163 int intVectorValue[4];
164 const char* strValue;
165 ASTFXNode* nodePtr;
166 NodeOption nodeOption;
167
168
169
170} YYSTYPE;
171# define YYSTYPE_IS_TRIVIAL 1
172# define yystype YYSTYPE /* obsolescent; will be withdrawn */
173# define YYSTYPE_IS_DECLARED 1
174#endif
175
176#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
177typedef struct YYLTYPE
178{
179 int first_line;
180 int first_column;
181 int last_line;
182 int last_column;
183} YYLTYPE;
184# define yyltype YYLTYPE /* obsolescent; will be withdrawn */
185# define YYLTYPE_IS_DECLARED 1
186# define YYLTYPE_IS_TRIVIAL 1
187#endif
188
189
190int yyparse (ParseState* parse_state, yyscan_t scanner);
191
192#endif /* !YY_YY_BSPARSERFX_H_INCLUDED */
193