zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
glslang_tab.cpp File Reference

Go to the source code of this file.

Macros

#define FRAG_ONLY(S, L)
 
#define VERTEX_ONLY(S, L)
 
#define YY_(Msgid)   Msgid
 
#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
 
#define YY_IGNORE_MAYBE_UNINITIALIZED_END
 
#define YY_INITIAL_VALUE(Value)   = Value
 
#define YY_LOCATION_PRINT(File, Loc)   ((void) 0)
 
#define YY_NULL   0
 
#define YY_REDUCE_PRINT(Rule)
 
#define YY_STACK_PRINT(Bottom, Top)
 
#define YY_SYMBOL_PRINT(Title, Type, Value, Location)
 
#define YY_YY_GLSLANG_TAB_H_INCLUDED
 
#define YYABORT   goto yyabortlab
 
#define YYACCEPT   goto yyacceptlab
 
#define YYBACKUP(Token, Value)
 
#define YYBISON   1
 
#define YYBISON_VERSION   "2.7"
 
#define yyclearin   (yychar = YYEMPTY)
 
#define YYCOPY(Dst, Src, Count)
 
#define YYCOPY_NEEDED   1
 
#define YYDEBUG   0
 
#define YYDPRINTF(Args)
 
#define YYEMPTY   (-2)
 
#define YYENABLE_NLS   0
 
#define YYEOF   0
 
#define YYERRCODE   256
 
#define yyerrok   (yyerrstatus = 0)
 
#define YYERROR   goto yyerrorlab
 
#define YYERROR_VERBOSE   0
 
#define YYFAIL   goto yyerrlab
 
#define YYFINAL   74
 
#define YYFREE   free
 
#define YYID(N)   (N)
 
#define YYINITDEPTH   200
 
#define YYLAST   1490
 
#define YYLEX   yylex (&yylval, &yylloc, YYLEX_PARAM)
 
#define YYLEX_PARAM   context->scanner
 
#define YYLLOC_DEFAULT(Current, Rhs, N)
 
#define YYLTYPE   TSourceLoc
 
#define YYLTYPE_IS_DECLARED   1
 
#define YYMALLOC   malloc
 
#define YYMAXDEPTH   10000
 
#define YYMAXUTOK   349
 
#define YYNNTS   84
 
#define YYNRULES   202
 
#define YYNSTATES   307
 
#define YYNTOKENS   95
 
#define YYPACT_NINF   -261
 
#define yypact_value_is_default(Yystate)   (!!((Yystate) == (-261)))
 
#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N), yylsp -= (N))
 
#define YYPULL   1
 
#define YYPURE   1
 
#define YYPUSH   0
 
#define YYRECOVERING()   (!!yyerrstatus)
 
#define YYRHSLOC(Rhs, K)   ((Rhs)[K])
 
#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)
 
#define YYSIZE_T   unsigned int
 
#define YYSKELETON_NAME   "yacc.c"
 
#define YYSTACK_ALLOC   YYMALLOC
 
#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM
 
#define YYSTACK_BYTES(N)
 
#define YYSTACK_FREE   YYFREE
 
#define YYSTACK_GAP_MAXIMUM   (sizeof (union yyalloc) - 1)
 
#define YYSTACK_RELOCATE(Stack_alloc, Stack)
 
#define yystype   YYSTYPE /* obsolescent; will be withdrawn */
 
#define YYSTYPE_IS_DECLARED   1
 
#define YYSTYPE_IS_TRIVIAL   1
 
#define YYTABLE_NINF   -166
 
#define yytable_value_is_error(Yytable_value)   YYID (0)
 
#define YYTERROR   1
 
#define YYTOKENTYPE
 
#define YYTRANSLATE(YYX)   ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
 
#define YYUNDEFTOK   2
 
#define YYUSE(E)   ((void) (E))
 

Typedefs

typedef union YYSTYPE YYSTYPE
 
typedef short int yytype_int16
 
typedef short int yytype_int8
 
typedef unsigned short int yytype_uint16
 
typedef unsigned char yytype_uint8
 

Enumerations

