Add init statement to if

This commit is contained in:
Krzosa Karol
2022-05-26 18:57:15 +02:00
parent 8e4942f5ae
commit ec773c08be
5 changed files with 71 additions and 7 deletions

View File

@@ -2,8 +2,8 @@
if_stmt :: (cond: int): int
CONSTANT :: 10
if cond + CONSTANT
return cond + CONSTANT
if i := cond, cond + CONSTANT
return i + CONSTANT
else if cond - CONSTANT
return cond - CONSTANT
else