From b3b0c807a75c4f854495b547d8e00a598979cbf6 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 3 Mar 2019 13:18:08 +0100 Subject: Add arithmetic (binop) parsing --- tests/main.amal | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests') 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 { -- cgit v1.2.3