Variable declaration added now

This commit is contained in:
Nathan Braswell
2016-01-15 19:10:52 -05:00
parent 785c6a6a8e
commit bf570f027c
6 changed files with 33 additions and 17 deletions

View File

@@ -9,8 +9,10 @@ fun simple_print(to_print: int) {
printf("%d", to_print);
"""
}
var a = 1
var b = 2
/*var a = 1*/
/*var b = 2*/
var a:int
var b:int

View File

@@ -12,6 +12,8 @@ fun some_other_function(in: bool): float {
return 0.0
}
fun main(): int {
var a_declaration:int
/*var another_declaration = 9*/
simple_print("Hello World!\n")
simple_print(1337)
return 0