mirror of
https://github.com/thunderbrewhq/binana.git
synced 2026-04-27 03:03:52 +00:00
feat(profile): fix struct Token
This commit is contained in:
parent
fcf5f9352a
commit
06d9db2d7e
1 changed files with 4 additions and 3 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
#define LUA_LEX_H
|
#define LUA_LEX_H
|
||||||
|
|
||||||
DECLARE_UNION(SemInfo);
|
DECLARE_UNION(SemInfo);
|
||||||
|
DECLARE_STRUCT(Token);
|
||||||
DECLARE_STRUCT(LexState);
|
DECLARE_STRUCT(LexState);
|
||||||
|
|
||||||
#include "lua/parser.h"
|
#include "lua/parser.h"
|
||||||
|
|
@ -12,10 +13,10 @@ union SemInfo {
|
||||||
TString* ts;
|
TString* ts;
|
||||||
}; /* semantics information */
|
}; /* semantics information */
|
||||||
|
|
||||||
typedef struct Token {
|
struct Token {
|
||||||
int token;
|
int32_t token;
|
||||||
SemInfo seminfo;
|
SemInfo seminfo;
|
||||||
} Token;
|
};
|
||||||
|
|
||||||
struct LexState {
|
struct LexState {
|
||||||
int32_t current; /* current character (charint) */
|
int32_t current; /* current character (charint) */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue