zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
glslang_lex.cpp File Reference
#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 voidyyscan_t
 

Functions

static int check_type (yyscan_t yyscanner)
 
int glslang_finalize (TParseContext *context)
 
int glslang_initialize (TParseContext *context)
 
int glslang_scan (size_t count, const char *const string[], const int length[], TParseContext *context)
 
 if (!yyg->yy_init)
 
static int input (yyscan_t yyscanner)
 
static int reserved_word (yyscan_t yyscanner)
 
static yy_size_t string_input (char *buf, yy_size_t max_size, yyscan_t yyscanner)
 
 while (1)
 
YY_BUFFER_STATE yy_create_buffer (FILE *file, int size, yyscan_t yyscanner)
 
void yy_delete_buffer (YY_BUFFER_STATE b, yyscan_t yyscanner)
 
static void yy_fatal_error (yyconst char msg[], yyscan_t yyscanner)
 
static void yy_fatal_error (yyconst char *msg, yyscan_t yyscanner)
 
void yy_flush_buffer (YY_BUFFER_STATE b, yyscan_t yyscanner)
 
static int yy_get_next_buffer (yyscan_t yyscanner)
 
static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
 
static void yy_init_buffer (YY_BUFFER_STATE b, FILE *file, yyscan_t yyscanner)
 
static int yy_init_globals (yyscan_t yyscanner)
 
static void yy_load_buffer_state (yyscan_t yyscanner)
 
YY_BUFFER_STATE yy_scan_buffer (char *base, yy_size_t size, yyscan_t yyscanner)
 
YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes, yy_size_t len, yyscan_t yyscanner)
 
YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str, yyscan_t yyscanner)
 
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer, yyscan_t yyscanner)
 
static yy_state_type yy_try_NUL_trans (yy_state_type current_state, yyscan_t yyscanner)
 
voidyyalloc (yy_size_t, yyscan_t yyscanner)
 
static void yyensure_buffer_stack (yyscan_t yyscanner)
 
void yyfree (void *, yyscan_t yyscanner)
 
int yyget_column (yyscan_t yyscanner)
 
int yyget_debug (yyscan_t yyscanner)
 
YY_EXTRA_TYPE yyget_extra (yyscan_t yyscanner)
 
FILE * yyget_in (yyscan_t yyscanner)
 
yy_size_t yyget_leng (yyscan_t yyscanner)
 
int yyget_lineno (yyscan_t yyscanner)
 
YYLTYPEyyget_lloc (yyscan_t yyscanner)
 
YYSTYPEyyget_lval (yyscan_t yyscanner)
 
FILE * yyget_out (yyscan_t yyscanner)
 
char * yyget_text (yyscan_t yyscanner)
 
int yylex (YYSTYPE *yylval_param, YYLTYPE *yylloc_param, yyscan_t yyscanner)
 
int yylex_destroy (yyscan_t yyscanner)
 
int yylex_init (yyscan_t *scanner)
 
int yylex_init_extra (YY_EXTRA_TYPE user_defined, yyscan_t *scanner)
 
void yypop_buffer_state (yyscan_t yyscanner)
 
void yypush_buffer_state (YY_BUFFER_STATE new_buffer, yyscan_t yyscanner)
 
voidyyrealloc (void *, yy_size_t, yyscan_t yyscanner)
 
void yyrestart (FILE *input_file, yyscan_t yyscanner)
 
void yyset_column (int column_no, yyscan_t yyscanner)
 
void yyset_debug (int debug_flag, yyscan_t yyscanner)
 
void yyset_extra (YY_EXTRA_TYPE user_defined, yyscan_t yyscanner)
 
void yyset_in (FILE *in_str, yyscan_t yyscanner)
 
void yyset_lineno (int line_number, yyscan_t yyscanner)
 
void yyset_lloc (YYLTYPE *yylloc_param, yyscan_t yyscanner)
 
void yyset_lval (YYSTYPE *yylval_param, yyscan_t yyscanner)
 
void yyset_out (FILE *out_str, yyscan_t yyscanner)
 

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
 

Macro Definition Documentation

#define BEGIN   yyg->yy_start = 1 + 2 *

Definition at line 164 of file glslang_lex.cpp.

#define ECHO   fwrite( yytext, yyleng, 1, yyout )

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
Value:
( yyg->yy_buffer_stack \
? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
: NULL)
#define NULL
Definition: ftobjs.h:61
struct yyguts_t * yyg

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().

#define YY_CURRENT_BUFFER_LVALUE   yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
#define YY_DECL
Value:
int yylex \
(YYSTYPE * yylval_param, YYLTYPE * yylloc_param , yyscan_t yyscanner)
#define yylex
union YYSTYPE YYSTYPE
void * yyscan_t

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
Value:
yyg->yytext_ptr = yy_bp; \
yyg->yy_hold_char = *yy_cp; \
*yy_cp = '\0'; \
yyg->yy_c_buf_p = yy_cp;
struct yyguts_t * yyg
#define yyleng
size_t yy_size_t
register char * yy_bp
register char * yy_cp

Definition at line 380 of file glslang_lex.cpp.

Referenced by while().

#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
#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)
#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)
Value:
do { \
for ( yyl = n; yyl < yyleng; ++yyl )\
if ( yytext[yyl] == '\n' )\
}while(0)
GLclampd n
Definition: glew.h:7287
for(;;)
#define yylineno
#define yyleng
size_t yy_size_t
#define yytext

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.

#define YY_NEW_FILE   yyrestart(yyin ,yyscanner )

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().

#define YY_SC_TO_UI (   c)    ((unsigned int) (unsigned char) c)

Definition at line 141 of file glslang_lex.cpp.

Referenced by while(), and yy_get_previous_state().

#define yy_set_bol (   at_bol)
Value:
{ \
} \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
}
static void yyensure_buffer_stack(yyscan_t yyscanner)
if(!yyg->yy_init)
#define YY_CURRENT_BUFFER
#define yyin
#define YY_BUF_SIZE
#define YY_CURRENT_BUFFER_LVALUE
YY_BUFFER_STATE yy_create_buffer(FILE *file, int size, yyscan_t yyscanner)

Definition at line 349 of file glslang_lex.cpp.

#define yy_set_interactive (   is_interactive)
Value:
{ \
} \
YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
}
static void yyensure_buffer_stack(yyscan_t yyscanner)
if(!yyg->yy_init)
#define YY_CURRENT_BUFFER
#define yyin
#define YY_BUF_SIZE
#define YY_CURRENT_BUFFER_LVALUE
YY_BUFFER_STATE yy_create_buffer(FILE *file, int size, yyscan_t yyscanner)

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
Value:
yylloc->first_file = yylloc->last_file = yycolumn; \
yylloc->first_line = yylloc->last_line = yylineno;
#define yylloc
#define yylineno
#define yycolumn

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
#define yyleng   yyg->yyleng_r

Definition at line 154 of file glslang_lex.cpp.

Referenced by while(), and yyget_leng().

#define yyless (   n)
Value:
do \
{ \
/* Undo effects of setting up yytext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
*yy_cp = yyg->yy_hold_char; \
yyg->yy_c_buf_p = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
YY_DO_BEFORE_ACTION; /* set up yytext again */ \
} \
while ( 0 )
GLclampd n
Definition: glew.h:7287
#define YY_MORE_ADJ
struct yyguts_t * yyg
#define YY_DO_BEFORE_ACTION
#define YY_LESS_LINENO(n)
int
Definition: SDL_systhread.c:37
register char * yy_bp
while(1)
register char * yy_cp

Definition at line 2503 of file glslang_lex.cpp.