enum  yytokentype {
  INVARIANT = 258, HIGH_PRECISION = 259, MEDIUM_PRECISION = 260, LOW_PRECISION = 261,
  PRECISION = 262, ATTRIBUTE = 263, CONST_QUAL = 264, BOOL_TYPE = 265,
  FLOAT_TYPE = 266, INT_TYPE = 267, BREAK = 268, CONTINUE = 269,
  DO = 270, ELSE = 271, FOR = 272, IF = 273,
  DISCARD = 274, RETURN = 275, BVEC2 = 276, BVEC3 = 277,
  BVEC4 = 278, IVEC2 = 279, IVEC3 = 280, IVEC4 = 281,
  VEC2 = 282, VEC3 = 283, VEC4 = 284, MATRIX2 = 285,
  MATRIX3 = 286, MATRIX4 = 287, IN_QUAL = 288, OUT_QUAL = 289,
  INOUT_QUAL = 290, UNIFORM = 291, VARYING = 292, STRUCT = 293,
  VOID_TYPE = 294, WHILE = 295, SAMPLER2D = 296, SAMPLERCUBE = 297,
  SAMPLER_EXTERNAL_OES = 298, SAMPLER2DRECT = 299, IDENTIFIER = 300, TYPE_NAME = 301,
  FLOATCONSTANT = 302, INTCONSTANT = 303, BOOLCONSTANT = 304, LEFT_OP = 305,
  RIGHT_OP = 306, INC_OP = 307, DEC_OP = 308, LE_OP = 309,
  GE_OP = 310, EQ_OP = 311, NE_OP = 312, AND_OP = 313,
  OR_OP = 314, XOR_OP = 315, MUL_ASSIGN = 316, DIV_ASSIGN = 317,
  ADD_ASSIGN = 318, MOD_ASSIGN = 319, LEFT_ASSIGN = 320, RIGHT_ASSIGN = 321,
  AND_ASSIGN = 322, XOR_ASSIGN = 323, OR_ASSIGN = 324, SUB_ASSIGN = 325,
  LEFT_PAREN = 326, RIGHT_PAREN = 327, LEFT_BRACKET = 328, RIGHT_BRACKET = 329,
  LEFT_BRACE = 330, RIGHT_BRACE = 331, DOT = 332, COMMA = 333,
  COLON = 334, EQUAL = 335, SEMICOLON = 336, BANG = 337,
  DASH = 338, TILDE = 339, PLUS = 340, STAR = 341,
  SLASH = 342, PERCENT = 343, LEFT_ANGLE = 344, RIGHT_ANGLE = 345,
  VERTICAL_BAR = 346, CARET = 347, AMPERSAND = 348, QUESTION = 349,
  INVARIANT = 258, HIGH_PRECISION = 259, MEDIUM_PRECISION = 260, LOW_PRECISION = 261,
  PRECISION = 262, ATTRIBUTE = 263, CONST_QUAL = 264, BOOL_TYPE = 265,
  FLOAT_TYPE = 266, INT_TYPE = 267, BREAK = 268, CONTINUE = 269,
  DO = 270, ELSE = 271, FOR = 272, IF = 273,
  DISCARD = 274, RETURN = 275, BVEC2 = 276, BVEC3 = 277,
  BVEC4 = 278, IVEC2 = 279, IVEC3 = 280, IVEC4 = 281,
  VEC2 = 282, VEC3 = 283, VEC4 = 284, MATRIX2 = 285,
  MATRIX3 = 286, MATRIX4 = 287, IN_QUAL = 288, OUT_QUAL = 289,
  INOUT_QUAL = 290, UNIFORM = 291, VARYING = 292, STRUCT = 293,
  VOID_TYPE = 294, WHILE = 295, SAMPLER2D = 296, SAMPLERCUBE = 297,
  SAMPLER_EXTERNAL_OES = 298, SAMPLER2DRECT = 299, IDENTIFIER = 300, TYPE_NAME = 301,
  FLOATCONSTANT = 302, INTCONSTANT = 303, BOOLCONSTANT = 304, LEFT_OP = 305,
  RIGHT_OP = 306, INC_OP = 307, DEC_OP = 308, LE_OP = 309,
  GE_OP = 310, EQ_OP = 311, NE_OP = 312, AND_OP = 313,
  OR_OP = 314, XOR_OP = 315, MUL_ASSIGN = 316, DIV_ASSIGN = 317,
  ADD_ASSIGN = 318, MOD_ASSIGN = 319, LEFT_ASSIGN = 320, RIGHT_ASSIGN = 321,
  AND_ASSIGN = 322, XOR_ASSIGN = 323, OR_ASSIGN = 324, SUB_ASSIGN = 325,
  LEFT_PAREN = 326, RIGHT_PAREN = 327, LEFT_BRACKET = 328, RIGHT_BRACKET = 329,
  LEFT_BRACE = 330, RIGHT_BRACE = 331, DOT = 332, COMMA = 333,
  COLON = 334, EQUAL = 335, SEMICOLON = 336, BANG = 337,
  DASH = 338, TILDE = 339, PLUS = 340, STAR = 341,
  SLASH = 342, PERCENT = 343, LEFT_ANGLE = 344, RIGHT_ANGLE = 345,
  VERTICAL_BAR = 346, CARET = 347, AMPERSAND = 348, QUESTION = 349,
  TOK_CONST_INT = 258, TOK_OP_OR = 259, TOK_OP_AND = 260, TOK_OP_NE = 261,
  TOK_OP_EQ = 262, TOK_OP_GE = 263, TOK_OP_LE = 264, TOK_OP_RIGHT = 265,
  TOK_OP_LEFT = 266, TOK_UNARY = 267
}
 

Functions

 for (;;)
 
int glslang_parse (TParseContext *context)
 
 if (yyss+yystacksize-1<=yyssp)
 
 if (yychar==YYEMPTY)
 
 if (yychar<=YYEOF)
 
 if (yyn<=0)
 
 if (!yyerrstatus)
 
 if (yyerrstatus==3)
 
 switch (yytype)
 
 switch (yyn)
 
 while (yyssp!=yyss)
 
yyexhaustedlab YY_ ("memory exhausted"))
 
YYSTYPE yylval YY_INITIAL_VALUE (yyval_default)
 
 YY_REDUCE_PRINT (yyn)
 
 YY_STACK_PRINT (yyss, yyssp)
 
 YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp)
 
 YY_SYMBOL_PRINT ("Next token is", yytoken,&yylval,&yylloc)
 
 YY_SYMBOL_PRINT ("Shifting", yytoken,&yylval,&yylloc)
 
 YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn],&yyval,&yyloc)
 
 YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp)
 
 yydestruct ("Cleanup: discarding lookahead", yytoken,&yylval,&yylloc, context)
 
 YYDPRINTF ((stderr,"Starting parse\n"))
 
 YYDPRINTF ((stderr,"Entering state %d\n", yystate))
 
static void yyerror (YYLTYPE *yylloc, TParseContext *context, const char *reason)
 
return YYID (yyresult)
 
int yylex (YYSTYPE *yylval, YYLTYPE *yylloc, void *yyscanner)
 
 YYLLOC_DEFAULT (yyloc,(yylsp-yylen), yylen)
 
 YYLLOC_DEFAULT (yyloc, yyerror_range, 2)
 
int yyparse ()
 
 YYPOPSTACK (yylen)
 
 YYSTACK_FREE (yyss)
 
 YYUSE (yylocationp)
 
 YYUSE (context)
 

Variables

yynewstate __pad0__
 
