From d2242c16859043c7a9c0279080f035dd6697ed15 Mon Sep 17 00:00:00 2001 From: Graham Date: Mon, 24 Apr 2017 06:17:07 -0400 Subject: [PATCH] Token: Add property for TokenGet --- lithos_c/inc/Lth_token.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lithos_c/inc/Lth_token.h b/lithos_c/inc/Lth_token.h index f3ab96b..036214e 100644 --- a/lithos_c/inc/Lth_token.h +++ b/lithos_c/inc/Lth_token.h @@ -48,6 +48,11 @@ Lth_X(LnEnd ) // \n ((out).str != NULL ? free((out).str) : ((void)0)) +// Extern Functions ----------------------------------------------------------| + +void Lth_TokenGet(FILE *fp, struct Lth_Token *out); + + // Type Definitions ----------------------------------------------------------| // @@ -67,6 +72,8 @@ typedef enum Lth_TokenType // typedef struct Lth_Token { + __prop get {call: Lth_TokenGet(__arg, this)} + Lth_TokenType type; char *str; } Lth_Token; @@ -74,7 +81,6 @@ typedef struct Lth_Token // Extern Functions ----------------------------------------------------------| -void Lth_TokenGet(FILE *fp, Lth_Token *out); char const *Lth_TokenName(Lth_TokenType type); #endif//lithos3__Lth_token_h