#define yyless (   n)
Value:
do \
{ \
/* Undo effects of setting up yytext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
yytext[yyleng] = yyg->yy_hold_char; \
yyg->yy_c_buf_p = yytext + yyless_macro_arg; \
yyg->yy_hold_char = *yyg->yy_c_buf_p; \
*yyg->yy_c_buf_p = '\0'; \
yyleng = yyless_macro_arg; \
} \
while ( 0 )
GLclampd n
Definition: glew.h:7287
struct yyguts_t * yyg
#define YY_LESS_LINENO(n)
int
Definition: SDL_systhread.c:37
#define yyleng
while(1)
#define yytext

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.

#define yyterminate ( )    return YY_NULL

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 Documentation

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.

typedef size_t yy_size_t

Definition at line 197 of file glslang_lex.cpp.

typedef int yy_state_type

Definition at line 368 of file glslang_lex.cpp.

typedef void* yyscan_t

Definition at line 146 of file glslang_lex.cpp.

Function Documentation

int check_type ( yyscan_t  yyscanner)
static

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().

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().

static int input ( yyscan_t  yyscanner)
static
int reserved_word ( yyscan_t  yyscanner)
static

Definition at line 2892 of file glslang_lex.cpp.

References yyextra, yylloc, and yytext.

Referenced by while().

while ( )

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.

Parameters
fileA readable stream.
sizeThe character buffer size in bytes. When in doubt, use YY_BUF_SIZE.
yyscannerThe scanner object.
Returns
the allocated buffer state.

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.

Parameters
ba buffer created with yy_create_buffer()
yyscannerThe 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().

static void yy_fatal_error ( yyconst char  msg[],
yyscan_t  yyscanner 
)
static
static void yy_fatal_error ( yyconst char *  msg,
yyscan_t  yyscanner 
)
static

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.

Parameters
bthe buffer state to be flushed, usually YY_CURRENT_BUFFER.
yyscannerThe 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().

static yy_state_type yy_get_previous_state ( yyscan_t  yyscanner)
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 void yy_init_buffer ( YY_BUFFER_STATE  b,
FILE *  file,
yyscan_t  yyscanner 
)
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().

static int yy_init_globals ( yyscan_t  yyscanner)
static

Definition at line 2751 of file glslang_lex.cpp.

References NULL, yyin, and yyout.

Referenced by yylex_destroy(), yylex_init(), and yylex_init_extra().

static void yy_load_buffer_state ( yyscan_t  yyscanner)
static
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.

Parameters
basethe character buffer
sizethe size in bytes of the character buffer
yyscannerThe scanner object.
Returns
the newly allocated buffer state 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.

Parameters
bytesthe byte buffer to scan
lenthe number of bytes in the buffer pointed to by bytes.
yyscannerThe scanner object.
Returns
the newly allocated buffer state 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.

Parameters
yystra NUL-terminated string to scan
yyscannerThe scanner object.
Returns
the newly allocated buffer state object.
Note
If you want to scan bytes that may contain NUL values, then use yy_scan_bytes() instead.

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.

Parameters
new_bufferThe new input buffer.
yyscannerThe 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 yy_state_type yy_try_NUL_trans ( yy_state_type  current_state,
yyscan_t  yyscanner 
)
static

Definition at line 2027 of file glslang_lex.cpp.

References int, yy_accept, yy_base, yy_chk, yy_cp, yy_def, yy_meta, and yy_nxt.

Referenced by while().

void * yyalloc ( yy_size_t  size,
yyscan_t  yyscanner 
)
static void yyensure_buffer_stack ( yyscan_t  yyscanner)
static

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().

void yyfree ( void ptr,
yyscan_t  yyscanner 
)

Definition at line 2855 of file glslang_lex.cpp.

References free.

Referenced by yy_delete_buffer(), and yylex_destroy().

int yyget_column ( yyscan_t  yyscanner)

Get the current column number.

Parameters
yyscannerThe scanner object.

Definition at line 2544 of file glslang_lex.cpp.

References YY_CURRENT_BUFFER, and yycolumn.

int yyget_debug ( yyscan_t  yyscanner)

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.

Parameters
yyscannerThe 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.

Parameters
yyscannerThe scanner object.

Definition at line 2557 of file glslang_lex.cpp.

References yyin.

yy_size_t yyget_leng ( yyscan_t  yyscanner)

Get the length of the current token.

Parameters
yyscannerThe scanner object.

Definition at line 2575 of file glslang_lex.cpp.

References yyleng.

int yyget_lineno ( yyscan_t  yyscanner)

Get the current line number.

Parameters
yyscannerThe scanner object.

Definition at line 2531 of file glslang_lex.cpp.

References YY_CURRENT_BUFFER, and yylineno.

YYLTYPE * yyget_lloc ( yyscan_t  yyscanner)

Definition at line 2675 of file glslang_lex.cpp.

References yylloc.

YYSTYPE * yyget_lval ( yyscan_t  yyscanner)

Definition at line 2663 of file glslang_lex.cpp.

References yylval.

FILE * yyget_out ( yyscan_t  yyscanner)

Get the output stream.

Parameters
yyscannerThe scanner object.

Definition at line 2566 of file glslang_lex.cpp.

References yyout.

char * yyget_text ( yyscan_t  yyscanner)

Get the current token.

Parameters
yyscannerThe scanner object.

Definition at line 2585 of file glslang_lex.cpp.

References yytext.

int yylex ( YYSTYPE yylval_param,
YYLTYPE yylloc_param,
yyscan_t  yyscanner 
)
int yylex_destroy ( yyscan_t  yyscanner)
int yylex_init ( yyscan_t scanner)

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().

void yypop_buffer_state ( yyscan_t  yyscanner)

Removes and deletes the top of the stack, if present. The next element becomes the new top.

Parameters
yyscannerThe 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.

Parameters
new_bufferThe new state.
yyscannerThe 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().

void * yyrealloc ( void ptr,
yy_size_t  size,
yyscan_t  yyscanner 
)

Definition at line 2843 of file glslang_lex.cpp.

References realloc.

Referenced by yy_get_next_buffer(), and yyensure_buffer_stack().

void yyrestart ( FILE *  input_file,
yyscan_t  yyscanner 
)

Immediately switch to a different input stream.

Parameters
input_fileA readable stream.
yyscannerThe scanner object.
Note
This function does not reset the start condition to 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().

void yyset_column ( int  column_no,
yyscan_t  yyscanner 
)

Set the current column.

Parameters
line_number
yyscannerThe 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().

void yyset_debug ( int  debug_flag,
yyscan_t  yyscanner 
)

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.

Parameters
user_definedThe data to be associated with this scanner.
yyscannerThe scanner object.

Definition at line 2595 of file glslang_lex.cpp.

References yyextra.

Referenced by yylex_init_extra().

void yyset_in ( FILE *  in_str,
yyscan_t  yyscanner 
)

Set the input stream. This does not discard the current input buffer.

Parameters
in_strA readable stream.
yyscannerThe scanner object.
See Also
yy_switch_to_buffer

Definition at line 2637 of file glslang_lex.cpp.

References yyin.

void yyset_lineno ( int  line_number,
yyscan_t  yyscanner 
)

Set the current line number.

Parameters
line_number
yyscannerThe 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().

void yyset_lloc ( YYLTYPE yylloc_param,
yyscan_t  yyscanner 
)

Definition at line 2681 of file glslang_lex.cpp.

References yylloc.

void yyset_lval ( YYSTYPE yylval_param,
yyscan_t  yyscanner 
)

Definition at line 2669 of file glslang_lex.cpp.

References yylval.

void yyset_out ( FILE *  out_str,
yyscan_t  yyscanner 
)

Definition at line 2643 of file glslang_lex.cpp.

References yyout.

Variable Documentation

yyconst flex_int16_t yy_accept[443]
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.

yyconst flex_int16_t yy_base[445]
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.

yyconst flex_int16_t yy_chk[656]
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
Initial value:
{
register yy_state_type yy_current_state
int yy_state_type

The main scanner function which does all the work.

Definition at line 1027 of file glslang_lex.cpp.

yyconst flex_int16_t yy_def[445]
static

Definition at line 545 of file glslang_lex.cpp.

Referenced by while(), yy_get_previous_state(), and yy_try_NUL_trans().

yyconst flex_int32_t yy_ec[256]
static

Definition at line 449 of file glslang_lex.cpp.

Referenced by while(), and yy_get_previous_state().

yyconst flex_int32_t yy_meta[68]
static
Initial value:
=
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 2, 2, 2, 2, 2, 2,
2, 1, 1, 1, 1, 1, 1, 2, 2, 2,
2, 3, 3, 3, 3, 3, 1, 1, 1, 2,
2, 2, 2, 2, 2, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 1, 1, 1, 1
}

Definition at line 481 of file glslang_lex.cpp.

Referenced by while(), yy_get_previous_state(), and yy_try_NUL_trans().

yyconst flex_int16_t yy_nxt[656]
static

Definition at line 598 of file glslang_lex.cpp.

Referenced by while(), yy_get_previous_state(), and yy_try_NUL_trans().

yyconst flex_int32_t yy_rule_can_match_eol[148]
static
Initial value:
=
{ 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 1, 0, 0, }

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.