aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-03-03 13:18:08 +0100
committerdec05eba <dec05eba@protonmail.com>2020-07-25 14:36:46 +0200
commitb3b0c807a75c4f854495b547d8e00a598979cbf6 (patch)
treee42017c2f5b87a939d103f48d5f90dd93193ebcc /tests
parent4c5ffb35d50d514e3df4788e7cf38245c0127883 (diff)
Add arithmetic (binop) parsing
Diffstat (limited to 'tests')
-rw-r--r--tests/main.amal4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/main.amal b/tests/main.amal
index 71e962e..a7b4576 100644
--- a/tests/main.amal
+++ b/tests/main.amal
@@ -6,8 +6,10 @@ const main = fn {
}
const value = "hello";
print(value, "world", 356, 13.37);
- var num1;
+ var num1: i32;
const num2 = 23232;
+ const num3 = num1 + num2 * 30;
+ const num4 = (num1 + num2) * num3 * ((34 + 32) / 234.345);
}
const print = fn {