you can use "else" as "unless"

This commit is contained in:
SpookyDervish
2025-10-19 14:00:44 +11:00
parent 4370dc4407
commit 31099835de

View File

@@ -98,7 +98,7 @@ KEYWORDS: dict[str, TokenType] = {
} }
ALT_KEYWORDS: dict[str, TokenType] = { ALT_KEYWORDS: dict[str, TokenType] = {
"else": TokenType.UNLESS
} }
TYPE_KEYWORDS: list[str] = ["Int", "Float", "String", "Bool", "List", "Nil", "Func"] TYPE_KEYWORDS: list[str] = ["Int", "Float", "String", "Bool", "List", "Nil", "Func"]