Removed stubs for types as values

Also potentially fixed a bug in the previous commit, not certain
This commit is contained in:
2025-01-09 11:46:29 +11:00
parent 90ffe9b40e
commit b55192e513
8 changed files with 24 additions and 51 deletions

View File

@@ -1,25 +0,0 @@
//TODO: test keyword 'while', 'break', 'continue'
{
//iteration
var iteration = 0;
while(iteration < 10) {
print iteration;
iteration += 1;
}
}
{
//if and while work together
var count = 1;
while (count <= 10) {
if (count % 2 == 0) {
print "even";
}
else {
print "odd";
}
count += 1;
}
}

View File

@@ -98,3 +98,27 @@ print "done";
print "done";
}
//-------------------------
{
//iteration
var iteration = 0;
while(iteration < 10) {
print iteration;
iteration += 1;
}
}
{
//if and while work together
var count = 1;
while (count <= 10) {
if (count % 2 == 0) {
print "even";
}
else {
print "odd";
}
count += 1;
}
}