Added broken check for bool if cond. Also added some wonky if/else pretty printing for AST.

This commit is contained in:
2025-01-13 16:33:03 +01:00
parent 4b927b6be9
commit aaeda22fa3
9 changed files with 165 additions and 14 deletions

11
test/simple_else_if.ink Normal file
View File

@@ -0,0 +1,11 @@
vertex main :: (pos : float3 @position) -> float4 @position {
if pos.x > 100 {
return float4(pos, 1.0);
} else if pos.x > 50 {
return float4(pos, 1.0);
} else {
return float4(1.0);
}
return float4(0.0);
}