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_GLSL_GLSL_PARSER_H_INCLUDED
  34. # define YY__MESA_GLSL_GLSL_PARSER_H_INCLUDED
  35. /* Debug traces.  */
  36. #ifndef YYDEBUG
  37. # define YYDEBUG 0
  38. #endif
  39. #if YYDEBUG
  40. extern int _mesa_glsl_debug;
  41. #endif
  42.  
  43. /* Token type.  */
  44. #ifndef YYTOKENTYPE
  45. # define YYTOKENTYPE
  46.   enum yytokentype
  47.   {
  48.     ATTRIBUTE = 258,
  49.     CONST_TOK = 259,
  50.     BOOL_TOK = 260,
  51.     FLOAT_TOK = 261,
  52.     INT_TOK = 262,
  53.     UINT_TOK = 263,
  54.     DOUBLE_TOK = 264,
  55.     BREAK = 265,
  56.     CONTINUE = 266,
  57.     DO = 267,
  58.     ELSE = 268,
  59.     FOR = 269,
  60.     IF = 270,
  61.     DISCARD = 271,
  62.     RETURN = 272,
  63.     SWITCH = 273,
  64.     CASE = 274,
  65.     DEFAULT = 275,
  66.     BVEC2 = 276,
  67.     BVEC3 = 277,
  68.     BVEC4 = 278,
  69.     IVEC2 = 279,
  70.     IVEC3 = 280,
  71.     IVEC4 = 281,
  72.     UVEC2 = 282,
  73.     UVEC3 = 283,
  74.     UVEC4 = 284,
  75.     VEC2 = 285,
  76.     VEC3 = 286,
  77.     VEC4 = 287,
  78.     DVEC2 = 288,
  79.     DVEC3 = 289,
  80.     DVEC4 = 290,
  81.     CENTROID = 291,
  82.     IN_TOK = 292,
  83.     OUT_TOK = 293,
  84.     INOUT_TOK = 294,
  85.     UNIFORM = 295,
  86.     VARYING = 296,
  87.     SAMPLE = 297,
  88.     NOPERSPECTIVE = 298,
  89.     FLAT = 299,
  90.     SMOOTH = 300,
  91.     MAT2X2 = 301,
  92.     MAT2X3 = 302,
  93.     MAT2X4 = 303,
  94.     MAT3X2 = 304,
  95.     MAT3X3 = 305,
  96.     MAT3X4 = 306,
  97.     MAT4X2 = 307,
  98.     MAT4X3 = 308,
  99.     MAT4X4 = 309,
  100.     DMAT2X2 = 310,
  101.     DMAT2X3 = 311,
  102.     DMAT2X4 = 312,
  103.     DMAT3X2 = 313,
  104.     DMAT3X3 = 314,
  105.     DMAT3X4 = 315,
  106.     DMAT4X2 = 316,
  107.     DMAT4X3 = 317,
  108.     DMAT4X4 = 318,
  109.     SAMPLER1D = 319,
  110.     SAMPLER2D = 320,
  111.     SAMPLER3D = 321,
  112.     SAMPLERCUBE = 322,
  113.     SAMPLER1DSHADOW = 323,
  114.     SAMPLER2DSHADOW = 324,
  115.     SAMPLERCUBESHADOW = 325,
  116.     SAMPLER1DARRAY = 326,
  117.     SAMPLER2DARRAY = 327,
  118.     SAMPLER1DARRAYSHADOW = 328,
  119.     SAMPLER2DARRAYSHADOW = 329,
  120.     SAMPLERCUBEARRAY = 330,
  121.     SAMPLERCUBEARRAYSHADOW = 331,
  122.     ISAMPLER1D = 332,
  123.     ISAMPLER2D = 333,
  124.     ISAMPLER3D = 334,
  125.     ISAMPLERCUBE = 335,
  126.     ISAMPLER1DARRAY = 336,
  127.     ISAMPLER2DARRAY = 337,
  128.     ISAMPLERCUBEARRAY = 338,
  129.     USAMPLER1D = 339,
  130.     USAMPLER2D = 340,
  131.     USAMPLER3D = 341,
  132.     USAMPLERCUBE = 342,
  133.     USAMPLER1DARRAY = 343,
  134.     USAMPLER2DARRAY = 344,
  135.     USAMPLERCUBEARRAY = 345,
  136.     SAMPLER2DRECT = 346,
  137.     ISAMPLER2DRECT = 347,
  138.     USAMPLER2DRECT = 348,
  139.     SAMPLER2DRECTSHADOW = 349,
  140.     SAMPLERBUFFER = 350,
  141.     ISAMPLERBUFFER = 351,
  142.     USAMPLERBUFFER = 352,
  143.     SAMPLER2DMS = 353,
  144.     ISAMPLER2DMS = 354,
  145.     USAMPLER2DMS = 355,
  146.     SAMPLER2DMSARRAY = 356,
  147.     ISAMPLER2DMSARRAY = 357,
  148.     USAMPLER2DMSARRAY = 358,
  149.     SAMPLEREXTERNALOES = 359,
  150.     IMAGE1D = 360,
  151.     IMAGE2D = 361,
  152.     IMAGE3D = 362,
  153.     IMAGE2DRECT = 363,
  154.     IMAGECUBE = 364,
  155.     IMAGEBUFFER = 365,
  156.     IMAGE1DARRAY = 366,
  157.     IMAGE2DARRAY = 367,
  158.     IMAGECUBEARRAY = 368,
  159.     IMAGE2DMS = 369,
  160.     IMAGE2DMSARRAY = 370,
  161.     IIMAGE1D = 371,
  162.     IIMAGE2D = 372,
  163.     IIMAGE3D = 373,
  164.     IIMAGE2DRECT = 374,
  165.     IIMAGECUBE = 375,
  166.     IIMAGEBUFFER = 376,
  167.     IIMAGE1DARRAY = 377,
  168.     IIMAGE2DARRAY = 378,
  169.     IIMAGECUBEARRAY = 379,
  170.     IIMAGE2DMS = 380,
  171.     IIMAGE2DMSARRAY = 381,
  172.     UIMAGE1D = 382,
  173.     UIMAGE2D = 383,
  174.     UIMAGE3D = 384,
  175.     UIMAGE2DRECT = 385,
  176.     UIMAGECUBE = 386,
  177.     UIMAGEBUFFER = 387,
  178.     UIMAGE1DARRAY = 388,
  179.     UIMAGE2DARRAY = 389,
  180.     UIMAGECUBEARRAY = 390,
  181.     UIMAGE2DMS = 391,
  182.     UIMAGE2DMSARRAY = 392,
  183.     IMAGE1DSHADOW = 393,
  184.     IMAGE2DSHADOW = 394,
  185.     IMAGE1DARRAYSHADOW = 395,
  186.     IMAGE2DARRAYSHADOW = 396,
  187.     COHERENT = 397,
  188.     VOLATILE = 398,
  189.     RESTRICT = 399,
  190.     READONLY = 400,
  191.     WRITEONLY = 401,
  192.     ATOMIC_UINT = 402,
  193.     STRUCT = 403,
  194.     VOID_TOK = 404,
  195.     WHILE = 405,
  196.     IDENTIFIER = 406,
  197.     TYPE_IDENTIFIER = 407,
  198.     NEW_IDENTIFIER = 408,
  199.     FLOATCONSTANT = 409,
  200.     DOUBLECONSTANT = 410,
  201.     INTCONSTANT = 411,
  202.     UINTCONSTANT = 412,
  203.     BOOLCONSTANT = 413,
  204.     FIELD_SELECTION = 414,
  205.     LEFT_OP = 415,
  206.     RIGHT_OP = 416,
  207.     INC_OP = 417,
  208.     DEC_OP = 418,
  209.     LE_OP = 419,
  210.     GE_OP = 420,
  211.     EQ_OP = 421,
  212.     NE_OP = 422,
  213.     AND_OP = 423,
  214.     OR_OP = 424,
  215.     XOR_OP = 425,
  216.     MUL_ASSIGN = 426,
  217.     DIV_ASSIGN = 427,
  218.     ADD_ASSIGN = 428,
  219.     MOD_ASSIGN = 429,
  220.     LEFT_ASSIGN = 430,
  221.     RIGHT_ASSIGN = 431,
  222.     AND_ASSIGN = 432,
  223.     XOR_ASSIGN = 433,
  224.     OR_ASSIGN = 434,
  225.     SUB_ASSIGN = 435,
  226.     INVARIANT = 436,
  227.     PRECISE = 437,
  228.     LOWP = 438,
  229.     MEDIUMP = 439,
  230.     HIGHP = 440,
  231.     SUPERP = 441,
  232.     PRECISION = 442,
  233.     VERSION_TOK = 443,
  234.     EXTENSION = 444,
  235.     LINE = 445,
  236.     COLON = 446,
  237.     EOL = 447,
  238.     INTERFACE = 448,
  239.     OUTPUT = 449,
  240.     PRAGMA_DEBUG_ON = 450,
  241.     PRAGMA_DEBUG_OFF = 451,
  242.     PRAGMA_OPTIMIZE_ON = 452,
  243.     PRAGMA_OPTIMIZE_OFF = 453,
  244.     PRAGMA_INVARIANT_ALL = 454,
  245.     LAYOUT_TOK = 455,
  246.     ASM = 456,
  247.     CLASS = 457,
  248.     UNION = 458,
  249.     ENUM = 459,
  250.     TYPEDEF = 460,
  251.     TEMPLATE = 461,
  252.     THIS = 462,
  253.     PACKED_TOK = 463,
  254.     GOTO = 464,
  255.     INLINE_TOK = 465,
  256.     NOINLINE = 466,
  257.     PUBLIC_TOK = 467,
  258.     STATIC = 468,
  259.     EXTERN = 469,
  260.     EXTERNAL = 470,
  261.     LONG_TOK = 471,
  262.     SHORT_TOK = 472,
  263.     HALF = 473,
  264.     FIXED_TOK = 474,
  265.     UNSIGNED = 475,
  266.     INPUT_TOK = 476,
  267.     HVEC2 = 477,
  268.     HVEC3 = 478,
  269.     HVEC4 = 479,
  270.     FVEC2 = 480,
  271.     FVEC3 = 481,
  272.     FVEC4 = 482,
  273.     SAMPLER3DRECT = 483,
  274.     SIZEOF = 484,
  275.     CAST = 485,
  276.     NAMESPACE = 486,
  277.     USING = 487,
  278.     RESOURCE = 488,
  279.     PATCH = 489,
  280.     SUBROUTINE = 490,
  281.     ERROR_TOK = 491,
  282.     COMMON = 492,
  283.     PARTITION = 493,
  284.     ACTIVE = 494,
  285.     FILTER = 495,
  286.     ROW_MAJOR = 496,
  287.     THEN = 497
  288.   };
  289. #endif
  290.  
  291. /* Value type.  */
  292. #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
  293.  
  294. union YYSTYPE
  295. {
  296. #line 98 "../../../src/glsl/glsl_parser.yy" /* yacc.c:1909  */
  297.  
  298.    int n;
  299.    float real;
  300.    double dreal;
  301.    const char *identifier;
  302.  
  303.    struct ast_type_qualifier type_qualifier;
  304.  
  305.    ast_node *node;
  306.    ast_type_specifier *type_specifier;
  307.    ast_array_specifier *array_specifier;
  308.    ast_fully_specified_type *fully_specified_type;
  309.    ast_function *function;
  310.    ast_parameter_declarator *parameter_declarator;
  311.    ast_function_definition *function_definition;
  312.    ast_compound_statement *compound_statement;
  313.    ast_expression *expression;
  314.    ast_declarator_list *declarator_list;
  315.    ast_struct_specifier *struct_specifier;
  316.    ast_declaration *declaration;
  317.    ast_switch_body *switch_body;
  318.    ast_case_label *case_label;
  319.    ast_case_label_list *case_label_list;
  320.    ast_case_statement *case_statement;
  321.    ast_case_statement_list *case_statement_list;
  322.    ast_interface_block *interface_block;
  323.  
  324.    struct {
  325.       ast_node *cond;
  326.       ast_expression *rest;
  327.    } for_rest_statement;
  328.  
  329.    struct {
  330.       ast_node *then_statement;
  331.       ast_node *else_statement;
  332.    } selection_rest_statement;
  333.  
  334. #line 335 "./glsl_parser.h" /* yacc.c:1909  */
  335. };
  336.  
  337. typedef union YYSTYPE YYSTYPE;
  338. # define YYSTYPE_IS_TRIVIAL 1
  339. # define YYSTYPE_IS_DECLARED 1
  340. #endif
  341.  
  342. /* Location type.  */
  343. #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
  344. typedef struct YYLTYPE YYLTYPE;
  345. struct YYLTYPE
  346. {
  347.   int first_line;
  348.   int first_column;
  349.   int last_line;
  350.   int last_column;
  351. };
  352. # define YYLTYPE_IS_DECLARED 1
  353. # define YYLTYPE_IS_TRIVIAL 1
  354. #endif
  355.  
  356.  
  357.  
  358. int _mesa_glsl_parse (struct _mesa_glsl_parse_state *state);
  359.  
  360. #endif /* !YY__MESA_GLSL_GLSL_PARSER_H_INCLUDED  */
  361.