Damn, it works, the lexer actually works, that's amazing, need to test the bad cases but at least i'm sure it can detect and process correct math expressions

This commit is contained in:
2026-03-10 07:08:12 -06:00
parent 0de6cf5024
commit 73451fcca9
3 changed files with 94 additions and 0 deletions

View File

@@ -72,5 +72,6 @@ size_t ASTNodeArray_len(ASTNodeArray *arr);
LexerErr tokenize(const char* input, ASTNodeArray *out);
LexerErr tokenize_number(const char* input, size_t *offset, ASTNode *out);
LexerErr string_to_integer(const char buf[], int64_t *number);
bool isoperator(int c);
#endif // !LEXER_H