Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1. /* A Bison parser, made by GNU Bison 3.0.4.  */
  2.  
  3. /* Bison interface for Yacc-like parsers in C
  4.  
  5.    Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc.
  6.  
  7.    This program is free software: you can redistribute it and/or modify
  8.    it under the terms of the GNU General Public License as published by
  9.    the Free Software Foundation, either version 3 of the License, or
  10.    (at your option) any later version.
  11.  
  12.    This program is distributed in the hope that it will be useful,
  13.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15.    GNU General Public License for more details.
  16.  
  17.    You should have received a copy of the GNU General Public License
  18.    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
  19.  
  20. /* As a special exception, you may create a larger work that contains
  21.    part or all of the Bison parser skeleton and distribute that work
  22.    under terms of your choice, so long as that work isn't itself a
  23.    parser generator using the skeleton or a modified version thereof
  24.    as a parser skeleton.  Alternatively, if you modify or redistribute
  25.    the parser skeleton itself, you may (at your option) remove this
  26.    special exception, which will cause the skeleton and the resulting
  27.    Bison output files to be licensed under the GNU General Public
  28.    License without this special exception.
  29.  
  30.    This special exception was added by the Free Software Foundation in
  31.    version 2.2 of Bison.  */
  32.  
  33. #ifndef YY__MESA_PROGRAM_PROGRAM_PROGRAM_PARSE_TAB_H_INCLUDED
  34. # define YY__MESA_PROGRAM_PROGRAM_PROGRAM_PARSE_TAB_H_INCLUDED
  35. /* Debug traces.  */
  36. #ifndef YYDEBUG
  37. # define YYDEBUG 0
  38. #endif
  39. #if YYDEBUG
  40. extern int _mesa_program_debug;
  41. #endif
  42.  
  43. /* Token type.  */
  44. #ifndef YYTOKENTYPE
  45. # define YYTOKENTYPE
  46.   enum yytokentype
  47.   {
  48.     ARBvp_10 = 258,
  49.     ARBfp_10 = 259,
  50.     ADDRESS = 260,
  51.     ALIAS = 261,
  52.     ATTRIB = 262,
  53.     OPTION = 263,
  54.     OUTPUT = 264,
  55.     PARAM = 265,
  56.     TEMP = 266,
  57.     END = 267,
  58.     BIN_OP = 268,
  59.     BINSC_OP = 269,
  60.     SAMPLE_OP = 270,
  61.     SCALAR_OP = 271,
  62.     TRI_OP = 272,
  63.     VECTOR_OP = 273,
  64.     ARL = 274,
  65.     KIL = 275,
  66.     SWZ = 276,
  67.     TXD_OP = 277,
  68.     INTEGER = 278,
  69.     REAL = 279,
  70.     AMBIENT = 280,
  71.     ATTENUATION = 281,
  72.     BACK = 282,
  73.     CLIP = 283,
  74.     COLOR = 284,
  75.     DEPTH = 285,
  76.     DIFFUSE = 286,
  77.     DIRECTION = 287,
  78.     EMISSION = 288,
  79.     ENV = 289,
  80.     EYE = 290,
  81.     FOG = 291,
  82.     FOGCOORD = 292,
  83.     FRAGMENT = 293,
  84.     FRONT = 294,
  85.     HALF = 295,
  86.     INVERSE = 296,
  87.     INVTRANS = 297,
  88.     LIGHT = 298,
  89.     LIGHTMODEL = 299,
  90.     LIGHTPROD = 300,
  91.     LOCAL = 301,
  92.     MATERIAL = 302,
  93.     MAT_PROGRAM = 303,
  94.     MATRIX = 304,
  95.     MATRIXINDEX = 305,
  96.     MODELVIEW = 306,
  97.     MVP = 307,
  98.     NORMAL = 308,
  99.     OBJECT = 309,
  100.     PALETTE = 310,
  101.     PARAMS = 311,
  102.     PLANE = 312,
  103.     POINT_TOK = 313,
  104.     POINTSIZE = 314,
  105.     POSITION = 315,
  106.     PRIMARY = 316,
  107.     PROGRAM = 317,
  108.     PROJECTION = 318,
  109.     RANGE = 319,
  110.     RESULT = 320,
  111.     ROW = 321,
  112.     SCENECOLOR = 322,
  113.     SECONDARY = 323,
  114.     SHININESS = 324,
  115.     SIZE_TOK = 325,
  116.     SPECULAR = 326,
  117.     SPOT = 327,
  118.     STATE = 328,
  119.     TEXCOORD = 329,
  120.     TEXENV = 330,
  121.     TEXGEN = 331,
  122.     TEXGEN_Q = 332,
  123.     TEXGEN_R = 333,
  124.     TEXGEN_S = 334,
  125.     TEXGEN_T = 335,
  126.     TEXTURE = 336,
  127.     TRANSPOSE = 337,
  128.     TEXTURE_UNIT = 338,
  129.     TEX_1D = 339,
  130.     TEX_2D = 340,
  131.     TEX_3D = 341,
  132.     TEX_CUBE = 342,
  133.     TEX_RECT = 343,
  134.     TEX_SHADOW1D = 344,
  135.     TEX_SHADOW2D = 345,
  136.     TEX_SHADOWRECT = 346,
  137.     TEX_ARRAY1D = 347,
  138.     TEX_ARRAY2D = 348,
  139.     TEX_ARRAYSHADOW1D = 349,
  140.     TEX_ARRAYSHADOW2D = 350,
  141.     VERTEX = 351,
  142.     VTXATTRIB = 352,
  143.     WEIGHT = 353,
  144.     IDENTIFIER = 354,
  145.     USED_IDENTIFIER = 355,
  146.     MASK4 = 356,
  147.     MASK3 = 357,
  148.     MASK2 = 358,
  149.     MASK1 = 359,
  150.     SWIZZLE = 360,
  151.     DOT_DOT = 361,
  152.     DOT = 362
  153.   };
  154. #endif
  155.  
  156. /* Value type.  */
  157. #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
  158.  
  159. union YYSTYPE
  160. {
  161. #line 126 "../../../src/mesa/program/program_parse.y" /* yacc.c:1909  */
  162.  
  163.    struct asm_instruction *inst;
  164.    struct asm_symbol *sym;
  165.    struct asm_symbol temp_sym;
  166.    struct asm_swizzle_mask swiz_mask;
  167.    struct asm_src_register src_reg;
  168.    struct prog_dst_register dst_reg;
  169.    struct prog_instruction temp_inst;
  170.    char *string;
  171.    unsigned result;
  172.    unsigned attrib;
  173.    int integer;
  174.    float real;
  175.    gl_state_index state[STATE_LENGTH];
  176.    int negate;
  177.    struct asm_vector vector;
  178.    gl_inst_opcode opcode;
  179.  
  180.    struct {
  181.       unsigned swz;
  182.       unsigned rgba_valid:1;
  183.       unsigned xyzw_valid:1;
  184.       unsigned negate:1;
  185.    } ext_swizzle;
  186.  
  187. #line 188 "program/program_parse.tab.h" /* yacc.c:1909  */
  188. };
  189.  
  190. typedef union YYSTYPE YYSTYPE;
  191. # define YYSTYPE_IS_TRIVIAL 1
  192. # define YYSTYPE_IS_DECLARED 1
  193. #endif
  194.  
  195. /* Location type.  */
  196. #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
  197. typedef struct YYLTYPE YYLTYPE;
  198. struct YYLTYPE
  199. {
  200.   int first_line;
  201.   int first_column;
  202.   int last_line;
  203.   int last_column;
  204. };
  205. # define YYLTYPE_IS_DECLARED 1
  206. # define YYLTYPE_IS_TRIVIAL 1
  207. #endif
  208.  
  209.  
  210.  
  211. int _mesa_program_parse (struct asm_parser_state *state);
  212.  
  213. #endif /* !YY__MESA_PROGRAM_PROGRAM_PROGRAM_PARSE_TAB_H_INCLUDED  */
  214.