yyexhaustedlab __pad10__
 
yyreturn __pad11__
 
yysetstate __pad1__
 
yybackup __pad2__
 
yydefault __pad3__
 
yyreduce __pad4__
 
yyerrlab __pad5__
 
yyerrorlab __pad6__
 
yyerrlab1 __pad7__
 
yyacceptlab __pad8__
 
yyabortlab __pad9__
 
TParseContextcontext
 
 else
 
 YYACCEPT
 
goto yybackup
 
 yychar = YYEMPTY
 
static const yytype_int16 yycheck []
 
static const yytype_uint8 yydefact []
 
goto yydefault
 
static const yytype_int16 yydefgoto []
 
goto yyerrlab
 
goto yyerrlab1
 
YYLTYPE yyerror_range [3] = yylloc
 
int yyerrstatus = 0
 
int yylen = 0
 
YYLTYPE yylloc = yyloc_default
 
YYLTYPE yyloc
 
static YYLTYPE yyloc_default
 
YYLTYPEyylocationp
 
YYLTYPEyyls
 
YYLTYPE yylsa [YYINITDEPTH]
 
YYLTYPEyylsp = yyls = yylsa
 
static void const char * yymsg = "Deleting"
 
int yyn = yytoken
 
int yynerrs = 0
 
goto yynewstate
 
static const yytype_int16 yypact []
 
static const yytype_int16 yypgoto []
 
static const yytype_uint8 yyr1 []
 
static const yytype_uint8 yyr2 []
 
goto yyreduce
 
int yyresult = 2
 
goto yyreturn
 
goto yysetstate
 
yytype_int16yyss
 
yytype_int16 yyssa [YYINITDEPTH]
 
yytype_int16yyssp = yyss = yyssa
 
YYSIZE_T yystacksize = YYINITDEPTH
 
int yystate = 0
 
static const yytype_uint8 yystos []
 
static const yytype_int16 yytable []
 
int yytoken = 0
 
static const yytype_uint8 yytranslate []
 
int yytype
 
YYSTYPE yyval = yyvsp[1-yylen]
 
static YYSTYPE yyval_default
 
YYSTYPEyyvaluep
 
YYSTYPEyyvs
 
YYSTYPE yyvsa [YYINITDEPTH]
 
YYSTYPEyyvsp = yyvs = yyvsa
 

Macro Definition Documentation

#define FRAG_ONLY (   S,
 
)
Value:
{ \
context->error(L, " supported in fragment shaders only ", S); \
} \
}
void error(const TSourceLoc &loc, const char *reason, const char *token, const char *extraInfo="")
ShShaderType shaderType
Definition: ParseHelper.h:47
if(!yyg->yy_init)
TParseContext * context

Definition at line 335 of file glslang_tab.cpp.

Referenced by switch().

#define VERTEX_ONLY (   S,
 
)
Value:
{ \
context->error(L, " supported in vertex shaders only ", S); \
} \
}
void error(const TSourceLoc &loc, const char *reason, const char *token, const char *extraInfo="")
ShShaderType shaderType
Definition: ParseHelper.h:47
if(!yyg->yy_init)
TParseContext * context

Definition at line 328 of file glslang_tab.cpp.

Referenced by switch().

#define YY_ (   Msgid)    Msgid

Definition at line 399 of file glslang_tab.cpp.

Referenced by if().

#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN

Definition at line 1979 of file glslang_tab.cpp.

#define YY_IGNORE_MAYBE_UNINITIALIZED_END

Definition at line 1980 of file glslang_tab.cpp.

#define YY_INITIAL_VALUE (   Value)    = Value

Definition at line 1971 of file glslang_tab.cpp.

#define YY_LOCATION_PRINT (   File,
  Loc 
)    ((void) 0)

Definition at line 1445 of file glslang_tab.cpp.

#define YY_NULL   0

Definition at line 101 of file glslang_tab.cpp.

#define YY_REDUCE_PRINT (   Rule)

Definition at line 1629 of file glslang_tab.cpp.

#define YY_STACK_PRINT (   Bottom,
  Top 
)

Definition at line 1628 of file glslang_tab.cpp.

Referenced by for(), and switch().

#define YY_SYMBOL_PRINT (   Title,
  Type,
  Value,
  Location 
)

Definition at line 1627 of file glslang_tab.cpp.

Referenced by switch().

#define YY_YY_GLSLANG_TAB_H_INCLUDED

Definition at line 116 of file glslang_tab.cpp.

#define YYABORT   goto yyabortlab

Definition at line 1328 of file glslang_tab.cpp.

Referenced by for(), and if().

#define YYACCEPT   goto yyacceptlab

Definition at line 1327 of file glslang_tab.cpp.

Referenced by switch().

#define YYBACKUP (   Token,
  Value 
)
Value:
{ \
yychar = (Token); \
yylval = (Value); \
goto yybackup; \
} \
{ \
yyerror (&yylloc, context, YY_("syntax error: cannot back up")); \
} \
while (YYID (0))
#define YYPOPSTACK(N)
#define yylloc
#define YYID(N)
#define YYEMPTY
else
int yystate
if(!yyg->yy_init)
int yylen
yytype_int16 * yyssp
goto yybackup
#define yylval
#define YYERROR
#define YY_(Msgid)
static void yyerror(YYLTYPE *yylloc, TParseContext *context, const char *reason)
TParseContext * context
#define yychar
while(1)

Definition at line 1349 of file glslang_tab.cpp.

#define YYBISON   1

Definition at line 44 of file glslang_tab.cpp.

#define YYBISON_VERSION   "2.7"

Definition at line 47 of file glslang_tab.cpp.

#define yyclearin   (yychar = YYEMPTY)

Definition at line 1323 of file glslang_tab.cpp.

