feat: add support for booleans and comparision operators

This commit is contained in:
2026-04-21 10:56:42 +02:00
parent bad6b9e116
commit eb3663dfbb
11 changed files with 293 additions and 3 deletions
+7
View File
@@ -0,0 +1,7 @@
fn eq(a: i32, b: i32) -> bool { return a == b; }
fn neq(a: i32, b: i32) -> bool { return a != b; }
fn lt(a: i32, b: i32) -> bool { return a < b; }
fn lte(a: i32, b: i32) -> bool { return a <= b; }
fn gt(a: i32, b: i32) -> bool { return a > b; }
fn gte(a: i32, b: i32) -> bool { return a >= b; }
fn not_bool(a: bool) -> bool { return !a; }