1 | #ifndef yyHEADER_H |
2 | #define 1 |
3 | #define 1 |
4 | |
5 | #line 6 "BsLexerFX.h" |
6 | |
7 | #define YY_INT_ALIGNED short int |
8 | |
9 | /* A lexical scanner generated by flex */ |
10 | |
11 | #define FLEX_SCANNER |
12 | #define YY_FLEX_MAJOR_VERSION 2 |
13 | #define YY_FLEX_MINOR_VERSION 5 |
14 | #define YY_FLEX_SUBMINOR_VERSION 37 |
15 | #if YY_FLEX_SUBMINOR_VERSION > 0 |
16 | #define FLEX_BETA |
17 | #endif |
18 | |
19 | /* First, we deal with platform-specific or compiler-specific issues. */ |
20 | |
21 | /* begin standard C headers. */ |
22 | #include <stdio.h> |
23 | #include <string.h> |
24 | #include <errno.h> |
25 | #include <stdlib.h> |
26 | |
27 | /* end standard C headers. */ |
28 | |
29 | /* flex integer type definitions */ |
30 | |
31 | #ifndef FLEXINT_H |
32 | #define FLEXINT_H |
33 | |
34 | /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */ |
35 | |
36 | #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L |
37 | |
38 | /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, |
39 | * if you want the limit (max/min) macros for int types. |
40 | */ |
41 | #ifndef __STDC_LIMIT_MACROS |
42 | #define __STDC_LIMIT_MACROS 1 |
43 | #endif |
44 | |
45 | #include <inttypes.h> |
46 | typedef int8_t flex_int8_t; |
47 | typedef uint8_t flex_uint8_t; |
48 | typedef int16_t flex_int16_t; |
49 | typedef uint16_t flex_uint16_t; |
50 | typedef int32_t flex_int32_t; |
51 | typedef uint32_t flex_uint32_t; |
52 | #else |
53 | typedef signed char flex_int8_t; |
54 | typedef short int flex_int16_t; |
55 | typedef int flex_int32_t; |
56 | typedef unsigned char flex_uint8_t; |
57 | typedef unsigned short int flex_uint16_t; |
58 | typedef unsigned int flex_uint32_t; |
59 | |
60 | /* Limits of integral types. */ |
61 | #ifndef INT8_MIN |
62 | #define INT8_MIN (-128) |
63 | #endif |
64 | #ifndef INT16_MIN |
65 | #define INT16_MIN (-32767-1) |
66 | #endif |
67 | #ifndef INT32_MIN |
68 | #define INT32_MIN (-2147483647-1) |
69 | #endif |
70 | #ifndef INT8_MAX |
71 | #define INT8_MAX (127) |
72 | #endif |
73 | #ifndef INT16_MAX |
74 | #define INT16_MAX (32767) |
75 | #endif |
76 | #ifndef INT32_MAX |
77 | #define INT32_MAX (2147483647) |
78 | #endif |
79 | #ifndef UINT8_MAX |
80 | #define UINT8_MAX (255U) |
81 | #endif |
82 | #ifndef UINT16_MAX |
83 | #define UINT16_MAX (65535U) |
84 | #endif |
85 | #ifndef UINT32_MAX |
86 | #define UINT32_MAX (4294967295U) |
87 | #endif |
88 | |
89 | #endif /* ! C99 */ |
90 | |
91 | #endif /* ! FLEXINT_H */ |
92 | |
93 | #ifdef __cplusplus |
94 | |
95 | /* The "const" storage-class-modifier is valid. */ |
96 | #define YY_USE_CONST |
97 | |
98 | #else /* ! __cplusplus */ |
99 | |
100 | /* C99 requires __STDC__ to be defined as 1. */ |
101 | #if defined (__STDC__) |
102 | |
103 | #define YY_USE_CONST |
104 | |
105 | #endif /* defined (__STDC__) */ |
106 | #endif /* ! __cplusplus */ |
107 | |
108 | #ifdef YY_USE_CONST |
109 | #define yyconst const |
110 | #else |
111 | #define yyconst |
112 | #endif |
113 | |
114 | /* An opaque pointer. */ |
115 | #ifndef YY_TYPEDEF_YY_SCANNER_T |
116 | #define YY_TYPEDEF_YY_SCANNER_T |
117 | typedef void* yyscan_t; |
118 | #endif |
119 | |
120 | /* For convenience, these vars (plus the bison vars far below) |
121 | are macros in the reentrant scanner. */ |
122 | #define yyin yyg->yyin_r |
123 | #define yyout yyg->yyout_r |
124 | #define yyg->yyextra_r |
125 | #define yyleng yyg->yyleng_r |
126 | #define yytext yyg->yytext_r |
127 | #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno) |
128 | #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column) |
129 | #define yy_flex_debug yyg->yy_flex_debug_r |
130 | |
131 | /* Size of default input buffer. */ |
132 | #ifndef YY_BUF_SIZE |
133 | #define YY_BUF_SIZE 16384 |
134 | #endif |
135 | |
136 | #ifndef YY_TYPEDEF_YY_BUFFER_STATE |
137 | #define YY_TYPEDEF_YY_BUFFER_STATE |
138 | typedef struct yy_buffer_state *YY_BUFFER_STATE; |
139 | #endif |
140 | |
141 | #ifndef YY_TYPEDEF_YY_SIZE_T |
142 | #define YY_TYPEDEF_YY_SIZE_T |
143 | typedef size_t yy_size_t; |
144 | #endif |
145 | |
146 | #ifndef YY_STRUCT_YY_BUFFER_STATE |
147 | #define YY_STRUCT_YY_BUFFER_STATE |
148 | struct yy_buffer_state |
149 | { |
150 | FILE *yy_input_file; |
151 | |
152 | char *yy_ch_buf; /* input buffer */ |
153 | char *yy_buf_pos; /* current position in input buffer */ |
154 | |
155 | /* Size of input buffer in bytes, not including room for EOB |
156 | * characters. |
157 | */ |
158 | yy_size_t yy_buf_size; |
159 | |
160 | /* Number of characters read into yy_ch_buf, not including EOB |
161 | * characters. |
162 | */ |
163 | yy_size_t yy_n_chars; |
164 | |
165 | /* Whether we "own" the buffer - i.e., we know we created it, |
166 | * and can realloc() it to grow it, and should free() it to |
167 | * delete it. |
168 | */ |
169 | int yy_is_our_buffer; |
170 | |
171 | /* Whether this is an "interactive" input source; if so, and |
172 | * if we're using stdio for input, then we want to use getc() |
173 | * instead of fread(), to make sure we stop fetching input after |
174 | * each newline. |
175 | */ |
176 | int yy_is_interactive; |
177 | |
178 | /* Whether we're considered to be at the beginning of a line. |
179 | * If so, '^' rules will be active on the next match, otherwise |
180 | * not. |
181 | */ |
182 | int yy_at_bol; |
183 | |
184 | int yy_bs_lineno; /**< The line count. */ |
185 | int yy_bs_column; /**< The column count. */ |
186 | |
187 | /* Whether to try to fill the input buffer when we reach the |
188 | * end of it. |
189 | */ |
190 | int yy_fill_buffer; |
191 | |
192 | int yy_buffer_status; |
193 | |
194 | }; |
195 | #endif /* !YY_STRUCT_YY_BUFFER_STATE */ |
196 | |
197 | void yyrestart (FILE *input_file ,yyscan_t yyscanner ); |
198 | void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner ); |
199 | YY_BUFFER_STATE yy_create_buffer (FILE *file,int size ,yyscan_t yyscanner ); |
200 | void yy_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner ); |
201 | void yy_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner ); |
202 | void yypush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner ); |
203 | void yypop_buffer_state (yyscan_t yyscanner ); |
204 | |
205 | YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner ); |
206 | YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner ); |
207 | YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,yy_size_t len ,yyscan_t yyscanner ); |
208 | |
209 | void *yyalloc (yy_size_t ,yyscan_t yyscanner ); |
210 | void *yyrealloc (void *,yy_size_t ,yyscan_t yyscanner ); |
211 | void yyfree (void * ,yyscan_t yyscanner ); |
212 | |
213 | /* Begin user sect3 */ |
214 | |
215 | #define yywrap(yyscanner) 1 |
216 | #define YY_SKIP_YYWRAP |
217 | |
218 | #define yytext_ptr yytext_r |
219 | |
220 | #ifdef YY_HEADER_EXPORT_START_CONDITIONS |
221 | #define INITIAL 0 |
222 | #define INCLUDE 1 |
223 | #define CODEBLOCK_HEADER 2 |
224 | #define CODEBLOCK 3 |
225 | #define CODEBLOCK_END 4 |
226 | #define SUBSHADER_HEADER 5 |
227 | #define SUBSHADER_BODY 6 |
228 | #define SUBSHADER_END 7 |
229 | #define DEFINE_COND 8 |
230 | #define DEFINE_COND_EXPR 9 |
231 | #define UNDEF_COND 10 |
232 | #define CONDITIONAL_IF 11 |
233 | #define CONDITIONAL_IFDEF 12 |
234 | #define CONDITIONAL_IFNDEF 13 |
235 | #define CONDITIONAL_ELIF 14 |
236 | #define CONDITIONAL_IGNORE 15 |
237 | |
238 | #endif |
239 | |
240 | #ifndef YY_NO_UNISTD_H |
241 | /* Special case for "unistd.h", since it is non-ANSI. We include it way |
242 | * down here because we want the user's section 1 to have been scanned first. |
243 | * The user has a chance to override it with an option. |
244 | */ |
245 | #include <unistd.h> |
246 | #endif |
247 | |
248 | #define struct tagParseState * |
249 | |
250 | int yylex_init (yyscan_t* scanner); |
251 | |
252 | int (YY_EXTRA_TYPE user_defined,yyscan_t* scanner); |
253 | |
254 | /* Accessor methods to globals. |
255 | These are made visible to non-reentrant scanners for convenience. */ |
256 | |
257 | int yylex_destroy (yyscan_t yyscanner ); |
258 | |
259 | int yyget_debug (yyscan_t yyscanner ); |
260 | |
261 | void yyset_debug (int debug_flag ,yyscan_t yyscanner ); |
262 | |
263 | YY_EXTRA_TYPE (yyscan_t yyscanner ); |
264 | |
265 | void (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner ); |
266 | |
267 | FILE *yyget_in (yyscan_t yyscanner ); |
268 | |
269 | void yyset_in (FILE * in_str ,yyscan_t yyscanner ); |
270 | |
271 | FILE *yyget_out (yyscan_t yyscanner ); |
272 | |
273 | void yyset_out (FILE * out_str ,yyscan_t yyscanner ); |
274 | |
275 | yy_size_t yyget_leng (yyscan_t yyscanner ); |
276 | |
277 | char *yyget_text (yyscan_t yyscanner ); |
278 | |
279 | int yyget_lineno (yyscan_t yyscanner ); |
280 | |
281 | void yyset_lineno (int line_number ,yyscan_t yyscanner ); |
282 | |
283 | int yyget_column (yyscan_t yyscanner ); |
284 | |
285 | void yyset_column (int column_no ,yyscan_t yyscanner ); |
286 | |
287 | YYSTYPE * yyget_lval (yyscan_t yyscanner ); |
288 | |
289 | void yyset_lval (YYSTYPE * yylval_param ,yyscan_t yyscanner ); |
290 | |
291 | YYLTYPE *yyget_lloc (yyscan_t yyscanner ); |
292 | |
293 | void yyset_lloc (YYLTYPE * yylloc_param ,yyscan_t yyscanner ); |
294 | |
295 | /* Macros after this point can all be overridden by user definitions in |
296 | * section 1. |
297 | */ |
298 | |
299 | #ifndef YY_SKIP_YYWRAP |
300 | #ifdef __cplusplus |
301 | extern "C" int yywrap (yyscan_t yyscanner ); |
302 | #else |
303 | extern int yywrap (yyscan_t yyscanner ); |
304 | #endif |
305 | #endif |
306 | |
307 | #ifndef yytext_ptr |
308 | static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner); |
309 | #endif |
310 | |
311 | #ifdef YY_NEED_STRLEN |
312 | static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner); |
313 | #endif |
314 | |
315 | #ifndef YY_NO_INPUT |
316 | |
317 | #endif |
318 | |
319 | /* Amount of stuff to slurp up with each read. */ |
320 | #ifndef YY_READ_BUF_SIZE |
321 | #define YY_READ_BUF_SIZE 8192 |
322 | #endif |
323 | |
324 | /* Number of entries by which start-condition stack grows. */ |
325 | #ifndef YY_START_STACK_INCR |
326 | #define YY_START_STACK_INCR 25 |
327 | #endif |
328 | |
329 | /* Default declaration of generated scanner - a define so the user can |
330 | * easily add parameters. |
331 | */ |
332 | #ifndef YY_DECL |
333 | #define YY_DECL_IS_OURS 1 |
334 | |
335 | extern int yylex \ |
336 | (YYSTYPE * yylval_param,YYLTYPE * yylloc_param ,yyscan_t yyscanner); |
337 | |
338 | #define YY_DECL int yylex \ |
339 | (YYSTYPE * yylval_param, YYLTYPE * yylloc_param , yyscan_t yyscanner) |
340 | #endif /* !YY_DECL */ |
341 | |
342 | /* yy_get_previous_state - get the state just before the EOB char was reached */ |
343 | |
344 | #undef YY_NEW_FILE |
345 | #undef YY_FLUSH_BUFFER |
346 | #undef yy_set_bol |
347 | #undef yy_new_buffer |
348 | #undef yy_set_interactive |
349 | #undef YY_DO_BEFORE_ACTION |
350 | |
351 | #ifdef YY_DECL_IS_OURS |
352 | #undef YY_DECL_IS_OURS |
353 | #undef YY_DECL |
354 | #endif |
355 | |
356 | #line 357 "BsLexerFX.h" |
357 | #undef yyIN_HEADER |
358 | #endif /* yyHEADER_H */ |
359 | |