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
+11
View File
@@ -0,0 +1,11 @@
in_range proc(value, low, high int) bool {
return value >= low and value < high
}
main proc() bool {
return (
in_range(5, 0, 10)
and !in_range(12, 0, 10)
or in_range(20, 0, 10)
)
}