Types now exist, but they're not being embedded into bytecode yet

This commit is contained in:
2022-08-12 09:11:43 +01:00
parent 80b64cf21e
commit 2f18989f25
8 changed files with 193 additions and 18 deletions

View File

@@ -15,6 +15,19 @@ print -69;
print -4.20;
print 2 + (3 * 3);
//test operators (integers)
print 1 + 1;
print 1 - 1;
print 2 * 2;
print 1 / 2;
print 4 % 2;
//test operators (floats)
print 1.0 + 1.0;
print 1.0 - 1.0;
print 2.0 * 2.0;
print 1.0 / 2.0;
//test scopes
{
print "This statement is within a scope.";
@@ -24,7 +37,7 @@ print 2 + (3 * 3);
}
print "Back to the outer scope.";
//test compounds
//test compounds, repeatedly
print [1, 2, 3];
print [4, 5];
print ["key":"value"];