ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

lstx.cpp File Reference

#include "engines/grim/lua/lauxlib.h"
#include "engines/grim/lua/ldo.h"
#include "engines/grim/lua/lfunc.h"
#include "engines/grim/lua/llex.h"
#include "engines/grim/lua/lmem.h"
#include "engines/grim/lua/lopcodes.h"
#include "engines/grim/lua/lparser.h"
#include "engines/grim/lua/lstate.h"
#include "engines/grim/lua/lstring.h"
#include "engines/grim/lua/lua.h"
#include "engines/grim/lua/luadebug.h"
#include "engines/grim/lua/lzio.h"
Include dependency graph for lstx.cpp:

Go to the source code of this file.

Classes

struct  Grim::FuncState
union  Grim::YYSTYPE

Namespaces

namespace  Grim

Defines

#define FORBIDDEN_SYMBOL_EXCEPTION_setjmp
#define FORBIDDEN_SYMBOL_EXCEPTION_longjmp
#define YYBISON   1
#define yyparse   luaY_parse
#define yylex   luaY_lex
#define yyerror   luaY_error
#define yylval   luaY_lval
#define yychar   luaY_char
#define yydebug   luaY_debug
#define yynerrs   luaY_nerrs
#define WRONGTOKEN   258
#define NIL   259
#define IF   260
#define THEN   261
#define ELSE   262
#define ELSEIF   263
#define WHILE   264
#define DO   265
#define REPEAT   266
#define UNTIL   267
#define END   268
#define RETURN   269
#define LOCAL   270
#define FUNCTION   271
#define DOTS   272
#define NUMBER   273
#define NAME   274
#define STRING   275
#define AND   276
#define OR   277
#define EQ   278
#define NE   279
#define LE   280
#define GE   281
#define CONC   282
#define UNARY   283
#define NOT   284
#define MES_LIM(x)   "(limit=" x ")"
#define JMPSIZE   2
#define MAXLOCALS   32
#define SMAXLOCALS   "32"
#define MINGLOBAL   (MAXLOCALS+1)
#define MAXVAR   32
#define SMAXVAR   "32"
#define MAXSTATES   6
#define SMAXSTATES   "6"
#define MAXUPVALUES   16
#define SMAXUPVALUES   "16"
#define isglobal(v)   (MINGLOBAL<=(v))
#define globalindex(v)   ((v)-MINGLOBAL)
#define islocal(v)   (0<(v) && (v)<MINGLOBAL)
#define localindex(v)   ((v)-1)
#define isdot(v)   (v<0)
#define dotindex(v)   ((-(v))-1)
#define YYPURE   1
#define code_binop(op)   code_pop(op)
#define code_unop(op)   code_neutralop(op)
#define LIM   20
#define YYFINAL   181
#define YYFLAG   -32768
#define YYNTBASE   49
#define YYTRANSLATE(x)   ((unsigned)(x) <= 284 ? yytranslate[x] : 93)
#define YYLAST   262
#define yyerrok   (yyerrstatus = 0)
#define yyclearin   (yychar = YYEMPTY)
#define YYEMPTY   -2
#define YYEOF   0
#define YYACCEPT   return(0)
#define YYABORT   return(1)
#define YYERROR   goto yyerrlab1
#define YYFAIL   goto yyerrlab
#define YYRECOVERING()   (!!yyerrstatus)
#define YYBACKUP(token, value)
#define YYTERROR   1
#define YYERRCODE   256
#define YYLEX   yylex(&yylval)
#define YYINITDEPTH   1000
#define YYPOPSTACK   (yyvsp--, yyssp--)

Typedefs

typedef long Grim::vardesc
typedef struct Grim::FuncState Grim::FuncState

Functions

int Grim::luaY_parse (void)
void Grim::luaY_syntaxerror (const char *s, const char *token)
void Grim::luaY_error (const char *s)
static void Grim::check_pc (int n)
static void Grim::code_byte (byte c)
static void Grim::deltastack (int delta)
static int Grim::code_oparg_at (int pc, OpCode op, int builtin, int arg, int delta)
static int Grim::fix_opcode (int pc, OpCode op, int builtin, int arg)
static void Grim::code_oparg (OpCode op, int builtin, int arg, int delta)
static void Grim::code_opcode (OpCode op, int delta)
static void Grim::code_pop (OpCode op)
static void Grim::code_neutralop (OpCode op)
static void Grim::code_constant (int c)
static int Grim::next_constant (FuncState *cs)
static int Grim::string_constant (TaggedString *s, FuncState *cs)
static void Grim::code_string (TaggedString *s)
static int Grim::real_constant (float r)
static void Grim::code_number (float f)
static void Grim::flush_record (int n)
static void Grim::flush_list (int m, int n)
static void Grim::luaI_registerlocalvar (TaggedString *varname, int line)
static void Grim::luaI_unregisterlocalvar (int line)
static void Grim::store_localvar (TaggedString *name, int n)
static void Grim::add_localvar (TaggedString *name)
static vardesc Grim::var2store (vardesc var)
static void Grim::add_varbuffer (vardesc var, int n)
static int Grim::aux_localname (TaggedString *n, FuncState *st)
static vardesc Grim::singlevar (TaggedString *n, FuncState *st)
static int Grim::indexupvalue (TaggedString *n)
static void Grim::pushupvalue (TaggedString *n)
void Grim::luaY_codedebugline (int32 line)
static void Grim::adjuststack (int n)
static long Grim::adjust_functioncall (long exp, int nresults)
static void Grim::adjust_mult_assign (int vars, long exps)
static void Grim::code_args (int nparams, int dots)
static void Grim::lua_pushvar (vardesc var)
static void Grim::storevar (vardesc var)
static int Grim::lua_codestore (int i, int left)
static int Grim::fix_jump (int pc, OpCode op, int n)
static void Grim::fix_upjmp (OpCode op, int pos)
static void Grim::codeIf (int thenAdd, int elseAdd)
static void Grim::code_shortcircuit (int pc, OpCode op)
static void Grim::codereturn (void)
static void Grim::func_onstack (TProtoFunc *f)
static void Grim::init_state (TaggedString *filename)
static void Grim::init_func ()
static TProtoFunc * Grim::close_func ()
TProtoFunc * Grim::luaY_parser (ZIO *z)
int32 Grim::luaY_lex (YYSTYPE *l)
int Grim::yyparse ()

Variables

static const char Grim::yytranslate []
static const short Grim::yyr1 []
static const short Grim::yyr2 []
static const short Grim::yydefact []
static const short Grim::yydefgoto []
static const short Grim::yypact []
static const short Grim::yypgoto []
static const short Grim::yytable []
static const short Grim::yycheck []

Define Documentation

#define AND   276

Definition at line 58 of file lstx.cpp.

#define code_binop (   op  )     code_pop(op)

Definition at line 246 of file lstx.cpp.

#define code_unop (   op  )     code_neutralop(op)

Definition at line 255 of file lstx.cpp.

#define CONC   282

Definition at line 64 of file lstx.cpp.

#define DO   265

Definition at line 47 of file lstx.cpp.

#define dotindex (   v  )     ((-(v))-1)

Definition at line 119 of file lstx.cpp.

#define DOTS   272

Definition at line 54 of file lstx.cpp.

#define ELSE   262

Definition at line 44 of file lstx.cpp.

#define ELSEIF   263

Definition at line 45 of file lstx.cpp.

#define END   268

Definition at line 50 of file lstx.cpp.

#define EQ   278

Definition at line 60 of file lstx.cpp.

#define FORBIDDEN_SYMBOL_EXCEPTION_longjmp

Definition at line 13 of file lstx.cpp.

#define FORBIDDEN_SYMBOL_EXCEPTION_setjmp

Definition at line 12 of file lstx.cpp.

#define FUNCTION   271

Definition at line 53 of file lstx.cpp.

#define GE   281

Definition at line 63 of file lstx.cpp.

#define globalindex (   v  )     ((v)-MINGLOBAL)

Definition at line 115 of file lstx.cpp.

#define IF   260

Definition at line 42 of file lstx.cpp.

#define isdot (   v  )     (v<0)

Definition at line 118 of file lstx.cpp.

#define isglobal (   v  )     (MINGLOBAL<=(v))

Definition at line 114 of file lstx.cpp.

#define islocal (   v  )     (0<(v) && (v)<MINGLOBAL)

Definition at line 116 of file lstx.cpp.

#define JMPSIZE   2

Definition at line 82 of file lstx.cpp.

#define LE   280

Definition at line 62 of file lstx.cpp.

#define LIM   20

Definition at line 296 of file lstx.cpp.

#define LOCAL   270

Definition at line 52 of file lstx.cpp.

#define localindex (   v  )     ((v)-1)

Definition at line 117 of file lstx.cpp.

#define MAXLOCALS   32

Definition at line 85 of file lstx.cpp.

#define MAXSTATES   6

Definition at line 95 of file lstx.cpp.

#define MAXUPVALUES   16

Definition at line 99 of file lstx.cpp.

#define MAXVAR   32

