Included Files
- #include <nut/include/lua/lobject.h>
- #include <nut/include/lua/lzio.h>
Preprocessor definitions
#define llex_h
#define FIRST_RESERVED 257
#define TOKEN_LEN
#define NUM_RESERVED
enum RESERVED
enum RESERVED
|
|
{
|
|
TK_AND;
|
|
TK_BREAK;
|
|
TK_DO;
|
|
TK_ELSE;
|
|
TK_ELSEIF;
|
|
TK_END;
|
|
TK_FALSE;
|
|
TK_FOR;
|
|
TK_FUNCTION;
|
|
TK_IF;
|
|
TK_IN;
|
|
TK_LOCAL;
|
|
TK_NIL;
|
|
TK_NOT;
|
|
TK_OR;
|
|
TK_REPEAT;
|
|
TK_RETURN;
|
|
TK_THEN;
|
|
TK_TRUE;
|
|
TK_UNTIL;
|
|
TK_WHILE;
|
|
TK_CONCAT;
|
|
TK_DOTS;
|
|
TK_EQ;
|
|
TK_GE;
|
|
TK_LE;
|
|
TK_NE;
|
|
TK_NUMBER;
|
|
TK_NAME;
|
|
TK_STRING;
|
|
TK_EOS;
|
|
}
|
|
typedef union {...} SemInfo
union
|
|
{
|
|
lua_Number r;
|
|
TString* ts;
|
|
}
|
|
typedef struct Token Token
struct Token
|
|
{
|
|
int token;
|
|
SemInfo seminfo;
|
|
}
|
|
typedef struct LexState LexState
struct LexState
|
|
{
|
|
int current;
|
|
int linenumber;
|
|
int lastline;
|
|
Token t;
|
|
Token lookahead;
|
|
struct FuncState* fs;
|
|
struct lua_State* L;
|
|
ZIO* z;
|
|
Mbuffer* buff;
|
|
TString* source;
|
|
char decpoint;
|
|
}
|
|
External Variables
luaX_tokens
extern const char* const luaX_tokens[]