added postfix, break and return parsing
This commit is contained in:
parent
37356facc2
commit
1be3bf0659
9 changed files with 115 additions and 13 deletions
4
examples/generics.l
Normal file
4
examples/generics.l
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
u32 sum<T>(T x, T y)
|
||||
{
|
||||
return x + y;
|
||||
}
|
||||
6
examples/hello_world.l
Normal file
6
examples/hello_world.l
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import test;
|
||||
|
||||
i32 main()
|
||||
{
|
||||
print_msg("Hello world!");
|
||||
}
|
||||
10
examples/test.l
Normal file
10
examples/test.l
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import std::io;
|
||||
|
||||
module log {
|
||||
|
||||
void print_msg([u8] msg)
|
||||
{
|
||||
printf("%s\n", msg);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue