1 /* A Bison parser, made by GNU Bison 2.3. */
3 /* Skeleton interface for Bison's Yacc-like parsers in C
5 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
6 Free Software Foundation, Inc.
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 Boston, MA 02110-1301, USA. */
23 /* As a special exception, you may create a larger work that contains
24 part or all of the Bison parser skeleton and distribute that work
25 under terms of your choice, so long as that work isn't itself a
26 parser generator using the skeleton or a modified version thereof
27 as a parser skeleton. Alternatively, if you modify or redistribute
28 the parser skeleton itself, you may (at your option) remove this
29 special exception, which will cause the skeleton and the resulting
30 Bison output files to be licensed under the GNU General Public
31 License without this special exception.
33 This special exception was added by the Free Software Foundation in
34 version 2.2 of Bison. */
39 /* Put the tokens into the symbol table, so that GDB and other debuggers
130 TEX_SHADOWRECT
= 346,
133 TEX_ARRAYSHADOW1D
= 349,
134 TEX_ARRAYSHADOW2D
= 350,
139 USED_IDENTIFIER
= 355,
162 #define SAMPLE_OP 270
163 #define SCALAR_OP 271
165 #define VECTOR_OP 273
173 #define ATTENUATION 281
179 #define DIRECTION 287
191 #define LIGHTMODEL 299
192 #define LIGHTPROD 300
195 #define MAT_PROGRAM 303
197 #define MATRIXINDEX 305
198 #define MODELVIEW 306
205 #define POINT_TOK 313
206 #define POINTSIZE 314
210 #define PROJECTION 318
214 #define SCENECOLOR 322
215 #define SECONDARY 323
216 #define SHININESS 324
229 #define TRANSPOSE 337
230 #define TEXTURE_UNIT 338
236 #define TEX_SHADOW1D 344
237 #define TEX_SHADOW2D 345
238 #define TEX_SHADOWRECT 346
239 #define TEX_ARRAY1D 347
240 #define TEX_ARRAY2D 348
241 #define TEX_ARRAYSHADOW1D 349
242 #define TEX_ARRAYSHADOW2D 350
244 #define VTXATTRIB 352
246 #define IDENTIFIER 354
247 #define USED_IDENTIFIER 355
259 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
260 typedef union YYSTYPE
261 #line 116 "program_parse.y"
263 struct asm_instruction
*inst
;
264 struct asm_symbol
*sym
;
265 struct asm_symbol temp_sym
;
266 struct asm_swizzle_mask swiz_mask
;
267 struct asm_src_register src_reg
;
268 struct prog_dst_register dst_reg
;
269 struct prog_instruction temp_inst
;
275 gl_state_index state
[STATE_LENGTH
];
277 struct asm_vector vector
;
278 gl_inst_opcode opcode
;
282 unsigned rgba_valid
:1;
283 unsigned xyzw_valid
:1;
287 /* Line 1489 of yacc.c. */
288 #line 289 "program_parse.tab.h"
290 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
291 # define YYSTYPE_IS_DECLARED 1
292 # define YYSTYPE_IS_TRIVIAL 1
297 #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
298 typedef struct YYLTYPE
305 # define yyltype YYLTYPE /* obsolescent; will be withdrawn */
306 # define YYLTYPE_IS_DECLARED 1
307 # define YYLTYPE_IS_TRIVIAL 1