Add else parsing. Still a few bugs with output.

This commit is contained in:
2025-01-13 09:14:36 +01:00
parent 85b23f90e5
commit 4b927b6be9
4 changed files with 78 additions and 6 deletions

8
test/simple_if_else.ink Normal file
View File

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