mirror of
https://github.com/thunderbrewhq/binana.git
synced 2026-04-29 19:53:51 +00:00
feat(profile): more Lua information
This commit is contained in:
parent
1479e2f5a0
commit
fcf5f9352a
10 changed files with 233 additions and 12 deletions
34
profile/3.3.5a-windows-386/include/lua/lex.h
Normal file
34
profile/3.3.5a-windows-386/include/lua/lex.h
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
#ifndef LUA_LEX_H
|
||||
#define LUA_LEX_H
|
||||
|
||||
DECLARE_UNION(SemInfo);
|
||||
DECLARE_STRUCT(LexState);
|
||||
|
||||
#include "lua/parser.h"
|
||||
#include "lua/state.h"
|
||||
|
||||
union SemInfo {
|
||||
lua_Number r;
|
||||
TString* ts;
|
||||
}; /* semantics information */
|
||||
|
||||
typedef struct Token {
|
||||
int token;
|
||||
SemInfo seminfo;
|
||||
} Token;
|
||||
|
||||
struct LexState {
|
||||
int32_t current; /* current character (charint) */
|
||||
int32_t linenumber; /* input line counter */
|
||||
int32_t lastline; /* line of last token `consumed' */
|
||||
Token t; /* current token */
|
||||
Token lookahead; /* look ahead token */
|
||||
FuncState* fs; /* `FuncState' is private to the parser */
|
||||
lua_State* L;
|
||||
ZIO* z; /* input stream */
|
||||
Mbuffer* buff; /* buffer for tokens */
|
||||
TString* source; /* current source name */
|
||||
char decpoint; /* locale decimal point */
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue