mirror of
https://github.com/CPunch/Cosmo.git
synced 2026-01-07 23:40:04 +00:00
Added CObj->proto support, state->protoObjects defines default protos for each COBJ type
a lot of refactoring in the VM
This commit is contained in:
@@ -1357,7 +1357,7 @@ static void forLoop(CParseState *pstate) {
|
||||
startLoop(pstate);
|
||||
|
||||
int iteratorStart = getChunk(pstate)->count;
|
||||
expression(pstate, 0, true);
|
||||
expressionPrecedence(pstate, 0, PREC_ASSIGNMENT, true); // any expression (including assignment)
|
||||
consume(pstate, TOKEN_RIGHT_PAREN, "Expected ')' after iterator");
|
||||
|
||||
writeJmpBack(pstate, loopStart);
|
||||
|
||||
Reference in New Issue
Block a user