Merge branch 'gallium-0.1' into gallium-tex-surfaces
[mesa.git] / src / mesa / shader / slang / library / slang_shader_syn.h
1
2 /* DO NOT EDIT - THIS FILE IS AUTOMATICALLY GENERATED FROM THE .syn FILE */
3
4 ".syntax translation_unit;\n"
5 ".emtcode REVISION 3\n"
6 ".emtcode EXTERNAL_NULL 0\n"
7 ".emtcode EXTERNAL_FUNCTION_DEFINITION 1\n"
8 ".emtcode EXTERNAL_DECLARATION 2\n"
9 ".emtcode DECLARATION_FUNCTION_PROTOTYPE 1\n"
10 ".emtcode DECLARATION_INIT_DECLARATOR_LIST 2\n"
11 ".emtcode FUNCTION_ORDINARY 0\n"
12 ".emtcode FUNCTION_CONSTRUCTOR 1\n"
13 ".emtcode FUNCTION_OPERATOR 2\n"
14 ".emtcode OPERATOR_ADDASSIGN 1\n"
15 ".emtcode OPERATOR_SUBASSIGN 2\n"
16 ".emtcode OPERATOR_MULASSIGN 3\n"
17 ".emtcode OPERATOR_DIVASSIGN 4\n"
18 ".emtcode OPERATOR_LOGICALXOR 11\n"
19 ".emtcode OPERATOR_LESS 15\n"
20 ".emtcode OPERATOR_GREATER 16\n"
21 ".emtcode OPERATOR_LESSEQUAL 17\n"
22 ".emtcode OPERATOR_GREATEREQUAL 18\n"
23 ".emtcode OPERATOR_MULTIPLY 21\n"
24 ".emtcode OPERATOR_DIVIDE 22\n"
25 ".emtcode OPERATOR_INCREMENT 24\n"
26 ".emtcode OPERATOR_DECREMENT 25\n"
27 ".emtcode OPERATOR_PLUS 26\n"
28 ".emtcode OPERATOR_MINUS 27\n"
29 ".emtcode OPERATOR_NOT 29\n"
30 ".emtcode DECLARATOR_NONE 0\n"
31 ".emtcode DECLARATOR_NEXT 1\n"
32 ".emtcode VARIABLE_NONE 0\n"
33 ".emtcode VARIABLE_IDENTIFIER 1\n"
34 ".emtcode VARIABLE_INITIALIZER 2\n"
35 ".emtcode VARIABLE_ARRAY_EXPLICIT 3\n"
36 ".emtcode VARIABLE_ARRAY_UNKNOWN 4\n"
37 ".emtcode TYPE_QUALIFIER_NONE 0\n"
38 ".emtcode TYPE_QUALIFIER_CONST 1\n"
39 ".emtcode TYPE_QUALIFIER_ATTRIBUTE 2\n"
40 ".emtcode TYPE_QUALIFIER_VARYING 3\n"
41 ".emtcode TYPE_QUALIFIER_UNIFORM 4\n"
42 ".emtcode TYPE_QUALIFIER_FIXEDOUTPUT 5\n"
43 ".emtcode TYPE_QUALIFIER_FIXEDINPUT 6\n"
44 ".emtcode TYPE_SPECIFIER_VOID 0\n"
45 ".emtcode TYPE_SPECIFIER_BOOL 1\n"
46 ".emtcode TYPE_SPECIFIER_BVEC2 2\n"
47 ".emtcode TYPE_SPECIFIER_BVEC3 3\n"
48 ".emtcode TYPE_SPECIFIER_BVEC4 4\n"
49 ".emtcode TYPE_SPECIFIER_INT 5\n"
50 ".emtcode TYPE_SPECIFIER_IVEC2 6\n"
51 ".emtcode TYPE_SPECIFIER_IVEC3 7\n"
52 ".emtcode TYPE_SPECIFIER_IVEC4 8\n"
53 ".emtcode TYPE_SPECIFIER_FLOAT 9\n"
54 ".emtcode TYPE_SPECIFIER_VEC2 10\n"
55 ".emtcode TYPE_SPECIFIER_VEC3 11\n"
56 ".emtcode TYPE_SPECIFIER_VEC4 12\n"
57 ".emtcode TYPE_SPECIFIER_MAT2 13\n"
58 ".emtcode TYPE_SPECIFIER_MAT3 14\n"
59 ".emtcode TYPE_SPECIFIER_MAT4 15\n"
60 ".emtcode TYPE_SPECIFIER_SAMPLER1D 16\n"
61 ".emtcode TYPE_SPECIFIER_SAMPLER2D 17\n"
62 ".emtcode TYPE_SPECIFIER_SAMPLER3D 18\n"
63 ".emtcode TYPE_SPECIFIER_SAMPLERCUBE 19\n"
64 ".emtcode TYPE_SPECIFIER_SAMPLER1DSHADOW 20\n"
65 ".emtcode TYPE_SPECIFIER_SAMPLER2DSHADOW 21\n"
66 ".emtcode TYPE_SPECIFIER_SAMPLER2DRECT 22\n"
67 ".emtcode TYPE_SPECIFIER_SAMPLER2DRECTSHADOW 23\n"
68 ".emtcode TYPE_SPECIFIER_STRUCT 24\n"
69 ".emtcode TYPE_SPECIFIER_TYPENAME 25\n"
70 ".emtcode TYPE_SPECIFIER_MAT23 26\n"
71 ".emtcode TYPE_SPECIFIER_MAT32 27\n"
72 ".emtcode TYPE_SPECIFIER_MAT24 28\n"
73 ".emtcode TYPE_SPECIFIER_MAT42 29\n"
74 ".emtcode TYPE_SPECIFIER_MAT34 30\n"
75 ".emtcode TYPE_SPECIFIER_MAT43 31\n"
76 ".emtcode FIELD_NONE 0\n"
77 ".emtcode FIELD_NEXT 1\n"
78 ".emtcode FIELD_ARRAY 2\n"
79 ".emtcode OP_END 0\n"
80 ".emtcode OP_BLOCK_BEGIN_NO_NEW_SCOPE 1\n"
81 ".emtcode OP_BLOCK_BEGIN_NEW_SCOPE 2\n"
82 ".emtcode OP_DECLARE 3\n"
83 ".emtcode OP_ASM 4\n"
84 ".emtcode OP_BREAK 5\n"
85 ".emtcode OP_CONTINUE 6\n"
86 ".emtcode OP_DISCARD 7\n"
87 ".emtcode OP_RETURN 8\n"
88 ".emtcode OP_EXPRESSION 9\n"
89 ".emtcode OP_IF 10\n"
90 ".emtcode OP_WHILE 11\n"
91 ".emtcode OP_DO 12\n"
92 ".emtcode OP_FOR 13\n"
93 ".emtcode OP_PUSH_VOID 14\n"
94 ".emtcode OP_PUSH_BOOL 15\n"
95 ".emtcode OP_PUSH_INT 16\n"
96 ".emtcode OP_PUSH_FLOAT 17\n"
97 ".emtcode OP_PUSH_IDENTIFIER 18\n"
98 ".emtcode OP_SEQUENCE 19\n"
99 ".emtcode OP_ASSIGN 20\n"
100 ".emtcode OP_ADDASSIGN 21\n"
101 ".emtcode OP_SUBASSIGN 22\n"
102 ".emtcode OP_MULASSIGN 23\n"
103 ".emtcode OP_DIVASSIGN 24\n"
104 ".emtcode OP_SELECT 31\n"
105 ".emtcode OP_LOGICALOR 32\n"
106 ".emtcode OP_LOGICALXOR 33\n"
107 ".emtcode OP_LOGICALAND 34\n"
108 ".emtcode OP_EQUAL 38\n"
109 ".emtcode OP_NOTEQUAL 39\n"
110 ".emtcode OP_LESS 40\n"
111 ".emtcode OP_GREATER 41\n"
112 ".emtcode OP_LESSEQUAL 42\n"
113 ".emtcode OP_GREATEREQUAL 43\n"
114 ".emtcode OP_ADD 46\n"
115 ".emtcode OP_SUBTRACT 47\n"
116 ".emtcode OP_MULTIPLY 48\n"
117 ".emtcode OP_DIVIDE 49\n"
118 ".emtcode OP_PREINCREMENT 51\n"
119 ".emtcode OP_PREDECREMENT 52\n"
120 ".emtcode OP_PLUS 53\n"
121 ".emtcode OP_MINUS 54\n"
122 ".emtcode OP_NOT 56\n"
123 ".emtcode OP_SUBSCRIPT 57\n"
124 ".emtcode OP_CALL 58\n"
125 ".emtcode OP_FIELD 59\n"
126 ".emtcode OP_POSTINCREMENT 60\n"
127 ".emtcode OP_POSTDECREMENT 61\n"
128 ".emtcode PARAM_QUALIFIER_IN 0\n"
129 ".emtcode PARAM_QUALIFIER_OUT 1\n"
130 ".emtcode PARAM_QUALIFIER_INOUT 2\n"
131 ".emtcode PARAMETER_NONE 0\n"
132 ".emtcode PARAMETER_NEXT 1\n"
133 ".emtcode PARAMETER_ARRAY_NOT_PRESENT 0\n"
134 ".emtcode PARAMETER_ARRAY_PRESENT 1\n"
135 ".errtext INVALID_EXTERNAL_DECLARATION \"2001: Invalid external declaration.\"\n"
136 ".errtext INVALID_OPERATOR_OVERRIDE \"2002: Invalid operator override.\"\n"
137 ".errtext LBRACE_EXPECTED \"2003: '{' expected but '$err_token$' found.\"\n"
138 ".errtext LPAREN_EXPECTED \"2004: '(' expected but '$err_token$' found.\"\n"
139 ".errtext RPAREN_EXPECTED \"2005: ')' expected but '$err_token$' found.\"\n"
140 ".regbyte parsing_builtin 0\n"
141 ".regbyte shader_type 0\n"
142 "variable_identifier\n"
143 " identifier .emit OP_PUSH_IDENTIFIER;\n"
144 "primary_expression\n"
145 " floatconstant .or boolconstant .or intconstant .or variable_identifier .or primary_expression_1;\n"
146 "primary_expression_1\n"
147 " lparen .and expression .and rparen;\n"
148 "postfix_expression\n"
149 " postfix_expression_1 .and .loop postfix_expression_2;\n"
150 "postfix_expression_1\n"
151 " function_call .or primary_expression;\n"
152 "postfix_expression_2\n"
153 " postfix_expression_3 .or postfix_expression_4 .or\n"
154 " plusplus .emit OP_POSTINCREMENT .or\n"
155 " minusminus .emit OP_POSTDECREMENT;\n"
156 "postfix_expression_3\n"
157 " lbracket .and integer_expression .and rbracket .emit OP_SUBSCRIPT;\n"
158 "postfix_expression_4\n"
159 " dot .and field_selection .emit OP_FIELD;\n"
160 "integer_expression\n"
161 " expression;\n"
162 "function_call\n"
163 " function_call_generic .emit OP_CALL .and .true .emit OP_END;\n"
164 "function_call_generic\n"
165 " function_call_generic_1 .or function_call_generic_2;\n"
166 "function_call_generic_1\n"
167 " function_call_header_with_parameters .and rparen .error RPAREN_EXPECTED;\n"
168 "function_call_generic_2\n"
169 " function_call_header_no_parameters .and rparen .error RPAREN_EXPECTED;\n"
170 "function_call_header_no_parameters\n"
171 " function_call_header .and function_call_header_no_parameters_1;\n"
172 "function_call_header_no_parameters_1\n"
173 " \"void\" .or .true;\n"
174 "function_call_header_with_parameters\n"
175 " function_call_header .and assignment_expression .and .true .emit OP_END .and\n"
176 " .loop function_call_header_with_parameters_1;\n"
177 "function_call_header_with_parameters_1\n"
178 " comma .and assignment_expression .and .true .emit OP_END;\n"
179 "function_call_header\n"
180 " function_identifier .and lparen;\n"
181 "function_identifier\n"
182 " identifier;\n"
183 "unary_expression\n"
184 " postfix_expression .or unary_expression_1 .or unary_expression_2 .or unary_expression_3 .or\n"
185 " unary_expression_4 .or unary_expression_5;\n"
186 "unary_expression_1\n"
187 " plusplus .and unary_expression .and .true .emit OP_PREINCREMENT;\n"
188 "unary_expression_2\n"
189 " minusminus .and unary_expression .and .true .emit OP_PREDECREMENT;\n"
190 "unary_expression_3\n"
191 " plus .and unary_expression .and .true .emit OP_PLUS;\n"
192 "unary_expression_4\n"
193 " minus .and unary_expression .and .true .emit OP_MINUS;\n"
194 "unary_expression_5\n"
195 " bang .and unary_expression .and .true .emit OP_NOT;\n"
196 "multiplicative_expression\n"
197 " unary_expression .and .loop multiplicative_expression_1;\n"
198 "multiplicative_expression_1\n"
199 " multiplicative_expression_2 .or multiplicative_expression_3;\n"
200 "multiplicative_expression_2\n"
201 " star .and unary_expression .and .true .emit OP_MULTIPLY;\n"
202 "multiplicative_expression_3\n"
203 " slash .and unary_expression .and .true .emit OP_DIVIDE;\n"
204 "additive_expression\n"
205 " multiplicative_expression .and .loop additive_expression_1;\n"
206 "additive_expression_1\n"
207 " additive_expression_2 .or additive_expression_3;\n"
208 "additive_expression_2\n"
209 " plus .and multiplicative_expression .and .true .emit OP_ADD;\n"
210 "additive_expression_3\n"
211 " minus .and multiplicative_expression .and .true .emit OP_SUBTRACT;\n"
212 "shift_expression\n"
213 " additive_expression;\n"
214 "relational_expression\n"
215 " shift_expression .and .loop relational_expression_1;\n"
216 "relational_expression_1\n"
217 " relational_expression_2 .or relational_expression_3 .or relational_expression_4 .or\n"
218 " relational_expression_5;\n"
219 "relational_expression_2\n"
220 " lessequals .and shift_expression .and .true .emit OP_LESSEQUAL;\n"
221 "relational_expression_3\n"
222 " greaterequals .and shift_expression .and .true .emit OP_GREATEREQUAL;\n"
223 "relational_expression_4\n"
224 " less .and shift_expression .and .true .emit OP_LESS;\n"
225 "relational_expression_5\n"
226 " greater .and shift_expression .and .true .emit OP_GREATER;\n"
227 "equality_expression\n"
228 " relational_expression .and .loop equality_expression_1;\n"
229 "equality_expression_1\n"
230 " equality_expression_2 .or equality_expression_3;\n"
231 "equality_expression_2\n"
232 " equalsequals .and relational_expression .and .true .emit OP_EQUAL;\n"
233 "equality_expression_3\n"
234 " bangequals .and relational_expression .and .true .emit OP_NOTEQUAL;\n"
235 "and_expression\n"
236 " equality_expression;\n"
237 "exclusive_or_expression\n"
238 " and_expression;\n"
239 "inclusive_or_expression\n"
240 " exclusive_or_expression;\n"
241 "logical_and_expression\n"
242 " inclusive_or_expression .and .loop logical_and_expression_1;\n"
243 "logical_and_expression_1\n"
244 " ampersandampersand .and inclusive_or_expression .and .true .emit OP_LOGICALAND;\n"
245 "logical_xor_expression\n"
246 " logical_and_expression .and .loop logical_xor_expression_1;\n"
247 "logical_xor_expression_1\n"
248 " caretcaret .and logical_and_expression .and .true .emit OP_LOGICALXOR;\n"
249 "logical_or_expression\n"
250 " logical_xor_expression .and .loop logical_or_expression_1;\n"
251 "logical_or_expression_1\n"
252 " barbar .and logical_xor_expression .and .true .emit OP_LOGICALOR;\n"
253 "conditional_expression\n"
254 " logical_or_expression .and .loop conditional_expression_1;\n"
255 "conditional_expression_1\n"
256 " question .and expression .and colon .and conditional_expression .and .true .emit OP_SELECT;\n"
257 "assignment_expression\n"
258 " assignment_expression_1 .or assignment_expression_2 .or assignment_expression_3 .or\n"
259 " assignment_expression_4 .or assignment_expression_5 .or conditional_expression;\n"
260 "assignment_expression_1\n"
261 " unary_expression .and equals .and assignment_expression .and .true .emit OP_ASSIGN;\n"
262 "assignment_expression_2\n"
263 " unary_expression .and starequals .and assignment_expression .and .true .emit OP_MULASSIGN;\n"
264 "assignment_expression_3\n"
265 " unary_expression .and slashequals .and assignment_expression .and .true .emit OP_DIVASSIGN;\n"
266 "assignment_expression_4\n"
267 " unary_expression .and plusequals .and assignment_expression .and .true .emit OP_ADDASSIGN;\n"
268 "assignment_expression_5\n"
269 " unary_expression .and minusequals .and assignment_expression .and .true .emit OP_SUBASSIGN;\n"
270 "expression\n"
271 " assignment_expression .and .loop expression_1;\n"
272 "expression_1\n"
273 " comma .and assignment_expression .and .true .emit OP_SEQUENCE;\n"
274 "constant_expression\n"
275 " conditional_expression .and .true .emit OP_END;\n"
276 "declaration\n"
277 " declaration_1 .or declaration_2;\n"
278 "declaration_1\n"
279 " function_prototype .emit DECLARATION_FUNCTION_PROTOTYPE .and semicolon;\n"
280 "declaration_2\n"
281 " init_declarator_list .emit DECLARATION_INIT_DECLARATOR_LIST .and semicolon;\n"
282 "function_prototype\n"
283 " function_prototype_1 .or function_prototype_2;\n"
284 "function_prototype_1\n"
285 " function_header .and \"void\" .and rparen .error RPAREN_EXPECTED .emit PARAMETER_NONE;\n"
286 "function_prototype_2\n"
287 " function_declarator .and rparen .error RPAREN_EXPECTED .emit PARAMETER_NONE;\n"
288 "function_declarator\n"
289 " function_header_with_parameters .or function_header;\n"
290 "function_header_with_parameters\n"
291 " function_header .and parameter_declaration .and .loop function_header_with_parameters_1;\n"
292 "function_header_with_parameters_1\n"
293 " comma .and parameter_declaration;\n"
294 "function_header\n"
295 " function_header_nospace .or function_header_space;\n"
296 "function_header_space\n"
297 " fully_specified_type_space .and space .and function_decl_identifier .and lparen;\n"
298 "function_header_nospace\n"
299 " fully_specified_type_nospace .and function_decl_identifier .and lparen;\n"
300 "function_decl_identifier\n"
301 " .if (parsing_builtin != 0) __operator .emit FUNCTION_OPERATOR .or\n"
302 " .if (parsing_builtin != 0) \"__constructor\" .emit FUNCTION_CONSTRUCTOR .or\n"
303 " identifier .emit FUNCTION_ORDINARY;\n"
304 "__operator\n"
305 " \"__operator\" .and overriden_operator .error INVALID_OPERATOR_OVERRIDE;\n"
306 "overriden_operator\n"
307 " plusplus .emit OPERATOR_INCREMENT .or\n"
308 " plusequals .emit OPERATOR_ADDASSIGN .or\n"
309 " plus .emit OPERATOR_PLUS .or\n"
310 " minusminus .emit OPERATOR_DECREMENT .or\n"
311 " minusequals .emit OPERATOR_SUBASSIGN .or\n"
312 " minus .emit OPERATOR_MINUS .or\n"
313 " bang .emit OPERATOR_NOT .or\n"
314 " starequals .emit OPERATOR_MULASSIGN .or\n"
315 " star .emit OPERATOR_MULTIPLY .or\n"
316 " slashequals .emit OPERATOR_DIVASSIGN .or\n"
317 " slash .emit OPERATOR_DIVIDE .or\n"
318 " lessequals .emit OPERATOR_LESSEQUAL .or\n"
319 " \n"
320 " \n"
321 " less .emit OPERATOR_LESS .or\n"
322 " greaterequals .emit OPERATOR_GREATEREQUAL .or\n"
323 " \n"
324 " \n"
325 " greater .emit OPERATOR_GREATER .or\n"
326 " \n"
327 " \n"
328 " \n"
329 " \n"
330 " \n"
331 " \n"
332 " \n"
333 " \n"
334 " caretcaret .emit OPERATOR_LOGICALXOR ;\n"
335 "parameter_declarator\n"
336 " parameter_declarator_nospace .or parameter_declarator_space;\n"
337 "parameter_declarator_nospace\n"
338 " type_specifier_nospace .and identifier .and parameter_declarator_1;\n"
339 "parameter_declarator_space\n"
340 " type_specifier_space .and space .and identifier .and parameter_declarator_1;\n"
341 "parameter_declarator_1\n"
342 " parameter_declarator_2 .emit PARAMETER_ARRAY_PRESENT .or\n"
343 " .true .emit PARAMETER_ARRAY_NOT_PRESENT;\n"
344 "parameter_declarator_2\n"
345 " lbracket .and constant_expression .and rbracket;\n"
346 "parameter_declaration\n"
347 " parameter_declaration_1 .emit PARAMETER_NEXT;\n"
348 "parameter_declaration_1\n"
349 " parameter_declaration_2 .or parameter_declaration_3;\n"
350 "parameter_declaration_2\n"
351 " type_qualifier .and space .and parameter_qualifier .and parameter_declaration_4;\n"
352 "parameter_declaration_3\n"
353 " parameter_qualifier .emit TYPE_QUALIFIER_NONE .and parameter_declaration_4;\n"
354 "parameter_declaration_4\n"
355 " parameter_declarator .or parameter_type_specifier;\n"
356 "parameter_qualifier\n"
357 " parameter_qualifier_1 .or .true .emit PARAM_QUALIFIER_IN;\n"
358 "parameter_qualifier_1\n"
359 " parameter_qualifier_2 .and space;\n"
360 "parameter_qualifier_2\n"
361 " \"in\" .emit PARAM_QUALIFIER_IN .or\n"
362 " \"out\" .emit PARAM_QUALIFIER_OUT .or\n"
363 " \"inout\" .emit PARAM_QUALIFIER_INOUT;\n"
364 "parameter_type_specifier\n"
365 " parameter_type_specifier_1 .and .true .emit '\\0' .and parameter_type_specifier_2;\n"
366 "parameter_type_specifier_1\n"
367 " type_specifier_nospace .or type_specifier_space;\n"
368 "parameter_type_specifier_2\n"
369 " parameter_type_specifier_3 .emit PARAMETER_ARRAY_PRESENT .or\n"
370 " .true .emit PARAMETER_ARRAY_NOT_PRESENT;\n"
371 "parameter_type_specifier_3\n"
372 " lbracket .and constant_expression .and rbracket;\n"
373 "init_declarator_list\n"
374 " single_declaration .and .loop init_declarator_list_1 .emit DECLARATOR_NEXT .and\n"
375 " .true .emit DECLARATOR_NONE;\n"
376 "init_declarator_list_1\n"
377 " comma .and identifier .emit VARIABLE_IDENTIFIER .and init_declarator_list_2;\n"
378 "init_declarator_list_2\n"
379 " init_declarator_list_3 .or init_declarator_list_4 .or .true .emit VARIABLE_NONE;\n"
380 "init_declarator_list_3\n"
381 " equals .and initializer .emit VARIABLE_INITIALIZER;\n"
382 "init_declarator_list_4\n"
383 " lbracket .and init_declarator_list_5 .and rbracket;\n"
384 "init_declarator_list_5\n"
385 " constant_expression .emit VARIABLE_ARRAY_EXPLICIT .or .true .emit VARIABLE_ARRAY_UNKNOWN;\n"
386 "single_declaration\n"
387 " single_declaration_nospace .or single_declaration_space;\n"
388 "single_declaration_space\n"
389 " fully_specified_type_space .and single_declaration_space_1;\n"
390 "single_declaration_nospace\n"
391 " fully_specified_type_nospace .and single_declaration_nospace_1;\n"
392 "single_declaration_space_1\n"
393 " single_declaration_space_2 .emit VARIABLE_IDENTIFIER .or .true .emit VARIABLE_NONE;\n"
394 "single_declaration_nospace_1\n"
395 " single_declaration_nospace_2 .emit VARIABLE_IDENTIFIER .or .true .emit VARIABLE_NONE;\n"
396 "single_declaration_space_2\n"
397 " space .and identifier .and single_declaration_3;\n"
398 "single_declaration_nospace_2\n"
399 " identifier .and single_declaration_3;\n"
400 "single_declaration_3\n"
401 " single_declaration_4 .or single_declaration_5 .or .true .emit VARIABLE_NONE;\n"
402 "single_declaration_4\n"
403 " equals .and initializer .emit VARIABLE_INITIALIZER;\n"
404 "single_declaration_5\n"
405 " lbracket .and single_declaration_6 .and rbracket;\n"
406 "single_declaration_6\n"
407 " constant_expression .emit VARIABLE_ARRAY_EXPLICIT .or .true .emit VARIABLE_ARRAY_UNKNOWN;\n"
408 "fully_specified_type_space\n"
409 " fully_specified_type_1 .and type_specifier_space;\n"
410 "fully_specified_type_nospace\n"
411 " fully_specified_type_1 .and type_specifier_nospace;\n"
412 "fully_specified_type_1\n"
413 " fully_specified_type_2 .or .true .emit TYPE_QUALIFIER_NONE;\n"
414 "fully_specified_type_2\n"
415 " type_qualifier .and space;\n"
416 "type_qualifier\n"
417 " \"const\" .emit TYPE_QUALIFIER_CONST .or\n"
418 " .if (shader_type == 2) \"attribute\" .emit TYPE_QUALIFIER_ATTRIBUTE .or\n"
419 " \"varying\" .emit TYPE_QUALIFIER_VARYING .or\n"
420 " \"uniform\" .emit TYPE_QUALIFIER_UNIFORM .or\n"
421 " .if (parsing_builtin != 0) \"__fixed_output\" .emit TYPE_QUALIFIER_FIXEDOUTPUT .or\n"
422 " .if (parsing_builtin != 0) \"__fixed_input\" .emit TYPE_QUALIFIER_FIXEDINPUT;\n"
423 "type_specifier_space\n"
424 " \"void\" .emit TYPE_SPECIFIER_VOID .or\n"
425 " \"float\" .emit TYPE_SPECIFIER_FLOAT .or\n"
426 " \"int\" .emit TYPE_SPECIFIER_INT .or\n"
427 " \"bool\" .emit TYPE_SPECIFIER_BOOL .or\n"
428 " \"vec2\" .emit TYPE_SPECIFIER_VEC2 .or\n"
429 " \"vec3\" .emit TYPE_SPECIFIER_VEC3 .or\n"
430 " \"vec4\" .emit TYPE_SPECIFIER_VEC4 .or\n"
431 " \"bvec2\" .emit TYPE_SPECIFIER_BVEC2 .or\n"
432 " \"bvec3\" .emit TYPE_SPECIFIER_BVEC3 .or\n"
433 " \"bvec4\" .emit TYPE_SPECIFIER_BVEC4 .or\n"
434 " \"ivec2\" .emit TYPE_SPECIFIER_IVEC2 .or\n"
435 " \"ivec3\" .emit TYPE_SPECIFIER_IVEC3 .or\n"
436 " \"ivec4\" .emit TYPE_SPECIFIER_IVEC4 .or\n"
437 " \"mat2\" .emit TYPE_SPECIFIER_MAT2 .or\n"
438 " \"mat3\" .emit TYPE_SPECIFIER_MAT3 .or\n"
439 " \"mat4\" .emit TYPE_SPECIFIER_MAT4 .or\n"
440 " \"mat2x3\" .emit TYPE_SPECIFIER_MAT23 .or\n"
441 " \"mat3x2\" .emit TYPE_SPECIFIER_MAT32 .or\n"
442 " \"mat2x4\" .emit TYPE_SPECIFIER_MAT24 .or\n"
443 " \"mat4x2\" .emit TYPE_SPECIFIER_MAT42 .or\n"
444 " \"mat3x4\" .emit TYPE_SPECIFIER_MAT34 .or\n"
445 " \"mat4x3\" .emit TYPE_SPECIFIER_MAT43 .or\n"
446 " \"sampler1D\" .emit TYPE_SPECIFIER_SAMPLER1D .or\n"
447 " \"sampler2D\" .emit TYPE_SPECIFIER_SAMPLER2D .or\n"
448 " \"sampler3D\" .emit TYPE_SPECIFIER_SAMPLER3D .or\n"
449 " \"samplerCube\" .emit TYPE_SPECIFIER_SAMPLERCUBE .or\n"
450 " \"sampler1DShadow\" .emit TYPE_SPECIFIER_SAMPLER1DSHADOW .or\n"
451 " \"sampler2DShadow\" .emit TYPE_SPECIFIER_SAMPLER2DSHADOW .or\n"
452 " \"sampler2DRect\" .emit TYPE_SPECIFIER_SAMPLER2DRECT .or\n"
453 " \"sampler2DRectShadow\" .emit TYPE_SPECIFIER_SAMPLER2DRECTSHADOW .or\n"
454 " type_name .emit TYPE_SPECIFIER_TYPENAME;\n"
455 "type_specifier_nospace\n"
456 " struct_specifier .emit TYPE_SPECIFIER_STRUCT;\n"
457 "struct_specifier\n"
458 " \"struct\" .and struct_specifier_1 .and optional_space .and lbrace .error LBRACE_EXPECTED .and\n"
459 " struct_declaration_list .and rbrace .emit FIELD_NONE;\n"
460 "struct_specifier_1\n"
461 " struct_specifier_2 .or .true .emit '\\0';\n"
462 "struct_specifier_2\n"
463 " space .and identifier;\n"
464 "struct_declaration_list\n"
465 " struct_declaration .and .loop struct_declaration .emit FIELD_NEXT;\n"
466 "struct_declaration\n"
467 " struct_declaration_nospace .or struct_declaration_space;\n"
468 "struct_declaration_space\n"
469 " type_specifier_space .and space .and struct_declarator_list .and semicolon .emit FIELD_NONE;\n"
470 "struct_declaration_nospace\n"
471 " type_specifier_nospace .and struct_declarator_list .and semicolon .emit FIELD_NONE;\n"
472 "struct_declarator_list\n"
473 " struct_declarator .and .loop struct_declarator_list_1 .emit FIELD_NEXT;\n"
474 "struct_declarator_list_1\n"
475 " comma .and struct_declarator;\n"
476 "struct_declarator\n"
477 " identifier .and struct_declarator_1;\n"
478 "struct_declarator_1\n"
479 " struct_declarator_2 .emit FIELD_ARRAY .or .true .emit FIELD_NONE;\n"
480 "struct_declarator_2\n"
481 " lbracket .and constant_expression .and rbracket;\n"
482 "initializer\n"
483 " assignment_expression .and .true .emit OP_END;\n"
484 "declaration_statement\n"
485 " declaration;\n"
486 "statement\n"
487 " compound_statement .or simple_statement;\n"
488 "statement_space\n"
489 " compound_statement .or statement_space_1;\n"
490 "statement_space_1\n"
491 " space .and simple_statement;\n"
492 "simple_statement\n"
493 " .if (parsing_builtin != 0) __asm_statement .emit OP_ASM .or\n"
494 " selection_statement .or\n"
495 " iteration_statement .or\n"
496 " jump_statement .or\n"
497 " expression_statement .emit OP_EXPRESSION .or\n"
498 " declaration_statement .emit OP_DECLARE;\n"
499 "compound_statement\n"
500 " compound_statement_1 .emit OP_BLOCK_BEGIN_NEW_SCOPE .and .true .emit OP_END;\n"
501 "compound_statement_1\n"
502 " compound_statement_2 .or compound_statement_3;\n"
503 "compound_statement_2\n"
504 " lbrace .and rbrace;\n"
505 "compound_statement_3\n"
506 " lbrace .and statement_list .and rbrace;\n"
507 "statement_no_new_scope\n"
508 " compound_statement_no_new_scope .or simple_statement;\n"
509 "compound_statement_no_new_scope\n"
510 " compound_statement_no_new_scope_1 .emit OP_BLOCK_BEGIN_NO_NEW_SCOPE .and .true .emit OP_END;\n"
511 "compound_statement_no_new_scope_1\n"
512 " compound_statement_no_new_scope_2 .or compound_statement_no_new_scope_3;\n"
513 "compound_statement_no_new_scope_2\n"
514 " lbrace .and rbrace;\n"
515 "compound_statement_no_new_scope_3\n"
516 " lbrace .and statement_list .and rbrace;\n"
517 "statement_list\n"
518 " statement .and .loop statement;\n"
519 "expression_statement\n"
520 " expression_statement_1 .or expression_statement_2;\n"
521 "expression_statement_1\n"
522 " semicolon .emit OP_PUSH_VOID .emit OP_END;\n"
523 "expression_statement_2\n"
524 " expression .and semicolon .emit OP_END;\n"
525 "selection_statement\n"
526 " \"if\" .emit OP_IF .and lparen .error LPAREN_EXPECTED .and expression .and\n"
527 " rparen .error RPAREN_EXPECTED .emit OP_END .and selection_rest_statement;\n"
528 "selection_rest_statement\n"
529 " statement .and selection_rest_statement_1;\n"
530 "selection_rest_statement_1\n"
531 " selection_rest_statement_2 .or .true .emit OP_EXPRESSION .emit OP_PUSH_VOID .emit OP_END;\n"
532 "selection_rest_statement_2\n"
533 " \"else\" .and optional_space .and statement;\n"
534 "condition\n"
535 " condition_1 .emit OP_DECLARE .emit DECLARATION_INIT_DECLARATOR_LIST .or\n"
536 " condition_3 .emit OP_EXPRESSION;\n"
537 "condition_1\n"
538 " condition_1_nospace .or condition_1_space;\n"
539 "condition_1_nospace\n"
540 " fully_specified_type_nospace .and condition_2;\n"
541 "condition_1_space\n"
542 " fully_specified_type_space .and space .and condition_2;\n"
543 "condition_2\n"
544 " identifier .emit VARIABLE_IDENTIFIER .and equals .emit VARIABLE_INITIALIZER .and\n"
545 " initializer .and .true .emit DECLARATOR_NONE;\n"
546 "condition_3\n"
547 " expression .and .true .emit OP_END;\n"
548 "iteration_statement\n"
549 " iteration_statement_1 .or iteration_statement_2 .or iteration_statement_3;\n"
550 "iteration_statement_1\n"
551 " \"while\" .emit OP_WHILE .and lparen .error LPAREN_EXPECTED .and condition .and\n"
552 " rparen .error RPAREN_EXPECTED .and statement;\n"
553 "iteration_statement_2\n"
554 " \"do\" .emit OP_DO .and statement_space .and \"while\" .and lparen .error LPAREN_EXPECTED .and\n"
555 " expression .and rparen .error RPAREN_EXPECTED .emit OP_END .and semicolon;\n"
556 "iteration_statement_3\n"
557 " \"for\" .emit OP_FOR .and lparen .error LPAREN_EXPECTED .and for_init_statement .and\n"
558 " for_rest_statement .and rparen .error RPAREN_EXPECTED .and statement_no_new_scope;\n"
559 "for_init_statement\n"
560 " expression_statement .emit OP_EXPRESSION .or declaration_statement .emit OP_DECLARE;\n"
561 "conditionopt\n"
562 " condition .or\n"
563 " .true .emit OP_EXPRESSION .emit OP_PUSH_BOOL .emit 2 .emit '1' .emit '\\0' .emit OP_END;\n"
564 "for_rest_statement\n"
565 " conditionopt .and semicolon .and for_rest_statement_1;\n"
566 "for_rest_statement_1\n"
567 " for_rest_statement_2 .or .true .emit OP_PUSH_VOID .emit OP_END;\n"
568 "for_rest_statement_2\n"
569 " expression .and .true .emit OP_END;\n"
570 "jump_statement\n"
571 " jump_statement_1 .or jump_statement_2 .or jump_statement_3 .or jump_statement_4 .or\n"
572 " .if (shader_type == 1) jump_statement_5;\n"
573 "jump_statement_1\n"
574 " \"continue\" .and semicolon .emit OP_CONTINUE;\n"
575 "jump_statement_2\n"
576 " \"break\" .and semicolon .emit OP_BREAK;\n"
577 "jump_statement_3\n"
578 " \"return\" .emit OP_RETURN .and optional_space .and expression .and semicolon .emit OP_END;\n"
579 "jump_statement_4\n"
580 " \"return\" .emit OP_RETURN .and semicolon .emit OP_PUSH_VOID .emit OP_END;\n"
581 "jump_statement_5\n"
582 " \"discard\" .and semicolon .emit OP_DISCARD;\n"
583 "__asm_statement\n"
584 " \"__asm\" .and space .and identifier .and space .and asm_arguments .and semicolon .emit OP_END;\n"
585 "asm_arguments\n"
586 " asm_argument .and .true .emit OP_END .and .loop asm_arguments_1;\n"
587 "asm_arguments_1\n"
588 " comma .and asm_argument .and .true .emit OP_END;\n"
589 "asm_argument\n"
590 " var_with_field .or\n"
591 " variable_identifier .or\n"
592 " floatconstant;\n"
593 "var_with_field\n"
594 " variable_identifier .and dot .and field_selection .emit OP_FIELD;\n"
595 "translation_unit\n"
596 " optional_space .emit REVISION .and external_declaration .error INVALID_EXTERNAL_DECLARATION .and\n"
597 " .loop external_declaration .and optional_space .and\n"
598 " '\\0' .error INVALID_EXTERNAL_DECLARATION .emit EXTERNAL_NULL;\n"
599 "external_declaration\n"
600 " function_definition .emit EXTERNAL_FUNCTION_DEFINITION .or\n"
601 " declaration .emit EXTERNAL_DECLARATION;\n"
602 "function_definition\n"
603 " function_prototype .and compound_statement_no_new_scope;\n"
604 "digit_oct\n"
605 " '0'-'7';\n"
606 "digit_dec\n"
607 " '0'-'9';\n"
608 "digit_hex\n"
609 " '0'-'9' .or 'A'-'F' .or 'a'-'f';\n"
610 "id_character_first\n"
611 " 'a'-'z' .or 'A'-'Z' .or '_';\n"
612 "id_character_next\n"
613 " id_character_first .or digit_dec;\n"
614 "identifier\n"
615 " id_character_first .emit * .and .loop id_character_next .emit * .and .true .emit '\\0';\n"
616 "float\n"
617 " float_1 .or float_2;\n"
618 "float_1\n"
619 " float_fractional_constant .and float_optional_exponent_part;\n"
620 "float_2\n"
621 " float_digit_sequence .and .true .emit '\\0' .and float_exponent_part;\n"
622 "float_fractional_constant\n"
623 " float_fractional_constant_1 .or float_fractional_constant_2 .or float_fractional_constant_3;\n"
624 "float_fractional_constant_1\n"
625 " float_digit_sequence .and '.' .and float_digit_sequence;\n"
626 "float_fractional_constant_2\n"
627 " float_digit_sequence .and '.' .and .true .emit '\\0';\n"
628 "float_fractional_constant_3\n"
629 " '.' .emit '\\0' .and float_digit_sequence;\n"
630 "float_optional_exponent_part\n"
631 " float_exponent_part .or .true .emit '\\0';\n"
632 "float_digit_sequence\n"
633 " digit_dec .emit * .and .loop digit_dec .emit * .and .true .emit '\\0';\n"
634 "float_exponent_part\n"
635 " float_exponent_part_1 .or float_exponent_part_2;\n"
636 "float_exponent_part_1\n"
637 " 'e' .and float_optional_sign .and float_digit_sequence;\n"
638 "float_exponent_part_2\n"
639 " 'E' .and float_optional_sign .and float_digit_sequence;\n"
640 "float_optional_sign\n"
641 " float_sign .or .true;\n"
642 "float_sign\n"
643 " '+' .or '-' .emit '-';\n"
644 "integer\n"
645 " integer_hex .or integer_oct .or integer_dec;\n"
646 "integer_hex\n"
647 " '0' .and integer_hex_1 .emit 0x10 .and digit_hex .emit * .and .loop digit_hex .emit * .and\n"
648 " .true .emit '\\0';\n"
649 "integer_hex_1\n"
650 " 'x' .or 'X';\n"
651 "integer_oct\n"
652 " '0' .emit 8 .emit * .and .loop digit_oct .emit * .and .true .emit '\\0';\n"
653 "integer_dec\n"
654 " digit_dec .emit 10 .emit * .and .loop digit_dec .emit * .and .true .emit '\\0';\n"
655 "boolean\n"
656 " \"true\" .emit 2 .emit '1' .emit '\\0' .or\n"
657 " \"false\" .emit 2 .emit '0' .emit '\\0';\n"
658 "type_name\n"
659 " identifier;\n"
660 "field_selection\n"
661 " identifier;\n"
662 "floatconstant\n"
663 " float .emit OP_PUSH_FLOAT;\n"
664 "intconstant\n"
665 " integer .emit OP_PUSH_INT;\n"
666 "boolconstant\n"
667 " boolean .emit OP_PUSH_BOOL;\n"
668 "optional_space\n"
669 " .loop single_space;\n"
670 "space\n"
671 " single_space .and .loop single_space;\n"
672 "single_space\n"
673 " white_char .or c_style_comment_block .or cpp_style_comment_block;\n"
674 "white_char\n"
675 " ' ' .or '\\t' .or new_line .or '\\v' .or '\\f';\n"
676 "new_line\n"
677 " cr_lf .or lf_cr .or '\\n' .or '\\r';\n"
678 "cr_lf\n"
679 " '\\r' .and '\\n';\n"
680 "lf_cr\n"
681 " '\\n' .and '\\r';\n"
682 "c_style_comment_block\n"
683 " '/' .and '*' .and c_style_comment_rest;\n"
684 "c_style_comment_rest\n"
685 " .loop c_style_comment_char_no_star .and c_style_comment_rest_1;\n"
686 "c_style_comment_rest_1\n"
687 " c_style_comment_end .or c_style_comment_rest_2;\n"
688 "c_style_comment_rest_2\n"
689 " '*' .and c_style_comment_rest;\n"
690 "c_style_comment_char_no_star\n"
691 " '\\x2B'-'\\xFF' .or '\\x01'-'\\x29';\n"
692 "c_style_comment_end\n"
693 " '*' .and '/';\n"
694 "cpp_style_comment_block\n"
695 " '/' .and '/' .and cpp_style_comment_block_1;\n"
696 "cpp_style_comment_block_1\n"
697 " cpp_style_comment_block_2 .or cpp_style_comment_block_3;\n"
698 "cpp_style_comment_block_2\n"
699 " .loop cpp_style_comment_char .and new_line;\n"
700 "cpp_style_comment_block_3\n"
701 " .loop cpp_style_comment_char;\n"
702 "cpp_style_comment_char\n"
703 " '\\x0E'-'\\xFF' .or '\\x01'-'\\x09' .or '\\x0B'-'\\x0C';\n"
704 "ampersandampersand\n"
705 " optional_space .and '&' .and '&' .and optional_space;\n"
706 "barbar\n"
707 " optional_space .and '|' .and '|' .and optional_space;\n"
708 "bang\n"
709 " optional_space .and '!' .and optional_space;\n"
710 "bangequals\n"
711 " optional_space .and '!' .and '=' .and optional_space;\n"
712 "caretcaret\n"
713 " optional_space .and '^' .and '^' .and optional_space;\n"
714 "colon\n"
715 " optional_space .and ':' .and optional_space;\n"
716 "comma\n"
717 " optional_space .and ',' .and optional_space;\n"
718 "dot\n"
719 " optional_space .and '.' .and optional_space;\n"
720 "equals\n"
721 " optional_space .and '=' .and optional_space;\n"
722 "equalsequals\n"
723 " optional_space .and '=' .and '=' .and optional_space;\n"
724 "greater\n"
725 " optional_space .and '>' .and optional_space;\n"
726 "greaterequals\n"
727 " optional_space .and '>' .and '=' .and optional_space;\n"
728 "lbrace\n"
729 " optional_space .and '{' .and optional_space;\n"
730 "lbracket\n"
731 " optional_space .and '[' .and optional_space;\n"
732 "less\n"
733 " optional_space .and '<' .and optional_space;\n"
734 "lessequals\n"
735 " optional_space .and '<' .and '=' .and optional_space;\n"
736 "lparen\n"
737 " optional_space .and '(' .and optional_space;\n"
738 "minus\n"
739 " optional_space .and '-' .and optional_space;\n"
740 "minusequals\n"
741 " optional_space .and '-' .and '=' .and optional_space;\n"
742 "minusminus\n"
743 " optional_space .and '-' .and '-' .and optional_space;\n"
744 "plus\n"
745 " optional_space .and '+' .and optional_space;\n"
746 "plusequals\n"
747 " optional_space .and '+' .and '=' .and optional_space;\n"
748 "plusplus\n"
749 " optional_space .and '+' .and '+' .and optional_space;\n"
750 "question\n"
751 " optional_space .and '?' .and optional_space;\n"
752 "rbrace\n"
753 " optional_space .and '}' .and optional_space;\n"
754 "rbracket\n"
755 " optional_space .and ']' .and optional_space;\n"
756 "rparen\n"
757 " optional_space .and ')' .and optional_space;\n"
758 "semicolon\n"
759 " optional_space .and ';' .and optional_space;\n"
760 "slash\n"
761 " optional_space .and '/' .and optional_space;\n"
762 "slashequals\n"
763 " optional_space .and '/' .and '=' .and optional_space;\n"
764 "star\n"
765 " optional_space .and '*' .and optional_space;\n"
766 "starequals\n"
767 " optional_space .and '*' .and '=' .and optional_space;\n"
768 ".string string_lexer;\n"
769 "string_lexer\n"
770 " lex_first_identifier_character .and .loop lex_next_identifier_character;\n"
771 "lex_first_identifier_character\n"
772 " 'a'-'z' .or 'A'-'Z' .or '_';\n"
773 "lex_next_identifier_character\n"
774 " 'a'-'z' .or 'A'-'Z' .or '0'-'9' .or '_';\n"
775 "err_token\n"
776 " '~' .or '`' .or '!' .or '@' .or '#' .or '$' .or '%' .or '^' .or '&' .or '*' .or '(' .or ')' .or\n"
777 " '-' .or '+' .or '=' .or '|' .or '\\\\' .or '[' .or ']' .or '{' .or '}' .or ':' .or ';' .or '\"' .or\n"
778 " '\\'' .or '<' .or ',' .or '>' .or '.' .or '/' .or '?' .or err_identifier;\n"
779 "err_identifier\n"
780 " id_character_first .and .loop id_character_next;\n"
781 ""