1 /* A Bison parser, made by GNU Bison 2.4.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 2009, 2010 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 3 of the License, or
11 (at your option) any later version.
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, see <http://www.gnu.org/licenses/>. */
21 /* As a special exception, you may create a larger work that contains
22 part or all of the Bison parser skeleton and distribute that work
23 under terms of your choice, so long as that work isn't itself a
24 parser generator using the skeleton or a modified version thereof
25 as a parser skeleton. Alternatively, if you modify or redistribute
26 the parser skeleton itself, you may (at your option) remove this
27 special exception, which will cause the skeleton and the resulting
28 Bison output files to be licensed under the GNU General Public
29 License without this special exception.
31 This special exception was added by the Free Software Foundation in
32 version 2.2 of Bison. */
38 /* Put the tokens into the symbol table, so that GDB and other debuggers
92 SAMPLER1DSHADOW
= 309,
93 SAMPLER2DSHADOW
= 310,
94 SAMPLERCUBESHADOW
= 311,
97 SAMPLER1DARRAYSHADOW
= 314,
98 SAMPLER2DARRAYSHADOW
= 315,
103 ISAMPLER1DARRAY
= 320,
104 ISAMPLER2DARRAY
= 321,
109 USAMPLER1DARRAY
= 326,
110 USAMPLER2DARRAY
= 327,
119 FIELD_SELECTION
= 336,
154 PRAGMA_DEBUG_ON
= 371,
155 PRAGMA_DEBUG_OFF
= 372,
156 PRAGMA_OPTIMIZE_ON
= 373,
157 PRAGMA_OPTIMIZE_OFF
= 374,
194 SAMPLER2DRECTSHADOW
= 411,
234 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
235 typedef union YYSTYPE
238 /* Line 1685 of yacc.c */
239 #line 52 "glsl_parser.ypp"
246 struct ast_type_qualifier q
;
251 ast_type_specifier
*type_specifier
;
252 ast_fully_specified_type
*fully_specified_type
;
253 ast_function
*function
;
254 ast_parameter_declarator
*parameter_declarator
;
255 ast_function_definition
*function_definition
;
256 ast_compound_statement
*compound_statement
;
257 ast_expression
*expression
;
258 ast_declarator_list
*declarator_list
;
259 ast_struct_specifier
*struct_specifier
;
260 ast_declaration
*declaration
;
264 ast_expression
*rest
;
265 } for_rest_statement
;
268 ast_node
*then_statement
;
269 ast_node
*else_statement
;
270 } selection_rest_statement
;
274 /* Line 1685 of yacc.c */
275 #line 276 "glsl_parser.h"
277 # define YYSTYPE_IS_TRIVIAL 1
278 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
279 # define YYSTYPE_IS_DECLARED 1
284 #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
285 typedef struct YYLTYPE
292 # define yyltype YYLTYPE /* obsolescent; will be withdrawn */
293 # define YYLTYPE_IS_DECLARED 1
294 # define YYLTYPE_IS_TRIVIAL 1