From d9f652919961a2947452ad3c4af4659f3d2fb330 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 24 Aug 2019 23:31:14 +0200 Subject: Add if/else/elseif/while, including the final assembly --- tests/bytecode.amal | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/bytecode.amal b/tests/bytecode.amal index 32c1ccb..ef255cd 100644 --- a/tests/bytecode.amal +++ b/tests/bytecode.amal @@ -12,9 +12,8 @@ const main = fn { const value3 = 2 + 5 - 1 * 10 / 2; const str_value = "hello, world"; print(); - //if value2 == 54 - // const result = print_num(1337); - const result = print_num(1337); + if value2 == 54 + const result = print_num(1337); } const print_num = fn(num: i32) i32 { -- cgit v1.2.3