Definition at line 91 of file lstx.cpp.

#define MES_LIM (   x  )     "(limit=" x ")"

Definition at line 78 of file lstx.cpp.

#define MINGLOBAL   (MAXLOCALS+1)

Definition at line 88 of file lstx.cpp.

#define NAME   274

Definition at line 56 of file lstx.cpp.

#define NE   279

Definition at line 61 of file lstx.cpp.

#define NIL   259

Definition at line 41 of file lstx.cpp.

#define NOT   284

Definition at line 66 of file lstx.cpp.

#define NUMBER   273

Definition at line 55 of file lstx.cpp.

#define OR   277

Definition at line 59 of file lstx.cpp.

#define REPEAT   266

Definition at line 48 of file lstx.cpp.

#define RETURN   269

Definition at line 51 of file lstx.cpp.

#define SMAXLOCALS   "32"

Definition at line 86 of file lstx.cpp.

#define SMAXSTATES   "6"

Definition at line 96 of file lstx.cpp.

#define SMAXUPVALUES   "16"

Definition at line 100 of file lstx.cpp.

#define SMAXVAR   "32"

Definition at line 92 of file lstx.cpp.

#define STRING   275

Definition at line 57 of file lstx.cpp.

#define THEN   261

Definition at line 43 of file lstx.cpp.

#define UNARY   283

Definition at line 65 of file lstx.cpp.

#define UNTIL   267

Definition at line 49 of file lstx.cpp.

#define WHILE   264

Definition at line 46 of file lstx.cpp.

#define WRONGTOKEN   258

Definition at line 40 of file lstx.cpp.

#define YYABORT   return(1)

Definition at line 910 of file lstx.cpp.

#define YYACCEPT   return(0)

Definition at line 909 of file lstx.cpp.

#define YYBACKUP (   token,
  value 
)
Value:
do                              \
    if (yychar == YYEMPTY && yylen == 1) {              \
        yychar = (token), yylval = (value);         \
        yychar1 = YYTRANSLATE (yychar);             \
        YYPOPSTACK;                     \
        goto yybackup;                      \
    } else { yyerror ("syntax error: cannot back up"); YYERROR; }   \
    while (0)

Definition at line 918 of file lstx.cpp.

#define YYBISON   1

Definition at line 31 of file lstx.cpp.

#define yychar   luaY_char

Definition at line 37 of file lstx.cpp.

#define yyclearin   (yychar = YYEMPTY)

Definition at line 906 of file lstx.cpp.

#define yydebug   luaY_debug

Definition at line 38 of file lstx.cpp.

#define YYEMPTY   -2

Definition at line 907 of file lstx.cpp.

#define YYEOF   0

Definition at line 908 of file lstx.cpp.

#define YYERRCODE   256

Definition at line 929 of file lstx.cpp.

#define yyerrok   (yyerrstatus = 0)

Definition at line 905 of file lstx.cpp.

#define YYERROR   goto yyerrlab1

Definition at line 911 of file lstx.cpp.

#define yyerror   luaY_error

Definition at line 35 of file lstx.cpp.

#define YYFAIL   goto yyerrlab

Definition at line 916 of file lstx.cpp.

#define YYFINAL   181

Definition at line 684 of file lstx.cpp.

#define YYFLAG   -32768

Definition at line 685 of file lstx.cpp.

#define YYINITDEPTH   1000

Definition at line 937 of file lstx.cpp.

#define YYLAST   262

Definition at line 811 of file lstx.cpp.

#define yylex   luaY_lex

Definition at line 34 of file lstx.cpp.

#define YYLEX   yylex(&yylval)

Definition at line 931 of file lstx.cpp.

#define yylval   luaY_lval

Definition at line 36 of file lstx.cpp.

#define yynerrs   luaY_nerrs

Definition at line 39 of file lstx.cpp.

#define YYNTBASE   49

Definition at line 686 of file lstx.cpp.

#define yyparse   luaY_parse

Definition at line 33 of file lstx.cpp.

#define YYPOPSTACK   (yyvsp--, yyssp--)
#define YYPURE   1

Definition at line 140 of file lstx.cpp.

#define YYRECOVERING (  )     (!!yyerrstatus)

Definition at line 917 of file lstx.cpp.

#define YYTERROR   1

Definition at line 928 of file lstx.cpp.

#define YYTRANSLATE (   x  )     ((unsigned)(x) <= 284 ? yytranslate[x] : 93)

Definition at line 688 of file lstx.cpp.



Generated on Sat Sep 14 2019 05:02:26 for ResidualVM by doxygen 1.7.1
curved edge   curved edge