From 81c5f8e750fcda6a2451fb54604130431434f88f Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 17 Aug 2019 02:57:08 +0200 Subject: Implement more instructions, implement function parameters and arguments --- tests/bytecode.amal | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/bytecode.amal') 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 -- cgit v1.2.3