#define YYCOPY (   Dst,
  Src,
  Count 
)
Value:
do \
{ \
for (yyi = 0; yyi < (Count); yyi++) \
(Dst)[yyi] = (Src)[yyi]; \
} \
while (YYID (0))
#define YYID(N)
for(;;)
#define YYSIZE_T
while(1)

Definition at line 549 of file glslang_tab.cpp.

#define YYCOPY_NEEDED   1

Definition at line 521 of file glslang_tab.cpp.

#define YYDEBUG   0

Definition at line 119 of file glslang_tab.cpp.

#define YYDPRINTF (   Args)

Definition at line 1626 of file glslang_tab.cpp.

Referenced by if().

#define YYEMPTY   (-2)

Definition at line 1324 of file glslang_tab.cpp.

Referenced by if().

#define YYENABLE_NLS   0

Definition at line 91 of file glslang_tab.cpp.

#define YYEOF   0

Definition at line 1325 of file glslang_tab.cpp.

Referenced by if().

#define YYERRCODE   256

Definition at line 1368 of file glslang_tab.cpp.

#define yyerrok   (yyerrstatus = 0)

Definition at line 1322 of file glslang_tab.cpp.

#define YYERROR   goto yyerrorlab

Definition at line 1329 of file glslang_tab.cpp.

Referenced by switch().

#define YYERROR_VERBOSE   0

Definition at line 110 of file glslang_tab.cpp.

#define YYFAIL   goto yyerrlab

Definition at line 1339 of file glslang_tab.cpp.

#define YYFINAL   74

Definition at line 562 of file glslang_tab.cpp.

#define YYFREE   free

Definition at line 489 of file glslang_tab.cpp.

#define YYID (   N)    (N)

Definition at line 412 of file glslang_tab.cpp.

#define YYINITDEPTH   200

Definition at line 1635 of file glslang_tab.cpp.

#define YYLAST   1490

Definition at line 564 of file glslang_tab.cpp.

Referenced by for(), and switch().

#define YYLEX   yylex (&yylval, &yylloc, YYLEX_PARAM)

Definition at line 1452 of file glslang_tab.cpp.

Referenced by if().

#define YYLEX_PARAM   context->scanner

Definition at line 93 of file glslang_tab.cpp.

#define YYLLOC_DEFAULT (   Current,
  Rhs,
 
)
Value:
do { \
if (YYID(N)) { \
(Current).first_file = YYRHSLOC(Rhs, 1).first_file; \
(Current).first_line = YYRHSLOC(Rhs, 1).first_line; \
(Current).last_file = YYRHSLOC(Rhs, N).last_file; \
(Current).last_line = YYRHSLOC(Rhs, N).last_line; \
} \
else { \
(Current).first_file = YYRHSLOC(Rhs, 0).last_file; \
(Current).first_line = YYRHSLOC(Rhs, 0).last_line; \
(Current).last_file = YYRHSLOC(Rhs, 0).last_file; \
(Current).last_line = YYRHSLOC(Rhs, 0).last_line; \
} \
} while (0)
#define YYID(N)
else
if(!yyg->yy_init)
#define YYRHSLOC(Rhs, K)

Definition at line 312 of file glslang_tab.cpp.

#define YYLTYPE   TSourceLoc

Definition at line 127 of file glslang_tab.cpp.

#define YYLTYPE_IS_DECLARED   1

Definition at line 128 of file glslang_tab.cpp.

#define YYMALLOC   malloc

Definition at line 482 of file glslang_tab.cpp.

#define YYMAXDEPTH   10000

Definition at line 1646 of file glslang_tab.cpp.

Referenced by if().

#define YYMAXUTOK   349

Definition at line 577 of file glslang_tab.cpp.

#define YYNNTS   84

Definition at line 569 of file glslang_tab.cpp.

#define YYNRULES   202

Definition at line 571 of file glslang_tab.cpp.

#define YYNSTATES   307

Definition at line 573 of file glslang_tab.cpp.

#define YYNTOKENS   95

Definition at line 567 of file glslang_tab.cpp.

Referenced by switch().

#define YYPACT_NINF   -261

Definition at line 917 of file glslang_tab.cpp.

#define yypact_value_is_default (   Yystate)    (!!((Yystate) == (-261)))

Definition at line 1125 of file glslang_tab.cpp.

Referenced by for().

#define YYPOPSTACK (   N)    (yyvsp -= (N), yyssp -= (N), yylsp -= (N))

Definition at line 2044 of file glslang_tab.cpp.

Referenced by for(), switch(), and while().

#define YYPULL   1

Definition at line 59 of file glslang_tab.cpp.

#define YYPURE   1

Definition at line 53 of file glslang_tab.cpp.

#define YYPUSH   0

Definition at line 56 of file glslang_tab.cpp.

#define YYRECOVERING ( )    (!!yyerrstatus)

Definition at line 1347 of file glslang_tab.cpp.

#define YYRHSLOC (   Rhs,
 
)    ((Rhs)[K])

Definition at line 1395 of file glslang_tab.cpp.

#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)

Definition at line 389 of file glslang_tab.cpp.

#define YYSIZE_T   unsigned int

Definition at line 385 of file glslang_tab.cpp.

Referenced by if().

#define YYSKELETON_NAME   "yacc.c"

Definition at line 50 of file glslang_tab.cpp.

#define YYSTACK_ALLOC   YYMALLOC

Definition at line 468 of file glslang_tab.cpp.

Referenced by if().

#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM

Definition at line 471 of file glslang_tab.cpp.

#define YYSTACK_BYTES (   N)
Value:
((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE) + sizeof (YYLTYPE)) \
#define YYSTACK_GAP_MAXIMUM
short int yytype_int16
union YYSTYPE YYSTYPE

Definition at line 517 of file glslang_tab.cpp.

Referenced by if().

#define YYSTACK_FREE   YYFREE

