codegen
This commit is contained in:
parent
09d6cf4b46
commit
ed0ad1d095
14 changed files with 846 additions and 897 deletions
20
test.l
20
test.l
|
|
@ -1,12 +1,10 @@
|
|||
u32 main(u32 b)
|
||||
{
|
||||
u32 a = 4;
|
||||
//return a;
|
||||
if (b == 3) {
|
||||
return 3;
|
||||
} else {
|
||||
return 4;
|
||||
}
|
||||
|
||||
return a;
|
||||
struct point {
|
||||
i32 x,
|
||||
i32 y
|
||||
}
|
||||
|
||||
i32 main()
|
||||
{
|
||||
point result = .{ x = 2, y = 1 };
|
||||
return (result.y) + 2;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue