feat: execute short-circuit boolean expressions

This commit is contained in:
2026-10-10 00:36:07 +02:00
parent 7551ce5f6d
commit 5f845b9520
15 changed files with 952 additions and 30 deletions
+3
View File
@@ -28,6 +28,8 @@ keywords strmap.StaticStringMap(TokenKind) :: strmap.init([
{ "while", .while },
{ "true", .true },
{ "false", .false },
{ "and", .and },
{ "or", .or },
])
#! owns token storage and retains its allocator; release with deinit.
@@ -225,6 +227,7 @@ scan proc(
kind ?TokenKind :: match char {
'=': .equal
'!': .bang
'<': .less
'>': .greater
',': .comma