From 4c7d3c1d1e71823efc47a78ef8a608ee1656b035 Mon Sep 17 00:00:00 2001 From: A404M Date: Thu, 27 Mar 2025 07:11:18 +0330 Subject: add dereferencing --- src/compiler/lexer.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/compiler/lexer.h') diff --git a/src/compiler/lexer.h b/src/compiler/lexer.h index 1ebe405..5e2496b 100644 --- a/src/compiler/lexer.h +++ b/src/compiler/lexer.h @@ -62,6 +62,7 @@ typedef enum LexerToken { LEXER_TOKEN_SYMBOL_SMALLER_OR_EQUAL, LEXER_TOKEN_SYMBOL_POINTER, LEXER_TOKEN_SYMBOL_ADDRESS, + LEXER_TOKEN_SYMBOL_DEREFERENCE, LEXER_TOKEN_NONE, } LexerToken; @@ -105,5 +106,5 @@ extern void lexerPushClear(LexerNodeArray *array, size_t *array_size, extern bool isIdentifier(char c); extern bool isNumber(char c); extern bool isSymbol(char c); -extern bool isSingleSymbol(char c); +extern bool isCompleteSymbol(char *str, size_t str_size); extern bool isSpace(char c); -- cgit v1.2.3