diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-08-24 23:31:14 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-25 14:36:46 +0200 |
commit | d9f652919961a2947452ad3c4af4659f3d2fb330 (patch) | |
tree | 2db541db311a9b5a83d3f2c9b199f6d5c3341555 /tests | |
parent | 40652d7dbf701eda83fa8323b42a6b5bf0ca6bdd (diff) |
Add if/else/elseif/while, including the final assembly
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bytecode.amal | 5 |
1 files changed, 2 insertions, 3 deletions
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 { |