parser: Clean up a bunch of silly compiler warnings
[mesa.git] / src / mesa / shader / program_parse.tab.h
1
2 /* A Bison parser, made by GNU Bison 2.4.1. */
3
4 /* Skeleton interface for Bison's Yacc-like parsers in C
5
6 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
7 Free Software Foundation, Inc.
8
9 This program is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program. If not, see <http://www.gnu.org/licenses/>. */
21
22 /* As a special exception, you may create a larger work that contains
23 part or all of the Bison parser skeleton and distribute that work
24 under terms of your choice, so long as that work isn't itself a
25 parser generator using the skeleton or a modified version thereof
26 as a parser skeleton. Alternatively, if you modify or redistribute
27 the parser skeleton itself, you may (at your option) remove this
28 special exception, which will cause the skeleton and the resulting
29 Bison output files to be licensed under the GNU General Public
30 License without this special exception.
31
32 This special exception was added by the Free Software Foundation in
33 version 2.2 of Bison. */
34
35
36 /* Tokens. */
37 #ifndef YYTOKENTYPE
38 # define YYTOKENTYPE
39 /* Put the tokens into the symbol table, so that GDB and other debuggers
40 know about them. */
41 enum yytokentype {
42 ARBvp_10 = 258,
43 ARBfp_10 = 259,
44 ADDRESS = 260,
45 ALIAS = 261,
46 ATTRIB = 262,
47 OPTION = 263,
48 OUTPUT = 264,
49 PARAM = 265,
50 TEMP = 266,
51 END = 267,
52 BIN_OP = 268,
53 BINSC_OP = 269,
54 SAMPLE_OP = 270,
55 SCALAR_OP = 271,
56 TRI_OP = 272,
57 VECTOR_OP = 273,
58 ARL = 274,
59 KIL = 275,
60 SWZ = 276,
61 INTEGER = 277,
62 REAL = 278,
63 AMBIENT = 279,
64 ATTENUATION = 280,
65 BACK = 281,
66 CLIP = 282,
67 COLOR = 283,
68 DEPTH = 284,
69 DIFFUSE = 285,
70 DIRECTION = 286,
71 EMISSION = 287,
72 ENV = 288,
73 EYE = 289,
74 FOG = 290,
75 FOGCOORD = 291,
76 FRAGMENT = 292,
77 FRONT = 293,
78 HALF = 294,
79 INVERSE = 295,
80 INVTRANS = 296,
81 LIGHT = 297,
82 LIGHTMODEL = 298,
83 LIGHTPROD = 299,
84 LOCAL = 300,
85 MATERIAL = 301,
86 MAT_PROGRAM = 302,
87 MATRIX = 303,
88 MATRIXINDEX = 304,
89 MODELVIEW = 305,
90 MVP = 306,
91 NORMAL = 307,
92 OBJECT = 308,
93 PALETTE = 309,
94 PARAMS = 310,
95 PLANE = 311,
96 POINT = 312,
97 POINTSIZE = 313,
98 POSITION = 314,
99 PRIMARY = 315,
100 PROGRAM = 316,
101 PROJECTION = 317,
102 RANGE = 318,
103 RESULT = 319,
104 ROW = 320,
105 SCENECOLOR = 321,
106 SECONDARY = 322,
107 SHININESS = 323,
108 SIZE = 324,
109 SPECULAR = 325,
110 SPOT = 326,
111 STATE = 327,
112 TEXCOORD = 328,
113 TEXENV = 329,
114 TEXGEN = 330,
115 TEXGEN_Q = 331,
116 TEXGEN_R = 332,
117 TEXGEN_S = 333,
118 TEXGEN_T = 334,
119 TEXTURE = 335,
120 TRANSPOSE = 336,
121 TEXTURE_UNIT = 337,
122 TEX_1D = 338,
123 TEX_2D = 339,
124 TEX_3D = 340,
125 TEX_CUBE = 341,
126 TEX_RECT = 342,
127 VERTEX = 343,
128 VTXATTRIB = 344,
129 WEIGHT = 345,
130 IDENTIFIER = 346,
131 MASK4 = 347,
132 MASK3 = 348,
133 MASK2 = 349,
134 MASK1 = 350,
135 SWIZZLE = 351,
136 DOT_DOT = 352,
137 DOT = 353
138 };
139 #endif
140
141
142
143 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
144 typedef union YYSTYPE
145 {
146
147 /* Line 1676 of yacc.c */
148 #line 107 "program_parse.y"
149
150 struct asm_instruction *inst;
151 struct asm_symbol *sym;
152 struct asm_symbol temp_sym;
153 struct asm_swizzle_mask swiz_mask;
154 struct asm_src_register src_reg;
155 struct prog_dst_register dst_reg;
156 struct prog_instruction temp_inst;
157 char *string;
158 unsigned result;
159 unsigned attrib;
160 int integer;
161 float real;
162 unsigned state[5];
163 int negate;
164 struct asm_vector vector;
165 gl_inst_opcode opcode;
166
167
168
169 /* Line 1676 of yacc.c */
170 #line 171 "program_parse.tab.h"
171 } YYSTYPE;
172 # define YYSTYPE_IS_TRIVIAL 1
173 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
174 # define YYSTYPE_IS_DECLARED 1
175 #endif
176
177
178
179 #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
180 typedef struct YYLTYPE
181 {
182 int first_line;
183 int first_column;
184 int last_line;
185 int last_column;
186 } YYLTYPE;
187 # define yyltype YYLTYPE /* obsolescent; will be withdrawn */
188 # define YYLTYPE_IS_DECLARED 1
189 # define YYLTYPE_IS_TRIVIAL 1
190 #endif
191
192
193