Definition at line 469 of file glslang_tab.cpp.

Referenced by if().

#define YYSTACK_GAP_MAXIMUM   (sizeof (union yyalloc) - 1)

Definition at line 513 of file glslang_tab.cpp.

#define YYSTACK_RELOCATE (   Stack_alloc,
  Stack 
)
Value:
do \
{ \
YYSIZE_T yynewbytes; \
YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
Stack = &yyptr->Stack_alloc; \
yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
yyptr += yynewbytes / sizeof (*yyptr); \
} \
while (YYID (0))
#define YYSTACK_GAP_MAXIMUM
#define YYID(N)
#define YYCOPY(Dst, Src, Count)
#define YYSIZE_T
while(1)
YYSIZE_T yystacksize

Definition at line 528 of file glslang_tab.cpp.

Referenced by if().

#define yystype   YYSTYPE /* obsolescent; will be withdrawn */

Definition at line 272 of file glslang_tab.cpp.

#define YYSTYPE_IS_DECLARED   1

Definition at line 273 of file glslang_tab.cpp.

#define YYSTYPE_IS_TRIVIAL   1

Definition at line 271 of file glslang_tab.cpp.

#define YYTABLE_NINF   -166

Definition at line 970 of file glslang_tab.cpp.

#define yytable_value_is_error (   Yytable_value)    YYID (0)

Definition at line 1128 of file glslang_tab.cpp.

Referenced by if().

#define YYTERROR   1

Definition at line 1367 of file glslang_tab.cpp.

Referenced by for().

#define YYTOKENTYPE

Definition at line 135 of file glslang_tab.cpp.

#define YYTRANSLATE (   YYX)    ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)

Definition at line 579 of file glslang_tab.cpp.

#define YYUNDEFTOK   2

Definition at line 576 of file glslang_tab.cpp.

#define YYUSE (   E)    ((void) (E))

Definition at line 405 of file glslang_tab.cpp.

Typedef Documentation

typedef union YYSTYPE YYSTYPE
typedef short int yytype_int16

Definition at line 372 of file glslang_tab.cpp.

typedef short int yytype_int8

Definition at line 360 of file glslang_tab.cpp.

typedef unsigned short int yytype_uint16

Definition at line 366 of file glslang_tab.cpp.

typedef unsigned char yytype_uint8

Definition at line 351 of file glslang_tab.cpp.

Enumeration Type Documentation

Enumerator
INVARIANT 
HIGH_PRECISION 
MEDIUM_PRECISION 
LOW_PRECISION 
PRECISION 
ATTRIBUTE 
CONST_QUAL 
BOOL_TYPE 
FLOAT_TYPE 
INT_TYPE 
BREAK 
CONTINUE 
DO 
ELSE 
FOR 
IF 
DISCARD 
RETURN 
BVEC2 
BVEC3 
BVEC4 
IVEC2 
IVEC3 
IVEC4 
VEC2 
VEC3 
VEC4 
MATRIX2 
MATRIX3 
MATRIX4 
IN_QUAL 
OUT_QUAL 
INOUT_QUAL 
UNIFORM 
VARYING 
STRUCT 
VOID_TYPE 
WHILE 
SAMPLER2D 
SAMPLERCUBE 
SAMPLER_EXTERNAL_OES 
SAMPLER2DRECT 
IDENTIFIER 
TYPE_NAME 
FLOATCONSTANT 
INTCONSTANT 
BOOLCONSTANT 
LEFT_OP 
RIGHT_OP 
INC_OP 
DEC_OP 
LE_OP 
GE_OP 
EQ_OP 
NE_OP 
AND_OP 
OR_OP 
XOR_OP 
MUL_ASSIGN 
DIV_ASSIGN 
ADD_ASSIGN 
MOD_ASSIGN 
LEFT_ASSIGN 
RIGHT_ASSIGN 
AND_ASSIGN 
XOR_ASSIGN 
OR_ASSIGN 
SUB_ASSIGN 
LEFT_PAREN 
RIGHT_PAREN 
LEFT_BRACKET 
RIGHT_BRACKET 
LEFT_BRACE 
RIGHT_BRACE 
DOT 
COMMA 
COLON 
EQUAL 
SEMICOLON 
BANG 
DASH 
TILDE 
PLUS 
STAR 
SLASH 
PERCENT 
LEFT_ANGLE 
RIGHT_ANGLE 
VERTICAL_BAR 
CARET 
AMPERSAND 
QUESTION 
INVARIANT 
HIGH_PRECISION 
MEDIUM_PRECISION 
LOW_PRECISION 
PRECISION 
ATTRIBUTE 
CONST_QUAL 
BOOL_TYPE 
FLOAT_TYPE 
INT_TYPE 
BREAK 
CONTINUE 
DO 
ELSE 
FOR 
IF 
DISCARD 
RETURN 
BVEC2 
BVEC3 
BVEC4 
IVEC2 
IVEC3 
IVEC4 
VEC2 
VEC3 
VEC4 
MATRIX2 
MATRIX3 
MATRIX4 
IN_QUAL 
OUT_QUAL 
INOUT_QUAL 
UNIFORM 
VARYING 
STRUCT 
VOID_TYPE 
WHILE 
SAMPLER2D 
SAMPLERCUBE 
SAMPLER_EXTERNAL_OES 
SAMPLER2DRECT 
IDENTIFIER 
TYPE_NAME 
FLOATCONSTANT 
INTCONSTANT 
BOOLCONSTANT 
LEFT_OP 
RIGHT_OP 
INC_OP 
DEC_OP 
LE_OP 
GE_OP 
EQ_OP 
NE_OP 
AND_OP 
OR_OP 
XOR_OP 
MUL_ASSIGN 
DIV_ASSIGN 
ADD_ASSIGN 
MOD_ASSIGN 
LEFT_ASSIGN 
RIGHT_ASSIGN 
AND_ASSIGN 
XOR_ASSIGN 
OR_ASSIGN 
SUB_ASSIGN 
LEFT_PAREN 
RIGHT_PAREN 
LEFT_BRACKET 
RIGHT_BRACKET 
LEFT_BRACE 
RIGHT_BRACE 
DOT 
COMMA 
COLON 
EQUAL 
SEMICOLON 
BANG 
DASH 
TILDE 
PLUS 
STAR 
SLASH 
PERCENT 
LEFT_ANGLE 
RIGHT_ANGLE 
VERTICAL_BAR 
CARET 
AMPERSAND 
QUESTION 
TOK_CONST_INT 
TOK_OP_OR 
TOK_OP_AND 
TOK_OP_NE 
TOK_OP_EQ 
TOK_OP_GE 
TOK_OP_LE 
TOK_OP_RIGHT 
TOK_OP_LEFT 
TOK_UNARY 

