196c5ddc4Srjs/* A Bison parser, made by GNU Bison 3.7.4.  */
2e64d31b9Smaya
3e64d31b9Smaya/* Bison interface for Yacc-like parsers in C
4e64d31b9Smaya
596c5ddc4Srjs   Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2020 Free Software Foundation,
696c5ddc4Srjs   Inc.
7e64d31b9Smaya
8e64d31b9Smaya   This program is free software: you can redistribute it and/or modify
9e64d31b9Smaya   it under the terms of the GNU General Public License as published by
10e64d31b9Smaya   the Free Software Foundation, either version 3 of the License, or
11e64d31b9Smaya   (at your option) any later version.
12e64d31b9Smaya
13e64d31b9Smaya   This program is distributed in the hope that it will be useful,
14e64d31b9Smaya   but WITHOUT ANY WARRANTY; without even the implied warranty of
15e64d31b9Smaya   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16e64d31b9Smaya   GNU General Public License for more details.
17e64d31b9Smaya
18e64d31b9Smaya   You should have received a copy of the GNU General Public License
19e64d31b9Smaya   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
20e64d31b9Smaya
21e64d31b9Smaya/* As a special exception, you may create a larger work that contains
22e64d31b9Smaya   part or all of the Bison parser skeleton and distribute that work
23e64d31b9Smaya   under terms of your choice, so long as that work isn't itself a
24e64d31b9Smaya   parser generator using the skeleton or a modified version thereof
25e64d31b9Smaya   as a parser skeleton.  Alternatively, if you modify or redistribute
26e64d31b9Smaya   the parser skeleton itself, you may (at your option) remove this
27e64d31b9Smaya   special exception, which will cause the skeleton and the resulting
28e64d31b9Smaya   Bison output files to be licensed under the GNU General Public
29e64d31b9Smaya   License without this special exception.
30e64d31b9Smaya
31e64d31b9Smaya   This special exception was added by the Free Software Foundation in
32e64d31b9Smaya   version 2.2 of Bison.  */
33e64d31b9Smaya
3496c5ddc4Srjs/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
3596c5ddc4Srjs   especially those whose name start with YY_ or yy_.  They are
3696c5ddc4Srjs   private implementation details that can be changed or removed.  */
37e64d31b9Smaya
3896c5ddc4Srjs#ifndef YY_YY_SRC_MESA_PROGRAM_PROGRAM_PARSE_TAB_H_INCLUDED
3996c5ddc4Srjs# define YY_YY_SRC_MESA_PROGRAM_PROGRAM_PARSE_TAB_H_INCLUDED
40e64d31b9Smaya/* Debug traces.  */
41e64d31b9Smaya#ifndef YYDEBUG
42e64d31b9Smaya# define YYDEBUG 0
43e64d31b9Smaya#endif
44e64d31b9Smaya#if YYDEBUG
4596c5ddc4Srjsextern int yydebug;
46e64d31b9Smaya#endif
47e64d31b9Smaya
4896c5ddc4Srjs/* Token kinds.  */
49e64d31b9Smaya#ifndef YYTOKENTYPE
50e64d31b9Smaya# define YYTOKENTYPE
51e64d31b9Smaya  enum yytokentype
52e64d31b9Smaya  {
5396c5ddc4Srjs    YYEMPTY = -2,
5496c5ddc4Srjs    YYEOF = 0,                     /* "end of file"  */
5596c5ddc4Srjs    YYerror = 256,                 /* error  */
5696c5ddc4Srjs    YYUNDEF = 257,                 /* "invalid token"  */
5796c5ddc4Srjs    ARBvp_10 = 258,                /* ARBvp_10  */
5896c5ddc4Srjs    ARBfp_10 = 259,                /* ARBfp_10  */
5996c5ddc4Srjs    ADDRESS = 260,                 /* ADDRESS  */
6096c5ddc4Srjs    ALIAS = 261,                   /* ALIAS  */
6196c5ddc4Srjs    ATTRIB = 262,                  /* ATTRIB  */
6296c5ddc4Srjs    OPTION = 263,                  /* OPTION  */
6396c5ddc4Srjs    OUTPUT = 264,                  /* OUTPUT  */
6496c5ddc4Srjs    PARAM = 265,                   /* PARAM  */
6596c5ddc4Srjs    TEMP = 266,                    /* TEMP  */
6696c5ddc4Srjs    END = 267,                     /* END  */
6796c5ddc4Srjs    BIN_OP = 268,                  /* BIN_OP  */
6896c5ddc4Srjs    BINSC_OP = 269,                /* BINSC_OP  */
6996c5ddc4Srjs    SAMPLE_OP = 270,               /* SAMPLE_OP  */
7096c5ddc4Srjs    SCALAR_OP = 271,               /* SCALAR_OP  */
7196c5ddc4Srjs    TRI_OP = 272,                  /* TRI_OP  */
7296c5ddc4Srjs    VECTOR_OP = 273,               /* VECTOR_OP  */
7396c5ddc4Srjs    ARL = 274,                     /* ARL  */
7496c5ddc4Srjs    KIL = 275,                     /* KIL  */
7596c5ddc4Srjs    SWZ = 276,                     /* SWZ  */
7696c5ddc4Srjs    TXD_OP = 277,                  /* TXD_OP  */
7796c5ddc4Srjs    INTEGER = 278,                 /* INTEGER  */
7896c5ddc4Srjs    REAL = 279,                    /* REAL  */
7996c5ddc4Srjs    AMBIENT = 280,                 /* AMBIENT  */
8096c5ddc4Srjs    ATTENUATION = 281,             /* ATTENUATION  */
8196c5ddc4Srjs    BACK = 282,                    /* BACK  */
8296c5ddc4Srjs    CLIP = 283,                    /* CLIP  */
8396c5ddc4Srjs    COLOR = 284,                   /* COLOR  */
8496c5ddc4Srjs    DEPTH = 285,                   /* DEPTH  */
8596c5ddc4Srjs    DIFFUSE = 286,                 /* DIFFUSE  */
8696c5ddc4Srjs    DIRECTION = 287,               /* DIRECTION  */
8796c5ddc4Srjs    EMISSION = 288,                /* EMISSION  */
8896c5ddc4Srjs    ENV = 289,                     /* ENV  */
8996c5ddc4Srjs    EYE = 290,                     /* EYE  */
9096c5ddc4Srjs    FOG = 291,                     /* FOG  */
9196c5ddc4Srjs    FOGCOORD = 292,                /* FOGCOORD  */
9296c5ddc4Srjs    FRAGMENT = 293,                /* FRAGMENT  */
9396c5ddc4Srjs    FRONT = 294,                   /* FRONT  */
9496c5ddc4Srjs    HALF = 295,                    /* HALF  */
9596c5ddc4Srjs    INVERSE = 296,                 /* INVERSE  */
9696c5ddc4Srjs    INVTRANS = 297,                /* INVTRANS  */
9796c5ddc4Srjs    LIGHT = 298,                   /* LIGHT  */
9896c5ddc4Srjs    LIGHTMODEL = 299,              /* LIGHTMODEL  */
9996c5ddc4Srjs    LIGHTPROD = 300,               /* LIGHTPROD  */
10096c5ddc4Srjs    LOCAL = 301,                   /* LOCAL  */
10196c5ddc4Srjs    MATERIAL = 302,                /* MATERIAL  */
10296c5ddc4Srjs    MAT_PROGRAM = 303,             /* MAT_PROGRAM  */
10396c5ddc4Srjs    MATRIX = 304,                  /* MATRIX  */
10496c5ddc4Srjs    MATRIXINDEX = 305,             /* MATRIXINDEX  */
10596c5ddc4Srjs    MODELVIEW = 306,               /* MODELVIEW  */
10696c5ddc4Srjs    MVP = 307,                     /* MVP  */
10796c5ddc4Srjs    NORMAL = 308,                  /* NORMAL  */
10896c5ddc4Srjs    OBJECT = 309,                  /* OBJECT  */
10996c5ddc4Srjs    PALETTE = 310,                 /* PALETTE  */
11096c5ddc4Srjs    PARAMS = 311,                  /* PARAMS  */
11196c5ddc4Srjs    PLANE = 312,                   /* PLANE  */
11296c5ddc4Srjs    POINT_TOK = 313,               /* POINT_TOK  */
11396c5ddc4Srjs    POINTSIZE = 314,               /* POINTSIZE  */
11496c5ddc4Srjs    POSITION = 315,                /* POSITION  */
11596c5ddc4Srjs    PRIMARY = 316,                 /* PRIMARY  */
11696c5ddc4Srjs    PROGRAM = 317,                 /* PROGRAM  */
11796c5ddc4Srjs    PROJECTION = 318,              /* PROJECTION  */
11896c5ddc4Srjs    RANGE = 319,                   /* RANGE  */
11996c5ddc4Srjs    RESULT = 320,                  /* RESULT  */
12096c5ddc4Srjs    ROW = 321,                     /* ROW  */
12196c5ddc4Srjs    SCENECOLOR = 322,              /* SCENECOLOR  */
12296c5ddc4Srjs    SECONDARY = 323,               /* SECONDARY  */
12396c5ddc4Srjs    SHININESS = 324,               /* SHININESS  */
12496c5ddc4Srjs    SIZE_TOK = 325,                /* SIZE_TOK  */
12596c5ddc4Srjs    SPECULAR = 326,                /* SPECULAR  */
12696c5ddc4Srjs    SPOT = 327,                    /* SPOT  */
12796c5ddc4Srjs    STATE = 328,                   /* STATE  */
12896c5ddc4Srjs    TEXCOORD = 329,                /* TEXCOORD  */
12996c5ddc4Srjs    TEXENV = 330,                  /* TEXENV  */
13096c5ddc4Srjs    TEXGEN = 331,                  /* TEXGEN  */
13196c5ddc4Srjs    TEXGEN_Q = 332,                /* TEXGEN_Q  */
13296c5ddc4Srjs    TEXGEN_R = 333,                /* TEXGEN_R  */
13396c5ddc4Srjs    TEXGEN_S = 334,                /* TEXGEN_S  */
13496c5ddc4Srjs    TEXGEN_T = 335,                /* TEXGEN_T  */
13596c5ddc4Srjs    TEXTURE = 336,                 /* TEXTURE  */
13696c5ddc4Srjs    TRANSPOSE = 337,               /* TRANSPOSE  */
13796c5ddc4Srjs    TEXTURE_UNIT = 338,            /* TEXTURE_UNIT  */
13896c5ddc4Srjs    TEX_1D = 339,                  /* TEX_1D  */
13996c5ddc4Srjs    TEX_2D = 340,                  /* TEX_2D  */
14096c5ddc4Srjs    TEX_3D = 341,                  /* TEX_3D  */
14196c5ddc4Srjs    TEX_CUBE = 342,                /* TEX_CUBE  */
14296c5ddc4Srjs    TEX_RECT = 343,                /* TEX_RECT  */
14396c5ddc4Srjs    TEX_SHADOW1D = 344,            /* TEX_SHADOW1D  */
14496c5ddc4Srjs    TEX_SHADOW2D = 345,            /* TEX_SHADOW2D  */
14596c5ddc4Srjs    TEX_SHADOWRECT = 346,          /* TEX_SHADOWRECT  */
14696c5ddc4Srjs    TEX_ARRAY1D = 347,             /* TEX_ARRAY1D  */
14796c5ddc4Srjs    TEX_ARRAY2D = 348,             /* TEX_ARRAY2D  */
14896c5ddc4Srjs    TEX_ARRAYSHADOW1D = 349,       /* TEX_ARRAYSHADOW1D  */
14996c5ddc4Srjs    TEX_ARRAYSHADOW2D = 350,       /* TEX_ARRAYSHADOW2D  */
15096c5ddc4Srjs    VERTEX = 351,                  /* VERTEX  */
15196c5ddc4Srjs    VTXATTRIB = 352,               /* VTXATTRIB  */
15296c5ddc4Srjs    IDENTIFIER = 353,              /* IDENTIFIER  */
15396c5ddc4Srjs    USED_IDENTIFIER = 354,         /* USED_IDENTIFIER  */
15496c5ddc4Srjs    MASK4 = 355,                   /* MASK4  */
15596c5ddc4Srjs    MASK3 = 356,                   /* MASK3  */
15696c5ddc4Srjs    MASK2 = 357,                   /* MASK2  */
15796c5ddc4Srjs    MASK1 = 358,                   /* MASK1  */
15896c5ddc4Srjs    SWIZZLE = 359,                 /* SWIZZLE  */
15996c5ddc4Srjs    DOT_DOT = 360,                 /* DOT_DOT  */
16096c5ddc4Srjs    DOT = 361                      /* DOT  */
161e64d31b9Smaya  };
16296c5ddc4Srjs  typedef enum yytokentype yytoken_kind_t;
163e64d31b9Smaya#endif
164e64d31b9Smaya
165e64d31b9Smaya/* Value type.  */
166e64d31b9Smaya#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
167e64d31b9Smayaunion YYSTYPE
168e64d31b9Smaya{
16996c5ddc4Srjs#line 137 "../src/mesa/program/program_parse.y"
170e64d31b9Smaya
171e64d31b9Smaya   struct asm_instruction *inst;
172e64d31b9Smaya   struct asm_symbol *sym;
173e64d31b9Smaya   struct asm_symbol temp_sym;
174e64d31b9Smaya   struct asm_swizzle_mask swiz_mask;
175e64d31b9Smaya   struct asm_src_register src_reg;
176e64d31b9Smaya   struct prog_dst_register dst_reg;
177e64d31b9Smaya   struct prog_instruction temp_inst;
178e64d31b9Smaya   char *string;
179e64d31b9Smaya   unsigned result;
180e64d31b9Smaya   unsigned attrib;
181e64d31b9Smaya   int integer;
182e64d31b9Smaya   float real;
183e64d31b9Smaya   gl_state_index16 state[STATE_LENGTH];
184e64d31b9Smaya   int negate;
185e64d31b9Smaya   struct asm_vector vector;
186e64d31b9Smaya   enum prog_opcode opcode;
187e64d31b9Smaya
188e64d31b9Smaya   struct {
189e64d31b9Smaya      unsigned swz;
190e64d31b9Smaya      unsigned rgba_valid:1;
191e64d31b9Smaya      unsigned xyzw_valid:1;
192e64d31b9Smaya      unsigned negate:1;
193e64d31b9Smaya   } ext_swizzle;
194e64d31b9Smaya
19596c5ddc4Srjs#line 196 "src/mesa/program/program_parse.tab.h"
196e64d31b9Smaya
19796c5ddc4Srjs};
198e64d31b9Smayatypedef union YYSTYPE YYSTYPE;
199e64d31b9Smaya# define YYSTYPE_IS_TRIVIAL 1
200e64d31b9Smaya# define YYSTYPE_IS_DECLARED 1
201e64d31b9Smaya#endif
202e64d31b9Smaya
203e64d31b9Smaya/* Location type.  */
204e64d31b9Smaya#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
205e64d31b9Smayatypedef struct YYLTYPE YYLTYPE;
206e64d31b9Smayastruct YYLTYPE
207e64d31b9Smaya{
208e64d31b9Smaya  int first_line;
209e64d31b9Smaya  int first_column;
210e64d31b9Smaya  int last_line;
211e64d31b9Smaya  int last_column;
212e64d31b9Smaya};
213e64d31b9Smaya# define YYLTYPE_IS_DECLARED 1
214e64d31b9Smaya# define YYLTYPE_IS_TRIVIAL 1
215e64d31b9Smaya#endif
216e64d31b9Smaya
217e64d31b9Smaya
218e64d31b9Smaya
21996c5ddc4Srjsint yyparse (struct asm_parser_state *state);
220e64d31b9Smaya
22196c5ddc4Srjs#endif /* !YY_YY_SRC_MESA_PROGRAM_PROGRAM_PARSE_TAB_H_INCLUDED  */
222