1
0
Fork 0

Token: Add property for TokenGet

master
an 2017-04-24 06:17:07 -04:00
parent 88580c78ee
commit d2242c1685
1 changed files with 7 additions and 1 deletions

View File

@ -48,6 +48,11 @@ Lth_X(LnEnd ) // \n
((out).str != NULL ? free((out).str) : ((void)0)) ((out).str != NULL ? free((out).str) : ((void)0))
// Extern Functions ----------------------------------------------------------|
void Lth_TokenGet(FILE *fp, struct Lth_Token *out);
// Type Definitions ----------------------------------------------------------| // Type Definitions ----------------------------------------------------------|
// //
@ -67,6 +72,8 @@ typedef enum Lth_TokenType
// //
typedef struct Lth_Token typedef struct Lth_Token
{ {
__prop get {call: Lth_TokenGet(__arg, this)}
Lth_TokenType type; Lth_TokenType type;
char *str; char *str;
} Lth_Token; } Lth_Token;
@ -74,7 +81,6 @@ typedef struct Lth_Token
// Extern Functions ----------------------------------------------------------| // Extern Functions ----------------------------------------------------------|
void Lth_TokenGet(FILE *fp, Lth_Token *out);
char const *Lth_TokenName(Lth_TokenType type); char const *Lth_TokenName(Lth_TokenType type);
#endif//lithos3__Lth_token_h #endif//lithos3__Lth_token_h