mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-21 20:10:17 +00:00
Update compiler.h
This commit is contained in:
parent
71050fc4bb
commit
bf26464089
@ -804,7 +804,8 @@ __LISTCOMP:
|
||||
}
|
||||
|
||||
void compile_for_loop() {
|
||||
EXPR_FOR_VARS();consume(TK("in")); EXPR_TUPLE();
|
||||
EXPR_FOR_VARS();consume(TK("in"));
|
||||
co()->_rvalue = true; EXPR_TUPLE(); co()->_rvalue = false;
|
||||
emit(OP_GET_ITER);
|
||||
co()->_enter_block(FOR_LOOP);
|
||||
emit(OP_FOR_ITER);
|
||||
|
Loading…
x
Reference in New Issue
Block a user