Interpreter up to 71/73 tests passing, the only ones that don't yet are the future ones. Struct size is still wrong though

This commit is contained in:
Nathan Braswell
2016-07-03 01:55:32 -07:00
parent 2e80682f01
commit 87c2b1d2c1
7 changed files with 63 additions and 17 deletions

View File

@@ -24,9 +24,11 @@ fun test_map<T,V>(m: ref T, mapEx: ref V) {
mapEx.for_each(fun(key:int, value:*char) { print("key: "); print(key); print(", value: "); println(value); })
}
fun main(): int {
println("Test linear map:")
var m1 = map(3,1)
var mapEx1 = map(7, "Lookie, a map!")
test_map(m1, mapEx1)
println("Test hash map:")
var m2 = hash_map(3,1)
var mapEx2 = hash_map(7, "Lookie, a map!")
test_map(m2, mapEx2)