Add perentheses to all operators so that acutal perentheses are preserved and the kraken order of operations is maintained

This commit is contained in:
Nathan Braswell
2016-01-18 18:10:07 -05:00
parent ac34a550d5
commit 458299abe1
2 changed files with 3 additions and 1 deletions

View File

@@ -16,6 +16,8 @@ fun main(): int {
simple_print(1 + 2)
var again = 2 + 4 - 1 * 400
simple_print(again)
again = 2 + (4 - 1) * 400
simple_print(again)
var another_declaration: int = 8.0
simple_print(another_declaration)
var yet_another_declaration = "Hello Marcus\n"