implemented topological sorting for type resolution

This commit is contained in:
Lorenzo Torres 2025-12-04 20:43:48 +01:00
parent e094049a0d
commit 597efe5791
3 changed files with 179 additions and 32 deletions

View file

@ -1,13 +1,19 @@
import std;
struct {
u32 a,
u32 b,
};
struct b {
a b,
}
i32 main(usize argc, [*u8] argv)
struct c {
u32 b,
}
struct a {
c b,
}
i32 main(i32 argc, [*[*u8]] argv)
{
print("Hello world!\n");
return 0;
}