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,
115 TYPE_IDENTIFIER
= 332,
116 NEW_IDENTIFIER
= 333,
121 FIELD_SELECTION
= 338,
156 PRAGMA_DEBUG_ON
= 373,
157 PRAGMA_DEBUG_OFF
= 374,
158 PRAGMA_OPTIMIZE_ON
= 375,
159 PRAGMA_OPTIMIZE_OFF
= 376,
160 PRAGMA_INVARIANT_ALL
= 377,
197 SAMPLER2DRECTSHADOW
= 414,
231 IMAGE1DARRAYSHADOW
= 448,
232 IMAGE2DARRAYSHADOW
= 449,
239 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
240 typedef union YYSTYPE
243 /* Line 1685 of yacc.c */
244 #line 52 "glsl_parser.yy"
250 struct ast_type_qualifier type_qualifier
;
253 ast_type_specifier
*type_specifier
;
254 ast_fully_specified_type
*fully_specified_type
;
255 ast_function
*function
;
256 ast_parameter_declarator
*parameter_declarator
;
257 ast_function_definition
*function_definition
;
258 ast_compound_statement
*compound_statement
;
259 ast_expression
*expression
;
260 ast_declarator_list
*declarator_list
;
261 ast_struct_specifier
*struct_specifier
;
262 ast_declaration
*declaration
;
266 ast_expression
*rest
;
267 } for_rest_statement
;
270 ast_node
*then_statement
;
271 ast_node
*else_statement
;
272 } selection_rest_statement
;
276 /* Line 1685 of yacc.c */
277 #line 278 "glsl_parser.h"
279 # define YYSTYPE_IS_TRIVIAL 1
280 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
281 # define YYSTYPE_IS_DECLARED 1
286 #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
287 typedef struct YYLTYPE
294 # define yyltype YYLTYPE /* obsolescent; will be withdrawn */
295 # define YYLTYPE_IS_DECLARED 1
296 # define YYLTYPE_IS_TRIVIAL 1