mirror of
https://github.com/thunderbrewhq/binana.git
synced 2026-04-27 11:13:50 +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
|
||||
|
||||
DECLARE_UNION(SemInfo);
|
||||
DECLARE_STRUCT(Token);
|
||||
DECLARE_STRUCT(LexState);
|
||||
|
||||
#include "lua/parser.h"
|
||||
|
|
@ -12,10 +13,10 @@ union SemInfo {
|
|||
TString* ts;
|
||||
}; /* semantics information */
|
||||
|
||||
typedef struct Token {
|
||||
int token;
|
||||
struct Token {
|
||||
int32_t token;
|
||||
SemInfo seminfo;
|
||||
} Token;
|
||||
};
|
||||
|
||||
struct LexState {
|
||||
int32_t current; /* current character (charint) */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue