aboutsummaryrefslogtreecommitdiff
path: root/src/compiler/lexer/lexer.h
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2024-09-19 15:53:13 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2024-09-19 15:53:13 +0330
commitd2ab53c625d386a4fbc6a9d5a5eb29faab1b3f0c (patch)
tree3e81b2dce883abb8b5b5ea2edd0300af24079539 /src/compiler/lexer/lexer.h
parent3df524bacbd6ca55177f481f8c98b118131b6527 (diff)
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
Diffstat (limited to 'src/compiler/lexer/lexer.h')
-rw-r--r--src/compiler/lexer/lexer.h4
1 files changed, 3 insertions, 1 deletions
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);