diff --git a/example/a.lang b/example/a.lang new file mode 100644 index 0000000..7cb7044 --- /dev/null +++ b/example/a.lang @@ -0,0 +1,3 @@ +u8 a() { + return 1u8; +} diff --git a/example/b.lang b/example/b.lang new file mode 100644 index 0000000..e11241e --- /dev/null +++ b/example/b.lang @@ -0,0 +1,3 @@ +u8 b() { + return a() + 1u8; +} diff --git a/example/test.lang b/example/test.lang index 8b96e03..93c20ff 100644 --- a/example/test.lang +++ b/example/test.lang @@ -1,3 +1,5 @@ -void doNothing() { - u64 sus = 1u8; -} \ No newline at end of file +module sus; + +(u8, u8) a() { + return 1u8, 2u8; +} diff --git a/stdlib/alloc.lang b/stdlib/alloc.lang new file mode 100644 index 0000000..a352285 --- /dev/null +++ b/stdlib/alloc.lang @@ -0,0 +1,9 @@ +module alloc; + +u64 alloc(u64 size) { + return 0u64; +} + +void free(u64 address) { + +}