Bugfixes, range(start,end,step), and beginning work on lexer and symbol

This commit is contained in:
Nathan Braswell
2015-06-28 20:25:27 -04:00
parent 48683889da
commit ce6c8241fb
19 changed files with 248 additions and 48 deletions

View File

@@ -31,6 +31,13 @@ fun main():int {
println(greater(1,2))
println(greater(7.0,8.0))
range(3,13, 3).for_each(fun(i: int) { print(i); })
println()
range(2,8).for_each(fun(i: int) { print(i); })
println()
println(range(2,8,2).any_true(fun(i: int): bool { return i%2 == 1; } ))
println(range(3).any_true(fun(i: int): bool { return i%2 == 1; } ))
var oddPair = make_pair(3, "hi")
println(oddPair.first)
println(oddPair.second)