Definition at line 138 of file glslang_tab.cpp.

Function Documentation

int glslang_parse ( TParseContext context)

Definition at line 4880 of file glslang_tab.cpp.

References yyparse.

Referenced by PaParseStrings().

if ( yychar  = YYEMPTY)

Definition at line 2164 of file glslang_tab.cpp.

References YYDPRINTF, and YYLEX.

if ( yychar<=  YYEOF)

Definition at line 2170 of file glslang_tab.cpp.

References YYDPRINTF, and YYEOF.

if ( yyn<=  0)

Definition at line 2187 of file glslang_tab.cpp.

References yyerrlab, yyn, yyreduce, and yytable_value_is_error.

if ( yyerrstatus)

Definition at line 4681 of file glslang_tab.cpp.

References YY_, yyerror(), yymsg, yynerrs, YYSTACK_ALLOC, and YYSTACK_FREE.

if ( yyerrstatus  = = 3)

Definition at line 4722 of file glslang_tab.cpp.

References YYABORT, yydestruct(), YYEMPTY, YYEOF, and yylval.

switch ( yytype  )
switch ( yyn  )

Definition at line 2244 of file glslang_tab.cpp.

References TMatrixFields::col, EbpHigh, EbpLow, EbpMedium, EbpUndefined, EbtBool, EbtFloat, EbtInt, EbtInvariant, EbtSampler2D, EbtSampler2DRect, EbtSamplerCube, EbtSamplerExternalOES, EbtStruct, EbtVoid, ELoopDoWhile, ELoopFor, ELoopWhile, EOpAdd, EOpAddAssign, EOpAssign, EOpBreak, EOpConstructBool, EOpConstructBVec2, EOpConstructBVec3, EOpConstructBVec4, EOpConstructFloat, EOpConstructInt, EOpConstructIVec2, EOpConstructIVec3, EOpConstructIVec4, EOpConstructMat2, EOpConstructMat3, EOpConstructMat4, EOpConstructStruct, EOpConstructVec2, EOpConstructVec3, EOpConstructVec4, EOpContinue, EOpDeclaration, EOpDiv, EOpDivAssign, EOpEqual, EOpFunction, EOpFunctionCall, EOpGreaterThan, EOpGreaterThanEqual, EOpIndexDirect, EOpIndexDirectStruct, EOpKill, EOpLessThan, EOpLessThanEqual, EOpLogicalAnd, EOpLogicalNot, EOpLogicalOr, EOpLogicalXor, EOpMul, EOpMulAssign, EOpNegative, EOpNotEqual, EOpNull, EOpParameters, EOpPostDecrement, EOpPostIncrement, EOpPreDecrement, EOpPreIncrement, EOpPrototype, EOpReturn, EOpSequence, EOpSub, EOpSubAssign, EOpVectorSwizzle, EvqAttribute, EvqConst, EvqGlobal, EvqIn, EvqInOut, EvqInvariantVaryingIn, EvqInvariantVaryingOut, EvqOut, EvqTemporary, EvqUniform, EvqVaryingIn, EvqVaryingOut, FRAG_ONLY, getBasicString(), TFunction::getBuiltInOp(), TIntermTyped::getCompleteString(), TVariable::getConstPointer(), TSymbol::getExtension(), TFunction::getMangledName(), TSymbol::getName(), TFunction::getParam(), TFunction::getParamCount(), TType::getQualifier(), getQualifierString(), TFunction::getReturnType(), TVariable::getType(), TSymbol::getUniqueId(), i, int, TType::isArray(), TFunction::isDefined(), TSymbol::isFunction(), TSymbol::isVariable(), j, TField::name(), TParameter::name, NewPoolTFieldList(), NewPoolTString(), TVectorFields::num, TVectorFields::offsets, TMatrixFields::row, TType::setArraySize(), TType::setBasicType(), ConstantUnion::setBConst(), TFunction::setDefined(), ConstantUnion::setFConst(), ConstantUnion::setIConst(), TIntermSymbol::setId(), TType::setMatrix(), TIntermAggregate::setName(), TType::setNominalSize(), TIntermOperator::setOp(), TType::setPrecision(), TType::setStruct(), TIntermTyped::setType(), SH_FRAGMENT_SHADER, SH_VERTEX_SHADER, TParameter::type, VERTEX_ONLY, TMatrixFields::wholeCol, TMatrixFields::wholeRow, YY_STACK_PRINT, YY_SYMBOL_PRINT, yyerrlab, YYERROR, YYLAST, yyloc, yyn, yynewstate, YYNTOKENS, YYPOPSTACK, yyssp, yystate, and yyval.

while ( yyssp!  = yyss)

Definition at line 4853 of file glslang_tab.cpp.

References yydestruct(), and YYPOPSTACK.

