Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | RSS feed

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