aboutsummaryrefslogtreecommitdiff
path: root/src/lexer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lexer.h')
-rw-r--r--src/lexer.h10
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