zenilib
0.5.3.0
|
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include "compiler/glslang.h"
#include "compiler/ParseHelper.h"
#include "compiler/preprocessor/Token.h"
#include "compiler/util.h"
#include "glslang_tab.h"
Go to the source code of this file.
Macros | |
#define | BEGIN yyg->yy_start = 1 + 2 * |
#define | ECHO fwrite( yytext, yyleng, 1, yyout ) |
#define | EOB_ACT_CONTINUE_SCAN 0 |
#define | EOB_ACT_END_OF_FILE 1 |
#define | EOB_ACT_LAST_MATCH 2 |
#define | FLEX_BETA |
#define | FLEX_SCANNER |
#define | FLEXINT_H |
#define | INITIAL 0 |
#define | INT16_MAX (32767) |
#define | INT16_MIN (-32767-1) |
#define | INT32_MAX (2147483647) |
#define | INT32_MIN (-2147483647-1) |
#define | INT8_MAX (127) |
#define | INT8_MIN (-128) |
#define | REJECT reject_used_but_not_detected |
#define | UINT16_MAX (65535U) |
#define | UINT32_MAX (4294967295U) |
#define | UINT8_MAX (255U) |
#define | unput(c) yyunput( c, yyg->yytext_ptr , yyscanner ) |
#define | YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
#define | YY_BREAK break; |
#define | YY_BUF_SIZE 16384 |
#define | YY_BUFFER_EOF_PENDING 2 |
#define | YY_BUFFER_NEW 0 |
#define | YY_BUFFER_NORMAL 1 |
#define | YY_CURRENT_BUFFER |
#define | YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] |
#define | YY_DECL |
#define | YY_DECL_IS_OURS 1 |
#define | YY_DO_BEFORE_ACTION |
#define | YY_END_OF_BUFFER 148 |
#define | YY_END_OF_BUFFER_CHAR 0 |
#define | YY_EXIT_FAILURE 2 |
#define | YY_EXTRA_TYPE TParseContext* |
#define | YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner) |
#define | yy_flex_debug yyg->yy_flex_debug_r |
#define | YY_FLEX_MAJOR_VERSION 2 |
#define | YY_FLEX_MINOR_VERSION 5 |
#define | YY_FLEX_SUBMINOR_VERSION 35 |
#define | YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER ,yyscanner) |
#define | YY_INPUT(buf, result, max_size) result = string_input(buf, max_size, yyscanner); |
#define | YY_INT_ALIGNED short int |
#define | YY_LESS_LINENO(n) |
#define | YY_MORE_ADJ 0 |
#define | yy_new_buffer yy_create_buffer |
#define | YY_NEW_FILE yyrestart(yyin ,yyscanner ) |
#define | YY_NULL 0 |
#define | YY_NUM_RULES 147 |
#define | YY_READ_BUF_SIZE 8192 |
#define | YY_RESTORE_YY_MORE_OFFSET |
#define | YY_RULE_SETUP YY_USER_ACTION |
#define | YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) |
#define | yy_set_bol(at_bol) |
#define | yy_set_interactive(is_interactive) |
#define | YY_SKIP_YYWRAP |
#define | YY_START ((yyg->yy_start - 1) / 2) |
#define | YY_START_STACK_INCR 25 |
#define | YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) |
#define | YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) |
#define | YY_STRUCT_YY_BUFFER_STATE |
#define | YY_TYPEDEF_YY_BUFFER_STATE |
#define | YY_TYPEDEF_YY_SCANNER_T |
#define | YY_TYPEDEF_YY_SIZE_T |
#define | YY_USER_ACTION |
#define | yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column) |
#define | yyconst |
#define | yyextra yyg->yyextra_r |
#define | yyin yyg->yyin_r |
#define | yyleng yyg->yyleng_r |
#define | yyless(n) |
#define | yyless(n) |
#define | yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno) |
#define | yylloc yyg->yylloc_r |
#define | yylval yyg->yylval_r |
#define | yymore() yymore_used_but_not_detected |
#define | yyout yyg->yyout_r |
#define | YYSTATE YY_START |
#define | YYTABLES_NAME "yytables" |
#define | yyterminate() return YY_NULL |
#define | yytext yyg->yytext_r |
#define | yytext_ptr yytext_r |
#define | yywrap(n) 1 |
Typedefs | |
typedef short int | flex_int16_t |
typedef int | flex_int32_t |
typedef signed char | flex_int8_t |
typedef unsigned short int | flex_uint16_t |
typedef unsigned int | flex_uint32_t |
typedef unsigned char | flex_uint8_t |
typedef struct yy_buffer_state * | YY_BUFFER_STATE |
typedef unsigned char | YY_CHAR |
typedef size_t | yy_size_t |
typedef int | yy_state_type |
typedef void * | yyscan_t |
Variables | |
static yyconst flex_int16_t | yy_accept [443] |
register int | yy_act |
static yyconst flex_int16_t | yy_base [445] |
register char * | yy_bp |
static yyconst flex_int16_t | yy_chk [656] |
register char * | yy_cp |
YY_DECL | |
static yyconst flex_int16_t | yy_def [445] |
static yyconst flex_int32_t | yy_ec [256] |
static yyconst flex_int32_t | yy_meta [68] |
static yyconst flex_int16_t | yy_nxt [656] |
static yyconst flex_int32_t | yy_rule_can_match_eol [148] |
struct yyguts_t * | yyg = (struct yyguts_t*)yyscanner |
yylloc = yylloc_param | |
yylval = yylval_param | |
#define BEGIN yyg->yy_start = 1 + 2 * |
Definition at line 164 of file glslang_lex.cpp.
Definition at line 937 of file glslang_lex.cpp.
Referenced by while().
#define EOB_ACT_CONTINUE_SCAN 0 |
Definition at line 200 of file glslang_lex.cpp.
Referenced by while(), and yy_get_next_buffer().
#define EOB_ACT_END_OF_FILE 1 |
Definition at line 201 of file glslang_lex.cpp.
Referenced by while(), and yy_get_next_buffer().
#define EOB_ACT_LAST_MATCH 2 |
Definition at line 202 of file glslang_lex.cpp.
Referenced by while(), and yy_get_next_buffer().
#define FLEX_BETA |
Definition at line 35 of file glslang_lex.cpp.
#define FLEX_SCANNER |
Definition at line 30 of file glslang_lex.cpp.
#define FLEXINT_H |
Definition at line 51 of file glslang_lex.cpp.
#define INITIAL 0 |
Definition at line 806 of file glslang_lex.cpp.
Referenced by while().
#define INT16_MAX (32767) |
Definition at line 95 of file glslang_lex.cpp.
#define INT16_MIN (-32767-1) |
Definition at line 86 of file glslang_lex.cpp.
#define INT32_MAX (2147483647) |
Definition at line 98 of file glslang_lex.cpp.
#define INT32_MIN (-2147483647-1) |
Definition at line 89 of file glslang_lex.cpp.
#define INT8_MAX (127) |
Definition at line 92 of file glslang_lex.cpp.
#define INT8_MIN (-128) |
Definition at line 83 of file glslang_lex.cpp.
#define REJECT reject_used_but_not_detected |
Definition at line 765 of file glslang_lex.cpp.
#define UINT16_MAX (65535U) |
Definition at line 104 of file glslang_lex.cpp.
#define UINT32_MAX (4294967295U) |
Definition at line 107 of file glslang_lex.cpp.
#define UINT8_MAX (255U) |
Definition at line 101 of file glslang_lex.cpp.
#define unput | ( | c | ) | yyunput( c, yyg->yytext_ptr , yyscanner ) |
Definition at line 233 of file glslang_lex.cpp.
#define YY_AT_BOL | ( | ) | (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
Definition at line 359 of file glslang_lex.cpp.
#define YY_BREAK break; |
Definition at line 1018 of file glslang_lex.cpp.
Referenced by while().
#define YY_BUF_SIZE 16384 |
Definition at line 183 of file glslang_lex.cpp.
Referenced by if(), and yyrestart().
#define YY_BUFFER_EOF_PENDING 2 |
Definition at line 295 of file glslang_lex.cpp.
Referenced by yy_get_next_buffer().
#define YY_BUFFER_NEW 0 |
Definition at line 283 of file glslang_lex.cpp.
Referenced by while(), yy_flush_buffer(), and yy_scan_buffer().
#define YY_BUFFER_NORMAL 1 |
Definition at line 284 of file glslang_lex.cpp.
Referenced by while().
#define YY_CURRENT_BUFFER |
Definition at line 306 of file glslang_lex.cpp.
Referenced by if(), yy_delete_buffer(), yy_flush_buffer(), yy_get_next_buffer(), yy_init_buffer(), yy_switch_to_buffer(), yyget_column(), yyget_lineno(), yylex_destroy(), yypop_buffer_state(), yypush_buffer_state(), yyrestart(), yyset_column(), and yyset_lineno().
Definition at line 313 of file glslang_lex.cpp.
Referenced by if(), while(), yy_delete_buffer(), yy_get_next_buffer(), yy_load_buffer_state(), yy_switch_to_buffer(), yylex_destroy(), yypop_buffer_state(), yypush_buffer_state(), and yyrestart().
#define YY_DECL |
Definition at line 1005 of file glslang_lex.cpp.
#define YY_DECL_IS_OURS 1 |
Definition at line 1000 of file glslang_lex.cpp.
#define YY_DO_BEFORE_ACTION |
#define YY_END_OF_BUFFER 148 |
Definition at line 388 of file glslang_lex.cpp.
Referenced by while().
#define YY_END_OF_BUFFER_CHAR 0 |
Definition at line 179 of file glslang_lex.cpp.
Referenced by yy_flush_buffer(), yy_get_next_buffer(), yy_scan_buffer(), and yy_scan_bytes().
#define YY_EXIT_FAILURE 2 |
Definition at line 2491 of file glslang_lex.cpp.
Referenced by yy_fatal_error().
#define YY_EXTRA_TYPE TParseContext* |
Definition at line 808 of file glslang_lex.cpp.
#define YY_FATAL_ERROR | ( | msg | ) | yy_fatal_error( msg , yyscanner) |
Definition at line 991 of file glslang_lex.cpp.
Referenced by string_input(), while(), yy_create_buffer(), yy_get_next_buffer(), yy_scan_buffer(), yy_scan_bytes(), and yyensure_buffer_stack().
#define yy_flex_debug yyg->yy_flex_debug_r |
Definition at line 158 of file glslang_lex.cpp.
Referenced by yyget_debug(), and yyset_debug().
#define YY_FLEX_MAJOR_VERSION 2 |
Definition at line 31 of file glslang_lex.cpp.
#define YY_FLEX_MINOR_VERSION 5 |
Definition at line 32 of file glslang_lex.cpp.
#define YY_FLEX_SUBMINOR_VERSION 35 |
Definition at line 33 of file glslang_lex.cpp.
#define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER ,yyscanner) |
Definition at line 327 of file glslang_lex.cpp.
#define YY_INPUT | ( | buf, | |
result, | |||
max_size | |||
) | result = string_input(buf, max_size, yyscanner); |
Definition at line 799 of file glslang_lex.cpp.
Referenced by yy_get_next_buffer().
#define YY_INT_ALIGNED short int |
Definition at line 26 of file glslang_lex.cpp.
#define YY_LESS_LINENO | ( | n | ) |
Definition at line 211 of file glslang_lex.cpp.
#define YY_MORE_ADJ 0 |
Definition at line 767 of file glslang_lex.cpp.
Referenced by while(), yy_get_next_buffer(), and yy_get_previous_state().
#define yy_new_buffer yy_create_buffer |
Definition at line 337 of file glslang_lex.cpp.
Definition at line 177 of file glslang_lex.cpp.
Referenced by while().
#define YY_NULL 0 |
Definition at line 134 of file glslang_lex.cpp.
#define YY_NUM_RULES 147 |
Definition at line 387 of file glslang_lex.cpp.
#define YY_READ_BUF_SIZE 8192 |
Definition at line 929 of file glslang_lex.cpp.
Referenced by yy_get_next_buffer().
#define YY_RESTORE_YY_MORE_OFFSET |
Definition at line 768 of file glslang_lex.cpp.
Referenced by while().
#define YY_RULE_SETUP YY_USER_ACTION |
Definition at line 1021 of file glslang_lex.cpp.
Referenced by while().
Definition at line 141 of file glslang_lex.cpp.
Referenced by while(), and yy_get_previous_state().
#define yy_set_bol | ( | at_bol | ) |
Definition at line 349 of file glslang_lex.cpp.
#define yy_set_interactive | ( | is_interactive | ) |
Definition at line 339 of file glslang_lex.cpp.
#define YY_SKIP_YYWRAP |
Definition at line 364 of file glslang_lex.cpp.
#define YY_START ((yyg->yy_start - 1) / 2) |
Definition at line 170 of file glslang_lex.cpp.
Referenced by while().
#define YY_START_STACK_INCR 25 |
Definition at line 986 of file glslang_lex.cpp.
#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) |
Definition at line 188 of file glslang_lex.cpp.
#define YY_STATE_EOF | ( | state | ) | (YY_END_OF_BUFFER + state + 1) |
Definition at line 174 of file glslang_lex.cpp.
Referenced by while().
#define YY_STRUCT_YY_BUFFER_STATE |
Definition at line 236 of file glslang_lex.cpp.
#define YY_TYPEDEF_YY_BUFFER_STATE |
Definition at line 191 of file glslang_lex.cpp.
#define YY_TYPEDEF_YY_SCANNER_T |
Definition at line 145 of file glslang_lex.cpp.
#define YY_TYPEDEF_YY_SIZE_T |
Definition at line 196 of file glslang_lex.cpp.
#define YY_USER_ACTION |
Definition at line 795 of file glslang_lex.cpp.
#define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column) |
Definition at line 157 of file glslang_lex.cpp.
Referenced by while(), yyget_column(), and yyset_column().
#define yyconst |
Definition at line 130 of file glslang_lex.cpp.
#define yyextra yyg->yyextra_r |
Definition at line 153 of file glslang_lex.cpp.
Referenced by check_type(), reserved_word(), yyget_extra(), and yyset_extra().
#define yyin yyg->yyin_r |
Definition at line 151 of file glslang_lex.cpp.
Referenced by if(), while(), yy_get_next_buffer(), yy_init_globals(), yy_load_buffer_state(), yyget_in(), yyrestart(), and yyset_in().
#define yyleng yyg->yyleng_r |
Definition at line 154 of file glslang_lex.cpp.
Referenced by while(), and yyget_leng().
#define yyless | ( | n | ) |
Definition at line 2503 of file glslang_lex.cpp.
#define yyless | ( | n | ) |
Definition at line 2503 of file glslang_lex.cpp.
#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno) |
Definition at line 156 of file glslang_lex.cpp.
Referenced by while(), yyget_lineno(), and yyset_lineno().
#define yylloc yyg->yylloc_r |
Definition at line 854 of file glslang_lex.cpp.
Referenced by ppget_lloc(), ppset_lloc(), reserved_word(), while(), yyget_lloc(), and yyset_lloc().
#define yylval yyg->yylval_r |
Definition at line 852 of file glslang_lex.cpp.
Referenced by check_type(), if(), ppget_lval(), ppset_lval(), while(), yyget_lval(), and yyset_lval().
#define yymore | ( | ) | yymore_used_but_not_detected |
Definition at line 766 of file glslang_lex.cpp.
#define yyout yyg->yyout_r |
Definition at line 152 of file glslang_lex.cpp.
Referenced by if(), yy_init_globals(), yyget_out(), and yyset_out().
#define YYSTATE YY_START |
Definition at line 171 of file glslang_lex.cpp.
#define YYTABLES_NAME "yytables" |
Definition at line 2860 of file glslang_lex.cpp.
Definition at line 981 of file glslang_lex.cpp.
Referenced by while().
#define yytext yyg->yytext_r |
Definition at line 155 of file glslang_lex.cpp.
Referenced by check_type(), reserved_word(), while(), and yyget_text().
#define yytext_ptr yytext_r |
Definition at line 370 of file glslang_lex.cpp.
#define yywrap | ( | n | ) | 1 |
Definition at line 363 of file glslang_lex.cpp.
Referenced by while().
typedef short int flex_int16_t |
Definition at line 74 of file glslang_lex.cpp.
typedef int flex_int32_t |
Definition at line 75 of file glslang_lex.cpp.
typedef signed char flex_int8_t |
Definition at line 73 of file glslang_lex.cpp.
typedef unsigned short int flex_uint16_t |
Definition at line 77 of file glslang_lex.cpp.
typedef unsigned int flex_uint32_t |
Definition at line 78 of file glslang_lex.cpp.
typedef unsigned char flex_uint8_t |
Definition at line 76 of file glslang_lex.cpp.
typedef struct yy_buffer_state* YY_BUFFER_STATE |
Definition at line 192 of file glslang_lex.cpp.
typedef unsigned char YY_CHAR |
Definition at line 366 of file glslang_lex.cpp.
Definition at line 197 of file glslang_lex.cpp.
typedef int yy_state_type |
Definition at line 368 of file glslang_lex.cpp.
Definition at line 146 of file glslang_lex.cpp.
Definition at line 2878 of file glslang_lex.cpp.
References IDENTIFIER, TVariable::isUserType(), TSymbol::isVariable(), TYPE_NAME, yyextra, yylval, and yytext.
Referenced by while().
int glslang_finalize | ( | TParseContext * | context | ) |
Definition at line 2909 of file glslang_lex.cpp.
References NULL, TParseContext::scanner, and yylex_destroy().
Referenced by PaParseStrings().
int glslang_initialize | ( | TParseContext * | context | ) |
Definition at line 2900 of file glslang_lex.cpp.
References NULL, TParseContext::scanner, and yylex_init_extra().
Referenced by PaParseStrings().
int glslang_scan | ( | size_t | count, |
const char *const | string[], | ||
const int | length[], | ||
TParseContext * | context | ||
) |
Definition at line 2919 of file glslang_lex.cpp.
References TParseContext::extensionBehavior(), TParseContext::fragmentPrecisionHigh, pp::Preprocessor::init(), NULL, pp::Preprocessor::predefineMacro(), TParseContext::preprocessor, TParseContext::scanner, yyrestart(), yyset_column(), and yyset_lineno().
Referenced by PaParseStrings().
if | ( | !yyg-> | yy_init | ) |
Definition at line 1037 of file glslang_lex.cpp.
References YY_BUF_SIZE, yy_create_buffer(), YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_load_buffer_state(), YY_USER_INIT, yyensure_buffer_stack(), yyin, and yyout.
Referenced by _transformSurfaceRGBA(), af_glyph_hints_reload(), af_latin2_metrics_init_blues(), af_latin_hints_compute_segments(), af_latin_metrics_init_blues(), BDF_Face_Init(), bdf_get_bdf_property(), Blit_RGB101010_index8(), Blit_RGB888_index8(), cff_builder_close_contour(), cff_decoder_parse_charstrings(), cff_decoder_prepare(), cff_face_done(), cff_face_init(), cff_get_cid_from_glyph_index(), cff_get_glyph_name(), cff_get_is_cid(), cff_get_kerning(), cff_parse_cid_ros(), cff_parse_font_bbox(), cff_parse_font_matrix(), cff_parse_private_dict(), cff_parser_run(), cff_ps_get_font_info(), cff_size_done(), check_header(), cid_face_init(), cid_load_keyword(), cid_parse_dict(), cid_parse_font_matrix(), cid_read_subrs(), compute_glyph_metrics(), deflateInit2_(), deflateReset(), fill_window(), FT_Add_Module(), ft_add_renderer(), ft_black_render(), FT_Get_Advances(), FT_Open_Face(), ft_smooth_render_generic(), ftc_basic_gnode_compare_faceid(), gray_raster_render(), gray_render_span(), gray_sweep(), gxv_kern_subtable_fmt1_entry_validate(), gxv_mort_subtable_type5_InsertList_validate(), gxv_morx_subtable_type2_ligActionIndex_validate(), Horizontal_Sweep_Drop(), inflate(), inflateBack(), inflateEnd(), inflateGetHeader(), inflatePrime(), inflateReset2(), inflateSetDictionary(), inflateSync(), lib3ds_file_read(), lib3ds_file_write(), lib3ds_io_cleanup(), lib3ds_mesh_read(), load_truetype_glyph(), otv_validate(), parse_dict(), pcf_load_font(), pfr_glyph_load_rec(), pfr_slot_load(), png_do_compose(), png_do_read_transformations(), png_get_pHYs_dpi(), png_handle_sBIT(), png_read_finish_row(), png_read_push_finish_row(), png_read_row(), png_write_IHDR(), ps_table_add(), ps_table_new(), PSP_GL_DeleteContext(), RLEAlphaSurface(), RLEColorkeySurface(), SDL_DrawLine1(), SDL_LoadWAV_RW(), SDL_SoftStretch(), SDLTest_ImageBlit(), SDLTest_ImageBlitAlpha(), SDLTest_ImageBlitBlend(), SDLTest_ImageBlitBlendAdd(), SDLTest_ImageBlitBlendAll(), SDLTest_ImageBlitBlendMod(), SDLTest_ImageBlitBlendNone(), SDLTest_ImageBlitColor(), SDLTest_ImageFace(), SDLTest_ImagePrimitives(), SDLTest_ImagePrimitivesBlend(), SDLTest_RunSuites(), sfnt_done_face(), sfnt_init_face(), sfnt_load_face(), SW_ActivateRenderer(), SW_RenderCopy(), SW_RenderCopyEx(), SW_SetRenderTarget(), SW_UpdateClipRect(), SW_UpdateViewport(), SW_WindowEvent(), t1_builder_close_contour(), T1_Face_Init(), T1_Get_Advances(), t1_get_index(), t1_lookup_glyph_by_stdcharcode(), T1_New_Parser(), T1_Open_Face(), T1_Parse_Glyph(), T1_Parse_Glyph_And_Get_Char_String(), t1operator_seac(), T42_Face_Init(), T42_Open_Face(), t42_parse_dict(), t42_parser_init(), tt_face_build_cmaps(), tt_face_done(), tt_face_get_ps_name(), tt_get_kerning(), TT_Load_Glyph(), TT_Load_Simple_Glyph(), tt_size_reset(), and updatewindow().
Definition at line 2862 of file glslang_lex.cpp.
References pp::SourceLocation::file, pp::Token::LAST, pp::SourceLocation::line, pp::Token::location, memcpy, pp::Token::text, pp::Token::type, YY_FATAL_ERROR, yyget_extra(), yyset_column(), and yyset_lineno().
while | ( | 1 | ) |
Definition at line 1063 of file glslang_lex.cpp.
References ADD_ASSIGN, AMPERSAND, AND_ASSIGN, AND_OP, assert, atof_dot(), ATTRIBUTE, BANG, BOOL_TYPE, BOOLCONSTANT, BREAK, BVEC2, BVEC3, BVEC4, CARET, check_type(), COLON, COMMA, CONST_QUAL, CONTINUE, DASH, DEC_OP, DISCARD, DIV_ASSIGN, DO, DOT, ECHO, ELSE, EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, EQ_OP, EQUAL, FLOAT_TYPE, FLOATCONSTANT, FOR, GE_OP, HIGH_PRECISION, IF, IN_QUAL, INC_OP, INITIAL, INOUT_QUAL, int, INT_TYPE, INTCONSTANT, INVARIANT, IVEC2, IVEC3, IVEC4, LE_OP, LEFT_ANGLE, LEFT_ASSIGN, LEFT_BRACE, LEFT_BRACKET, LEFT_OP, LEFT_PAREN, LOW_PRECISION, MATRIX2, MATRIX3, MATRIX4, MEDIUM_PRECISION, MOD_ASSIGN, MUL_ASSIGN, NE_OP, NewPoolTString(), OR_ASSIGN, OR_OP, OUT_QUAL, PERCENT, PLUS, PRECISION, QUESTION, reserved_word(), RETURN, RIGHT_ANGLE, RIGHT_ASSIGN, RIGHT_BRACE, RIGHT_BRACKET, RIGHT_OP, RIGHT_PAREN, SAMPLER2D, SAMPLER2DRECT, SAMPLER_EXTERNAL_OES, SAMPLERCUBE, SEMICOLON, SLASH, STAR, STRUCT, SUB_ASSIGN, TILDE, UNIFORM, VARYING, VEC2, VEC3, VEC4, VERTICAL_BAR, VOID_TYPE, WHILE, XOR_ASSIGN, XOR_OP, yy_accept, yy_base, YY_BREAK, YY_BUFFER_NEW, YY_BUFFER_NORMAL, yy_chk, yy_cp, YY_CURRENT_BUFFER_LVALUE, yy_def, YY_DO_BEFORE_ACTION, yy_ec, YY_END_OF_BUFFER, YY_FATAL_ERROR, yy_get_next_buffer(), yy_get_previous_state(), yy_meta, YY_MORE_ADJ, YY_NEW_FILE, yy_nxt, YY_RESTORE_YY_MORE_OFFSET, yy_rule_can_match_eol, YY_RULE_SETUP, YY_SC_TO_UI, YY_START, YY_STATE_EOF, yy_try_NUL_trans(), yycolumn, yyin, yyleng, yylineno, yylval, yyterminate, yytext, and yywrap.
Referenced by Blit1to2(), Blit4to4MaskAlpha(), MS_ADPCM_decode(), png_push_read_zTXt(), SDL_Blit_ABGR8888_ARGB8888_Blend_Scale(), SDL_Blit_ABGR8888_ARGB8888_Modulate_Blend_Scale(), SDL_Blit_ABGR8888_ARGB8888_Modulate_Scale(), SDL_Blit_ABGR8888_ARGB8888_Scale(), SDL_Blit_ABGR8888_BGR888_Blend_Scale(), SDL_Blit_ABGR8888_BGR888_Modulate_Blend_Scale(), SDL_Blit_ABGR8888_BGR888_Modulate_Scale(), SDL_Blit_ABGR8888_BGR888_Scale(), SDL_Blit_ABGR8888_RGB888_Blend_Scale(), SDL_Blit_ABGR8888_RGB888_Modulate_Blend_Scale(), SDL_Blit_ABGR8888_RGB888_Modulate_Scale(), SDL_Blit_ABGR8888_RGB888_Scale(), SDL_Blit_ARGB8888_ARGB8888_Blend_Scale(), SDL_Blit_ARGB8888_ARGB8888_Modulate_Blend_Scale(), SDL_Blit_ARGB8888_ARGB8888_Modulate_Scale(), SDL_Blit_ARGB8888_ARGB8888_Scale(), SDL_Blit_ARGB8888_BGR888_Blend_Scale(), SDL_Blit_ARGB8888_BGR888_Modulate_Blend_Scale(), SDL_Blit_ARGB8888_BGR888_Modulate_Scale(), SDL_Blit_ARGB8888_BGR888_Scale(), SDL_Blit_ARGB8888_RGB888_Blend_Scale(), SDL_Blit_ARGB8888_RGB888_Modulate_Blend_Scale(), SDL_Blit_ARGB8888_RGB888_Modulate_Scale(), SDL_Blit_ARGB8888_RGB888_Scale(), SDL_Blit_BGR888_ARGB8888_Blend_Scale(), SDL_Blit_BGR888_ARGB8888_Modulate_Blend_Scale(), SDL_Blit_BGR888_ARGB8888_Modulate_Scale(), SDL_Blit_BGR888_ARGB8888_Scale(), SDL_Blit_BGR888_BGR888_Blend_Scale(), SDL_Blit_BGR888_BGR888_Modulate_Blend_Scale(), SDL_Blit_BGR888_BGR888_Modulate_Scale(), SDL_Blit_BGR888_BGR888_Scale(), SDL_Blit_BGR888_RGB888_Blend_Scale(), SDL_Blit_BGR888_RGB888_Modulate_Blend_Scale(), SDL_Blit_BGR888_RGB888_Modulate_Scale(), SDL_Blit_BGR888_RGB888_Scale(), SDL_Blit_BGRA8888_ARGB8888_Blend_Scale(), SDL_Blit_BGRA8888_ARGB8888_Modulate_Blend_Scale(), SDL_Blit_BGRA8888_ARGB8888_Modulate_Scale(), SDL_Blit_BGRA8888_ARGB8888_Scale(), SDL_Blit_BGRA8888_BGR888_Blend_Scale(), SDL_Blit_BGRA8888_BGR888_Modulate_Blend_Scale(), SDL_Blit_BGRA8888_BGR888_Modulate_Scale(), SDL_Blit_BGRA8888_BGR888_Scale(), SDL_Blit_BGRA8888_RGB888_Blend_Scale(), SDL_Blit_BGRA8888_RGB888_Modulate_Blend_Scale(), SDL_Blit_BGRA8888_RGB888_Modulate_Scale(), SDL_Blit_BGRA8888_RGB888_Scale(), SDL_Blit_RGB888_ARGB8888_Blend_Scale(), SDL_Blit_RGB888_ARGB8888_Modulate_Blend_Scale(), SDL_Blit_RGB888_ARGB8888_Modulate_Scale(), SDL_Blit_RGB888_ARGB8888_Scale(), SDL_Blit_RGB888_BGR888_Blend_Scale(), SDL_Blit_RGB888_BGR888_Modulate_Blend_Scale(), SDL_Blit_RGB888_BGR888_Modulate_Scale(), SDL_Blit_RGB888_BGR888_Scale(), SDL_Blit_RGB888_RGB888_Blend_Scale(), SDL_Blit_RGB888_RGB888_Modulate_Blend_Scale(), SDL_Blit_RGB888_RGB888_Modulate_Scale(), SDL_Blit_RGB888_RGB888_Scale(), SDL_Blit_RGBA8888_ARGB8888_Blend_Scale(), SDL_Blit_RGBA8888_ARGB8888_Modulate_Blend_Scale(), SDL_Blit_RGBA8888_ARGB8888_Modulate_Scale(), SDL_Blit_RGBA8888_ARGB8888_Scale(), SDL_Blit_RGBA8888_BGR888_Blend_Scale(), SDL_Blit_RGBA8888_BGR888_Modulate_Blend_Scale(), SDL_Blit_RGBA8888_BGR888_Modulate_Scale(), SDL_Blit_RGBA8888_BGR888_Scale(), SDL_Blit_RGBA8888_RGB888_Blend_Scale(), SDL_Blit_RGBA8888_RGB888_Modulate_Blend_Scale(), SDL_Blit_RGBA8888_RGB888_Modulate_Scale(), SDL_Blit_RGBA8888_RGB888_Scale(), SDL_Blit_Slow(), and SDL_RunAudio().
YY_BUFFER_STATE yy_create_buffer | ( | FILE * | file, |
int | size, | ||
yyscan_t | yyscanner | ||
) |
Allocate and initialize an input buffer state.
file | A readable stream. |
size | The character buffer size in bytes. When in doubt, use YY_BUF_SIZE . |
yyscanner | The scanner object. |
Definition at line 2203 of file glslang_lex.cpp.
References YY_FATAL_ERROR, yy_init_buffer(), and yyalloc().
Referenced by if(), and yyrestart().
void yy_delete_buffer | ( | YY_BUFFER_STATE | b, |
yyscan_t | yyscanner | ||
) |
Destroy the buffer.
b | a buffer created with yy_create_buffer() |
yyscanner | The scanner object. |
Definition at line 2231 of file glslang_lex.cpp.
References YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, and yyfree().
Referenced by yylex_destroy(), and yypop_buffer_state().
Referenced by ppset_column(), ppset_lineno(), yyset_column(), and yyset_lineno().
Definition at line 2494 of file glslang_lex.cpp.
References YY_EXIT_FAILURE.
void yy_flush_buffer | ( | YY_BUFFER_STATE | b, |
yyscan_t | yyscanner | ||
) |
Discard all buffered characters. On the next scan, YY_INPUT will be called.
b | the buffer state to be flushed, usually YY_CURRENT_BUFFER . |
yyscanner | The scanner object. |
Definition at line 2280 of file glslang_lex.cpp.
References YY_BUFFER_NEW, YY_CURRENT_BUFFER, YY_END_OF_BUFFER_CHAR, and yy_load_buffer_state().
Referenced by yy_init_buffer().
Definition at line 1859 of file glslang_lex.cpp.
References EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, i, int, YY_BUFFER_EOF_PENDING, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, YY_INPUT, YY_MORE_ADJ, YY_READ_BUF_SIZE, yyin, yyrealloc(), and yyrestart().
Referenced by while().
|
static |
Definition at line 1994 of file glslang_lex.cpp.
References int, yy_accept, yy_base, yy_chk, yy_cp, yy_def, yy_ec, yy_meta, YY_MORE_ADJ, yy_nxt, and YY_SC_TO_UI.
Referenced by while().
|
static |
Definition at line 2251 of file glslang_lex.cpp.
References file, YY_CURRENT_BUFFER, and yy_flush_buffer().
Referenced by yy_create_buffer(), and yyrestart().
Definition at line 2751 of file glslang_lex.cpp.
References NULL, yyin, and yyout.
Referenced by yylex_destroy(), yylex_init(), and yylex_init_extra().
Definition at line 2188 of file glslang_lex.cpp.
References YY_CURRENT_BUFFER_LVALUE, and yyin.
Referenced by if(), yy_flush_buffer(), yy_switch_to_buffer(), yypop_buffer_state(), yypush_buffer_state(), and yyrestart().
YY_BUFFER_STATE yy_scan_buffer | ( | char * | base, |
yy_size_t | size, | ||
yyscan_t | yyscanner | ||
) |
Setup the input buffer state to scan directly from a user-specified character buffer.
base | the character buffer |
size | the size in bytes of the character buffer |
yyscanner | The scanner object. |
Definition at line 2411 of file glslang_lex.cpp.
References YY_BUFFER_NEW, YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, yy_switch_to_buffer(), and yyalloc().
Referenced by yy_scan_bytes().
YY_BUFFER_STATE yy_scan_bytes | ( | yyconst char * | yybytes, |
yy_size_t | _yybytes_len, | ||
yyscan_t | yyscanner | ||
) |
Setup the input buffer state to scan the given bytes. The next call to yylex() will scan from a copy of bytes.
bytes | the byte buffer to scan |
len | the number of bytes in the buffer pointed to by bytes. |
yyscanner | The scanner object. |
Definition at line 2461 of file glslang_lex.cpp.
References i, YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, yy_scan_buffer(), and yyalloc().
Referenced by yy_scan_string().
YY_BUFFER_STATE yy_scan_string | ( | yyconst char * | yystr, |
yyscan_t | yyscanner | ||
) |
Setup the input buffer state to scan a string. The next call to yylex() will scan from a copy of str.
yystr | a NUL-terminated string to scan |
yyscanner | The scanner object. |
Definition at line 2448 of file glslang_lex.cpp.
References yy_scan_bytes().
void yy_switch_to_buffer | ( | YY_BUFFER_STATE | new_buffer, |
yyscan_t | yyscanner | ||
) |
Switch to a different input buffer.
new_buffer | The new input buffer. |
yyscanner | The scanner object. |
Definition at line 2156 of file glslang_lex.cpp.
References YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_load_buffer_state(), and yyensure_buffer_stack().
Referenced by yy_scan_buffer().
|
static |
Definition at line 2838 of file glslang_lex.cpp.
References malloc.
Referenced by if(), yy_create_buffer(), yy_scan_buffer(), yy_scan_bytes(), yyensure_buffer_stack(), yylex_init(), and yylex_init_extra().
Definition at line 2361 of file glslang_lex.cpp.
References memset, YY_FATAL_ERROR, yyalloc(), and yyrealloc().
Referenced by if(), yy_switch_to_buffer(), yypush_buffer_state(), and yyrestart().
Definition at line 2855 of file glslang_lex.cpp.
References free.
Referenced by yy_delete_buffer(), and yylex_destroy().
Get the current column number.
yyscanner | The scanner object. |
Definition at line 2544 of file glslang_lex.cpp.
References YY_CURRENT_BUFFER, and yycolumn.
Definition at line 2649 of file glslang_lex.cpp.
References yy_flex_debug.
YY_EXTRA_TYPE yyget_extra | ( | yyscan_t | yyscanner | ) |
Get the user-defined data for this scanner.
yyscanner | The scanner object. |
Definition at line 2522 of file glslang_lex.cpp.
References yyextra.
Referenced by string_input().
FILE * yyget_in | ( | yyscan_t | yyscanner | ) |
Get the input stream.
yyscanner | The scanner object. |
Definition at line 2557 of file glslang_lex.cpp.
References yyin.
Get the length of the current token.
yyscanner | The scanner object. |
Definition at line 2575 of file glslang_lex.cpp.
References yyleng.
Get the current line number.
yyscanner | The scanner object. |
Definition at line 2531 of file glslang_lex.cpp.
References YY_CURRENT_BUFFER, and yylineno.
Definition at line 2675 of file glslang_lex.cpp.
References yylloc.
Definition at line 2663 of file glslang_lex.cpp.
References yylval.
FILE * yyget_out | ( | yyscan_t | yyscanner | ) |
Get the output stream.
yyscanner | The scanner object. |
Definition at line 2566 of file glslang_lex.cpp.
References yyout.
char * yyget_text | ( | yyscan_t | yyscanner | ) |
Get the current token.
yyscanner | The scanner object. |
Definition at line 2585 of file glslang_lex.cpp.
References yytext.
Definition at line 2785 of file glslang_lex.cpp.
References NULL, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_delete_buffer(), yy_init_globals(), yyfree(), and yypop_buffer_state().
Referenced by glslang_finalize().
Definition at line 2694 of file glslang_lex.cpp.
References memset, NULL, yy_init_globals(), and yyalloc().
int yylex_init_extra | ( | YY_EXTRA_TYPE | user_defined, |
yyscan_t * | scanner | ||
) |
Definition at line 2723 of file glslang_lex.cpp.
References memset, NULL, yy_init_globals(), yyalloc(), and yyset_extra().
Referenced by glslang_initialize().
Removes and deletes the top of the stack, if present. The next element becomes the new top.
yyscanner | The scanner object. |
Definition at line 2341 of file glslang_lex.cpp.
References NULL, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_delete_buffer(), and yy_load_buffer_state().
Referenced by yylex_destroy().
void yypush_buffer_state | ( | YY_BUFFER_STATE | new_buffer, |
yyscan_t | yyscanner | ||
) |
Pushes the new state onto the stack. The new state becomes the current state. This function will allocate the stack if necessary.
new_buffer | The new state. |
yyscanner | The scanner object. |
Definition at line 2310 of file glslang_lex.cpp.
References NULL, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_load_buffer_state(), and yyensure_buffer_stack().
Definition at line 2843 of file glslang_lex.cpp.
References realloc.
Referenced by yy_get_next_buffer(), and yyensure_buffer_stack().
Immediately switch to a different input stream.
input_file | A readable stream. |
yyscanner | The scanner object. |
INITIAL
. Definition at line 2138 of file glslang_lex.cpp.
References YY_BUF_SIZE, yy_create_buffer(), YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_init_buffer(), yy_load_buffer_state(), yyensure_buffer_stack(), and yyin.
Referenced by glslang_scan(), and yy_get_next_buffer().
Set the current column.
line_number | |
yyscanner | The scanner object. |
Definition at line 2620 of file glslang_lex.cpp.
References YY_CURRENT_BUFFER, yy_fatal_error(), and yycolumn.
Referenced by glslang_scan(), and string_input().
Definition at line 2655 of file glslang_lex.cpp.
References yy_flex_debug.
void yyset_extra | ( | YY_EXTRA_TYPE | user_defined, |
yyscan_t | yyscanner | ||
) |
Set the user-defined data. This data is never touched by the scanner.
user_defined | The data to be associated with this scanner. |
yyscanner | The scanner object. |
Definition at line 2595 of file glslang_lex.cpp.
References yyextra.
Referenced by yylex_init_extra().
Set the input stream. This does not discard the current input buffer.
in_str | A readable stream. |
yyscanner | The scanner object. |
Definition at line 2637 of file glslang_lex.cpp.
References yyin.
Set the current line number.
line_number | |
yyscanner | The scanner object. |
Definition at line 2605 of file glslang_lex.cpp.
References YY_CURRENT_BUFFER, yy_fatal_error(), and yylineno.
Referenced by glslang_scan(), and string_input().
Definition at line 2681 of file glslang_lex.cpp.
References yylloc.
Definition at line 2669 of file glslang_lex.cpp.
References yylval.
Definition at line 2643 of file glslang_lex.cpp.
References yyout.
|
static |
Definition at line 396 of file glslang_lex.cpp.
Referenced by while(), yy_get_previous_state(), and yy_try_NUL_trans().
register int yy_act |
Definition at line 1030 of file glslang_lex.cpp.
|
static |
Definition at line 492 of file glslang_lex.cpp.
Referenced by while(), yy_get_previous_state(), and yy_try_NUL_trans().
register char * yy_bp |
Definition at line 1029 of file glslang_lex.cpp.
|
static |
Definition at line 674 of file glslang_lex.cpp.
Referenced by while(), yy_get_previous_state(), and yy_try_NUL_trans().
register char* yy_cp |
Definition at line 1029 of file glslang_lex.cpp.
Referenced by while(), yy_get_previous_state(), and yy_try_NUL_trans().
YY_DECL |
The main scanner function which does all the work.
Definition at line 1027 of file glslang_lex.cpp.
|
static |
Definition at line 545 of file glslang_lex.cpp.
Referenced by while(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
Definition at line 449 of file glslang_lex.cpp.
Referenced by while(), and yy_get_previous_state().
|
static |
Definition at line 481 of file glslang_lex.cpp.
Referenced by while(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
Definition at line 598 of file glslang_lex.cpp.
Referenced by while(), yy_get_previous_state(), and yy_try_NUL_trans().
|
static |
Definition at line 751 of file glslang_lex.cpp.
Referenced by while().
struct yyguts_t* yyg = (struct yyguts_t*)yyscanner |
Definition at line 1031 of file glslang_lex.cpp.
yylloc = yylloc_param |
Definition at line 1035 of file glslang_lex.cpp.
yylval = yylval_param |
Definition at line 1033 of file glslang_lex.cpp.