native Lua  0.5.0-devel
Lua on the platform you use with the compiler you choose
Data Structures | Macros | Typedefs | Functions
lparser.c File Reference
#include "lprefix.h"
#include <limits.h>
#include <string.h>
#include "lua.h"
#include "lcode.h"
#include "ldebug.h"
#include "ldo.h"
#include "lfunc.h"
#include "llex.h"
#include "lmem.h"
#include "lobject.h"
#include "lopcodes.h"
#include "lparser.h"
#include "lstate.h"
#include "lstring.h"
#include "ltable.h"
Include dependency graph for lparser.c:

Data Structures

struct  BlockCnt
 
struct  ConsControl
 
struct  LHS_assign
 

Macros

#define lparser_c
 
#define LUA_CORE
 
#define MAXVARS   200
 
#define hasmultret(k)   ((k) == VCALL || (k) == VVARARG)
 
#define eqstr(a, b)   ((a) == (b))
 
#define check_condition(ls, c, msg)   { if (!(c)) luaX_syntaxerror(ls, msg); }
 
#define new_localvarliteral(ls, v)
 
#define enterlevel(ls)   luaE_enterCcall((ls)->L)
 
#define leavelevel(ls)   luaE_exitCcall((ls)->L)
 
#define UNARY_PRIORITY   12 /* priority for unary operators */
 

Typedefs

typedef struct BlockCnt BlockCnt
 
typedef struct ConsControl ConsControl
 

Functions

int luaY_nvarstack (FuncState *fs)
 
LClosureluaY_parser (lua_State *L, ZIO *z, Mbuffer *buff, Dyndata *dyd, const char *name, int firstchar)
 

Macro Definition Documentation

◆ check_condition

#define check_condition (   ls,
  c,
  msg 
)    { if (!(c)) luaX_syntaxerror(ls, msg); }

◆ enterlevel

#define enterlevel (   ls)    luaE_enterCcall((ls)->L)

◆ eqstr

#define eqstr (   a,
 
)    ((a) == (b))

◆ hasmultret

#define hasmultret (   k)    ((k) == VCALL || (k) == VVARARG)

◆ leavelevel

#define leavelevel (   ls)    luaE_exitCcall((ls)->L)

◆ lparser_c

#define lparser_c

◆ LUA_CORE

#define LUA_CORE

◆ MAXVARS

#define MAXVARS   200

◆ new_localvarliteral

#define new_localvarliteral (   ls,
 
)
Value:
new_localvar(ls, \
luaX_newstring(ls, "" v, (sizeof(v)/sizeof(char)) - 1));

◆ UNARY_PRIORITY

#define UNARY_PRIORITY   12 /* priority for unary operators */

Typedef Documentation

◆ BlockCnt

typedef struct BlockCnt BlockCnt

◆ ConsControl

typedef struct ConsControl ConsControl

Function Documentation

◆ luaY_nvarstack()

int luaY_nvarstack ( FuncState fs)

◆ luaY_parser()

LClosure* luaY_parser ( lua_State L,
ZIO z,
Mbuffer buff,
Dyndata dyd,
const char *  name,
int  firstchar 
)

Variable Documentation

◆ left

lu_byte left

◆ right

lu_byte right
luaX_newstring
TString * luaX_newstring(LexState *ls, const char *str, size_t l)
Definition: llex.c:130