yyexhaustedlab YY_ ( "memory exhausted"  )
YYSTYPE yylval YY_INITIAL_VALUE ( yyval_default  )
YY_REDUCE_PRINT ( yyn  )
YY_STACK_PRINT ( yyss  ,
yyssp   
)
YY_SYMBOL_PRINT ( yymsg  ,
yytype  ,
yyvaluep  ,
yylocationp   
)
YY_SYMBOL_PRINT ( "Next token is"  ,
yytoken  ,
yylval,
yylloc 
)
YY_SYMBOL_PRINT ( "Shifting"  ,
yytoken  ,
yylval,
yylloc 
)
YY_SYMBOL_PRINT ( )
YY_SYMBOL_PRINT ( "Shifting"  ,
yystos  [yyn],
yyvsp  ,
yylsp   
)
yydestruct ( "Cleanup: discarding lookahead"  ,
yytoken  ,
yylval,
yylloc,
context   
)

Referenced by for(), if(), and while().

YYDPRINTF ( (stderr,"Starting parse\n")  )
YYDPRINTF ( (stderr,"Entering state %d\n", yystate)  )
void yyerror ( YYLTYPE yylloc,
TParseContext context,
const char *  reason 
)
static

Definition at line 4875 of file glslang_tab.cpp.

References TParseContext::error(), and TParseContext::recover().

Referenced by if().

