Updated docs

This commit is contained in:
2026-05-25 12:14:22 +10:00
parent d3616b07b2
commit 87185210f9
3 changed files with 22 additions and 4 deletions
+1 -1
View File
@@ -482,7 +482,6 @@ static void processEliminate(Toy_VM* vm) {
}
static void processIterate(Toy_VM* vm) {
//URGENT: finish this
//ITERATE on [-2] based on type, with [-1] as counter
//then delegate to processJump
@@ -545,6 +544,7 @@ static void processIterate(Toy_VM* vm) {
processJump(vm);
}
}
//TODO: support closures as a parameter
else {
fprintf(stderr, TOY_CC_ERROR "ERROR: Unknown iterable type '%s' found in for loop, exiting\n" TOY_CC_RESET, Toy_getValueTypeAsCString(Toy_unwrapValue(compound).type));
exit(-1);