lexer readability

This commit is contained in:
2025-07-20 22:46:17 +03:00
parent 041fdcb000
commit 3b18f9b8a2

View File

@@ -55,7 +55,6 @@ Token read_from_tok(char* text, uint cursor){
static char buf[64]; static char buf[64];
size_t i = 0; size_t i = 0;
if (isdigit(text[cursor])) { if (isdigit(text[cursor])) {
// Start of an integer token
size_t start = cursor; size_t start = cursor;
while (isdigit(text[cursor])) { while (isdigit(text[cursor])) {
buf[i++] = text[cursor++]; buf[i++] = text[cursor++];