-
-/* A Bison parser, made by GNU Bison 2.4.1. */
+/* A Bison parser, made by GNU Bison 2.4.3. */
/* Skeleton implementation for Bison's Yacc-like parsers in C
- Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
- Free Software Foundation, Inc.
+ Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
+ 2009, 2010 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#define YYBISON 1
/* Bison version. */
-#define YYBISON_VERSION "2.4.1"
+#define YYBISON_VERSION "2.4.3"
/* Skeleton name. */
#define YYSKELETON_NAME "yacc.c"
/* Line 189 of yacc.c */
-#line 118 "glsl_parser.cpp"
+#line 117 "glsl_parser.cpp"
/* Enabling traces. */
#ifndef YYDEBUG
/* Line 214 of yacc.c */
-#line 376 "glsl_parser.cpp"
+#line 375 "glsl_parser.cpp"
} YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
/* Line 264 of yacc.c */
-#line 401 "glsl_parser.cpp"
+#line 400 "glsl_parser.cpp"
#ifdef short
# undef short
#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
#ifndef YY_
-# if YYENABLE_NLS
+# if defined YYENABLE_NLS && YYENABLE_NLS
# if ENABLE_NLS
# include <libintl.h> /* INFRINGES ON USER NAME SPACE */
# define YY_(msgid) dgettext ("bison-runtime", msgid)
/* Like YYERROR except do call yyerror. This remains here temporarily
to ease the transition to the new meaning of YYERROR, for GCC.
- Once GCC version 2 has supplanted version 1, this can go. */
+ Once GCC version 2 has supplanted version 1, this can go. However,
+ YYFAIL appears to be in use. Nevertheless, it is formally deprecated
+ in Bison 2.4.2's NEWS entry, where a plan to phase it out is
+ discussed. */
#define YYFAIL goto yyerrlab
+#if defined YYFAIL
+ /* This is here to suppress warnings from the GCC cpp's
+ -Wunused-macros. Normally we don't worry about that warning, but
+ some users do, and we want to make it easy for users to remove
+ YYFAIL uses, which will produce warnings from Bison 2.5. */
+#endif
#define YYRECOVERING() (!!yyerrstatus)
we won't break user code: when these are the locations we know. */
#ifndef YY_LOCATION_PRINT
-# if YYLTYPE_IS_TRIVIAL
+# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
# define YY_LOCATION_PRINT(File, Loc) \
fprintf (File, "%d.%d-%d.%d", \
(Loc).first_line, (Loc).first_column, \
YYLTYPE *yylsp;
/* The locations where the error started and ended. */
- YYLTYPE yyerror_range[2];
+ YYLTYPE yyerror_range[3];
YYSIZE_T yystacksize;
yyvsp = yyvs;
yylsp = yyls;
-#if YYLTYPE_IS_TRIVIAL
+#if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
/* Initialize the default location before parsing starts. */
yylloc.first_line = yylloc.last_line = 1;
yylloc.first_column = yylloc.last_column = 1;
/* User initialization code. */
-/* Line 1242 of yacc.c */
+/* Line 1251 of yacc.c */
#line 41 "glsl_parser.ypp"
{
yylloc.first_line = 1;
yylloc.source = 0;
}
-/* Line 1242 of yacc.c */
-#line 2621 "glsl_parser.cpp"
+/* Line 1251 of yacc.c */
+#line 2629 "glsl_parser.cpp"
yylsp[0] = yylloc;
goto yysetstate;
{
case 2:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 211 "glsl_parser.ypp"
{
_mesa_glsl_initialize_types(state);
case 5:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 220 "glsl_parser.ypp"
{
switch ((yyvsp[(2) - (3)].n)) {
case 12:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 252 "glsl_parser.ypp"
{
if (!_mesa_glsl_process_extension((yyvsp[(2) - (5)].identifier), & (yylsp[(2) - (5)]), (yyvsp[(4) - (5)].identifier), & (yylsp[(4) - (5)]), state)) {
case 13:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 261 "glsl_parser.ypp"
{
/* FINISHME: The NULL test is only required because 'precision'
case 14:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 269 "glsl_parser.ypp"
{
/* FINISHME: The NULL test is only required because 'precision'
case 16:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 284 "glsl_parser.ypp"
{
void *ctx = state;
case 17:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 291 "glsl_parser.ypp"
{
void *ctx = state;
case 18:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 298 "glsl_parser.ypp"
{
void *ctx = state;
case 19:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 305 "glsl_parser.ypp"
{
void *ctx = state;
case 20:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 312 "glsl_parser.ypp"
{
void *ctx = state;
case 21:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 319 "glsl_parser.ypp"
{
(yyval.expression) = (yyvsp[(2) - (3)].expression);
case 23:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 327 "glsl_parser.ypp"
{
void *ctx = state;
case 24:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 333 "glsl_parser.ypp"
{
(yyval.expression) = (yyvsp[(1) - (1)].expression);
case 25:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 337 "glsl_parser.ypp"
{
void *ctx = state;
case 26:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 344 "glsl_parser.ypp"
{
void *ctx = state;
case 27:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 350 "glsl_parser.ypp"
{
void *ctx = state;
case 31:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 368 "glsl_parser.ypp"
{
void *ctx = state;
case 36:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 387 "glsl_parser.ypp"
{
(yyval.expression) = (yyvsp[(1) - (2)].expression);
case 37:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 393 "glsl_parser.ypp"
{
(yyval.expression) = (yyvsp[(1) - (3)].expression);
case 39:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 409 "glsl_parser.ypp"
{
void *ctx = state;
case 40:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 415 "glsl_parser.ypp"
{
void *ctx = state;
case 41:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 422 "glsl_parser.ypp"
{
void *ctx = state;
case 43:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 434 "glsl_parser.ypp"
{
void *ctx = state;
case 44:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 440 "glsl_parser.ypp"
{
void *ctx = state;
case 45:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 446 "glsl_parser.ypp"
{
void *ctx = state;
case 46:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 455 "glsl_parser.ypp"
{ (yyval.n) = ast_plus; ;}
break;
case 47:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 456 "glsl_parser.ypp"
{ (yyval.n) = ast_neg; ;}
break;
case 48:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 457 "glsl_parser.ypp"
{ (yyval.n) = ast_logic_not; ;}
break;
case 49:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 458 "glsl_parser.ypp"
{ (yyval.n) = ast_bit_not; ;}
break;
case 51:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 464 "glsl_parser.ypp"
{
void *ctx = state;
case 52:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 470 "glsl_parser.ypp"
{
void *ctx = state;
case 53:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 476 "glsl_parser.ypp"
{
void *ctx = state;
case 55:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 486 "glsl_parser.ypp"
{
void *ctx = state;
case 56:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 492 "glsl_parser.ypp"
{
void *ctx = state;
case 58:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 502 "glsl_parser.ypp"
{
void *ctx = state;
case 59:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 508 "glsl_parser.ypp"
{
void *ctx = state;
case 61:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 518 "glsl_parser.ypp"
{
void *ctx = state;
case 62:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 524 "glsl_parser.ypp"
{
void *ctx = state;
case 63:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 530 "glsl_parser.ypp"
{
void *ctx = state;
case 64:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 536 "glsl_parser.ypp"
{
void *ctx = state;
case 66:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 546 "glsl_parser.ypp"
{
void *ctx = state;
case 67:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 552 "glsl_parser.ypp"
{
void *ctx = state;
case 69:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 562 "glsl_parser.ypp"
{
void *ctx = state;
- (yyval.expression) = new(ctx) ast_expression_bin(ast_bit_or, (yyvsp[(1) - (3)].expression), (yyvsp[(3) - (3)].expression));
+ (yyval.expression) = new(ctx) ast_expression_bin(ast_bit_and, (yyvsp[(1) - (3)].expression), (yyvsp[(3) - (3)].expression));
(yyval.expression)->set_location(yylloc);
;}
break;
case 71:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 572 "glsl_parser.ypp"
{
void *ctx = state;
case 73:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 582 "glsl_parser.ypp"
{
void *ctx = state;
case 75:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 592 "glsl_parser.ypp"
{
void *ctx = state;
case 77:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 602 "glsl_parser.ypp"
{
void *ctx = state;
case 79:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 612 "glsl_parser.ypp"
{
void *ctx = state;
case 81:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 622 "glsl_parser.ypp"
{
void *ctx = state;
case 83:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 632 "glsl_parser.ypp"
{
void *ctx = state;
case 84:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 640 "glsl_parser.ypp"
{ (yyval.n) = ast_assign; ;}
break;
case 85:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 641 "glsl_parser.ypp"
{ (yyval.n) = ast_mul_assign; ;}
break;
case 86:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 642 "glsl_parser.ypp"
{ (yyval.n) = ast_div_assign; ;}
break;
case 87:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 643 "glsl_parser.ypp"
{ (yyval.n) = ast_mod_assign; ;}
break;
case 88:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 644 "glsl_parser.ypp"
{ (yyval.n) = ast_add_assign; ;}
break;
case 89:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 645 "glsl_parser.ypp"
{ (yyval.n) = ast_sub_assign; ;}
break;
case 90:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 646 "glsl_parser.ypp"
{ (yyval.n) = ast_ls_assign; ;}
break;
case 91:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 647 "glsl_parser.ypp"
{ (yyval.n) = ast_rs_assign; ;}
break;
case 92:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 648 "glsl_parser.ypp"
{ (yyval.n) = ast_and_assign; ;}
break;
case 93:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 649 "glsl_parser.ypp"
{ (yyval.n) = ast_xor_assign; ;}
break;
case 94:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 650 "glsl_parser.ypp"
{ (yyval.n) = ast_or_assign; ;}
break;
case 95:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 655 "glsl_parser.ypp"
{
(yyval.expression) = (yyvsp[(1) - (1)].expression);
case 96:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 659 "glsl_parser.ypp"
{
void *ctx = state;
case 98:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 679 "glsl_parser.ypp"
{
(yyval.node) = (yyvsp[(1) - (2)].function);
case 99:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 683 "glsl_parser.ypp"
{
(yyval.node) = (yyvsp[(1) - (2)].declarator_list);
case 100:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 687 "glsl_parser.ypp"
{
if (((yyvsp[(3) - (4)].type_specifier)->type_specifier != ast_float)
case 104:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 710 "glsl_parser.ypp"
{
(yyval.function) = (yyvsp[(1) - (2)].function);
case 105:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 715 "glsl_parser.ypp"
{
(yyval.function) = (yyvsp[(1) - (3)].function);
case 106:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 723 "glsl_parser.ypp"
{
void *ctx = state;
case 107:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 734 "glsl_parser.ypp"
{
void *ctx = state;
case 108:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 744 "glsl_parser.ypp"
{
void *ctx = state;
case 109:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 759 "glsl_parser.ypp"
{
(yyvsp[(1) - (3)].type_qualifier).flags.i |= (yyvsp[(2) - (3)].type_qualifier).flags.i;
case 110:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 766 "glsl_parser.ypp"
{
(yyval.parameter_declarator) = (yyvsp[(2) - (2)].parameter_declarator);
case 111:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 771 "glsl_parser.ypp"
{
void *ctx = state;
case 112:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 782 "glsl_parser.ypp"
{
void *ctx = state;
case 113:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 794 "glsl_parser.ypp"
{
memset(& (yyval.type_qualifier), 0, sizeof((yyval.type_qualifier)));
case 114:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 798 "glsl_parser.ypp"
{
memset(& (yyval.type_qualifier), 0, sizeof((yyval.type_qualifier)));
case 115:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 803 "glsl_parser.ypp"
{
memset(& (yyval.type_qualifier), 0, sizeof((yyval.type_qualifier)));
case 116:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 808 "glsl_parser.ypp"
{
memset(& (yyval.type_qualifier), 0, sizeof((yyval.type_qualifier)));
case 119:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 822 "glsl_parser.ypp"
{
void *ctx = state;
case 120:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 831 "glsl_parser.ypp"
{
void *ctx = state;
case 121:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 840 "glsl_parser.ypp"
{
void *ctx = state;
case 122:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 849 "glsl_parser.ypp"
{
void *ctx = state;
case 123:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 858 "glsl_parser.ypp"
{
void *ctx = state;
case 124:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 867 "glsl_parser.ypp"
{
void *ctx = state;
case 125:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 880 "glsl_parser.ypp"
{
void *ctx = state;
case 126:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 891 "glsl_parser.ypp"
{
void *ctx = state;
case 127:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 900 "glsl_parser.ypp"
{
void *ctx = state;
case 128:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 909 "glsl_parser.ypp"
{
void *ctx = state;
case 129:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 918 "glsl_parser.ypp"
{
void *ctx = state;
case 130:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 927 "glsl_parser.ypp"
{
void *ctx = state;
case 131:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 936 "glsl_parser.ypp"
{
void *ctx = state;
case 132:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 945 "glsl_parser.ypp"
{
void *ctx = state;
case 133:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 959 "glsl_parser.ypp"
{
void *ctx = state;
case 134:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 966 "glsl_parser.ypp"
{
void *ctx = state;
case 135:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 977 "glsl_parser.ypp"
{
(yyval.type_qualifier) = (yyvsp[(3) - (4)].type_qualifier);
case 137:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 985 "glsl_parser.ypp"
{
if (((yyvsp[(1) - (3)].type_qualifier).flags.i & (yyvsp[(3) - (3)].type_qualifier).flags.i) != 0) {
case 138:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1004 "glsl_parser.ypp"
{
bool got_one = false;
case 139:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1033 "glsl_parser.ypp"
{
bool got_one = false;
case 140:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1074 "glsl_parser.ypp"
{
memset(& (yyval.type_qualifier), 0, sizeof((yyval.type_qualifier)));
case 141:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1079 "glsl_parser.ypp"
{
memset(& (yyval.type_qualifier), 0, sizeof((yyval.type_qualifier)));
case 142:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1084 "glsl_parser.ypp"
{
memset(& (yyval.type_qualifier), 0, sizeof((yyval.type_qualifier)));
case 143:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1092 "glsl_parser.ypp"
{
memset(& (yyval.type_qualifier), 0, sizeof((yyval.type_qualifier)));
case 146:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1102 "glsl_parser.ypp"
{
(yyval.type_qualifier) = (yyvsp[(1) - (2)].type_qualifier);
case 148:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1108 "glsl_parser.ypp"
{
(yyval.type_qualifier) = (yyvsp[(1) - (2)].type_qualifier);
case 149:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1113 "glsl_parser.ypp"
{
(yyval.type_qualifier) = (yyvsp[(2) - (2)].type_qualifier);
case 150:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1118 "glsl_parser.ypp"
{
(yyval.type_qualifier) = (yyvsp[(2) - (3)].type_qualifier);
case 151:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1124 "glsl_parser.ypp"
{
memset(& (yyval.type_qualifier), 0, sizeof((yyval.type_qualifier)));
case 152:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1132 "glsl_parser.ypp"
{
memset(& (yyval.type_qualifier), 0, sizeof((yyval.type_qualifier)));
case 153:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1137 "glsl_parser.ypp"
{
memset(& (yyval.type_qualifier), 0, sizeof((yyval.type_qualifier)));
case 154:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1142 "glsl_parser.ypp"
{
memset(& (yyval.type_qualifier), 0, sizeof((yyval.type_qualifier)));
case 155:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1147 "glsl_parser.ypp"
{
memset(& (yyval.type_qualifier), 0, sizeof((yyval.type_qualifier)));
case 156:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1153 "glsl_parser.ypp"
{
memset(& (yyval.type_qualifier), 0, sizeof((yyval.type_qualifier)));
case 157:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1158 "glsl_parser.ypp"
{
memset(& (yyval.type_qualifier), 0, sizeof((yyval.type_qualifier)));
case 158:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1163 "glsl_parser.ypp"
{
memset(& (yyval.type_qualifier), 0, sizeof((yyval.type_qualifier)));
case 159:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1168 "glsl_parser.ypp"
{
memset(& (yyval.type_qualifier), 0, sizeof((yyval.type_qualifier)));
case 160:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1173 "glsl_parser.ypp"
{
memset(& (yyval.type_qualifier), 0, sizeof((yyval.type_qualifier)));
case 162:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1182 "glsl_parser.ypp"
{
(yyval.type_specifier) = (yyvsp[(2) - (2)].type_specifier);
case 164:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1191 "glsl_parser.ypp"
{
(yyval.type_specifier) = (yyvsp[(1) - (3)].type_specifier);
case 165:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1197 "glsl_parser.ypp"
{
(yyval.type_specifier) = (yyvsp[(1) - (4)].type_specifier);
case 166:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1206 "glsl_parser.ypp"
{
void *ctx = state;
case 167:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1212 "glsl_parser.ypp"
{
void *ctx = state;
case 168:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1218 "glsl_parser.ypp"
{
void *ctx = state;
case 169:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1226 "glsl_parser.ypp"
{ (yyval.n) = ast_void; ;}
break;
case 170:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1227 "glsl_parser.ypp"
{ (yyval.n) = ast_float; ;}
break;
case 171:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1228 "glsl_parser.ypp"
{ (yyval.n) = ast_int; ;}
break;
case 172:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1229 "glsl_parser.ypp"
{ (yyval.n) = ast_uint; ;}
break;
case 173:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1230 "glsl_parser.ypp"
{ (yyval.n) = ast_bool; ;}
break;
case 174:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1231 "glsl_parser.ypp"
{ (yyval.n) = ast_vec2; ;}
break;
case 175:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1232 "glsl_parser.ypp"
{ (yyval.n) = ast_vec3; ;}
break;
case 176:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1233 "glsl_parser.ypp"
{ (yyval.n) = ast_vec4; ;}
break;
case 177:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1234 "glsl_parser.ypp"
{ (yyval.n) = ast_bvec2; ;}
break;
case 178:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1235 "glsl_parser.ypp"
{ (yyval.n) = ast_bvec3; ;}
break;
case 179:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1236 "glsl_parser.ypp"
{ (yyval.n) = ast_bvec4; ;}
break;
case 180:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1237 "glsl_parser.ypp"
{ (yyval.n) = ast_ivec2; ;}
break;
case 181:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1238 "glsl_parser.ypp"
{ (yyval.n) = ast_ivec3; ;}
break;
case 182:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1239 "glsl_parser.ypp"
{ (yyval.n) = ast_ivec4; ;}
break;
case 183:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1240 "glsl_parser.ypp"
{ (yyval.n) = ast_uvec2; ;}
break;
case 184:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1241 "glsl_parser.ypp"
{ (yyval.n) = ast_uvec3; ;}
break;
case 185:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1242 "glsl_parser.ypp"
{ (yyval.n) = ast_uvec4; ;}
break;
case 186:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1243 "glsl_parser.ypp"
{ (yyval.n) = ast_mat2; ;}
break;
case 187:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1244 "glsl_parser.ypp"
{ (yyval.n) = ast_mat2x3; ;}
break;
case 188:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1245 "glsl_parser.ypp"
{ (yyval.n) = ast_mat2x4; ;}
break;
case 189:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1246 "glsl_parser.ypp"
{ (yyval.n) = ast_mat3x2; ;}
break;
case 190:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1247 "glsl_parser.ypp"
{ (yyval.n) = ast_mat3; ;}
break;
case 191:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1248 "glsl_parser.ypp"
{ (yyval.n) = ast_mat3x4; ;}
break;
case 192:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1249 "glsl_parser.ypp"
{ (yyval.n) = ast_mat4x2; ;}
break;
case 193:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1250 "glsl_parser.ypp"
{ (yyval.n) = ast_mat4x3; ;}
break;
case 194:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1251 "glsl_parser.ypp"
{ (yyval.n) = ast_mat4; ;}
break;
case 195:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1252 "glsl_parser.ypp"
{ (yyval.n) = ast_sampler1d; ;}
break;
case 196:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1253 "glsl_parser.ypp"
{ (yyval.n) = ast_sampler2d; ;}
break;
case 197:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1254 "glsl_parser.ypp"
{ (yyval.n) = ast_sampler2drect; ;}
break;
case 198:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1255 "glsl_parser.ypp"
{ (yyval.n) = ast_sampler3d; ;}
break;
case 199:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1256 "glsl_parser.ypp"
{ (yyval.n) = ast_samplercube; ;}
break;
case 200:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1257 "glsl_parser.ypp"
{ (yyval.n) = ast_sampler1dshadow; ;}
break;
case 201:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1258 "glsl_parser.ypp"
{ (yyval.n) = ast_sampler2dshadow; ;}
break;
case 202:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1259 "glsl_parser.ypp"
{ (yyval.n) = ast_sampler2drectshadow; ;}
break;
case 203:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1260 "glsl_parser.ypp"
{ (yyval.n) = ast_samplercubeshadow; ;}
break;
case 204:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1261 "glsl_parser.ypp"
{ (yyval.n) = ast_sampler1darray; ;}
break;
case 205:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1262 "glsl_parser.ypp"
{ (yyval.n) = ast_sampler2darray; ;}
break;
case 206:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1263 "glsl_parser.ypp"
{ (yyval.n) = ast_sampler1darrayshadow; ;}
break;
case 207:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1264 "glsl_parser.ypp"
{ (yyval.n) = ast_sampler2darrayshadow; ;}
break;
case 208:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1265 "glsl_parser.ypp"
{ (yyval.n) = ast_isampler1d; ;}
break;
case 209:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1266 "glsl_parser.ypp"
{ (yyval.n) = ast_isampler2d; ;}
break;
case 210:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1267 "glsl_parser.ypp"
{ (yyval.n) = ast_isampler3d; ;}
break;
case 211:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1268 "glsl_parser.ypp"
{ (yyval.n) = ast_isamplercube; ;}
break;
case 212:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1269 "glsl_parser.ypp"
{ (yyval.n) = ast_isampler1darray; ;}
break;
case 213:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1270 "glsl_parser.ypp"
{ (yyval.n) = ast_isampler2darray; ;}
break;
case 214:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1271 "glsl_parser.ypp"
{ (yyval.n) = ast_usampler1d; ;}
break;
case 215:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1272 "glsl_parser.ypp"
{ (yyval.n) = ast_usampler2d; ;}
break;
case 216:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1273 "glsl_parser.ypp"
{ (yyval.n) = ast_usampler3d; ;}
break;
case 217:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1274 "glsl_parser.ypp"
{ (yyval.n) = ast_usamplercube; ;}
break;
case 218:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1275 "glsl_parser.ypp"
{ (yyval.n) = ast_usampler1darray; ;}
break;
case 219:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1276 "glsl_parser.ypp"
{ (yyval.n) = ast_usampler2darray; ;}
break;
case 220:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1280 "glsl_parser.ypp"
{
if (!state->es_shader && state->language_version < 130)
case 221:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1291 "glsl_parser.ypp"
{
if (!state->es_shader && state->language_version < 130)
case 222:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1302 "glsl_parser.ypp"
{
if (!state->es_shader && state->language_version < 130)
case 223:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1317 "glsl_parser.ypp"
{
void *ctx = state;
case 224:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1323 "glsl_parser.ypp"
{
void *ctx = state;
case 225:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1332 "glsl_parser.ypp"
{
(yyval.node) = (ast_node *) (yyvsp[(1) - (1)].declarator_list);
case 226:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1337 "glsl_parser.ypp"
{
(yyval.node) = (ast_node *) (yyvsp[(1) - (2)].node);
case 227:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1345 "glsl_parser.ypp"
{
void *ctx = state;
case 228:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1360 "glsl_parser.ypp"
{
(yyval.declaration) = (yyvsp[(1) - (1)].declaration);
case 229:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1365 "glsl_parser.ypp"
{
(yyval.declaration) = (yyvsp[(1) - (3)].declaration);
case 230:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1373 "glsl_parser.ypp"
{
void *ctx = state;
case 231:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1379 "glsl_parser.ypp"
{
void *ctx = state;
case 234:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1397 "glsl_parser.ypp"
{ (yyval.node) = (ast_node *) (yyvsp[(1) - (1)].compound_statement); ;}
break;
case 239:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1405 "glsl_parser.ypp"
{ (yyval.node) = NULL; ;}
break;
case 240:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1406 "glsl_parser.ypp"
{ (yyval.node) = NULL; ;}
break;
case 243:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1413 "glsl_parser.ypp"
{
void *ctx = state;
case 244:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1419 "glsl_parser.ypp"
{
void *ctx = state;
case 245:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1427 "glsl_parser.ypp"
{ (yyval.node) = (ast_node *) (yyvsp[(1) - (1)].compound_statement); ;}
break;
case 247:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1433 "glsl_parser.ypp"
{
void *ctx = state;
case 248:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1439 "glsl_parser.ypp"
{
void *ctx = state;
case 249:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1448 "glsl_parser.ypp"
{
if ((yyvsp[(1) - (1)].node) == NULL) {
case 250:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1458 "glsl_parser.ypp"
{
if ((yyvsp[(2) - (2)].node) == NULL) {
case 251:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1470 "glsl_parser.ypp"
{
void *ctx = state;
case 252:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1476 "glsl_parser.ypp"
{
void *ctx = state;
case 253:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1485 "glsl_parser.ypp"
{
(yyval.node) = new(state) ast_selection_statement((yyvsp[(3) - (5)].expression), (yyvsp[(5) - (5)].selection_rest_statement).then_statement,
case 254:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1494 "glsl_parser.ypp"
{
(yyval.selection_rest_statement).then_statement = (yyvsp[(1) - (3)].node);
case 255:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1499 "glsl_parser.ypp"
{
(yyval.selection_rest_statement).then_statement = (yyvsp[(1) - (1)].node);
case 256:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1507 "glsl_parser.ypp"
{
(yyval.node) = (ast_node *) (yyvsp[(1) - (1)].expression);
case 257:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1511 "glsl_parser.ypp"
{
void *ctx = state;
case 261:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1534 "glsl_parser.ypp"
{
void *ctx = state;
case 262:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1541 "glsl_parser.ypp"
{
void *ctx = state;
case 263:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1548 "glsl_parser.ypp"
{
void *ctx = state;
case 267:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1564 "glsl_parser.ypp"
{
(yyval.node) = NULL;
case 268:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1571 "glsl_parser.ypp"
{
(yyval.for_rest_statement).cond = (yyvsp[(1) - (2)].node);
case 269:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1576 "glsl_parser.ypp"
{
(yyval.for_rest_statement).cond = (yyvsp[(1) - (3)].node);
case 270:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1585 "glsl_parser.ypp"
{
void *ctx = state;
case 271:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1591 "glsl_parser.ypp"
{
void *ctx = state;
case 272:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1597 "glsl_parser.ypp"
{
void *ctx = state;
case 273:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1603 "glsl_parser.ypp"
{
void *ctx = state;
case 274:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1609 "glsl_parser.ypp"
{
void *ctx = state;
case 275:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1617 "glsl_parser.ypp"
{ (yyval.node) = (yyvsp[(1) - (1)].function_definition); ;}
break;
case 276:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1618 "glsl_parser.ypp"
{ (yyval.node) = (yyvsp[(1) - (1)].node); ;}
break;
case 277:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1619 "glsl_parser.ypp"
{ (yyval.node) = NULL; ;}
break;
case 278:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 1624 "glsl_parser.ypp"
{
void *ctx = state;
-/* Line 1455 of yacc.c */
-#line 5076 "glsl_parser.cpp"
+/* Line 1464 of yacc.c */
+#line 5084 "glsl_parser.cpp"
default: break;
}
YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
#endif
}
- yyerror_range[0] = yylloc;
+ yyerror_range[1] = yylloc;
if (yyerrstatus == 3)
{
if (/*CONSTCOND*/ 0)
goto yyerrorlab;
- yyerror_range[0] = yylsp[1-yylen];
+ yyerror_range[1] = yylsp[1-yylen];
/* Do not reclaim the symbols of the rule which action triggered
this YYERROR. */
YYPOPSTACK (yylen);
if (yyssp == yyss)
YYABORT;
- yyerror_range[0] = *yylsp;
+ yyerror_range[1] = *yylsp;
yydestruct ("Error: popping",
yystos[yystate], yyvsp, yylsp, state);
YYPOPSTACK (1);
*++yyvsp = yylval;
- yyerror_range[1] = yylloc;
+ yyerror_range[2] = yylloc;
/* Using YYLLOC is tempting, but would change the location of
the lookahead. YYLOC is available though. */
- YYLLOC_DEFAULT (yyloc, (yyerror_range - 1), 2);
+ YYLLOC_DEFAULT (yyloc, yyerror_range, 2);
*++yylsp = yyloc;
/* Shift the error token. */