ARB prog parser: Add support for GL_ARB_fragment_program_shadow
[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 TEX_SHADOW1D = 343,
128 TEX_SHADOW2D = 344,
129 TEX_SHADOWRECT = 345,
130 VERTEX = 346,
131 VTXATTRIB = 347,
132 WEIGHT = 348,
133 IDENTIFIER = 349,
134 MASK4 = 350,
135 MASK3 = 351,
136 MASK2 = 352,
137 MASK1 = 353,
138 SWIZZLE = 354,
139 DOT_DOT = 355,
140 DOT = 356
141 };
142 #endif
143
144
145
146 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
147 typedef union YYSTYPE
148 {
149
150 /* Line 1676 of yacc.c */
151 #line 107 "program_parse.y"
152
153 struct asm_instruction *inst;
154 struct asm_symbol *sym;
155 struct asm_symbol temp_sym;
156 struct asm_swizzle_mask swiz_mask;
157 struct asm_src_register src_reg;
158 struct prog_dst_register dst_reg;
159 struct prog_instruction temp_inst;
160 char *string;
161 unsigned result;
162 unsigned attrib;
163 int integer;
164 float real;
165 unsigned state[5];
166 int negate;
167 struct asm_vector vector;
168 gl_inst_opcode opcode;
169
170
171
172 /* Line 1676 of yacc.c */
173 #line 174 "program_parse.tab.h"
174 } YYSTYPE;
175 # define YYSTYPE_IS_TRIVIAL 1
176 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
177 # define YYSTYPE_IS_DECLARED 1
178 #endif
179
180
181
182 #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
183 typedef struct YYLTYPE
184 {
185 int first_line;
186 int first_column;
187 int last_line;
188 int last_column;
189 } YYLTYPE;
190 # define yyltype YYLTYPE /* obsolescent; will be withdrawn */
191 # define YYLTYPE_IS_DECLARED 1
192 # define YYLTYPE_IS_TRIVIAL 1
193 #endif
194
195
196