mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-02 20:36:50 -05:00
Regenerated GLSL parser.
This commit is contained in:
parent
66890595b9
commit
ed0e98654a
4 changed files with 2669 additions and 3205 deletions
1311
3rdparty/glsl-optimizer/src/glsl/glcpp/glcpp-parse.c
vendored
1311
3rdparty/glsl-optimizer/src/glsl/glcpp/glcpp-parse.c
vendored
File diff suppressed because it is too large
Load diff
|
@ -1,4 +1,4 @@
|
||||||
/* A Bison parser, made by GNU Bison 2.7.12-4996. */
|
/* A Bison parser, made by GNU Bison 3.0.2. */
|
||||||
|
|
||||||
/* Bison interface for Yacc-like parsers in C
|
/* Bison interface for Yacc-like parsers in C
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
|
|
||||||
#ifndef YY_GLCPP_PARSER_SRC_GLSL_GLCPP_GLCPP_PARSE_H_INCLUDED
|
#ifndef YY_GLCPP_PARSER_SRC_GLSL_GLCPP_GLCPP_PARSE_H_INCLUDED
|
||||||
# define YY_GLCPP_PARSER_SRC_GLSL_GLCPP_GLCPP_PARSE_H_INCLUDED
|
# define YY_GLCPP_PARSER_SRC_GLSL_GLCPP_GLCPP_PARSE_H_INCLUDED
|
||||||
/* Enabling traces. */
|
/* Debug traces. */
|
||||||
#ifndef YYDEBUG
|
#ifndef YYDEBUG
|
||||||
# define YYDEBUG 0
|
# define YYDEBUG 0
|
||||||
#endif
|
#endif
|
||||||
|
@ -40,12 +40,11 @@
|
||||||
extern int glcpp_parser_debug;
|
extern int glcpp_parser_debug;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Tokens. */
|
/* Token type. */
|
||||||
#ifndef YYTOKENTYPE
|
#ifndef YYTOKENTYPE
|
||||||
# define YYTOKENTYPE
|
# define YYTOKENTYPE
|
||||||
/* Put the tokens into the symbol table, so that GDB and other debuggers
|
enum yytokentype
|
||||||
know about them. */
|
{
|
||||||
enum yytokentype {
|
|
||||||
COMMA_FINAL = 258,
|
COMMA_FINAL = 258,
|
||||||
DEFINED = 259,
|
DEFINED = 259,
|
||||||
ELIF_EXPANDED = 260,
|
ELIF_EXPANDED = 260,
|
||||||
|
@ -74,49 +73,34 @@ extern int glcpp_parser_debug;
|
||||||
PASTE = 283,
|
PASTE = 283,
|
||||||
OR = 284,
|
OR = 284,
|
||||||
AND = 285,
|
AND = 285,
|
||||||
NOT_EQUAL = 286,
|
EQUAL = 286,
|
||||||
EQUAL = 287,
|
NOT_EQUAL = 287,
|
||||||
GREATER_OR_EQUAL = 288,
|
LESS_OR_EQUAL = 288,
|
||||||
LESS_OR_EQUAL = 289,
|
GREATER_OR_EQUAL = 289,
|
||||||
RIGHT_SHIFT = 290,
|
LEFT_SHIFT = 290,
|
||||||
LEFT_SHIFT = 291,
|
RIGHT_SHIFT = 291,
|
||||||
UNARY = 292
|
UNARY = 292
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Value type. */
|
||||||
|
|
||||||
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
/* Location type. */
|
||||||
|
|
||||||
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
|
|
||||||
# define YYSTYPE_IS_DECLARED 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
|
#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
|
||||||
typedef struct YYLTYPE
|
typedef struct YYLTYPE YYLTYPE;
|
||||||
|
struct YYLTYPE
|
||||||
{
|
{
|
||||||
int first_line;
|
int first_line;
|
||||||
int first_column;
|
int first_column;
|
||||||
int last_line;
|
int last_line;
|
||||||
int last_column;
|
int last_column;
|
||||||
} YYLTYPE;
|
};
|
||||||
# define yyltype YYLTYPE /* obsolescent; will be withdrawn */
|
|
||||||
# define YYLTYPE_IS_DECLARED 1
|
# define YYLTYPE_IS_DECLARED 1
|
||||||
# define YYLTYPE_IS_TRIVIAL 1
|
# define YYLTYPE_IS_TRIVIAL 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef YYPARSE_PARAM
|
|
||||||
#if defined __STDC__ || defined __cplusplus
|
|
||||||
int glcpp_parser_parse (void *YYPARSE_PARAM);
|
|
||||||
#else
|
|
||||||
int glcpp_parser_parse ();
|
|
||||||
#endif
|
|
||||||
#else /* ! YYPARSE_PARAM */
|
|
||||||
#if defined __STDC__ || defined __cplusplus
|
|
||||||
int glcpp_parser_parse (glcpp_parser_t *parser);
|
int glcpp_parser_parse (glcpp_parser_t *parser);
|
||||||
#else
|
|
||||||
int glcpp_parser_parse ();
|
|
||||||
#endif
|
|
||||||
#endif /* ! YYPARSE_PARAM */
|
|
||||||
|
|
||||||
#endif /* !YY_GLCPP_PARSER_SRC_GLSL_GLCPP_GLCPP_PARSE_H_INCLUDED */
|
#endif /* !YY_GLCPP_PARSER_SRC_GLSL_GLCPP_GLCPP_PARSE_H_INCLUDED */
|
||||||
|
|
2975
3rdparty/glsl-optimizer/src/glsl/glsl_parser.cpp
vendored
2975
3rdparty/glsl-optimizer/src/glsl/glsl_parser.cpp
vendored
File diff suppressed because it is too large
Load diff
46
3rdparty/glsl-optimizer/src/glsl/glsl_parser.h
vendored
46
3rdparty/glsl-optimizer/src/glsl/glsl_parser.h
vendored
|
@ -1,4 +1,4 @@
|
||||||
/* A Bison parser, made by GNU Bison 2.7.12-4996. */
|
/* A Bison parser, made by GNU Bison 3.0.2. */
|
||||||
|
|
||||||
/* Bison interface for Yacc-like parsers in C
|
/* Bison interface for Yacc-like parsers in C
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
|
|
||||||
#ifndef YY__MESA_GLSL_SRC_GLSL_GLSL_PARSER_H_INCLUDED
|
#ifndef YY__MESA_GLSL_SRC_GLSL_GLSL_PARSER_H_INCLUDED
|
||||||
# define YY__MESA_GLSL_SRC_GLSL_GLSL_PARSER_H_INCLUDED
|
# define YY__MESA_GLSL_SRC_GLSL_GLSL_PARSER_H_INCLUDED
|
||||||
/* Enabling traces. */
|
/* Debug traces. */
|
||||||
#ifndef YYDEBUG
|
#ifndef YYDEBUG
|
||||||
# define YYDEBUG 0
|
# define YYDEBUG 0
|
||||||
#endif
|
#endif
|
||||||
|
@ -40,12 +40,11 @@
|
||||||
extern int _mesa_glsl_debug;
|
extern int _mesa_glsl_debug;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Tokens. */
|
/* Token type. */
|
||||||
#ifndef YYTOKENTYPE
|
#ifndef YYTOKENTYPE
|
||||||
# define YYTOKENTYPE
|
# define YYTOKENTYPE
|
||||||
/* Put the tokens into the symbol table, so that GDB and other debuggers
|
enum yytokentype
|
||||||
know about them. */
|
{
|
||||||
enum yytokentype {
|
|
||||||
ATTRIBUTE = 258,
|
ATTRIBUTE = 258,
|
||||||
CONST_TOK = 259,
|
CONST_TOK = 259,
|
||||||
BOOL_TOK = 260,
|
BOOL_TOK = 260,
|
||||||
|
@ -279,12 +278,12 @@ extern int _mesa_glsl_debug;
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Value type. */
|
||||||
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
||||||
typedef union YYSTYPE
|
typedef union YYSTYPE YYSTYPE;
|
||||||
|
union YYSTYPE
|
||||||
{
|
{
|
||||||
/* Line 2053 of yacc.c */
|
#line 96 "src/glsl/glsl_parser.yy" /* yacc.c:1909 */
|
||||||
#line 96 "src/glsl/glsl_parser.yy"
|
|
||||||
|
|
||||||
int n;
|
int n;
|
||||||
float real;
|
float real;
|
||||||
|
@ -321,41 +320,28 @@ typedef union YYSTYPE
|
||||||
ast_node *else_statement;
|
ast_node *else_statement;
|
||||||
} selection_rest_statement;
|
} selection_rest_statement;
|
||||||
|
|
||||||
|
#line 324 "src/glsl/glsl_parser.h" /* yacc.c:1909 */
|
||||||
/* Line 2053 of yacc.c */
|
};
|
||||||
#line 327 "src/glsl/glsl_parser.h"
|
|
||||||
} YYSTYPE;
|
|
||||||
# define YYSTYPE_IS_TRIVIAL 1
|
# define YYSTYPE_IS_TRIVIAL 1
|
||||||
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
|
|
||||||
# define YYSTYPE_IS_DECLARED 1
|
# define YYSTYPE_IS_DECLARED 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Location type. */
|
||||||
#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
|
#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
|
||||||
typedef struct YYLTYPE
|
typedef struct YYLTYPE YYLTYPE;
|
||||||
|
struct YYLTYPE
|
||||||
{
|
{
|
||||||
int first_line;
|
int first_line;
|
||||||
int first_column;
|
int first_column;
|
||||||
int last_line;
|
int last_line;
|
||||||
int last_column;
|
int last_column;
|
||||||
} YYLTYPE;
|
};
|
||||||
# define yyltype YYLTYPE /* obsolescent; will be withdrawn */
|
|
||||||
# define YYLTYPE_IS_DECLARED 1
|
# define YYLTYPE_IS_DECLARED 1
|
||||||
# define YYLTYPE_IS_TRIVIAL 1
|
# define YYLTYPE_IS_TRIVIAL 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef YYPARSE_PARAM
|
|
||||||
#if defined __STDC__ || defined __cplusplus
|
|
||||||
int _mesa_glsl_parse (void *YYPARSE_PARAM);
|
|
||||||
#else
|
|
||||||
int _mesa_glsl_parse ();
|
|
||||||
#endif
|
|
||||||
#else /* ! YYPARSE_PARAM */
|
|
||||||
#if defined __STDC__ || defined __cplusplus
|
|
||||||
int _mesa_glsl_parse (struct _mesa_glsl_parse_state *state);
|
int _mesa_glsl_parse (struct _mesa_glsl_parse_state *state);
|
||||||
#else
|
|
||||||
int _mesa_glsl_parse ();
|
|
||||||
#endif
|
|
||||||
#endif /* ! YYPARSE_PARAM */
|
|
||||||
|
|
||||||
#endif /* !YY__MESA_GLSL_SRC_GLSL_GLSL_PARSER_H_INCLUDED */
|
#endif /* !YY__MESA_GLSL_SRC_GLSL_GLSL_PARSER_H_INCLUDED */
|
||||||
|
|
Loading…
Reference in a new issue