summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-02-23 12:09:38 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-02-23 12:09:38 +0330
commit1bd43564b2edda3358e1b0ad9b83b64dfb59c0d9 (patch)
tree2079c5181267319f1ca3146614c2dde4c0c020d5 /src/compiler
parent51abdf014511f00f205333d033167a68d3eb7298 (diff)
fix < >= operator bug
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/lexer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/compiler/lexer.c b/src/compiler/lexer.c
index 6263854..b75bd7e 100644
--- a/src/compiler/lexer.c
+++ b/src/compiler/lexer.c
@@ -86,8 +86,8 @@ const LexerToken LEXER_SYMBOL_TOKENS[] = {
LEXER_TOKEN_SYMBOL_EQUAL,
LEXER_TOKEN_SYMBOL_NOT_EQUAL,
LEXER_TOKEN_SYMBOL_GREATER,
- LEXER_TOKEN_SYMBOL_SMALLER,
LEXER_TOKEN_SYMBOL_GREATER_OR_EQUAL,
+ LEXER_TOKEN_SYMBOL_SMALLER,
LEXER_TOKEN_SYMBOL_SMALLER_OR_EQUAL,
};
const size_t LEXER_SYMBOL_SIZE =
@@ -314,12 +314,14 @@ bool isSymbol(char c) {
switch (c) {
case '-':
case '>':
+ case '<':
case '.':
case '+':
case '*':
case '/':
case '%':
case '=':
+ case '!':
return true;
default:
return false;