added postfix, break and return parsing

This commit is contained in:
Lorenzo Torres 2025-12-01 19:54:20 +01:00
parent 37356facc2
commit 1be3bf0659
9 changed files with 115 additions and 13 deletions

4
examples/generics.l Normal file
View file

@ -0,0 +1,4 @@
u32 sum<T>(T x, T y)
{
return x + y;
}

6
examples/hello_world.l Normal file
View file

@ -0,0 +1,6 @@
import test;
i32 main()
{
print_msg("Hello world!");
}

10
examples/test.l Normal file
View file

@ -0,0 +1,10 @@
import std::io;
module log {
void print_msg([u8] msg)
{
printf("%s\n", msg);
}
}