diff options
author | c+1 | 2023-10-10 11:26:44 -0400 |
---|---|---|
committer | c+1 | 2023-10-10 11:26:44 -0400 |
commit | 58c7a71a50318940e747c365cc3f207dba432977 (patch) | |
tree | 7d173f5433fba1b01c531610a0bf70684b8ca1de /src/include/token.h | |
parent | 78befa147eccfb169bf994da3d9bfba9be3631a6 (diff) |
fixed source.c, fixed preprocessor mem leaks, implemented new lexer
Diffstat (limited to 'src/include/token.h')
-rw-r--r-- | src/include/token.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/token.h b/src/include/token.h index 802f13d..6779755 100644 --- a/src/include/token.h +++ b/src/include/token.h @@ -2,6 +2,7 @@ #define TOKEN_H #include "util.h" +#include "hlkt.h" /* token struct */ typedef struct TOKEN_STRUC { @@ -35,7 +36,7 @@ typedef struct TOKEN_STRUC { /* creates a token */ token_t* token_init(int type, char* val); -/* destroys a token **and all tokens contained in nxt** */ +/* destroys a token **and all tokens contained in nxt** **Make sure to set the nxt of any parent tokens to NULL** */ void token_destroy(token_t* token); /* return pointer to the last token */ |