fe89b5ff3b57e33922642b9c5d3f47a1f82c492d
2 ".emtcode REVISION 0x07\n"
3 ".emtcode FRAGMENT_PROGRAM 0x01\n"
4 ".emtcode VERTEX_PROGRAM 0x02\n"
5 ".emtcode OPTION 0x01\n"
6 ".emtcode INSTRUCTION 0x02\n"
7 ".emtcode DECLARATION 0x03\n"
9 ".emtcode ARB_PRECISION_HINT_FASTEST 0x01\n"
10 ".emtcode ARB_PRECISION_HINT_NICEST 0x02\n"
11 ".emtcode ARB_FOG_EXP 0x04\n"
12 ".emtcode ARB_FOG_EXP2 0x08\n"
13 ".emtcode ARB_FOG_LINEAR 0x10\n"
14 ".emtcode ARB_POSITION_INVARIANT 0x20\n"
15 ".emtcode ARB_FRAGMENT_PROGRAM_SHADOW 0x40\n"
16 ".emtcode OP_ALU_INST 0x00\n"
17 ".emtcode OP_TEX_INST 0x01\n"
18 ".emtcode OP_ALU_VECTOR 0x00\n"
19 ".emtcode OP_ALU_SCALAR 0x01\n"
20 ".emtcode OP_ALU_BINSC 0x02\n"
21 ".emtcode OP_ALU_BIN 0x03\n"
22 ".emtcode OP_ALU_TRI 0x04\n"
23 ".emtcode OP_ALU_SWZ 0x05\n"
24 ".emtcode OP_TEX_SAMPLE 0x06\n"
25 ".emtcode OP_TEX_KIL 0x07\n"
26 ".emtcode OP_ALU_ARL 0x08\n"
27 ".emtcode OP_ABS 0x00\n"
28 ".emtcode OP_ABS_SAT 0x1B\n"
29 ".emtcode OP_FLR 0x09\n"
30 ".emtcode OP_FLR_SAT 0x26\n"
31 ".emtcode OP_FRC 0x0A\n"
32 ".emtcode OP_FRC_SAT 0x27\n"
33 ".emtcode OP_LIT 0x0C\n"
34 ".emtcode OP_LIT_SAT 0x2A\n"
35 ".emtcode OP_MOV 0x11\n"
36 ".emtcode OP_MOV_SAT 0x30\n"
37 ".emtcode OP_COS 0x1F\n"
38 ".emtcode OP_COS_SAT 0x20\n"
39 ".emtcode OP_EX2 0x07\n"
40 ".emtcode OP_EX2_SAT 0x25\n"
41 ".emtcode OP_LG2 0x0B\n"
42 ".emtcode OP_LG2_SAT 0x29\n"
43 ".emtcode OP_RCP 0x14\n"
44 ".emtcode OP_RCP_SAT 0x33\n"
45 ".emtcode OP_RSQ 0x15\n"
46 ".emtcode OP_RSQ_SAT 0x34\n"
47 ".emtcode OP_SIN 0x38\n"
48 ".emtcode OP_SIN_SAT 0x39\n"
49 ".emtcode OP_SCS 0x35\n"
50 ".emtcode OP_SCS_SAT 0x36\n"
51 ".emtcode OP_POW 0x13\n"
52 ".emtcode OP_POW_SAT 0x32\n"
53 ".emtcode OP_ADD 0x01\n"
54 ".emtcode OP_ADD_SAT 0x1C\n"
55 ".emtcode OP_DP3 0x03\n"
56 ".emtcode OP_DP3_SAT 0x21\n"
57 ".emtcode OP_DP4 0x04\n"
58 ".emtcode OP_DP4_SAT 0x22\n"
59 ".emtcode OP_DPH 0x05\n"
60 ".emtcode OP_DPH_SAT 0x23\n"
61 ".emtcode OP_DST 0x06\n"
62 ".emtcode OP_DST_SAT 0x24\n"
63 ".emtcode OP_MAX 0x0F\n"
64 ".emtcode OP_MAX_SAT 0x2E\n"
65 ".emtcode OP_MIN 0x10\n"
66 ".emtcode OP_MIN_SAT 0x2F\n"
67 ".emtcode OP_MUL 0x12\n"
68 ".emtcode OP_MUL_SAT 0x31\n"
69 ".emtcode OP_SGE 0x16\n"
70 ".emtcode OP_SGE_SAT 0x37\n"
71 ".emtcode OP_SLT 0x17\n"
72 ".emtcode OP_SLT_SAT 0x3A\n"
73 ".emtcode OP_SUB 0x18\n"
74 ".emtcode OP_SUB_SAT 0x3B\n"
75 ".emtcode OP_XPD 0x1A\n"
76 ".emtcode OP_XPD_SAT 0x43\n"
77 ".emtcode OP_CMP 0x1D\n"
78 ".emtcode OP_CMP_SAT 0x1E\n"
79 ".emtcode OP_LRP 0x2B\n"
80 ".emtcode OP_LRP_SAT 0x2C\n"
81 ".emtcode OP_MAD 0x0E\n"
82 ".emtcode OP_MAD_SAT 0x2D\n"
83 ".emtcode OP_SWZ 0x19\n"
84 ".emtcode OP_SWZ_SAT 0x3C\n"
85 ".emtcode OP_TEX 0x3D\n"
86 ".emtcode OP_TEX_SAT 0x3E\n"
87 ".emtcode OP_TXB 0x3F\n"
88 ".emtcode OP_TXB_SAT 0x40\n"
89 ".emtcode OP_TXP 0x41\n"
90 ".emtcode OP_TXP_SAT 0x42\n"
91 ".emtcode OP_KIL 0x28\n"
92 ".emtcode OP_ARL 0x02\n"
93 ".emtcode OP_EXP 0x08\n"
94 ".emtcode OP_LOG 0x0D\n"
95 ".emtcode FRAGMENT_ATTRIB_COLOR 0x01\n"
96 ".emtcode FRAGMENT_ATTRIB_TEXCOORD 0x02\n"
97 ".emtcode FRAGMENT_ATTRIB_FOGCOORD 0x03\n"
98 ".emtcode FRAGMENT_ATTRIB_POSITION 0x04\n"
99 ".emtcode VERTEX_ATTRIB_POSITION 0x01\n"
100 ".emtcode VERTEX_ATTRIB_WEIGHT 0x02\n"
101 ".emtcode VERTEX_ATTRIB_NORMAL 0x03\n"
102 ".emtcode VERTEX_ATTRIB_COLOR 0x04\n"
103 ".emtcode VERTEX_ATTRIB_FOGCOORD 0x05\n"
104 ".emtcode VERTEX_ATTRIB_TEXCOORD 0x06\n"
105 ".emtcode VERTEX_ATTRIB_MATRIXINDEX 0x07\n"
106 ".emtcode VERTEX_ATTRIB_GENERIC 0x08\n"
107 ".emtcode FRAGMENT_RESULT_COLOR 0x01\n"
108 ".emtcode FRAGMENT_RESULT_DEPTH 0x02\n"
109 ".emtcode VERTEX_RESULT_POSITION 0x01\n"
110 ".emtcode VERTEX_RESULT_COLOR 0x02\n"
111 ".emtcode VERTEX_RESULT_FOGCOORD 0x03\n"
112 ".emtcode VERTEX_RESULT_POINTSIZE 0x04\n"
113 ".emtcode VERTEX_RESULT_TEXCOORD 0x05\n"
114 ".emtcode TEXTARGET_1D 0x01\n"
115 ".emtcode TEXTARGET_2D 0x02\n"
116 ".emtcode TEXTARGET_3D 0x03\n"
117 ".emtcode TEXTARGET_RECT 0x04\n"
118 ".emtcode TEXTARGET_CUBE 0x05\n"
119 ".emtcode TEXTARGET_SHADOW1D 0x06\n"
120 ".emtcode TEXTARGET_SHADOW2D 0x07\n"
121 ".emtcode TEXTARGET_SHADOWRECT 0x08\n"
122 ".emtcode FACE_FRONT 0x00\n"
123 ".emtcode FACE_BACK 0x01\n"
124 ".emtcode COLOR_PRIMARY 0x00\n"
125 ".emtcode COLOR_SECONDARY 0x01\n"
126 ".emtcode COMPONENT_X 0x00\n"
127 ".emtcode COMPONENT_Y 0x01\n"
128 ".emtcode COMPONENT_Z 0x02\n"
129 ".emtcode COMPONENT_W 0x03\n"
130 ".emtcode COMPONENT_0 0x04\n"
131 ".emtcode COMPONENT_1 0x05\n"
132 ".emtcode ARRAY_INDEX_ABSOLUTE 0x00\n"
133 ".emtcode ARRAY_INDEX_RELATIVE 0x01\n"
134 ".emtcode MATRIX_MODELVIEW 0x01\n"
135 ".emtcode MATRIX_PROJECTION 0x02\n"
136 ".emtcode MATRIX_MVP 0x03\n"
137 ".emtcode MATRIX_TEXTURE 0x04\n"
138 ".emtcode MATRIX_PALETTE 0x05\n"
139 ".emtcode MATRIX_PROGRAM 0x06\n"
140 ".emtcode MATRIX_MODIFIER_IDENTITY 0x00\n"
141 ".emtcode MATRIX_MODIFIER_INVERSE 0x01\n"
142 ".emtcode MATRIX_MODIFIER_TRANSPOSE 0x02\n"
143 ".emtcode MATRIX_MODIFIER_INVTRANS 0x03\n"
144 ".emtcode CONSTANT_SCALAR 0x01\n"
145 ".emtcode CONSTANT_VECTOR 0x02\n"
146 ".emtcode PROGRAM_PARAM_ENV 0x01\n"
147 ".emtcode PROGRAM_PARAM_LOCAL 0x02\n"
148 ".emtcode REGISTER_ATTRIB 0x01\n"
149 ".emtcode REGISTER_PARAM 0x02\n"
150 ".emtcode REGISTER_RESULT 0x03\n"
151 ".emtcode REGISTER_ESTABLISHED_NAME 0x04\n"
152 ".emtcode PARAM_NULL 0x00\n"
153 ".emtcode PARAM_ARRAY_ELEMENT 0x01\n"
154 ".emtcode PARAM_STATE_ELEMENT 0x02\n"
155 ".emtcode PARAM_PROGRAM_ELEMENT 0x03\n"
156 ".emtcode PARAM_PROGRAM_ELEMENTS 0x04\n"
157 ".emtcode PARAM_CONSTANT 0x05\n"
158 ".emtcode STATE_MATERIAL 0x01\n"
159 ".emtcode STATE_LIGHT 0x02\n"
160 ".emtcode STATE_LIGHT_MODEL 0x03\n"
161 ".emtcode STATE_LIGHT_PROD 0x04\n"
162 ".emtcode STATE_FOG 0x05\n"
163 ".emtcode STATE_MATRIX_ROWS 0x06\n"
164 ".emtcode STATE_TEX_ENV 0x07\n"
165 ".emtcode STATE_DEPTH 0x08\n"
166 ".emtcode STATE_TEX_GEN 0x09\n"
167 ".emtcode STATE_CLIP_PLANE 0x0A\n"
168 ".emtcode STATE_POINT 0x0B\n"
169 ".emtcode MATERIAL_AMBIENT 0x01\n"
170 ".emtcode MATERIAL_DIFFUSE 0x02\n"
171 ".emtcode MATERIAL_SPECULAR 0x03\n"
172 ".emtcode MATERIAL_EMISSION 0x04\n"
173 ".emtcode MATERIAL_SHININESS 0x05\n"
174 ".emtcode LIGHT_AMBIENT 0x01\n"
175 ".emtcode LIGHT_DIFFUSE 0x02\n"
176 ".emtcode LIGHT_SPECULAR 0x03\n"
177 ".emtcode LIGHT_POSITION 0x04\n"
178 ".emtcode LIGHT_ATTENUATION 0x05\n"
179 ".emtcode LIGHT_HALF 0x06\n"
180 ".emtcode LIGHT_SPOT_DIRECTION 0x07\n"
181 ".emtcode LIGHT_MODEL_AMBIENT 0x01\n"
182 ".emtcode LIGHT_MODEL_SCENECOLOR 0x02\n"
183 ".emtcode LIGHT_PROD_AMBIENT 0x01\n"
184 ".emtcode LIGHT_PROD_DIFFUSE 0x02\n"
185 ".emtcode LIGHT_PROD_SPECULAR 0x03\n"
186 ".emtcode TEX_ENV_COLOR 0x01\n"
187 ".emtcode TEX_GEN_EYE 0x01\n"
188 ".emtcode TEX_GEN_OBJECT 0x02\n"
189 ".emtcode FOG_COLOR 0x01\n"
190 ".emtcode FOG_PARAMS 0x02\n"
191 ".emtcode DEPTH_RANGE 0x01\n"
192 ".emtcode POINT_SIZE 0x01\n"
193 ".emtcode POINT_ATTENUATION 0x02\n"
194 ".emtcode ATTRIB 0x01\n"
195 ".emtcode PARAM 0x02\n"
196 ".emtcode TEMP 0x03\n"
197 ".emtcode OUTPUT 0x04\n"
198 ".emtcode ALIAS 0x05\n"
199 ".emtcode ADDRESS 0x06\n"
200 ".errtext UNKNOWN_PROGRAM_SIGNATURE \"1001: '$e_signature$': unknown program signature\"\n"
201 ".errtext MISSING_END_OR_INVALID_STATEMENT \"1002: '$e_statement$': invalid statement\"\n"
202 ".errtext CODE_AFTER_END \"1003: '$e_statement$': code after 'END' keyword\"\n"
203 ".errtext INVALID_PROGRAM_OPTION \"1004: '$e_identifier$': invalid program option\"\n"
204 ".errtext EXT_SWIZ_COMP_EXPECTED \"1005: extended swizzle component expected but '$e_token$' found\"\n"
205 ".errtext TEX_TARGET_EXPECTED \"1006: texture target expected but '$e_token$' found\"\n"
206 ".errtext TEXTURE_EXPECTED \"1007: 'texture' expected but '$e_identifier$' found\"\n"
207 ".errtext SOURCE_REGISTER_EXPECTED \"1008: source register expected but '$e_token$' found\"\n"
208 ".errtext DESTINATION_REGISTER_EXPECTED \"1009: destination register expected but '$e_token$' found\"\n"
209 ".errtext INVALID_ADDRESS_COMPONENT \"1010: '$e_identifier$': invalid address component\"\n"
210 ".errtext INVALID_ADDRESS_WRITEMASK \"1011: '$e_identifier$': invalid address writemask\"\n"
211 ".errtext INVALID_COMPONENT \"1012: '$e_charordigit$': invalid component\"\n"
212 ".errtext INVALID_SUFFIX \"1013: '$e_identifier$': invalid suffix\"\n"
213 ".errtext INVALID_WRITEMASK \"1014: '$e_identifier$': invalid writemask\"\n"
214 ".errtext FRAGMENT_EXPECTED \"1015: 'fragment' expected but '$e_identifier$' found\"\n"
215 ".errtext VERTEX_EXPECTED \"1016: 'vertex' expected but '$e_identifier$' found\"\n"
216 ".errtext INVALID_FRAGMENT_PROPERTY \"1017: '$e_identifier$': invalid fragment property\"\n"
217 ".errtext INVALID_VERTEX_PROPERTY \"1018: '$e_identifier$': invalid vertex property\"\n"
218 ".errtext INVALID_STATE_PROPERTY \"1019: '$e_identifier$': invalid state property\"\n"
219 ".errtext INVALID_MATERIAL_PROPERTY \"1020: '$e_identifier$': invalid material property\"\n"
220 ".errtext INVALID_LIGHT_PROPERTY \"1021: '$e_identifier$': invalid light property\"\n"
221 ".errtext INVALID_SPOT_PROPERTY \"1022: '$e_identifier$': invalid spot property\"\n"
222 ".errtext INVALID_LIGHTMODEL_PROPERTY \"1023: '$e_identifier$': invalid light model property\"\n"
223 ".errtext INVALID_LIGHTPROD_PROPERTY \"1024: '$e_identifier$': invalid light product property\"\n"
224 ".errtext INVALID_TEXENV_PROPERTY \"1025: '$e_identifier$': invalid texture environment property\"\n"
225 ".errtext INVALID_TEXGEN_PROPERTY \"1026: '$e_identifier$': invalid texture generating property\"\n"
226 ".errtext INVALID_TEXGEN_COORD \"1027: '$e_identifier$': invalid texture generating coord\"\n"
227 ".errtext INVALID_FOG_PROPERTY \"1028: '$e_identifier$': invalid fog property\"\n"
228 ".errtext INVALID_DEPTH_PROPERTY \"1029: '$e_identifier$': invalid depth property\"\n"
229 ".errtext INVALID_CLIPPLANE_PROPERTY \"1030: '$e_identifier$': invalid clip plane property\"\n"
230 ".errtext INVALID_POINT_PROPERTY \"1031: '$e_identifier$': invalid point property\"\n"
231 ".errtext MATRIX_ROW_SELECTOR_OR_MODIFIER_EXPECTED \"1032: matrix row selector or modifier expected but '$e_token$' found\"\n"
232 ".errtext INVALID_MATRIX_NAME \"1033: '$e_identifier$': invalid matrix name\"\n"
233 ".errtext INVALID_PROGRAM_PROPERTY \"1034: '$e_identifier$': invalid program property\"\n"
234 ".errtext RESULT_EXPECTED \"1035: 'result' expected but '$e_token$' found\"\n"
235 ".errtext INVALID_RESULT_PROPERTY \"1036: '$e_identifier$': invalid result property\"\n"
236 ".errtext INVALID_FACE_PROPERTY \"1037: '$e_identifier$': invalid face property\"\n"
237 ".errtext INVALID_COLOR_PROPERTY \"1038: '$e_identifier$': invalid color property\"\n"
238 ".errtext IDENTIFIER_EXPECTED \"1039: identifier expected but '$e_token$' found\"\n"
239 ".errtext RESERVED_KEYWORD \"1040: use of reserved keyword as an identifier\"\n"
240 ".errtext INTEGER_EXPECTED \"1041: integer value expected but '$e_token$' found\"\n"
241 ".errtext MISSING_SEMICOLON \"1042: ';' expected but '$e_token$' found\"\n"
242 ".errtext MISSING_COMMA \"1043: ',' expected but '$e_token$' found\"\n"
243 ".errtext MISSING_LBRACKET \"1044: '[' expected but '$e_token$' found\"\n"
244 ".errtext MISSING_RBRACKET \"1045: ']' expected but '$e_token$' found\"\n"
245 ".errtext MISSING_DOT \"1046: '.' expected but '$e_token$' found\"\n"
246 ".errtext MISSING_EQUAL \"1047: '=' expected but '$e_token$' found\"\n"
247 ".errtext MISSING_LBRACE \"1048: '{' expected but '$e_token$' found\"\n"
248 ".errtext MISSING_RBRACE \"1049: '}' expected but '$e_token$' found\"\n"
249 ".errtext MISSING_DOTDOT \"1050: '..' expected but '$e_token$' found\"\n"
250 ".errtext MISSING_FRACTION_OR_EXPONENT \"1051: missing fraction part or exponent\"\n"
251 ".errtext MISSING_DOT_OR_EXPONENT \"1052: missing '.' or exponent\"\n"
252 ".errtext EXPONENT_VALUE_EXPECTED \"1053: exponent value expected\"\n"
253 ".errtext INTEGER_OUT_OF_RANGE \"1054: integer value out of range\"\n"
254 ".errtext OPERATION_NEEDS_DESTINATION_VARIABLE \"1055: operation needs destination variable\"\n"
255 ".errtext OPERATION_NEEDS_SOURCE_VARIABLE \"1056: operation needs source variable\"\n"
256 ".errtext ADDRESS_REGISTER_EXPECTED \"1057: address register expected but '$e_token$' found\"\n"
257 ".errtext ADDRESS_REGISTER_OR_INTEGER_EXPECTED \"1058: address register or integer literal expected but '$e_token$' found\"\n"
258 ".regbyte vertex_blend 0x00\n"
259 ".regbyte matrix_palette 0x00\n"
260 ".regbyte point_parameters 0x01\n"
261 ".regbyte secondary_color 0x01\n"
262 ".regbyte fog_coord 0x01\n"
263 ".regbyte texture_rectangle 0x01\n"
264 ".regbyte fragment_program_shadow 0x00\n"
265 ".regbyte ARB_precision_hint_fastest 0x00\n"
266 ".regbyte ARB_precision_hint_nicest 0x00\n"
267 ".regbyte ARB_fog_exp 0x00\n"
268 ".regbyte ARB_fog_exp2 0x00\n"
269 ".regbyte ARB_fog_linear 0x00\n"
270 ".regbyte ARB_position_invariant 0x00\n"
271 ".regbyte ARB_fragment_program_shadow 0x00\n"
272 ".regbyte program_target 0x00\n"
274 " programs .error UNKNOWN_PROGRAM_SIGNATURE .emit REVISION;\n"
276 " .if (program_target == 0x10) frag_program_1_0 .emit FRAGMENT_PROGRAM .emit 0x01 .emit 0x00 .or\n"
277 " .if (program_target == 0x20) vert_program_1_0 .emit VERTEX_PROGRAM .emit 0x01 .emit 0x00;\n"
279 " '!' .and '!' .and 'A' .and 'R' .and 'B' .and 'f' .and 'p' .and '1' .and '.' .and '0' .and\n"
280 " optional_space .and fp_optionSequence .and fp_statementSequence .and\n"
281 " \"END\" .error MISSING_END_OR_INVALID_STATEMENT .emit END .and optional_space .and\n"
282 " '\\0' .error CODE_AFTER_END;\n"
284 " '!' .and '!' .and 'A' .and 'R' .and 'B' .and 'v' .and 'p' .and '1' .and '.' .and '0' .and\n"
285 " optional_space .and vp_optionSequence .and vp_statementSequence .and\n"
286 " \"END\" .error MISSING_END_OR_INVALID_STATEMENT .emit END .and optional_space .and\n"
287 " '\\0' .error CODE_AFTER_END;\n"
288 "fp_optionSequence\n"
289 " .loop fp_option;\n"
290 "vp_optionSequence\n"
291 " .loop vp_option;\n"
293 " \"OPTION\" .emit OPTION .and space .error IDENTIFIER_EXPECTED .and\n"
294 " fp_optionString .error INVALID_PROGRAM_OPTION .and semicolon;\n"
296 " \"OPTION\" .emit OPTION .and space .error IDENTIFIER_EXPECTED .and\n"
297 " vp_optionString .error INVALID_PROGRAM_OPTION .and semicolon;\n"
299 " .if (ARB_precision_hint_nicest == 0x00) \"ARB_precision_hint_fastest\"\n"
300 " .emit ARB_PRECISION_HINT_FASTEST .load ARB_precision_hint_fastest 0x01 .or\n"
301 " .if (ARB_precision_hint_fastest == 0x00) \"ARB_precision_hint_nicest\"\n"
302 " .emit ARB_PRECISION_HINT_NICEST .load ARB_precision_hint_nicest 0x01 .or\n"
303 " fp_ARB_fog_exp .emit ARB_FOG_EXP .load ARB_fog_exp 0x01 .or\n"
304 " fp_ARB_fog_exp2 .emit ARB_FOG_EXP2 .load ARB_fog_exp2 0x01 .or\n"
305 " fp_ARB_fog_linear .emit ARB_FOG_LINEAR .load ARB_fog_linear 0x01 .or\n"
306 " .if (fragment_program_shadow != 0x00) \"ARB_fragment_program_shadow\"\n"
307 " .emit ARB_FRAGMENT_PROGRAM_SHADOW .load ARB_fragment_program_shadow 0x01;\n"
309 " \"ARB_position_invariant\" .emit ARB_POSITION_INVARIANT .load ARB_position_invariant 0x01;\n"
311 " .if (ARB_fog_exp2 == 0x00) .true .and .if (ARB_fog_linear == 0x00) \"ARB_fog_exp\";\n"
313 " .if (ARB_fog_exp == 0x00) .true .and .if (ARB_fog_linear == 0x00) \"ARB_fog_exp2\";\n"
314 "fp_ARB_fog_linear\n"
315 " .if (ARB_fog_exp == 0x00) .true .and .if (ARB_fog_exp2 == 0x00) \"ARB_fog_linear\";\n"
316 "fp_statementSequence\n"
317 " .loop fp_statement;\n"
318 "vp_statementSequence\n"
319 " .loop vp_statement;\n"
321 " fp_statement_1 .or fp_statement_2;\n"
323 " vp_statement_1 .or vp_statement_2;\n"
325 " fp_instruction .emit INSTRUCTION .emit $ .and semicolon;\n"
327 " fp_namingStatement .emit DECLARATION .and semicolon;\n"
329 " vp_instruction .emit INSTRUCTION .emit $ .and semicolon;\n"
331 " vp_namingStatement .emit DECLARATION .and semicolon;\n"
333 " ALUInstruction .emit OP_ALU_INST .or\n"
334 " TexInstruction .emit OP_TEX_INST;\n"
336 " ARL_instruction .emit OP_ALU_ARL .or\n"
337 " vp_VECTORop_instruction .emit OP_ALU_VECTOR .or\n"
338 " vp_SCALARop_instruction .emit OP_ALU_SCALAR .or\n"
339 " vp_BINSCop_instruction .emit OP_ALU_BINSC .or\n"
340 " vp_BINop_instruction .emit OP_ALU_BIN .or\n"
341 " vp_TRIop_instruction .emit OP_ALU_TRI .or\n"
342 " vp_SWZ_instruction .emit OP_ALU_SWZ;\n"
344 " fp_VECTORop_instruction .emit OP_ALU_VECTOR .or\n"
345 " fp_SCALARop_instruction .emit OP_ALU_SCALAR .or\n"
346 " fp_BINSCop_instruction .emit OP_ALU_BINSC .or\n"
347 " fp_BINop_instruction .emit OP_ALU_BIN .or\n"
348 " fp_TRIop_instruction .emit OP_ALU_TRI .or\n"
349 " fp_SWZ_instruction .emit OP_ALU_SWZ;\n"
351 " SAMPLE_instruction .emit OP_TEX_SAMPLE .or\n"
352 " KIL_instruction .emit OP_TEX_KIL;\n"
354 " \"ARL\" .emit OP_ARL .and space_dst .and maskedAddrReg .and comma .and vp_scalarSrcReg;\n"
355 "fp_VECTORop_instruction\n"
356 " fp_VECTORop .and space_dst .and fp_maskedDstReg .and comma .and vectorSrcReg;\n"
357 "vp_VECTORop_instruction\n"
358 " vp_VECTORop .and space_dst .and vp_maskedDstReg .and comma .and swizzleSrcReg;\n"
360 " \"ABS\" .emit OP_ABS .or \"ABS_SAT\" .emit OP_ABS_SAT .or\n"
361 " \"FLR\" .emit OP_FLR .or \"FLR_SAT\" .emit OP_FLR_SAT .or\n"
362 " \"FRC\" .emit OP_FRC .or \"FRC_SAT\" .emit OP_FRC_SAT .or\n"
363 " \"LIT\" .emit OP_LIT .or \"LIT_SAT\" .emit OP_LIT_SAT .or\n"
364 " \"MOV\" .emit OP_MOV .or \"MOV_SAT\" .emit OP_MOV_SAT;\n"
366 " \"ABS\" .emit OP_ABS .or\n"
367 " \"FLR\" .emit OP_FLR .or\n"
368 " \"FRC\" .emit OP_FRC .or\n"
369 " \"LIT\" .emit OP_LIT .or\n"
370 " \"MOV\" .emit OP_MOV;\n"
371 "fp_SCALARop_instruction\n"
372 " fp_SCALARop .and space_dst .and fp_maskedDstReg .and comma .and fp_scalarSrcReg;\n"
373 "vp_SCALARop_instruction\n"
374 " vp_SCALARop .and space_dst .and vp_maskedDstReg .and comma .and vp_scalarSrcReg;\n"
376 " \"COS\" .emit OP_COS .or \"COS_SAT\" .emit OP_COS_SAT .or\n"
377 " \"EX2\" .emit OP_EX2 .or \"EX2_SAT\" .emit OP_EX2_SAT .or\n"
378 " \"LG2\" .emit OP_LG2 .or \"LG2_SAT\" .emit OP_LG2_SAT .or\n"
379 " \"RCP\" .emit OP_RCP .or \"RCP_SAT\" .emit OP_RCP_SAT .or\n"
380 " \"RSQ\" .emit OP_RSQ .or \"RSQ_SAT\" .emit OP_RSQ_SAT .or\n"
381 " \"SIN\" .emit OP_SIN .or \"SIN_SAT\" .emit OP_SIN_SAT .or\n"
382 " \"SCS\" .emit OP_SCS .or \"SCS_SAT\" .emit OP_SCS_SAT;\n"
384 " \"EX2\" .emit OP_EX2 .or\n"
385 " \"EXP\" .emit OP_EXP .or\n"
386 " \"LG2\" .emit OP_LG2 .or\n"
387 " \"LOG\" .emit OP_LOG .or\n"
388 " \"RCP\" .emit OP_RCP .or\n"
389 " \"RSQ\" .emit OP_RSQ;\n"
390 "fp_BINSCop_instruction\n"
391 " fp_BINSCop .and space_dst .and fp_maskedDstReg .and comma .and fp_scalarSrcReg .and comma .and\n"
392 " fp_scalarSrcReg;\n"
393 "vp_BINSCop_instruction\n"
394 " vp_BINSCop .and space_dst .and vp_maskedDstReg .and comma .and vp_scalarSrcReg .and comma .and\n"
395 " vp_scalarSrcReg;\n"
397 " \"POW\" .emit OP_POW .or \"POW_SAT\" .emit OP_POW_SAT;\n"
399 " \"POW\" .emit OP_POW;\n"
400 "fp_BINop_instruction\n"
401 " fp_BINop .and space_dst .and fp_maskedDstReg .and comma .and vectorSrcReg .and comma .and\n"
403 "vp_BINop_instruction\n"
404 " vp_BINop .and space_dst .and vp_maskedDstReg .and comma .and swizzleSrcReg .and comma .and\n"
407 " \"ADD\" .emit OP_ADD .or \"ADD_SAT\" .emit OP_ADD_SAT .or\n"
408 " \"DP3\" .emit OP_DP3 .or \"DP3_SAT\" .emit OP_DP3_SAT .or\n"
409 " \"DP4\" .emit OP_DP4 .or \"DP4_SAT\" .emit OP_DP4_SAT .or\n"
410 " \"DPH\" .emit OP_DPH .or \"DPH_SAT\" .emit OP_DPH_SAT .or\n"
411 " \"DST\" .emit OP_DST .or \"DST_SAT\" .emit OP_DST_SAT .or\n"
412 " \"MAX\" .emit OP_MAX .or \"MAX_SAT\" .emit OP_MAX_SAT .or\n"
413 " \"MIN\" .emit OP_MIN .or \"MIN_SAT\" .emit OP_MIN_SAT .or\n"
414 " \"MUL\" .emit OP_MUL .or \"MUL_SAT\" .emit OP_MUL_SAT .or\n"
415 " \"SGE\" .emit OP_SGE .or \"SGE_SAT\" .emit OP_SGE_SAT .or\n"
416 " \"SLT\" .emit OP_SLT .or \"SLT_SAT\" .emit OP_SLT_SAT .or\n"
417 " \"SUB\" .emit OP_SUB .or \"SUB_SAT\" .emit OP_SUB_SAT .or\n"
418 " \"XPD\" .emit OP_XPD .or \"XPD_SAT\" .emit OP_XPD_SAT;\n"
420 " \"ADD\" .emit OP_ADD .or\n"
421 " \"DP3\" .emit OP_DP3 .or\n"
422 " \"DP4\" .emit OP_DP4 .or\n"
423 " \"DPH\" .emit OP_DPH .or\n"
424 " \"DST\" .emit OP_DST .or\n"
425 " \"MAX\" .emit OP_MAX .or\n"
426 " \"MIN\" .emit OP_MIN .or\n"
427 " \"MUL\" .emit OP_MUL .or\n"
428 " \"SGE\" .emit OP_SGE .or\n"
429 " \"SLT\" .emit OP_SLT .or\n"
430 " \"SUB\" .emit OP_SUB .or\n"
431 " \"XPD\" .emit OP_XPD;\n"
432 "fp_TRIop_instruction\n"
433 " fp_TRIop .and space_dst .and fp_maskedDstReg .and comma .and vectorSrcReg .and comma .and\n"
434 " vectorSrcReg .and comma .and vectorSrcReg;\n"
435 "vp_TRIop_instruction\n"
436 " vp_TRIop .and space_dst .and vp_maskedDstReg .and comma .and swizzleSrcReg .and comma .and\n"
437 " swizzleSrcReg .and comma .and swizzleSrcReg;\n"
439 " \"CMP\" .emit OP_CMP .or \"CMP_SAT\" .emit OP_CMP_SAT .or\n"
440 " \"LRP\" .emit OP_LRP .or \"LRP_SAT\" .emit OP_LRP_SAT .or\n"
441 " \"MAD\" .emit OP_MAD .or \"MAD_SAT\" .emit OP_MAD_SAT;\n"
443 " \"MAD\" .emit OP_MAD;\n"
444 "fp_SWZ_instruction\n"
445 " SWZop .and space_dst .and fp_maskedDstReg .and comma .and fp_srcReg .and comma .and\n"
446 " fp_extendedSwizzle .error EXT_SWIZ_COMP_EXPECTED;\n"
447 "vp_SWZ_instruction\n"
448 " \"SWZ\" .emit OP_SWZ .and space_dst .and vp_maskedDstReg .and comma .and vp_srcReg .and comma .and\n"
449 " vp_extendedSwizzle .error EXT_SWIZ_COMP_EXPECTED;\n"
451 " \"SWZ\" .emit OP_SWZ .or \"SWZ_SAT\" .emit OP_SWZ_SAT;\n"
452 "SAMPLE_instruction\n"
453 " SAMPLEop .and space_dst .and fp_maskedDstReg .and comma .and vectorSrcReg .and comma .and\n"
454 " texImageUnit .and comma .and texTarget .error TEX_TARGET_EXPECTED;\n"
456 " \"TEX\" .emit OP_TEX .or \"TEX_SAT\" .emit OP_TEX_SAT .or\n"
457 " \"TXB\" .emit OP_TXB .or \"TXB_SAT\" .emit OP_TXB_SAT .or\n"
458 " \"TXP\" .emit OP_TXP .or \"TXP_SAT\" .emit OP_TXP_SAT;\n"
460 " \"KIL\" .emit OP_KIL .and space_src .and vectorSrcReg;\n"
462 " \"texture\" .error TEXTURE_EXPECTED .and optTexImageUnitNum;\n"
464 " \"1D\" .emit TEXTARGET_1D .or\n"
465 " \"2D\" .emit TEXTARGET_2D .or\n"
466 " \"3D\" .emit TEXTARGET_3D .or\n"
467 " .if (texture_rectangle != 0x00) \"RECT\" .emit TEXTARGET_RECT .or\n"
468 " \"CUBE\" .emit TEXTARGET_CUBE .or\n"
469 " .if (ARB_fragment_program_shadow != 0x00) shadowTarget;\n"
471 " \"SHADOW1D\" .emit TEXTARGET_SHADOW1D .or\n"
472 " \"SHADOW2D\" .emit TEXTARGET_SHADOW2D .or\n"
473 " .if (texture_rectangle != 0x00) \"SHADOWRECT\" .emit TEXTARGET_SHADOWRECT;\n"
474 "optTexImageUnitNum\n"
475 " optTexImageUnitNum_1 .or .true .emit 0x00;\n"
476 "optTexImageUnitNum_1\n"
477 " lbracket_ne .and texImageUnitNum .and rbracket;\n"
481 " optionalSign .and fp_srcReg .and fp_scalarSuffix;\n"
483 " optionalSign .and vp_srcReg .and vp_scalarSuffix;\n"
485 " optionalSign .and vp_srcReg .and swizzleSuffix;\n"
487 " optionalSign .and fp_srcReg .and optionalSuffix;\n"
489 " fp_dstReg .and fp_optionalMask;\n"
491 " vp_dstReg .and vp_optionalMask;\n"
493 " addrReg .error ADDRESS_REGISTER_EXPECTED .and addrWriteMask;\n"
494 "fp_extendedSwizzle\n"
495 " rgbaExtendedSwizzle .or xyzwExtendedSwizzle;\n"
496 "vp_extendedSwizzle\n"
497 " extSwizComp .and comma .and\n"
498 " extSwizComp .error EXT_SWIZ_COMP_EXPECTED .and comma .and\n"
499 " extSwizComp .error EXT_SWIZ_COMP_EXPECTED .and comma .and\n"
500 " extSwizComp .error EXT_SWIZ_COMP_EXPECTED;\n"
501 "xyzwExtendedSwizzle\n"
502 " xyzwExtSwizComp .and comma .and\n"
503 " xyzwExtSwizComp .error EXT_SWIZ_COMP_EXPECTED .and comma .and\n"
504 " xyzwExtSwizComp .error EXT_SWIZ_COMP_EXPECTED .and comma .and\n"
505 " xyzwExtSwizComp .error EXT_SWIZ_COMP_EXPECTED;\n"
506 "rgbaExtendedSwizzle\n"
507 " rgbaExtendedSwizzle_1 .or rgbaExtendedSwizzle_2 .or rgbaExtendedSwizzle_3 .or\n"
508 " rgbaExtendedSwizzle_4;\n"
509 "rgbaExtendedSwizzle_1\n"
510 " rgbaExtSwizComp_digit .and comma .and rgbaExtSwizComp_digit .and comma .and\n"
511 " rgbaExtSwizComp_digit .and comma .and rgbaExtSwizComp;\n"
512 "rgbaExtendedSwizzle_2\n"
513 " rgbaExtSwizComp_digit .and comma .and rgbaExtSwizComp_digit .and comma .and\n"
514 " rgbaExtSwizComp_alpha .and comma .and rgbaExtSwizComp .error EXT_SWIZ_COMP_EXPECTED;\n"
515 "rgbaExtendedSwizzle_3\n"
516 " rgbaExtSwizComp_digit .and comma .and rgbaExtSwizComp_alpha .and comma .and\n"
517 " rgbaExtSwizComp .error EXT_SWIZ_COMP_EXPECTED .and comma .and\n"
518 " rgbaExtSwizComp .error EXT_SWIZ_COMP_EXPECTED;\n"
519 "rgbaExtendedSwizzle_4\n"
520 " rgbaExtSwizComp_alpha .and comma .and \n"
521 "rgbaExtSwizComp .error EXT_SWIZ_COMP_EXPECTED .and comma .and\n"
522 " rgbaExtSwizComp .error EXT_SWIZ_COMP_EXPECTED .and comma .and\n"
523 " rgbaExtSwizComp .error EXT_SWIZ_COMP_EXPECTED;\n"
525 " optionalSign .and xyzwExtSwizSel;\n"
527 " optionalSign .and rgbaExtSwizSel;\n"
528 "rgbaExtSwizComp_digit\n"
529 " optionalSign .and rgbaExtSwizSel_digit;\n"
530 "rgbaExtSwizComp_alpha\n"
531 " optionalSign .and rgbaExtSwizSel_alpha;\n"
533 " optionalSign .and extSwizSel;\n"
535 " \"0\" .emit COMPONENT_0 .or \"1\" .emit COMPONENT_1 .or xyzwComponent_single;\n"
537 " rgbaExtSwizSel_digit .or rgbaExtSwizSel_alpha;\n"
538 "rgbaExtSwizSel_digit\n"
539 " \"0\" .emit COMPONENT_0 .or \"1\" .emit COMPONENT_1;\n"
540 "rgbaExtSwizSel_alpha\n"
541 " rgbaComponent_single;\n"
543 " \"0\" .emit COMPONENT_0 .or \"1\" .emit COMPONENT_1 .or vp_component_single;\n"
545 " fp_srcReg_1 .error SOURCE_REGISTER_EXPECTED;\n"
547 " vp_srcReg_1 .error SOURCE_REGISTER_EXPECTED;\n"
549 " fragmentAttribReg .emit REGISTER_ATTRIB .or\n"
550 " fp_progParamReg .emit REGISTER_PARAM .or\n"
551 " fp_temporaryReg .emit REGISTER_ESTABLISHED_NAME;\n"
553 " vertexAttribReg .emit REGISTER_ATTRIB .or\n"
554 " vp_progParamReg .emit REGISTER_PARAM .or\n"
555 " vp_temporaryReg .emit REGISTER_ESTABLISHED_NAME;\n"
557 " fp_dstReg_1 .error DESTINATION_REGISTER_EXPECTED;\n"
559 " vp_dstReg_1 .error DESTINATION_REGISTER_EXPECTED;\n"
561 " fragmentResultReg .emit REGISTER_RESULT .or\n"
562 " fp_temporaryReg .emit REGISTER_ESTABLISHED_NAME;\n"
564 " vertexResultReg .emit REGISTER_RESULT .or\n"
565 " vp_temporaryReg .emit REGISTER_ESTABLISHED_NAME;\n"
566 "fragmentAttribReg\n"
567 " fragAttribBinding;\n"
569 " vtxAttribBinding;\n"
571 " fp_establishedName_no_error_on_identifier;\n"
573 " vp_establishedName_no_error_on_identifier;\n"
575 " fp_paramSingleItemUse .or fp_progParamReg_1 .or fp_progParamSingle;\n"
577 " vp_paramSingleItemUse .or vp_progParamReg_1 .or vp_progParamSingle;\n"
578 "fp_progParamReg_1\n"
579 " fp_progParamArray .emit PARAM_ARRAY_ELEMENT .and lbracket_ne .and progParamArrayAbs .and\n"
581 "vp_progParamReg_1\n"
582 " vp_progParamArray .emit PARAM_ARRAY_ELEMENT .and lbracket_ne .and progParamArrayMem .and\n"
584 "fp_progParamSingle\n"
586 "vp_progParamSingle\n"
588 "fp_progParamArray\n"
589 " fp_establishedName_no_error_on_identifier;\n"
590 "vp_progParamArray\n"
591 " vp_establishedName_no_error_on_identifier;\n"
592 "progParamArrayMem\n"
593 " progParamArrayAbs .or progParamArrayRel;\n"
594 "progParamArrayAbs\n"
595 " integer_ne .emit ARRAY_INDEX_ABSOLUTE;\n"
596 "progParamArrayRel\n"
597 " addrReg .error ADDRESS_REGISTER_OR_INTEGER_EXPECTED .emit ARRAY_INDEX_RELATIVE .and\n"
598 " addrComponent .and addrRegRelOffset;\n"
600 " addrRegRelOffset_1 .or addrRegRelOffset_2 .or .true .emit 0x00;\n"
601 "addrRegRelOffset_1\n"
602 " plus_ne .and addrRegPosOffset;\n"
603 "addrRegRelOffset_2\n"
604 " minus_ne .and addrRegNegOffset;\n"
609 "fragmentResultReg\n"
610 " fp_resultBinding;\n"
612 " vp_resultBinding;\n"
614 " vp_establishedName_no_error_on_identifier;\n"
616 " dot .and \"x\" .error INVALID_ADDRESS_COMPONENT .emit COMPONENT_X .emit COMPONENT_X\n"
617 " .emit COMPONENT_X .emit COMPONENT_X;\n"
619 " dot .and \"x\" .error INVALID_ADDRESS_WRITEMASK .emit 0x08;\n"
621 " dot .and fp_component_single .error INVALID_COMPONENT;\n"
623 " dot .and vp_component_single .error INVALID_COMPONENT;\n"
625 " swizzleSuffix_1 .or\n"
626 " .true .emit COMPONENT_X .emit COMPONENT_Y .emit COMPONENT_Z .emit COMPONENT_W;\n"
628 " dot_ne .and swizzleSuffix_2 .error INVALID_SUFFIX;\n"
630 " swizzleSuffix_3 .or swizzleSuffix_4;\n"
632 " vp_component_multi .and vp_component_multi .and vp_component_multi .error INVALID_COMPONENT .and\n"
633 " vp_component_multi .error INVALID_COMPONENT;\n"
635 " \"x\" .emit COMPONENT_X .emit COMPONENT_X .emit COMPONENT_X .emit COMPONENT_X .or\n"
636 " \"y\" .emit COMPONENT_Y .emit COMPONENT_Y .emit COMPONENT_Y .emit COMPONENT_Y .or\n"
637 " \"z\" .emit COMPONENT_Z .emit COMPONENT_Z .emit COMPONENT_Z .emit COMPONENT_Z .or\n"
638 " \"w\" .emit COMPONENT_W .emit COMPONENT_W .emit COMPONENT_W .emit COMPONENT_W;\n"
640 " optionalSuffix_1 .or\n"
641 " .true .emit COMPONENT_X .emit COMPONENT_Y .emit COMPONENT_Z .emit COMPONENT_W;\n"
643 " dot_ne .and optionalSuffix_2 .error INVALID_SUFFIX;\n"
645 " optionalSuffix_3 .or optionalSuffix_4 .or optionalSuffix_5;\n"
647 " xyzwComponent_multi .and xyzwComponent_multi .and\n"
648 " xyzwComponent_multi .error INVALID_COMPONENT .and xyzwComponent_multi .error INVALID_COMPONENT;\n"
650 " rgbaComponent_multi .and rgbaComponent_multi .and\n"
651 " rgbaComponent_multi .error INVALID_COMPONENT .and rgbaComponent_multi .error INVALID_COMPONENT;\n"
653 " \"x\" .emit COMPONENT_X .emit COMPONENT_X .emit COMPONENT_X .emit COMPONENT_X .or\n"
654 " \"y\" .emit COMPONENT_Y .emit COMPONENT_Y .emit COMPONENT_Y .emit COMPONENT_Y .or\n"
655 " \"z\" .emit COMPONENT_Z .emit COMPONENT_Z .emit COMPONENT_Z .emit COMPONENT_Z .or\n"
656 " \"w\" .emit COMPONENT_W .emit COMPONENT_W .emit COMPONENT_W .emit COMPONENT_W .or\n"
657 " \"r\" .emit COMPONENT_X .emit COMPONENT_X .emit COMPONENT_X .emit COMPONENT_X .or\n"
658 " \"g\" .emit COMPONENT_Y .emit COMPONENT_Y .emit COMPONENT_Y .emit COMPONENT_Y .or\n"
659 " \"b\" .emit COMPONENT_Z .emit COMPONENT_Z .emit COMPONENT_Z .emit COMPONENT_Z .or\n"
660 " \"a\" .emit COMPONENT_W .emit COMPONENT_W .emit COMPONENT_W .emit COMPONENT_W;\n"
661 "fp_component_single\n"
662 " xyzwComponent_single .or rgbaComponent_single;\n"
663 "vp_component_multi\n"
664 " 'x' .emit COMPONENT_X .or 'y' .emit COMPONENT_Y .or 'z' .emit COMPONENT_Z .or\n"
665 " 'w' .emit COMPONENT_W;\n"
666 "vp_component_single\n"
667 " \"x\" .emit COMPONENT_X .or \"y\" .emit COMPONENT_Y .or \"z\" .emit COMPONENT_Z .or\n"
668 " \"w\" .emit COMPONENT_W;\n"
669 "xyzwComponent_multi\n"
670 " 'x' .emit COMPONENT_X .or 'y' .emit COMPONENT_Y .or 'z' .emit COMPONENT_Z .or\n"
671 " 'w' .emit COMPONENT_W;\n"
672 "xyzwComponent_single\n"
673 " \"x\" .emit COMPONENT_X .or \"y\" .emit COMPONENT_Y .or \"z\" .emit COMPONENT_Z .or\n"
674 " \"w\" .emit COMPONENT_W;\n"
675 "rgbaComponent_multi\n"
676 " 'r' .emit COMPONENT_X .or 'g' .emit COMPONENT_Y .or 'b' .emit COMPONENT_Z .or\n"
677 " 'a' .emit COMPONENT_W;\n"
678 "rgbaComponent_single\n"
679 " \"r\" .emit COMPONENT_X .or \"g\" .emit COMPONENT_Y .or \"b\" .emit COMPONENT_Z .or\n"
680 " \"a\" .emit COMPONENT_W;\n"
682 " rgbaMask .or xyzwMask .or .true .emit 0x0F;\n"
684 " xyzwMask .or .true .emit 0x0F;\n"
686 " dot_ne .and xyzwMask_1 .error INVALID_WRITEMASK;\n"
688 " \"xyzw\" .emit 0x0F .or \"xyz\" .emit 0x0E .or \"xyw\" .emit 0x0D .or \"xy\" .emit 0x0C .or\n"
689 " \"xzw\" .emit 0x0B .or \"xz\" .emit 0x0A .or \"xw\" .emit 0x09 .or \"x\" .emit 0x08 .or\n"
690 " \"yzw\" .emit 0x07 .or \"yz\" .emit 0x06 .or \"yw\" .emit 0x05 .or \"y\" .emit 0x04 .or\n"
691 " \"zw\" .emit 0x03 .or \"z\" .emit 0x02 .or \"w\" .emit 0x01;\n"
693 " dot_ne .and rgbaMask_1;\n"
695 " \"rgba\" .emit 0x0F .or \"rgb\" .emit 0x0E .or \"rga\" .emit 0x0D .or \"rg\" .emit 0x0C .or\n"
696 " \"rba\" .emit 0x0B .or \"rb\" .emit 0x0A .or \"ra\" .emit 0x09 .or \"r\" .emit 0x08 .or\n"
697 " \"gba\" .emit 0x07 .or \"gb\" .emit 0x06 .or \"ga\" .emit 0x05 .or \"g\" .emit 0x04 .or\n"
698 " \"ba\" .emit 0x03 .or \"b\" .emit 0x02 .or \"a\" .emit 0x01;\n"
699 "fp_namingStatement\n"
700 " fp_ATTRIB_statement .emit ATTRIB .or\n"
701 " fp_PARAM_statement .emit PARAM .or\n"
702 " fp_TEMP_statement .emit TEMP .or\n"
703 " fp_OUTPUT_statement .emit OUTPUT .or\n"
704 " fp_ALIAS_statement .emit ALIAS;\n"
705 "vp_namingStatement\n"
706 " vp_ATTRIB_statement .emit ATTRIB .or\n"
707 " vp_PARAM_statement .emit PARAM .or\n"
708 " vp_TEMP_statement .emit TEMP .or\n"
709 " ADDRESS_statement .emit ADDRESS .or\n"
710 " vp_OUTPUT_statement .emit OUTPUT .or\n"
711 " vp_ALIAS_statement .emit ALIAS;\n"
712 "fp_ATTRIB_statement\n"
713 " \"ATTRIB\" .and space .and fp_establishName .and equal .and\n"
714 " fragAttribBinding .error FRAGMENT_EXPECTED;\n"
715 "vp_ATTRIB_statement\n"
716 " \"ATTRIB\" .and space .and vp_establishName .and equal .and\n"
717 " vtxAttribBinding .error VERTEX_EXPECTED;\n"
718 "fragAttribBinding\n"
719 " \"fragment\" .and dot .and fragAttribItem .error INVALID_FRAGMENT_PROPERTY;\n"
721 " \"vertex\" .and dot .and vtxAttribItem .error INVALID_VERTEX_PROPERTY;\n"
723 " fragAttribItem_1 .emit FRAGMENT_ATTRIB_COLOR .or\n"
724 " fragAttribItem_2 .emit FRAGMENT_ATTRIB_TEXCOORD .or\n"
725 " .if (fog_coord != 0x00) \"fogcoord\" .emit FRAGMENT_ATTRIB_FOGCOORD .or\n"
726 " \"position\" .emit FRAGMENT_ATTRIB_POSITION;\n"
728 " \"color\" .and optColorType;\n"
730 " \"texcoord\" .and optTexCoordNum;\n"
732 " \"position\" .emit VERTEX_ATTRIB_POSITION .or\n"
733 " .if (vertex_blend != 0x00) vtxAttribItem_1 .emit VERTEX_ATTRIB_WEIGHT .or\n"
734 " \"normal\" .emit VERTEX_ATTRIB_NORMAL .or\n"
735 " vtxAttribItem_2 .emit VERTEX_ATTRIB_COLOR .or\n"
736 " \"fogcoord\" .emit VERTEX_ATTRIB_FOGCOORD .or\n"
737 " vtxAttribItem_3 .emit VERTEX_ATTRIB_TEXCOORD .or\n"
738 " .if (matrix_palette != 0x00) vtxAttribItem_4 .emit VERTEX_ATTRIB_MATRIXINDEX .or\n"
739 " vtxAttribItem_5 .emit VERTEX_ATTRIB_GENERIC;\n"
741 " \"weight\" .and vtxOptWeightNum;\n"
743 " \"color\" .and optColorType;\n"
745 " \"texcoord\" .and optTexCoordNum;\n"
747 " \"matrixindex\" .and lbracket .and vtxWeightNum .and rbracket;\n"
749 " \"attrib\" .and lbracket .and vtxAttribNum .and rbracket;\n"
753 " vtxOptWeightNum_1 .or .true .emit 0x00;\n"
754 "vtxOptWeightNum_1\n"
755 " lbracket_ne .and vtxWeightNum .and rbracket;\n"
758 "fp_PARAM_statement\n"
759 " fp_PARAM_multipleStmt .or fp_PARAM_singleStmt;\n"
760 "vp_PARAM_statement\n"
761 " vp_PARAM_multipleStmt .or vp_PARAM_singleStmt;\n"
762 "fp_PARAM_singleStmt\n"
763 " \"PARAM\" .and space .and fp_establishName .and .true .emit 0x00 .and fp_paramSingleInit .and\n"
764 " .true .emit PARAM_NULL;\n"
765 "vp_PARAM_singleStmt\n"
766 " \"PARAM\" .and space .and vp_establishName .and .true .emit 0x00 .and vp_paramSingleInit .and\n"
767 " .true .emit PARAM_NULL;\n"
768 "fp_PARAM_multipleStmt\n"
769 " \"PARAM\" .and space .and fp_establishName .and lbracket_ne .and optArraySize .and rbracket .and\n"
770 " fp_paramMultipleInit .and .true .emit PARAM_NULL;\n"
771 "vp_PARAM_multipleStmt\n"
772 " \"PARAM\" .and space .and vp_establishName .and lbracket_ne .and optArraySize .and rbracket .and\n"
773 " vp_paramMultipleInit .and .true .emit PARAM_NULL;\n"
775 " optional_integer;\n"
776 "fp_paramSingleInit\n"
777 " equal .and fp_paramSingleItemDecl;\n"
778 "vp_paramSingleInit\n"
779 " equal .and vp_paramSingleItemDecl;\n"
780 "fp_paramMultipleInit\n"
781 " equal .and lbrace .and fp_paramMultInitList .and rbrace;\n"
782 "vp_paramMultipleInit\n"
783 " equal .and lbrace .and vp_paramMultInitList .and rbrace;\n"
784 "fp_paramMultInitList\n"
785 " fp_paramMultInitList_1 .or fp_paramMultipleItem;\n"
786 "vp_paramMultInitList\n"
787 " vp_paramMultInitList_1 .or vp_paramMultipleItem;\n"
788 "fp_paramMultInitList_1\n"
789 " fp_paramMultipleItem .and comma_ne .and fp_paramMultInitList;\n"
790 "vp_paramMultInitList_1\n"
791 " vp_paramMultipleItem .and comma_ne .and vp_paramMultInitList;\n"
792 "fp_paramSingleItemDecl\n"
793 " fp_stateSingleItem .emit PARAM_STATE_ELEMENT .or\n"
794 " programSingleItem .emit PARAM_PROGRAM_ELEMENT .or\n"
795 " paramConstDecl .emit PARAM_CONSTANT;\n"
796 "vp_paramSingleItemDecl\n"
797 " vp_stateSingleItem .emit PARAM_STATE_ELEMENT .or\n"
798 " programSingleItem .emit PARAM_PROGRAM_ELEMENT .or\n"
799 " paramConstDecl .emit PARAM_CONSTANT;\n"
800 "fp_paramSingleItemUse\n"
801 " fp_stateSingleItem .emit PARAM_STATE_ELEMENT .or\n"
802 " programSingleItem .emit PARAM_PROGRAM_ELEMENT .or\n"
803 " paramConstUse .emit PARAM_CONSTANT;\n"
804 "vp_paramSingleItemUse\n"
805 " vp_stateSingleItem .emit PARAM_STATE_ELEMENT .or\n"
806 " programSingleItem .emit PARAM_PROGRAM_ELEMENT .or\n"
807 " paramConstUse .emit PARAM_CONSTANT;\n"
808 "fp_paramMultipleItem\n"
809 " fp_stateMultipleItem .emit PARAM_STATE_ELEMENT .or\n"
810 " programMultipleItem .emit PARAM_PROGRAM_ELEMENT .or\n"
811 " paramConstDecl .emit PARAM_CONSTANT;\n"
812 "vp_paramMultipleItem\n"
813 " vp_stateMultipleItem .emit PARAM_STATE_ELEMENT .or\n"
814 " programMultipleItem .emit PARAM_PROGRAM_ELEMENT .or\n"
815 " paramConstDecl .emit PARAM_CONSTANT;\n"
816 "fp_stateMultipleItem\n"
817 " stateMultipleItem_1 .or fp_stateSingleItem;\n"
818 "vp_stateMultipleItem\n"
819 " stateMultipleItem_1 .or vp_stateSingleItem;\n"
820 "stateMultipleItem_1\n"
821 " \"state\" .and dot .and stateMatrixRows .emit STATE_MATRIX_ROWS;\n"
822 "fp_stateSingleItem\n"
823 " \"state\" .and dot .and fp_stateSingleItem_1 .error INVALID_STATE_PROPERTY;\n"
824 "vp_stateSingleItem\n"
825 " \"state\" .and dot .and vp_stateSingleItem_1 .error INVALID_STATE_PROPERTY;\n"
826 "fp_stateSingleItem_1\n"
827 " stateSingleItem_1 .or stateSingleItem_2 .or stateSingleItem_3 .or stateSingleItem_4 .or\n"
828 " stateSingleItem_5 .or stateSingleItem_7 .or stateSingleItem_8 .or stateSingleItem_11;\n"
829 "vp_stateSingleItem_1\n"
830 " stateSingleItem_1 .or stateSingleItem_2 .or stateSingleItem_3 .or stateSingleItem_4 .or\n"
831 " stateSingleItem_6 .or stateSingleItem_7 .or stateSingleItem_9 .or stateSingleItem_10 .or\n"
832 " stateSingleItem_11;\n"
833 "stateSingleItem_1\n"
834 " stateMaterialItem .emit STATE_MATERIAL;\n"
835 "stateSingleItem_2\n"
836 " stateLightItem .emit STATE_LIGHT;\n"
837 "stateSingleItem_3\n"
838 " stateLightModelItem .emit STATE_LIGHT_MODEL;\n"
839 "stateSingleItem_4\n"
840 " stateLightProdItem .emit STATE_LIGHT_PROD;\n"
841 "stateSingleItem_5\n"
842 " stateTexEnvItem .emit STATE_TEX_ENV;\n"
843 "stateSingleItem_6\n"
844 " stateTexGenItem .emit STATE_TEX_GEN;\n"
845 "stateSingleItem_7\n"
846 " stateFogItem .emit STATE_FOG;\n"
847 "stateSingleItem_8\n"
848 " stateDepthItem .emit STATE_DEPTH;\n"
849 "stateSingleItem_9\n"
850 " stateClipPlaneItem .emit STATE_CLIP_PLANE;\n"
851 "stateSingleItem_10\n"
852 " statePointItem .emit STATE_POINT;\n"
853 "stateSingleItem_11\n"
854 " stateMatrixRow .emit STATE_MATRIX_ROWS;\n"
855 "stateMaterialItem\n"
856 " \"material\" .and optFaceType .and dot .and stateMatProperty .error INVALID_MATERIAL_PROPERTY;\n"
858 " \"ambient\" .emit MATERIAL_AMBIENT .or\n"
859 " \"diffuse\" .emit MATERIAL_DIFFUSE .or\n"
860 " \"specular\" .emit MATERIAL_SPECULAR .or\n"
861 " \"emission\" .emit MATERIAL_EMISSION .or\n"
862 " \"shininess\" .emit MATERIAL_SHININESS;\n"
864 " \"light\" .and lbracket .and stateLightNumber .and rbracket .and dot .and\n"
865 " stateLightProperty .error INVALID_LIGHT_PROPERTY;\n"
866 "stateLightProperty\n"
867 " \"ambient\" .emit LIGHT_AMBIENT .or\n"
868 " \"diffuse\" .emit LIGHT_DIFFUSE .or\n"
869 " \"specular\" .emit LIGHT_SPECULAR .or\n"
870 " \"position\" .emit LIGHT_POSITION .or\n"
871 " \"attenuation\" .emit LIGHT_ATTENUATION .or\n"
872 " stateLightProperty_1 .emit LIGHT_SPOT_DIRECTION .or\n"
873 " \"half\" .emit LIGHT_HALF;\n"
874 "stateLightProperty_1\n"
875 " \"spot\" .and dot .and stateSpotProperty .error INVALID_SPOT_PROPERTY;\n"
876 "stateSpotProperty\n"
878 "stateLightModelItem\n"
879 " \"lightmodel\" .and stateLModProperty .error INVALID_LIGHTMODEL_PROPERTY;\n"
880 "stateLModProperty\n"
881 " stateLModProperty_1 .or stateLModProperty_2;\n"
882 "stateLModProperty_1\n"
883 " dot .and \"ambient\" .emit LIGHT_MODEL_AMBIENT;\n"
884 "stateLModProperty_2\n"
885 " stateLModProperty_3 .emit LIGHT_MODEL_SCENECOLOR;\n"
886 "stateLModProperty_3\n"
887 " optFaceType .and dot .and \"scenecolor\";\n"
888 "stateLightProdItem\n"
889 " \"lightprod\" .and lbracket .and stateLightNumber .and rbracket .and optFaceType .and dot .and\n"
890 " stateLProdProperty .error INVALID_LIGHTPROD_PROPERTY;\n"
891 "stateLProdProperty\n"
892 " \"ambient\" .emit LIGHT_PROD_AMBIENT .or\n"
893 " \"diffuse\" .emit LIGHT_PROD_DIFFUSE .or\n"
894 " \"specular\" .emit LIGHT_PROD_SPECULAR;\n"
898 " \"texenv\" .and optLegacyTexUnitNum .and dot .and\n"
899 " stateTexEnvProperty .error INVALID_TEXENV_PROPERTY;\n"
900 "stateTexEnvProperty\n"
901 " \"color\" .emit TEX_ENV_COLOR;\n"
902 "optLegacyTexUnitNum\n"
903 " lbracket_ne .and legacyTexUnitNum .and rbracket;\n"
907 " \"texgen\" .and optTexCoordNum .and dot .and stateTexGenType .error INVALID_TEXGEN_PROPERTY .and\n"
908 " dot .and stateTexGenCoord .error INVALID_TEXGEN_COORD;\n"
910 " \"eye\" .emit TEX_GEN_EYE .or\n"
911 " \"object\" .emit TEX_GEN_OBJECT;\n"
913 " \"s\" .emit COMPONENT_X .or\n"
914 " \"t\" .emit COMPONENT_Y .or\n"
915 " \"r\" .emit COMPONENT_Z .or\n"
916 " \"q\" .emit COMPONENT_W;\n"
918 " \"fog\" .and dot .and stateFogProperty .error INVALID_FOG_PROPERTY;\n"
920 " \"color\" .emit FOG_COLOR .or\n"
921 " \"params\" .emit FOG_PARAMS;\n"
923 " \"depth\" .and dot .and stateDepthProperty .error INVALID_DEPTH_PROPERTY;\n"
924 "stateDepthProperty\n"
925 " \"range\" .emit DEPTH_RANGE;\n"
926 "stateClipPlaneItem\n"
927 " \"clip\" .and lbracket .and stateClipPlaneNum .and rbracket .and dot .and\n"
928 " \"plane\" .error INVALID_CLIPPLANE_PROPERTY;\n"
929 "stateClipPlaneNum\n"
932 " \"point\" .and dot .and statePointProperty .error INVALID_POINT_PROPERTY;\n"
933 "statePointProperty\n"
934 " \"size\" .emit POINT_SIZE .or\n"
935 " .if (point_parameters != 0x00) \"attenuation\" .emit POINT_ATTENUATION;\n"
937 " stateMatrixItem .and dot .and \"row\" .error MATRIX_ROW_SELECTOR_OR_MODIFIER_EXPECTED .and\n"
938 " lbracket .and stateMatrixRowNum .and rbracket .emit 0x0;\n"
940 " stateMatrixItem .and optMatrixRows;\n"
942 " optMatrixRows_1 .or .true .emit 0x0 .emit '3' .emit 0x0 .emit $;\n"
944 " dot_ne .and \"row\" .error MATRIX_ROW_SELECTOR_OR_MODIFIER_EXPECTED .and lbracket .and\n"
945 " stateMatrixRowNum .and dotdot .and stateMatrixRowNum .and rbracket;\n"
947 " \"matrix\" .and dot .and stateMatrixName .error INVALID_MATRIX_NAME .and stateOptMatModifier;\n"
948 "stateOptMatModifier\n"
949 " stateOptMatModifier_1 .or .true .emit MATRIX_MODIFIER_IDENTITY;\n"
950 "stateOptMatModifier_1\n"
951 " dot_ne .and stateMatModifier;\n"
953 " \"inverse\" .emit MATRIX_MODIFIER_INVERSE .or\n"
954 " \"transpose\" .emit MATRIX_MODIFIER_TRANSPOSE .or\n"
955 " \"invtrans\" .emit MATRIX_MODIFIER_INVTRANS;\n"
956 "stateMatrixRowNum\n"
959 " stateMatrixName_1_1 .emit MATRIX_MODELVIEW .or\n"
960 " \"projection\" .emit MATRIX_PROJECTION .or\n"
961 " \"mvp\" .emit MATRIX_MVP .or\n"
962 " stateMatrixName_1_2 .emit MATRIX_TEXTURE .or\n"
963 " .if (matrix_palette != 0x00) stateMatrixName_1_3 .emit MATRIX_PALETTE .or\n"
964 " stateMatrixName_1_4 .emit MATRIX_PROGRAM;\n"
965 "stateMatrixName_1_1\n"
966 " \"modelview\" .and stateOptModMatNum;\n"
967 "stateMatrixName_1_2\n"
968 " \"texture\" .and optTexCoordNum;\n"
969 "stateMatrixName_1_3\n"
970 " \"palette\" .and lbracket .and statePaletteMatNum .and rbracket;\n"
971 "stateMatrixName_1_4\n"
972 " \"program\" .and lbracket .and stateProgramMatNum .and rbracket;\n"
973 "stateOptModMatNum\n"
974 " .if (vertex_blend != 0x00) stateOptModMatNum_1 .or\n"
975 " .true .emit 0x00;\n"
976 "stateOptModMatNum_1\n"
977 " lbracket_ne .and stateModMatNum .and rbracket;\n"
981 " optTexCoordNum_1 .or .true .emit 0x00;\n"
983 " lbracket_ne .and texCoordNum .and rbracket;\n"
986 "statePaletteMatNum\n"
988 "stateProgramMatNum\n"
990 "programSingleItem\n"
991 " \"program\" .and dot .and programSingleItem_1 .error INVALID_PROGRAM_PROPERTY;\n"
992 "programSingleItem_1\n"
993 " progEnvParam .or progLocalParam;\n"
994 "programMultipleItem\n"
995 " \"program\" .and dot .and programMultipleItem_1 .error INVALID_PROGRAM_PROPERTY;\n"
996 "programMultipleItem_1\n"
997 " progEnvParams .or progLocalParams;\n"
999 " \"env\" .emit PROGRAM_PARAM_ENV .and lbracket .and progEnvParamNums .and rbracket;\n"
1000 "progEnvParamNums\n"
1001 " progEnvParamNums_1 .or progEnvParamNums_2;\n"
1002 "progEnvParamNums_1\n"
1003 " progEnvParamNum .and dotdot_ne .and progEnvParamNum;\n"
1004 "progEnvParamNums_2\n"
1005 " progEnvParamNum .and .true .emit 0x00;\n"
1007 " \"env\" .emit PROGRAM_PARAM_ENV .and lbracket .and progEnvParamNum .and rbracket .emit 0x00;\n"
1009 " \"local\" .emit PROGRAM_PARAM_LOCAL .and lbracket .and progLocalParamNums .and rbracket;\n"
1010 "progLocalParamNums\n"
1011 " progLocalParamNums_1 .or progLocalParamNums_2;\n"
1012 "progLocalParamNums_1\n"
1013 " progLocalParamNum .and dotdot_ne .and progLocalParamNum;\n"
1014 "progLocalParamNums_2\n"
1015 " progLocalParamNum .and .true .emit 0x00;\n"
1017 " \"local\" .emit PROGRAM_PARAM_LOCAL .and lbracket .and progLocalParamNum .and rbracket .emit 0x00;\n"
1020 "progLocalParamNum\n"
1023 " paramConstScalarDecl .emit CONSTANT_SCALAR .or paramConstVector .emit CONSTANT_VECTOR;\n"
1025 " paramConstScalarUse .emit CONSTANT_SCALAR .or paramConstVector .emit CONSTANT_VECTOR;\n"
1026 "paramConstScalarDecl\n"
1027 " signedFloatConstant;\n"
1028 "paramConstScalarUse\n"
1030 "paramConstVector\n"
1031 " paramConstVector_4 .emit 0x04 .or paramConstVector_3 .emit 0x03 .or\n"
1032 " paramConstVector_2 .emit 0x02 .or paramConstVector_1 .emit 0x01;\n"
1033 "paramConstVector_1\n"
1034 " lbrace_ne .and signedFloatConstant .and rbrace;\n"
1035 "paramConstVector_2\n"
1036 " lbrace_ne .and signedFloatConstant .and comma_ne .and signedFloatConstant .and rbrace;\n"
1037 "paramConstVector_3\n"
1038 " lbrace_ne .and signedFloatConstant .and comma_ne .and signedFloatConstant .and comma_ne .and\n"
1039 " signedFloatConstant .and rbrace;\n"
1040 "paramConstVector_4\n"
1041 " lbrace_ne .and signedFloatConstant .and comma_ne .and signedFloatConstant .and comma_ne .and\n"
1042 " signedFloatConstant .and comma_ne .and signedFloatConstant .and rbrace;\n"
1043 "signedFloatConstant\n"
1044 " optionalSign .and floatConstant;\n"
1048 " optional_sign_ne;\n"
1049 "fp_TEMP_statement\n"
1050 " \"TEMP\" .and space .and fp_varNameList .and .true .emit 0x00;\n"
1051 "vp_TEMP_statement\n"
1052 " \"TEMP\" .and space .and vp_varNameList .and .true .emit 0x00;\n"
1053 "ADDRESS_statement\n"
1054 " \"ADDRESS\" .and space .and vp_varNameList .and .true .emit 0x00;\n"
1056 " fp_varNameList_1 .or fp_establishName;\n"
1058 " vp_varNameList_1 .or vp_establishName;\n"
1059 "fp_varNameList_1\n"
1060 " fp_establishName .and comma_ne .and fp_varNameList;\n"
1061 "vp_varNameList_1\n"
1062 " vp_establishName .and comma_ne .and vp_varNameList;\n"
1063 "fp_OUTPUT_statement\n"
1064 " \"OUTPUT\" .and space .and fp_establishName .and equal .and\n"
1065 " fp_resultBinding .error RESULT_EXPECTED;\n"
1066 "vp_OUTPUT_statement\n"
1067 " \"OUTPUT\" .and space .and vp_establishName .and equal .and\n"
1068 " vp_resultBinding .error RESULT_EXPECTED;\n"
1069 "fp_resultBinding\n"
1070 " \"result\" .and dot .and fp_resultBinding_1 .error INVALID_RESULT_PROPERTY;\n"
1071 "vp_resultBinding\n"
1072 " \"result\" .and dot .and vp_resultBinding_1 .error INVALID_RESULT_PROPERTY;\n"
1073 "fp_resultBinding_1\n"
1074 " \"color\" .emit FRAGMENT_RESULT_COLOR .or\n"
1075 " \"depth\" .emit FRAGMENT_RESULT_DEPTH;\n"
1076 "vp_resultBinding_1\n"
1077 " .if (ARB_position_invariant == 0x00) \"position\" .emit VERTEX_RESULT_POSITION .or\n"
1078 " resultColBinding .emit VERTEX_RESULT_COLOR .or\n"
1079 " \"fogcoord\" .emit VERTEX_RESULT_FOGCOORD .or\n"
1080 " \"pointsize\" .emit VERTEX_RESULT_POINTSIZE .or\n"
1081 " vp_resultBinding_2 .emit VERTEX_RESULT_TEXCOORD;\n"
1082 "vp_resultBinding_2\n"
1083 " \"texcoord\" .and optTexCoordNum;\n"
1084 "resultColBinding\n"
1085 " \"color\" .and optFaceType .and optColorType;\n"
1087 " FaceType .or .true .emit FACE_FRONT;\n"
1089 " dot_ne .and FaceProperty;\n"
1091 " \"front\" .emit FACE_FRONT .or \"back\" .emit FACE_BACK;\n"
1093 " ColorType .or .true .emit COLOR_PRIMARY;\n"
1095 " dot_ne .and ColorProperty;\n"
1097 " \"primary\" .emit COLOR_PRIMARY .or\n"
1098 " .if (secondary_color != 0x00) \"secondary\" .emit COLOR_SECONDARY;\n"
1099 "fp_ALIAS_statement\n"
1100 " \"ALIAS\" .and fp_ALIAS_statement_1 .error IDENTIFIER_EXPECTED .and equal .and fp_establishedName;\n"
1101 "vp_ALIAS_statement\n"
1102 " \"ALIAS\" .and vp_ALIAS_statement_1 .error IDENTIFIER_EXPECTED .and equal .and vp_establishedName;\n"
1103 "fp_ALIAS_statement_1\n"
1104 " space .and fp_establishName;\n"
1105 "vp_ALIAS_statement_1\n"
1106 " space .and vp_establishName;\n"
1107 "fp_establishName\n"
1109 "vp_establishName\n"
1111 "fp_establishedName\n"
1113 "vp_establishedName\n"
1115 "fp_establishedName_no_error_on_identifier\n"
1116 " fp_identifier_ne;\n"
1117 "vp_establishedName_no_error_on_identifier\n"
1118 " vp_identifier_ne;\n"
1120 " fp_identifier_ne .error IDENTIFIER_EXPECTED;\n"
1122 " vp_identifier_ne .error IDENTIFIER_EXPECTED;\n"
1123 "fp_identifier_ne\n"
1124 " fp_not_reserved_identifier .and identifier_ne;\n"
1125 "vp_identifier_ne\n"
1126 " vp_not_reserved_identifier .and identifier_ne;\n"
1127 "fp_not_reserved_identifier\n"
1128 " fp_not_reserved_identifier_1 .or .true;\n"
1129 "fp_not_reserved_identifier_1\n"
1130 " fp_reserved_identifier .and .false .error RESERVED_KEYWORD;\n"
1131 "vp_not_reserved_identifier\n"
1132 " vp_not_reserved_identifier_1 .or .true;\n"
1133 "vp_not_reserved_identifier_1\n"
1134 " vp_reserved_identifier .and .false .error RESERVED_KEYWORD;\n"
1135 "fp_reserved_identifier\n"
1136 " \"ABS\" .or \"ABS_SAT\" .or \"ADD\" .or \"ADD_SAT\" .or \"ALIAS\" .or \"ATTRIB\" .or \"CMP\" .or \"CMP_SAT\" .or\n"
1137 " \"COS\" .or \"COS_SAT\" .or \"DP3\" .or \"DP3_SAT\" .or \"DP4\" .or \"DP4_SAT\" .or \"DPH\" .or \"DPH_SAT\" .or\n"
1138 " \"DST\" .or \"DST_SAT\" .or \"END\" .or \"EX2\" .or \"EX2_SAT\" .or \"FLR\" .or \"FLR_SAT\" .or \"FRC\" .or\n"
1139 " \"FRC_SAT\" .or \"KIL\" .or \"LG2\" .or \"LG2_SAT\" .or \"LIT\" .or \"LIT_SAT\" .or \"LRP\" .or \"LRP_SAT\" .or\n"
1140 " \"MAD\" .or \"MAD_SAT\" .or \"MAX\" .or \"MAX_SAT\" .or \"MIN\" .or \"MIN_SAT\" .or \"MOV\" .or \"MOV_SAT\" .or\n"
1141 " \"MUL\" .or \"MUL_SAT\" .or \"OPTION\" .or \"OUTPUT\" .or \"PARAM\" .or \"POW\" .or \"POW_SAT\" .or \"RCP\" .or\n"
1142 " \"RCP_SAT\" .or \"RSQ\" .or \"RSQ_SAT\" .or \"SIN\" .or \"SIN_SAT\" .or \"SCS\" .or \"SCS_SAT\" .or \"SGE\" .or\n"
1143 " \"SGE_SAT\" .or \"SLT\" .or \"SLT_SAT\" .or \"SUB\" .or \"SUB_SAT\" .or \"SWZ\" .or \"SWZ_SAT\" .or \"TEMP\" .or\n"
1144 " \"TEX\" .or \"TEX_SAT\" .or \"TXB\" .or \"TXB_SAT\" .or \"TXP\" .or \"TXP_SAT\" .or \"XPD\" .or \"XPD_SAT\" .or\n"
1145 " \"fragment\" .or \"program\" .or \"result\" .or \"state\" .or \"texture\";\n"
1146 "vp_reserved_identifier\n"
1147 " \"ABS\" .or \"ADD\" .or \"ADDRESS\" .or \"ALIAS\" .or \"ARL\" .or \"ATTRIB\" .or \"DP3\" .or \"DP4\" .or\n"
1148 " \"DPH\" .or \"DST\" .or \"END\" .or \"EX2\" .or \"EXP\" .or \"FLR\" .or \"FRC\" .or \"LG2\" .or \"LIT\" .or\n"
1149 " \"LOG\" .or \"MAD\" .or \"MAX\" .or \"MIN\" .or \"MOV\" .or \"MUL\" .or \"OPTION\" .or \"OUTPUT\" .or\n"
1150 " \"PARAM\" .or \"POW\" .or \"RCP\" .or \"RSQ\" .or \"SGE\" .or \"SLT\" .or \"SUB\" .or \"SWZ\" .or \"TEMP\" .or\n"
1151 " \"XPD\" .or \"program\" .or \"result\" .or \"state\" .or \"vertex\";\n"
1153 " integer_ne .error INTEGER_EXPECTED;\n"
1159 " no_digit_1 .or .true;\n"
1161 " digit10 .and .false .error INTEGER_OUT_OF_RANGE;\n"
1163 " all_zeroes_1 .or no_digit_1;\n"
1165 " '0' .and .loop zero .and no_digit;\n"
1167 " integer_0_3_1 .error INTEGER_EXPECTED .and .true .emit 0x00 .emit $;\n"
1169 " integer_0_3_2 .or all_zeroes .emit '0';\n"
1171 " leading_zeroes .and '1'-'3' .emit * .and no_digit;\n"
1173 " integer_0_63_1 .error INTEGER_EXPECTED .and .true .emit 0x00 .emit $;\n"
1175 " integer_0_63_2 .or integer_0_63_3 .or integer_0_63_4 .or integer_0_63_5 .or\n"
1176 " all_zeroes .emit '0';\n"
1178 " leading_zeroes .and '7'-'9' .emit * .and no_digit;\n"
1180 " leading_zeroes .and '1'-'5' .emit * .and '0'-'9' .emit * .and no_digit;\n"
1182 " leading_zeroes .and '6' .emit * .and '0'-'3' .emit * .and no_digit;\n"
1184 " leading_zeroes .and '1'-'6' .emit * .and no_digit;\n"
1186 " integer_0_64_1 .error INTEGER_EXPECTED .and .true .emit 0x00 .emit $;\n"
1188 " integer_0_64_2 .or integer_0_64_3 .or integer_0_64_4 .or integer_0_64_5 .or\n"
1189 " all_zeroes .emit '0';\n"
1191 " leading_zeroes .and '7'-'9' .emit * .and no_digit;\n"
1193 " leading_zeroes .and '1'-'5' .emit * .and '0'-'9' .emit * .and no_digit;\n"
1195 " leading_zeroes .and '6' .emit * .and '0'-'4' .emit * .and no_digit;\n"
1197 " leading_zeroes .and '1'-'6' .emit * .and no_digit;\n"
1199 " space .or .true;\n"
1201 " space .error OPERATION_NEEDS_DESTINATION_VARIABLE;\n"
1203 " space .error OPERATION_NEEDS_SOURCE_VARIABLE;\n"
1205 " single_space .and .loop single_space;\n"
1207 " white_char .or comment_block;\n"
1209 " ' ' .or '\\t' .or '\\n' .or '\\r';\n"
1211 " '#' .and .loop comment_char .and new_line;\n"
1213 " '\\x0E'-'\\xFF' .or '\\x01'-'\\x09' .or '\\x0B'-'\\x0C';\n"
1215 " '\\n' .or crlf .or '\\0';\n"
1217 " '\\r' .and '\\n';\n"
1219 " optional_space .and ';' .error MISSING_SEMICOLON .and optional_space;\n"
1221 " optional_space .and ',' .error MISSING_COMMA .and optional_space;\n"
1223 " optional_space .and ',' .and optional_space;\n"
1225 " optional_space .and '[' .error MISSING_LBRACKET .and optional_space;\n"
1227 " optional_space .and '[' .and optional_space;\n"
1229 " optional_space .and ']' .error MISSING_RBRACKET .and optional_space;\n"
1231 " optional_space .and '.' .error MISSING_DOT .and optional_space;\n"
1233 " optional_space .and '.' .and optional_space;\n"
1235 " optional_space .and '=' .error MISSING_EQUAL .and optional_space;\n"
1237 " optional_space .and '{' .error MISSING_LBRACE .and optional_space;\n"
1239 " optional_space .and '{' .and optional_space;\n"
1241 " optional_space .and '}' .error MISSING_RBRACE .and optional_space;\n"
1243 " optional_space .and '.' .and '.' .error MISSING_DOTDOT .and optional_space;\n"
1245 " optional_space .and '.' .and '.' .and optional_space;\n"
1247 " float_1 .or float_2 .or float_legacy;\n"
1249 " '.' .emit 0x00 .and integer_ne .error MISSING_FRACTION_OR_EXPONENT .and optional_exponent;\n"
1251 " integer_ne .and float_3;\n"
1253 " float_4 .or float_5;\n"
1255 " '.' .and optional_integer .and optional_exponent;\n"
1257 " exponent .emit 0x00;\n"
1259 " integer_ne .and .true .emit 0x00 .emit 0x00;\n"
1261 " integer_ne_1 .and .true .emit 0x00 .emit $;\n"
1263 " digit10 .emit * .and .loop digit10 .emit *;\n"
1264 "optional_integer\n"
1265 " integer_ne .or .true .emit 0x00;\n"
1266 "optional_exponent\n"
1267 " exponent .or .true .emit 0x00;\n"
1269 " exponent_1 .and optional_sign_ne .and integer_ne .error EXPONENT_VALUE_EXPECTED;\n"
1272 "optional_sign_ne\n"
1273 " minus_ne .or plus_ne .or .true;\n"
1275 " optional_space .and '+' .and optional_space;\n"
1277 " optional_space .and '-' .emit '-' .and optional_space;\n"
1279 " first_idchar .emit * .and .loop follow_idchar .emit * .and .true .emit 0x00 .emit $;\n"
1281 " first_idchar .or digit10;\n"
1283 " 'a'-'z' .or 'A'-'Z' .or '_' .or '$';\n"
1286 ".string __string_filter;\n"
1288 " .loop __identifier_char;\n"
1289 "__identifier_char\n"
1290 " 'a'-'z' .or 'A'-'Z' .or '_' .or '$' .or '0'-'9';\n"
1292 " e_signature_char .and .loop e_signature_char;\n"
1293 "e_signature_char\n"
1294 " '!' .or '.' .or 'A'-'Z' .or 'a'-'z' .or '0'-'9';\n"
1296 " .loop e_statement_not_term;\n"
1297 "e_statement_not_term\n"
1298 " '\\x3C'-'\\xFF' .or '\\x0E'-'\\x3A' .or '\\x01'-'\\x09' .or '\\x0B'-'\\x0C';\n"
1300 " e_identifier_first .and .loop e_identifier_next;\n"
1301 "e_identifier_first\n"
1302 " 'a'-'z' .or 'A'-'Z' .or '_' .or '$';\n"
1303 "e_identifier_next\n"
1304 " e_identifier_first .or '0'-'9';\n"
1306 " e_identifier .or e_token_number .or '[' .or ']' .or '.' .or '{' .or '}' .or '=' .or '+' .or\n"
1307 " '-' .or ',' .or ';';\n"
1309 " e_token_digit .and .loop e_token_digit;\n"
1313 " 'A'-'Z' .or 'a'-'z' .or '0'-'9';\n"