feat: add support for if/else statements

This commit is contained in:
2026-04-21 18:20:15 +02:00
parent eb3663dfbb
commit 0c288c2247
11 changed files with 247 additions and 17 deletions
+9
View File
@@ -0,0 +1,9 @@
extern int min(int a, int b);
int main() {
if (min(12, 15)) {
return 0;
} else {
return -1;
}
}
+7
View File
@@ -0,0 +1,7 @@
fn min(a: i32, b: i32) -> i32 {
if a < b {
return a;
} else {
return b;
}
}