ug4
parser.cpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include "parser_node.h"
#include "lua_parser_class.h"

Classes

union  yyalloc
 

Macros

#define LUAPARSER_AND   286
 
#define LUAPARSER_BREAK   284
 
#define LUAPARSER_DO   282
 
#define LUAPARSER_ELSE   264
 
#define LUAPARSER_ELSEIF   265
 
#define LUAPARSER_END   263
 
#define LUAPARSER_EQ   288
 
#define LUAPARSER_FOR   283
 
#define LUAPARSER_FUNCTION   267
 
#define LUAPARSER_GE   290
 
#define LUAPARSER_IF   261
 
#define LUAPARSER_LE   289
 
#define LUAPARSER_LOCAL   266
 
#define LUAPARSER_MATH_ABS   272
 
#define LUAPARSER_MATH_CEIL   277
 
#define LUAPARSER_MATH_COS   270
 
#define LUAPARSER_MATH_EXP   271
 
#define LUAPARSER_MATH_FLOOR   276
 
#define LUAPARSER_MATH_LOG   273
 
#define LUAPARSER_MATH_LOG10   274
 
#define LUAPARSER_MATH_MAX   279
 
#define LUAPARSER_MATH_MIN   280
 
#define LUAPARSER_MATH_PI   281
 
#define LUAPARSER_MATH_POW   278
 
#define LUAPARSER_MATH_SIN   269
 
#define LUAPARSER_MATH_SQRT   275
 
#define LUAPARSER_NE   287
 
#define LUAPARSER_OR   285
 
#define LUAPARSER_RETURN   268
 
#define LUAPARSER_THEN   262
 
#define LUAPARSER_UMINUS   291
 
#define LUAPARSER_VARIABLE   259
 
#define LUAPARSER_WHILE   260
 
#define THE_PREFIX   ug4_lua_YY_
 
#define YY_(msgid)   msgid
 
#define YY_INTEGER   258
 
#define YY_LOCATION_PRINT(File, Loc)   ((void) 0)
 
#define YY_REDUCE_PRINT(Rule)
 
#define yy_scan_string   ug4_lua_YY__scan_string
 
#define YY_STACK_PRINT(Bottom, Top)
 
#define YY_SYMBOL_PRINT(Title, Type, Value, Location)
 
#define YYABORT   goto yyabortlab
 
#define YYACCEPT   goto yyacceptlab
 
#define YYBACKUP(Token, Value)
 
#define YYBISON   1
 
#define YYBISON_VERSION   "2.3"
 
#define yychar   ug4_lua_YY_char
 
#define yyclearin   (yychar = YYEMPTY)
 
#define YYCOPY(To, From, Count)
 
#define yydebug   ug4_lua_YY_debug
 
#define YYDEBUG   0
 
#define YYDPRINTF(Args)
 
#define YYEMPTY   (-2)
 
#define YYEOF   0
 
#define YYERRCODE   256
 
#define yyerrok   (yyerrstatus = 0)
 
#define yyerror   ug4_lua_YY_error
 
#define YYERROR   goto yyerrorlab
 
#define YYERROR_VERBOSE
 
#define YYERROR_VERBOSE   1
 
#define YYFAIL   goto yyerrlab
 
#define YYFINAL   6
 
#define YYFREE   free
 
#define YYID(n)   (n)
 
#define YYINITDEPTH   200
 
#define YYLAST   520
 
#define yylex   ug4_lua_YY_lex
 
#define YYLEX   yylex ()
 
#define YYLLOC_DEFAULT(Current, Rhs, N)
 
#define YYLSP_NEEDED   0
 
#define yylval   ug4_lua_YY_lval
 
#define YYMALLOC   malloc
 
#define YYMAXDEPTH   10000
 
#define YYMAXUTOK   291
 
#define yynerrs   ug4_lua_YY_nerrs
 
#define YYNNTS   12
 
#define YYNRULES   55
 
#define YYNSTATES   148
 
#define YYNTOKENS   47
 
#define YYPACT_NINF   -43
 
#define yyparse   ug4_lua_YY_parse
 
#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))
 
#define YYPURE   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)
 
#define YYTABLE_NINF   -1
 
#define YYTERROR   1
 
#define YYTOKEN_TABLE   0
 
