Arrays and dictionaries have been implemented, read more

The arrays and dictionaries are currently being printed out correctly,
afaik. This means I should be able to go back and work on the type
system, assuming nothing happens.
This commit is contained in:
2022-08-10 17:42:04 +01:00
parent 6a883bde96
commit 67f7b3e436
13 changed files with 819 additions and 36 deletions

View File

@@ -23,14 +23,17 @@ print 2 + (3 * 3);
}
print "Back to the outer scope.";
//test asserts
assert true, "This won't be seen";
assert false, "This is an error";
print [1, 2, 3];
print [4, 5];
print ["key":"value"];
//var arr : [int] = [1, 2, 3, 42];
//var dict : [string, int] = ["hello": 1, "world":2];
//test asserts at the end of the file
assert true, "This won't be seen";
assert false, "This is a failed assert, and will end execution";