lexer fix

This commit is contained in:
2025-07-20 22:40:11 +03:00
parent deee9564ac
commit 17d88444d1

View File

@@ -23,6 +23,7 @@ typedef enum{
TOKEN_PLUS,
TOKEN_MINUS,
TOKEN_INTEGER,
TOKEN_SPACE,
intdef,
TOKEN_UNKNOWN,
} symbols;
@@ -78,6 +79,10 @@ Token read_from_tok(char* text, uint cursor){
mytoks.type = TOKEN_MINUS;
mytoks.text = "-";
break;
case ' ':
mytoks.type = TOKEN_SPACE;
mytoks.text = "space";
break;
default:
mytoks.type = TOKEN_UNKNOWN;
}