#define YYTOKENTYPE
 
#define YYTRANSLATE(YYX)    ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
 
#define YYUNDEFTOK   2
 
#define YYUSE(e)   ((void) (e))
 

Typedefs

typedef struct yy_buffer_stateYY_BUFFER_STATE
 
typedef short int yytype_int16
 
typedef short int yytype_int8
 
typedef unsigned short int yytype_uint16
 
typedef unsigned char yytype_uint8
 

Enumerations

enum  yytokentype {
  YY_INTEGER = 258 , LUAPARSER_VARIABLE = 259 , LUAPARSER_WHILE = 260 , LUAPARSER_IF = 261 ,
  LUAPARSER_THEN = 262 , LUAPARSER_END = 263 , LUAPARSER_ELSE = 264 , LUAPARSER_ELSEIF = 265 ,
  LUAPARSER_LOCAL = 266 , LUAPARSER_FUNCTION = 267 , LUAPARSER_RETURN = 268 , LUAPARSER_MATH_SIN = 269 ,
  LUAPARSER_MATH_COS = 270 , LUAPARSER_MATH_EXP = 271 , LUAPARSER_MATH_ABS = 272 , LUAPARSER_MATH_LOG = 273 ,
  LUAPARSER_MATH_LOG10 = 274 , LUAPARSER_MATH_SQRT = 275 , LUAPARSER_MATH_FLOOR = 276 , LUAPARSER_MATH_CEIL = 277 ,
  LUAPARSER_MATH_POW = 278 , LUAPARSER_MATH_MAX = 279 , LUAPARSER_MATH_MIN = 280 , LUAPARSER_MATH_PI = 281 ,
  LUAPARSER_DO = 282 , LUAPARSER_FOR = 283 , LUAPARSER_BREAK = 284 , LUAPARSER_OR = 285 ,
  LUAPARSER_AND = 286 , LUAPARSER_NE = 287 , LUAPARSER_EQ = 288 , LUAPARSER_LE = 289 ,
  LUAPARSER_GE = 290 , LUAPARSER_UMINUS = 291 , YY_INTEGER = 258 , LUAPARSER_VARIABLE = 259 ,
  LUAPARSER_WHILE = 260 , LUAPARSER_IF = 261 , LUAPARSER_THEN = 262 , LUAPARSER_END = 263 ,
  LUAPARSER_ELSE = 264 , LUAPARSER_ELSEIF = 265 , LUAPARSER_LOCAL = 266 , LUAPARSER_FUNCTION = 267 ,
  LUAPARSER_RETURN = 268 , LUAPARSER_MATH_SIN = 269 , LUAPARSER_MATH_COS = 270 , LUAPARSER_MATH_EXP = 271 ,
  LUAPARSER_MATH_ABS = 272 , LUAPARSER_MATH_LOG = 273 , LUAPARSER_MATH_LOG10 = 274 , LUAPARSER_MATH_SQRT = 275 ,
  LUAPARSER_MATH_FLOOR = 276 , LUAPARSER_MATH_CEIL = 277 , LUAPARSER_MATH_POW = 278 , LUAPARSER_MATH_MAX = 279 ,
  LUAPARSER_MATH_MIN = 280 , LUAPARSER_MATH_PI = 281 , LUAPARSER_DO = 282 , LUAPARSER_FOR = 283 ,
  LUAPARSER_BREAK = 284 , LUAPARSER_OR = 285 , LUAPARSER_AND = 286 , LUAPARSER_NE = 287 ,
  LUAPARSER_EQ = 288 , LUAPARSER_LE = 289 , LUAPARSER_GE = 290 , LUAPARSER_UMINUS = 291
}
 

Functions

 for (yylen=0;yystr[yylen];yylen++) continue
 
 if (!yymsg) yymsg
 
 switch (yytype)
 
 while ((*yyd++= *yys++) !='\0') continue
 
void yaccparse (const char *command, ug::LUAParserClass *p)
 
YY_BUFFER_STATE yy_scan_string (const char *yy_str)
 
 YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp)
 
static void yydestruct (yymsg, yytype, yyvaluep) const char *yymsg
 
void yyerror (const char *s)
 
static char * yystpcpy (yydest, yysrc) char *yydest
 
