mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-22 12:30:19 +00:00
Update compiler.h
This commit is contained in:
parent
71050fc4bb
commit
bf26464089
@ -804,7 +804,8 @@ __LISTCOMP:
|
|||||||
}
|
}
|
||||||
|
|
||||||
void compile_for_loop() {
|
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);
|
emit(OP_GET_ITER);
|
||||||
co()->_enter_block(FOR_LOOP);
|
co()->_enter_block(FOR_LOOP);
|
||||||
emit(OP_FOR_ITER);
|
emit(OP_FOR_ITER);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user