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,
228 IMAGE1DARRAYSHADOW
= 445,
229 IMAGE2DARRAYSHADOW
= 446,
236 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
237 typedef union YYSTYPE
240 /* Line 1685 of yacc.c */
241 #line 52 "glsl_parser.ypp"
247 struct ast_type_qualifier type_qualifier
;
250 ast_type_specifier
*type_specifier
;
251 ast_fully_specified_type
*fully_specified_type
;
252 ast_function
*function
;
253 ast_parameter_declarator
*parameter_declarator
;
254 ast_function_definition
*function_definition
;
255 ast_compound_statement
*compound_statement
;
256 ast_expression
*expression
;
257 ast_declarator_list
*declarator_list
;
258 ast_struct_specifier
*struct_specifier
;
259 ast_declaration
*declaration
;
263 ast_expression
*rest
;
264 } for_rest_statement
;
267 ast_node
*then_statement
;
268 ast_node
*else_statement
;
269 } selection_rest_statement
;
273 /* Line 1685 of yacc.c */
274 #line 275 "glsl_parser.h"
276 # define YYSTYPE_IS_TRIVIAL 1
277 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
278 # define YYSTYPE_IS_DECLARED 1
283 #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
284 typedef struct YYLTYPE
291 # define yyltype YYLTYPE /* obsolescent; will be withdrawn */
292 # define YYLTYPE_IS_DECLARED 1
293 # define YYLTYPE_IS_TRIVIAL 1