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,
111 SAMPLEREXTERNALOES
= 328,
116 TYPE_IDENTIFIER
= 333,
117 NEW_IDENTIFIER
= 334,
122 FIELD_SELECTION
= 339,
157 PRAGMA_DEBUG_ON
= 374,
158 PRAGMA_DEBUG_OFF
= 375,
159 PRAGMA_OPTIMIZE_ON
= 376,
160 PRAGMA_OPTIMIZE_OFF
= 377,
161 PRAGMA_INVARIANT_ALL
= 378,
198 SAMPLER2DRECTSHADOW
= 415,
232 IMAGE1DARRAYSHADOW
= 449,
233 IMAGE2DARRAYSHADOW
= 450,
240 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
241 typedef union YYSTYPE
244 /* Line 1685 of yacc.c */
245 #line 58 "glsl_parser.yy"
251 struct ast_type_qualifier type_qualifier
;
254 ast_type_specifier
*type_specifier
;
255 ast_fully_specified_type
*fully_specified_type
;
256 ast_function
*function
;
257 ast_parameter_declarator
*parameter_declarator
;
258 ast_function_definition
*function_definition
;
259 ast_compound_statement
*compound_statement
;
260 ast_expression
*expression
;
261 ast_declarator_list
*declarator_list
;
262 ast_struct_specifier
*struct_specifier
;
263 ast_declaration
*declaration
;
264 ast_switch_body
*switch_body
;
265 ast_case_label
*case_label
;
266 ast_case_label_list
*case_label_list
;
267 ast_case_statement
*case_statement
;
268 ast_case_statement_list
*case_statement_list
;
272 ast_expression
*rest
;
273 } for_rest_statement
;
276 ast_node
*then_statement
;
277 ast_node
*else_statement
;
278 } selection_rest_statement
;
282 /* Line 1685 of yacc.c */
283 #line 284 "glsl_parser.h"
285 # define YYSTYPE_IS_TRIVIAL 1
286 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
287 # define YYSTYPE_IS_DECLARED 1
292 #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
293 typedef struct YYLTYPE
300 # define yyltype YYLTYPE /* obsolescent; will be withdrawn */
301 # define YYLTYPE_IS_DECLARED 1
302 # define YYLTYPE_IS_TRIVIAL 1