diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/token.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/include/token.h b/src/include/token.h index c5ee9ec..33f28f1 100644 --- a/src/include/token.h +++ b/src/include/token.h @@ -1,6 +1,6 @@ #ifndef TOKEN_H #define TOKEN_H -typedef struct TOKEN_STRUCT { +typedef struct TOKEN_STRUC { enum { TOKEN_ID, // keyword TOKEN_EQ, // '=' @@ -12,11 +12,12 @@ typedef struct TOKEN_STRUCT { TOKEN_LBRAK, // '[' TOKEN_RBRAK, // ']' TOKEN_POUND, // '#'' - TOKEN_TILDE // '~' + TOKEN_TILDE, // '~' + TOKEN_EOF // '\0' } type; char* value; } token_T; -token_T* init_token(int type, char* value); +token_T* token_init(int type, char* value); #endif |