static YYSIZE_T yystrlen (yystr) const char *yystr
 
static YYSIZE_T yysyntax_error (char *yyresult, int yystate, int yychar)
 
static YYSIZE_T yytnamerr (char *yyres, const char *yystr)
 

Variables

LUAParserClassglobalP
 
int yychar
 
static const yytype_int16 yycheck []
 
return yyd
 
static const yytype_uint8 yydefact []
 
static const yytype_int16 yydefgoto []
 
return yylen
 
YYSTYPE yylval
 
int yynerrs
 
static const yytype_int16 yypact []
 
static const yytype_int8 yypgoto []
 
static const yytype_uint8 yyr1 []
 
static const yytype_uint8 yyr2 []
 
const char * yys = yysrc
 
const char * yysrc
 
static const yytype_uint8 yystos []
 
static const yytype_uint8 yytable []
 
static const char *const yytname []
 
static const yytype_uint8 yytranslate []
 
int yytype
 
YYSTYPEyyvaluep
 

Macro Definition Documentation

◆ LUAPARSER_AND

#define LUAPARSER_AND   286

◆ LUAPARSER_BREAK

#define LUAPARSER_BREAK   284

◆ LUAPARSER_DO

#define LUAPARSER_DO   282

◆ LUAPARSER_ELSE

#define LUAPARSER_ELSE   264

◆ LUAPARSER_ELSEIF

#define LUAPARSER_ELSEIF   265

◆ LUAPARSER_END

#define LUAPARSER_END   263

◆ LUAPARSER_EQ

#define LUAPARSER_EQ   288

◆ LUAPARSER_FOR

#define LUAPARSER_FOR   283

◆ LUAPARSER_FUNCTION

#define LUAPARSER_FUNCTION   267

◆ LUAPARSER_GE

#define LUAPARSER_GE   290

◆ LUAPARSER_IF

#define LUAPARSER_IF   261

◆ LUAPARSER_LE

#define LUAPARSER_LE   289

◆ LUAPARSER_LOCAL

#define LUAPARSER_LOCAL   266

◆ LUAPARSER_MATH_ABS

#define LUAPARSER_MATH_ABS   272

◆ LUAPARSER_MATH_CEIL

#define LUAPARSER_MATH_CEIL   277

◆ LUAPARSER_MATH_COS

#define LUAPARSER_MATH_COS   270

◆ LUAPARSER_MATH_EXP

#define LUAPARSER_MATH_EXP   271

◆ LUAPARSER_MATH_FLOOR

#define LUAPARSER_MATH_FLOOR   276

◆ LUAPARSER_MATH_LOG

#define LUAPARSER_MATH_LOG   273

◆ LUAPARSER_MATH_LOG10

#define LUAPARSER_MATH_LOG10   274

◆ LUAPARSER_MATH_MAX

#define LUAPARSER_MATH_MAX   279

◆ LUAPARSER_MATH_MIN

#define LUAPARSER_MATH_MIN   280

◆ LUAPARSER_MATH_PI

#define LUAPARSER_MATH_PI   281

◆ LUAPARSER_MATH_POW

#define LUAPARSER_MATH_POW   278

◆ LUAPARSER_MATH_SIN

#define LUAPARSER_MATH_SIN   269

◆ LUAPARSER_MATH_SQRT

#define LUAPARSER_MATH_SQRT   275

◆ LUAPARSER_NE

#define LUAPARSER_NE   287

◆ LUAPARSER_OR

#define LUAPARSER_OR   285

◆ LUAPARSER_RETURN

#define LUAPARSER_RETURN   268

◆ LUAPARSER_THEN

#define LUAPARSER_THEN   262

◆ LUAPARSER_UMINUS

#define LUAPARSER_UMINUS   291

◆ LUAPARSER_VARIABLE

#define LUAPARSER_VARIABLE   259

◆ LUAPARSER_WHILE

#define LUAPARSER_WHILE   260

◆ THE_PREFIX

#define THE_PREFIX   ug4_lua_YY_

◆ YY_

#define YY_ (   msgid)    msgid

◆ YY_INTEGER

#define YY_INTEGER   258

◆ YY_LOCATION_PRINT

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

◆ YY_REDUCE_PRINT

#define YY_REDUCE_PRINT (   Rule)

◆ yy_scan_string

#define yy_scan_string   ug4_lua_YY__scan_string

◆ YY_STACK_PRINT

#define YY_STACK_PRINT (   Bottom,
  Top 
)

◆ YY_SYMBOL_PRINT

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

◆ YYABORT

#define YYABORT   goto yyabortlab

◆ YYACCEPT

#define YYACCEPT   goto yyacceptlab

◆ YYBACKUP

#define YYBACKUP (   Token,
  Value 
)
Value:
if (yychar == YYEMPTY && yylen == 1) \
{ \
yychar = (Token); \
yylval = (Value); \
yytoken = YYTRANSLATE (yychar); \
YYPOPSTACK (1); \
goto yybackup; \
} \
else \
{ \
yyerror (YY_("syntax error: cannot back up")); \
YYERROR; \
} \
while (YYID (0))
#define YYID(n)
Definition: parser.cpp:290
return yylen
Definition: parser.cpp:1085
#define yychar
Definition: parser.cpp:67
#define YY_(msgid)
Definition: parser.cpp:277
#define YYTRANSLATE(YYX)
Definition: parser.cpp:450
if(!yymsg) yymsg
#define YYEMPTY
Definition: parser.cpp:798

◆ YYBISON

#define YYBISON   1

◆ YYBISON_VERSION

#define YYBISON_VERSION   "2.3"

◆ yychar

#define yychar   ug4_lua_YY_char

◆ yyclearin

#define yyclearin   (yychar = YYEMPTY)

◆ YYCOPY

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

◆ yydebug

#define yydebug   ug4_lua_YY_debug

◆ YYDEBUG

#define YYDEBUG   0

◆ YYDPRINTF

#define YYDPRINTF (   Args)

◆ YYEMPTY

#define YYEMPTY   (-2)

◆ YYEOF

#define YYEOF   0

◆ YYERRCODE

#define YYERRCODE   256

◆ yyerrok

#define yyerrok   (yyerrstatus = 0)

◆ yyerror

#define yyerror   ug4_lua_YY_error

◆ YYERROR

#define YYERROR   goto yyerrorlab

◆ YYERROR_VERBOSE [1/2]

#define YYERROR_VERBOSE

◆ YYERROR_VERBOSE [2/2]

#define YYERROR_VERBOSE   1

◆ YYFAIL

#define YYFAIL   goto yyerrlab

◆ YYFINAL

#define YYFINAL   6

◆ YYFREE

#define YYFREE   free

◆ YYID

#define YYID (   n)    (n)

◆ YYINITDEPTH

#define YYINITDEPTH   200

◆ YYLAST

#define YYLAST   520

◆ yylex

#define yylex (   void)    ug4_lua_YY_lex

◆ YYLEX

#define YYLEX   yylex ()

◆ YYLLOC_DEFAULT

#define YYLLOC_DEFAULT (   Current,
  Rhs,
 
)
Value:
if (YYID (N)) \
{ \
(Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
(Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
(Current).last_line = YYRHSLOC (Rhs, N).last_line; \
(Current).last_column = YYRHSLOC (Rhs, N).last_column; \
} \
else \
{ \
(Current).first_line = (Current).last_line = \
YYRHSLOC (Rhs, 0).last_line; \
(Current).first_column = (Current).last_column = \
YYRHSLOC (Rhs, 0).last_column; \
} \
while (YYID (0))
#define YYRHSLOC(Rhs, K)
Definition: parser.cpp:840

◆ YYLSP_NEEDED

#define YYLSP_NEEDED   0

◆ yylval

#define yylval   ug4_lua_YY_lval

◆ YYMALLOC

#define YYMALLOC   malloc

◆ YYMAXDEPTH

#define YYMAXDEPTH   10000

◆ YYMAXUTOK

#define YYMAXUTOK   291

◆ yynerrs

#define yynerrs   ug4_lua_YY_nerrs

◆ YYNNTS

#define YYNNTS   12

◆ YYNRULES

#define YYNRULES   55

◆ YYNSTATES

#define YYNSTATES   148

◆ YYNTOKENS

#define YYNTOKENS   47

◆ YYPACT_NINF

#define YYPACT_NINF   -43

◆ yyparse

int yyparse   ug4_lua_YY_parse

Referenced by yaccparse().

◆ YYPOPSTACK

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

◆ YYPURE

#define YYPURE   0

◆ YYRECOVERING

#define YYRECOVERING ( )    (!!yyerrstatus)

◆ YYRHSLOC

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

◆ YYSIZE_MAXIMUM

#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)

◆ YYSIZE_T

#define YYSIZE_T   unsigned int

◆ YYSKELETON_NAME

#define YYSKELETON_NAME   "yacc.c"

◆ YYSTACK_ALLOC

#define YYSTACK_ALLOC   YYMALLOC

◆ YYSTACK_ALLOC_MAXIMUM

#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM

◆ YYSTACK_BYTES

#define YYSTACK_BYTES (   N)
Value:
((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
short int yytype_int16
Definition: parser.cpp:250
#define YYSTACK_GAP_MAXIMUM
Definition: parser.cpp:388
union YYSTYPE YYSTYPE

◆ YYSTACK_FREE

#define YYSTACK_FREE   YYFREE

◆ YYSTACK_GAP_MAXIMUM

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

◆ YYSTACK_RELOCATE

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

◆ YYTABLE_NINF

#define YYTABLE_NINF   -1

◆ YYTERROR

#define YYTERROR   1

◆ YYTOKEN_TABLE

#define YYTOKEN_TABLE   0

◆ YYTOKENTYPE

#define YYTOKENTYPE

◆ YYTRANSLATE

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

◆ YYUNDEFTOK

#define YYUNDEFTOK   2

◆ YYUSE

#define YYUSE (   e)    ((void) (e))

Typedef Documentation

◆ YY_BUFFER_STATE

◆ yytype_int16

typedef short int yytype_int16

◆ yytype_int8

typedef short int yytype_int8

◆ yytype_uint16

typedef unsigned short int yytype_uint16

◆ yytype_uint8

typedef unsigned char yytype_uint8

Enumeration Type Documentation

◆ yytokentype

Enumerator
YY_INTEGER 
LUAPARSER_VARIABLE 
LUAPARSER_WHILE 
LUAPARSER_IF 
LUAPARSER_THEN 
LUAPARSER_END 
LUAPARSER_ELSE 
LUAPARSER_ELSEIF 
LUAPARSER_LOCAL 
LUAPARSER_FUNCTION 
LUAPARSER_RETURN 
LUAPARSER_MATH_SIN 
LUAPARSER_MATH_COS 
LUAPARSER_MATH_EXP 
LUAPARSER_MATH_ABS 
LUAPARSER_MATH_LOG 
LUAPARSER_MATH_LOG10 
LUAPARSER_MATH_SQRT 
LUAPARSER_MATH_FLOOR 
LUAPARSER_MATH_CEIL 
LUAPARSER_MATH_POW 
LUAPARSER_MATH_MAX 
LUAPARSER_MATH_MIN 
LUAPARSER_MATH_PI 
LUAPARSER_DO 
LUAPARSER_FOR 
LUAPARSER_BREAK 
LUAPARSER_OR 
LUAPARSER_AND 
LUAPARSER_NE 
LUAPARSER_EQ 
LUAPARSER_LE 
LUAPARSER_GE 
LUAPARSER_UMINUS 
YY_INTEGER 
LUAPARSER_VARIABLE 
LUAPARSER_WHILE 
LUAPARSER_IF 
LUAPARSER_THEN 
LUAPARSER_END 
LUAPARSER_ELSE 
LUAPARSER_ELSEIF 
LUAPARSER_LOCAL 
LUAPARSER_FUNCTION 
LUAPARSER_RETURN 
LUAPARSER_MATH_SIN 
LUAPARSER_MATH_COS 
LUAPARSER_MATH_EXP 
LUAPARSER_MATH_ABS 
LUAPARSER_MATH_LOG 
LUAPARSER_MATH_LOG10 
LUAPARSER_MATH_SQRT 
LUAPARSER_MATH_FLOOR 
LUAPARSER_MATH_CEIL 
LUAPARSER_MATH_POW 
LUAPARSER_MATH_MAX 
LUAPARSER_MATH_MIN 
LUAPARSER_MATH_PI 
LUAPARSER_DO 
LUAPARSER_FOR 
LUAPARSER_BREAK 
LUAPARSER_OR 
LUAPARSER_AND 
LUAPARSER_NE 
LUAPARSER_EQ 
LUAPARSER_LE 
LUAPARSER_GE 
LUAPARSER_UMINUS 

Function Documentation

◆ for()

◆ if()

if ( yymsg)

◆ switch()

switch ( yytype  )

◆ while()

while ( *++= *++yys = '\0')

◆ yaccparse()

void yaccparse ( const char *  command,
ug::LUAParserClass p 
)

References globalP, p, yy_scan_string, and yyparse.

Referenced by ug::LUAParserClass::parse().

◆ yy_scan_string()

YY_BUFFER_STATE yy_scan_string ( const char *  yy_str)

◆ YY_SYMBOL_PRINT()

YY_SYMBOL_PRINT ( yymsg  ,
yytype  ,
yyvaluep  ,
yylocationp   
)

◆ yydestruct()

static void yydestruct ( yymsg  ,
yytype  ,
yyvaluep   
) const
static

◆ yyerror()

void yyerror ( const char *  s)

References ug::LUAParserClass::err, globalP, and s.

◆ yystpcpy()

static char* yystpcpy ( yydest  ,
yysrc   
)
static

Referenced by yysyntax_error(), and yytnamerr().

◆ yystrlen()

static YYSIZE_T yystrlen ( yystr  ) const
static

References yylen, and YYSIZE_T.

Referenced by yysyntax_error(), and yytnamerr().

◆ yysyntax_error()

static YYSIZE_T yysyntax_error ( char *  yyresult,
int  yystate,
int  yychar 
)
static

◆ yytnamerr()

static YYSIZE_T yytnamerr ( char *  yyres,
const char *  yystr 
)
static

References YYSIZE_T, yystpcpy(), and yystrlen().

Referenced by yysyntax_error().

Variable Documentation

◆ globalP

LUAParserClass* globalP

Referenced by yaccparse(), and yyerror().

◆ yychar

int yychar

◆ yycheck

const yytype_int16 yycheck[]
static

Referenced by yysyntax_error().

◆ yyd

return yyd

◆ yydefact

const yytype_uint8 yydefact[]
static
Initial value:
=
{
0, 0, 0, 2, 3, 0, 1, 0, 19, 0,
0, 0, 18, 26, 28, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
55, 0, 11, 0, 0, 24, 0, 4, 0, 0,
28, 0, 7, 5, 23, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 29, 0,
25, 17, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 8, 0, 21, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 42, 41, 40, 35, 34, 38, 39,
37, 36, 30, 31, 32, 33, 27, 0, 16, 6,
22, 44, 43, 45, 46, 47, 48, 49, 50, 51,
0, 0, 0, 0, 20, 0, 0, 0, 0, 0,
0, 0, 15, 0, 9, 52, 54, 53, 13, 0,
0, 0, 16, 12, 0, 14, 0, 10
}

◆ yydefgoto

const yytype_int16 yydefgoto[]
static
Initial value:
=
{
-1, 2, 3, 35, 141, 127, 4, 9, 75, 43,
36, 37
}

◆ yylen

return yylen

Referenced by yystrlen().

◆ yylval

YYSTYPE yylval

◆ yynerrs

int yynerrs

◆ yypact

const yytype_int16 yypact[]
static
Initial value:
=
{
5, 16, 22, -43, -43, -16, -43, 55, 17, 14,
55, 115, -43, -43, -42, 64, 58, 64, 20, 21,
24, 25, 26, 27, 28, 29, 30, 31, 46, 48,
-43, 91, -43, 64, 64, 115, 88, 469, 64, 64,
52, 135, 56, -43, 364, 64, 64, 64, 64, 64,
64, 64, 64, 64, 64, 64, 64, 57, -43, -25,
-43, -43, 64, 64, 64, 64, 64, 64, 64, 64,
64, 64, 64, 64, 469, 66, 379, 115, 64, 64,
160, 177, 194, 211, 228, 245, 262, 279, 296, 394,
409, 424, 64, -43, 479, 479, -13, -13, -13, -13,
-13, -13, 2, 2, -43, -43, -43, 64, 35, 469,
-43, -43, -43, -43, -43, -43, -43, -43, -43, -43,
64, 64, 64, 439, -43, 115, 64, 90, 313, 330,
347, 64, -43, 148, -43, -43, -43, -43, 454, 115,
64, 74, 35, 469, 115, -43, 94, -43
}

Referenced by yysyntax_error().

◆ yypgoto

const yytype_int8 yypgoto[]
static
Initial value:
=
{
-43, -43, -43, -43, -43, -38, -43, 100, 7, 36,
-31, -15
}

◆ yyr1

const yytype_uint8 yyr1[]
static
Initial value:
=
{
0, 47, 48, 49, 50, 50, 50, 50, 50, 50,
50, 50, 51, 51, 52, 52, 52, 53, 54, 54,
55, 55, 56, 56, 57, 57, 58, 58, 58, 58,
58, 58, 58, 58, 58, 58, 58, 58, 58, 58,
58, 58, 58, 58, 58, 58, 58, 58, 58, 58,
58, 58, 58, 58, 58, 58
}

◆ yyr2

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

◆ yys

const char* yys = yysrc

◆ yysrc

const char* yysrc

◆ yystos

const yytype_uint8 yystos[]
static
Initial value:
=
{
0, 12, 48, 49, 53, 4, 0, 45, 4, 54,
44, 46, 54, 3, 4, 6, 11, 13, 14, 15,
16, 17, 18, 19, 20, 21, 22, 23, 24, 25,
26, 28, 29, 39, 45, 50, 57, 58, 43, 45,
4, 58, 4, 56, 58, 45, 45, 45, 45, 45,
45, 45, 45, 45, 45, 45, 45, 4, 58, 58,
57, 8, 30, 31, 32, 33, 34, 35, 36, 37,
38, 39, 40, 41, 58, 55, 58, 7, 43, 44,
58, 58, 58, 58, 58, 58, 58, 58, 58, 58,
58, 58, 43, 46, 58, 58, 58, 58, 58, 58,
58, 58, 58, 58, 58, 58, 46, 44, 57, 58,
56, 46, 46, 46, 46, 46, 46, 46, 46, 46,
44, 44, 44, 58, 55, 9, 10, 52, 58, 58,
58, 44, 57, 58, 8, 46, 46, 46, 58, 7,
44, 51, 57, 58, 27, 52, 57, 8
}

◆ yytable

const yytype_uint8 yytable[]
static

◆ yytname

const char* const yytname[]
static
Initial value:
=
{
"$end", "error", "$undefined", "YY_INTEGER", "LUAPARSER_VARIABLE",
"LUAPARSER_WHILE", "LUAPARSER_IF", "LUAPARSER_THEN", "LUAPARSER_END",
"LUAPARSER_ELSE", "LUAPARSER_ELSEIF", "LUAPARSER_LOCAL",
"LUAPARSER_FUNCTION", "LUAPARSER_RETURN", "LUAPARSER_MATH_SIN",
"LUAPARSER_MATH_COS", "LUAPARSER_MATH_EXP", "LUAPARSER_MATH_ABS",
"LUAPARSER_MATH_LOG", "LUAPARSER_MATH_LOG10", "LUAPARSER_MATH_SQRT",
"LUAPARSER_MATH_FLOOR", "LUAPARSER_MATH_CEIL", "LUAPARSER_MATH_POW",
"LUAPARSER_MATH_MAX", "LUAPARSER_MATH_MIN", "LUAPARSER_MATH_PI",
"LUAPARSER_DO", "LUAPARSER_FOR", "LUAPARSER_BREAK", "LUAPARSER_OR",
"LUAPARSER_AND", "'>'", "'<'", "LUAPARSER_NE", "LUAPARSER_EQ",
"LUAPARSER_LE", "LUAPARSER_GE", "'+'", "'-'", "'*'", "'/'",
"LUAPARSER_UMINUS", "'='", "','", "'('", "')'", "$accept", "program",
"func", "stmt", "forStep", "elseblock", "funcstat", "arguments",
"arguments2", "exprlist", "stmt_list", "expr", 0
}

Referenced by yysyntax_error().

◆ yytranslate

const yytype_uint8 yytranslate[]
static

◆ yytype

int yytype

Referenced by yysyntax_error().

◆ yyvaluep

YYSTYPE* yyvaluep