diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-08-17 02:57:08 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-25 14:36:46 +0200 |
commit | 81c5f8e750fcda6a2451fb54604130431434f88f (patch) | |
tree | 944fa06c781d57b1db90e9153080f411a1c34a55 /tests/bytecode.amal | |
parent | 20662a1d203ffb9e05d6694347fd258115b41d0a (diff) |
Implement more instructions, implement function parameters and arguments
Diffstat (limited to 'tests/bytecode.amal')
-rw-r--r-- | tests/bytecode.amal | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/bytecode.amal b/tests/bytecode.amal index 799733b..dd9bd3d 100644 --- a/tests/bytecode.amal +++ b/tests/bytecode.amal @@ -7,8 +7,14 @@ const main = fn { const value3 = 2 + 5 - 1 * 10 / 2; const str_value = "hello, world"; //printf(); + print(); + const result = print_num(value3); } const print = fn { +} + +const print_num = fn(num: i32) i32 { + return num; }
\ No newline at end of file |