lexer readability

This commit is contained in:
2025-07-20 22:42:44 +03:00
parent 17d88444d1
commit 041fdcb000

View File

@@ -64,7 +64,8 @@ Token read_from_tok(char* text, uint cursor){
mytoks.type = TOKEN_INTEGER; mytoks.type = TOKEN_INTEGER;
mytoks.text = buf; mytoks.text = buf;
mytoks.text_len = i; mytoks.text_len = i;
}else { }
else {
buf[0] = text[cursor]; buf[0] = text[cursor];
buf[1] = '\0'; buf[1] = '\0';
mytoks.text = buf; mytoks.text = buf;
@@ -110,5 +111,5 @@ int main(){
} else { } else {
i++; i++;
} }
} }
} }