return YYID ( yyresult  )
int yylex ( YYSTYPE yylval,
YYLTYPE yylloc,
void yyscanner 
)
YYLLOC_DEFAULT ( yyloc  ,
(yylsp-yylen ,
yylen   
)
YYLLOC_DEFAULT ( yyloc  ,
yyerror_range  ,
 
)
int yyparse ( )
YYPOPSTACK ( yylen  )
YYSTACK_FREE ( yyss  )
YYUSE ( yylocationp  )
YYUSE ( context  )

Variable Documentation

yynewstate __pad0__

Definition at line 2070 of file glslang_tab.cpp.

yyexhaustedlab __pad10__

Definition at line 4835 of file glslang_tab.cpp.

yyreturn __pad11__

Definition at line 4845 of file glslang_tab.cpp.

yysetstate __pad1__

Definition at line 2073 of file glslang_tab.cpp.

yybackup __pad2__

Definition at line 2157 of file glslang_tab.cpp.

yydefault __pad3__

Definition at line 2218 of file glslang_tab.cpp.

yyreduce __pad4__

Definition at line 2229 of file glslang_tab.cpp.

yyerrlab __pad5__

Definition at line 4678 of file glslang_tab.cpp.

yyerrorlab __pad6__

Definition at line 4755 of file glslang_tab.cpp.

yyerrlab1 __pad7__

Definition at line 4771 of file glslang_tab.cpp.

yyacceptlab __pad8__

Definition at line 4820 of file glslang_tab.cpp.

yyabortlab __pad9__

Definition at line 4827 of file glslang_tab.cpp.

else
Initial value:
{
#define YYTRANSLATE(YYX)
int yytoken
#define yychar

Definition at line 2176 of file glslang_tab.cpp.

Referenced by SDL_SaveBMP_RW().

YYACCEPT

Definition at line 2144 of file glslang_tab.cpp.

goto yybackup

Definition at line 2146 of file glslang_tab.cpp.

yychar = YYEMPTY

Definition at line 2060 of file glslang_tab.cpp.

const yytype_int16 yycheck[]
static

Definition at line 1131 of file glslang_tab.cpp.

const yytype_uint8 yydefact[]
static

Definition at line 866 of file glslang_tab.cpp.

goto yydefault

Definition at line 2159 of file glslang_tab.cpp.

const yytype_int16 yydefgoto[]
static
Initial value:
=
{
-1, 196, 100, 101, 102, 229, 103, 104, 105, 106,
107, 108, 109, 142, 111, 112, 113, 114, 115, 116,
117, 118, 119, 120, 121, 122, 143, 144, 218, 145,
124, 146, 147, 34, 35, 36, 82, 64, 65, 83,
37, 38, 39, 40, 41, 42, 43, 125, 45, 130,
77, 128, 129, 197, 198, 166, 149, 150, 151, 152,
212, 280, 299, 254, 255, 256, 300, 153, 154, 155,
289, 279, 156, 260, 204, 257, 275, 286, 287, 157,
46, 47, 48, 57
}

Definition at line 902 of file glslang_tab.cpp.

goto yyerrlab

Definition at line 2220 of file glslang_tab.cpp.

Referenced by if(), and switch().

goto yyerrlab1

Definition at line 4743 of file glslang_tab.cpp.

Definition at line 2024 of file glslang_tab.cpp.

yyerrstatus = 0

Definition at line 1998 of file glslang_tab.cpp.

yylen = 0

Definition at line 2048 of file glslang_tab.cpp.

Definition at line 1990 of file glslang_tab.cpp.

YYLTYPE yyloc

Definition at line 2035 of file glslang_tab.cpp.

Referenced by switch().

YYLTYPE yyloc_default
static

Definition at line 1977 of file glslang_tab.cpp.

YYLTYPE* yylocationp

Definition at line 1906 of file glslang_tab.cpp.

YYLTYPE* yyls

Definition at line 2020 of file glslang_tab.cpp.

Referenced by if().

Definition at line 2019 of file glslang_tab.cpp.

* yylsp = yyls = yylsa

Definition at line 2021 of file glslang_tab.cpp.

Referenced by for().

yymsg = "Deleting"
static

Definition at line 1903 of file glslang_tab.cpp.

Referenced by if().

yyn = yytoken

Definition at line 2028 of file glslang_tab.cpp.

Referenced by for(), if(), and switch().

yynerrs = 0

Definition at line 1994 of file glslang_tab.cpp.

goto yynewstate

Definition at line 2211 of file glslang_tab.cpp.

Referenced by switch().

const yytype_int16 yypact[]
static

Definition at line 918 of file glslang_tab.cpp.

const yytype_int16 yypgoto[]
static
Initial value:
=
{
-261, -24, -261, -261, -261, -261, -261, -261, 34, -261,
-261, -261, -261, 32, -261, -33, -261, -27, -26, -261,
-261, -261, 14, 16, 18, -261, -66, -87, -261, -92,
-85, 11, 12, -261, -261, -261, 141, 150, 161, 143,
-261, -261, -231, 5, -30, 224, -18, 0, -261, -261,
-261, 100, -119, -261, -17, -156, -25, -145, -243, -261,
-261, -261, -64, -260, -261, -261, -52, 21, -22, -261,
-261, -39, -261, -261, -261, -261, -261, -261, -261, -261,
-261, 191, -261, -261
}

Definition at line 954 of file glslang_tab.cpp.

const yytype_uint8 yyr1[]
static
Initial value:
=
{
0, 95, 96, 96, 97, 98, 98, 98, 98, 98,
99, 99, 99, 99, 99, 99, 100, 101, 102, 102,
103, 103, 104, 104, 105, 105, 106, 107, 107, 108,
108, 108, 108, 109, 109, 109, 110, 110, 110, 111,
111, 111, 112, 113, 113, 113, 113, 113, 114, 114,
114, 115, 116, 117, 118, 118, 119, 119, 120, 120,
121, 121, 122, 122, 123, 123, 123, 123, 123, 124,
124, 125, 126, 126, 126, 127, 128, 128, 129, 129,
130, 131, 131, 132, 132, 132, 132, 133, 133, 133,
133, 134, 135, 135, 135, 135, 135, 136, 136, 136,
136, 136, 136, 137, 137, 138, 138, 138, 138, 138,
139, 139, 140, 140, 140, 141, 141, 142, 142, 142,
142, 142, 142, 142, 142, 142, 142, 142, 142, 142,
142, 142, 142, 142, 142, 142, 142, 142, 142, 144,
143, 145, 143, 146, 146, 147, 148, 148, 149, 149,
150, 151, 152, 152, 153, 153, 153, 153, 153, 154,
155, 156, 154, 157, 157, 159, 158, 160, 158, 161,
161, 162, 162, 163, 163, 164, 165, 165, 166, 166,
168, 167, 169, 167, 170, 167, 171, 171, 172, 172,
173, 173, 174, 174, 174, 174, 174, 175, 175, 176,
176, 178, 177
}

Definition at line 812 of file glslang_tab.cpp.

const yytype_uint8 yyr2[]
static
Initial value:
=
{
0, 2, 1, 1, 1, 1, 1, 1, 1, 3,
1, 4, 1, 3, 2, 2, 1, 1, 1, 3,
2, 2, 2, 1, 2, 3, 2, 1, 1, 1,
2, 2, 2, 1, 1, 1, 1, 3, 3, 1,
3, 3, 1, 1, 3, 3, 3, 3, 1, 3,
3, 1, 1, 1, 1, 3, 1, 3, 1, 3,
1, 5, 1, 3, 1, 1, 1, 1, 1, 1,
3, 1, 2, 2, 4, 2, 1, 1, 2, 3,
3, 2, 5, 3, 2, 3, 2, 0, 1, 1,
1, 1, 1, 3, 5, 6, 5, 1, 2, 4,
5, 4, 2, 1, 2, 1, 1, 1, 2, 1,
1, 2, 1, 1, 1, 1, 4, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 0,
6, 0, 5, 1, 2, 3, 1, 3, 1, 4,
1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
0, 0, 5, 1, 1, 0, 2, 0, 2, 2,
3, 1, 2, 1, 2, 5, 3, 1, 1, 4,
0, 6, 0, 8, 0, 7, 1, 1, 1, 0,
2, 3, 2, 2, 2, 3, 2, 1, 2, 1,
1, 0, 3
}

Definition at line 838 of file glslang_tab.cpp.

goto yyreduce

Definition at line 2221 of file glslang_tab.cpp.

Referenced by if().

yyresult = 2

Definition at line 2029 of file glslang_tab.cpp.

goto yyreturn

Definition at line 4821 of file glslang_tab.cpp.

goto yysetstate

Definition at line 2062 of file glslang_tab.cpp.

yytype_int16* yyss

Definition at line 2010 of file glslang_tab.cpp.

Referenced by if().

Definition at line 2009 of file glslang_tab.cpp.

yyssp = yyss = yyssa

Definition at line 2011 of file glslang_tab.cpp.

Referenced by for(), and switch().

yystacksize = YYINITDEPTH

Definition at line 2026 of file glslang_tab.cpp.

else yystate = 0

Definition at line 1996 of file glslang_tab.cpp.

Referenced by for(), and switch().

const yytype_uint8 yystos[]
static

Definition at line 1287 of file glslang_tab.cpp.

const yytype_int16 yytable[]
static

Definition at line 971 of file glslang_tab.cpp.

int yytoken = 0

Definition at line 2031 of file glslang_tab.cpp.

const yytype_uint8 yytranslate[]
static

Definition at line 583 of file glslang_tab.cpp.

int yytype

Definition at line 1904 of file glslang_tab.cpp.

yyval = yyvsp[1-yylen]

Definition at line 2034 of file glslang_tab.cpp.

Referenced by switch().

YYSTYPE yyval_default
static
Initial value:
{
int yychar
#define yychar

Definition at line 1954 of file glslang_tab.cpp.

YYSTYPE* yyvaluep

Definition at line 1905 of file glslang_tab.cpp.

YYSTYPE* yyvs

Definition at line 2015 of file glslang_tab.cpp.

Referenced by if().

Definition at line 2014 of file glslang_tab.cpp.

Definition at line 2016 of file glslang_tab.cpp.