From d2ab53c625d386a4fbc6a9d5a5eb29faab1b3f0c Mon Sep 17 00:00:00 2001 From: A404M Date: Thu, 19 Sep 2024 15:53:13 +0330 Subject: removing print command and keyword added function call support cleaned up keyword and operator checking and speed it up a little bit cleaning includes added builtin functions --- src/compiler/lexer/lexer.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/compiler/lexer/lexer.h') diff --git a/src/compiler/lexer/lexer.h b/src/compiler/lexer/lexer.h index d6eef17..802b50c 100644 --- a/src/compiler/lexer/lexer.h +++ b/src/compiler/lexer/lexer.h @@ -7,7 +7,6 @@ typedef enum Token { TOKEN_NONE = 0, TOKEN_IDENTIFIER, - TOKEN_KEYWORD_PRINT, TOKEN_NUMBER, TOKEN_STRING, TOKEN_OPERATOR, @@ -61,5 +60,8 @@ extern bool isString(char c); extern bool isOperator(char c); extern bool isSymbol(char c); +extern Token getTokenInStrings(char const *strBegin, char const *strEnd, + const char *strings[], const Token tokens[], + const size_t size); extern Token getKeyword(char const *strBegin, char const *strEnd); extern Token getOperator(char const *strBegin, char const *strEnd); -- cgit v1.2.3