diff options
author | kartofen <mladenovnasko0@gmail.com> | 2024-11-16 17:20:23 +0200 |
---|---|---|
committer | kartofen <mladenovnasko0@gmail.com> | 2024-11-16 17:20:23 +0200 |
commit | 1945dbf8345a2b59e9057d21e38c78913272bdaa (patch) | |
tree | 6f908d5feb358d5deb37e3137684208408a52186 /src/lexer.h | |
parent | 0dd38d08551ac2fcff53eb604f6363f37b25aef9 (diff) |
Diffstat (limited to 'src/lexer.h')
-rw-r--r-- | src/lexer.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lexer.h b/src/lexer.h index 632811e..0cbda75 100644 --- a/src/lexer.h +++ b/src/lexer.h @@ -68,9 +68,17 @@ int lexer_clear_line(lexer_t lexer); int lexer_token_next(lexer_t lexer, struct token *token); int token_value_string(struct token *token, size_t buf_sz, char *buf); +char *token_value_static_string(struct token *token); void token_clone(struct token *dest, struct token *src); void token_dealloc(struct token *token); -void toklist_destroy(struct toklist *toklist); + +struct toklist *toklist_alloc(struct token *tokens, size_t tokens_len); +void toklist_dealloc(struct toklist *toklist); + +#ifdef DEBUG +void token_print(struct token *token); +void toklist_print(struct toklist *toklist); +#endif #endif |