mirror of
https://github.com/RustPython/Parser.git
synced 2025-08-30 23:27:39 +00:00
Add parser support for async for loop. Add yield expression inside parentheses.
This commit is contained in:
parent
b6dd92daf6
commit
69b709e2b1
1 changed files with 4 additions and 0 deletions
|
@ -1702,6 +1702,10 @@ impl Compiler {
|
||||||
|
|
||||||
let mut loop_labels = vec![];
|
let mut loop_labels = vec![];
|
||||||
for generator in generators {
|
for generator in generators {
|
||||||
|
if generator.is_async {
|
||||||
|
unimplemented!("async for comprehensions");
|
||||||
|
}
|
||||||
|
|
||||||
if loop_labels.is_empty() {
|
if loop_labels.is_empty() {
|
||||||
// Load iterator onto stack (passed as first argument):
|
// Load iterator onto stack (passed as first argument):
|
||||||
self.emit(Instruction::LoadName {
|
self.emit(Instruction::LoadName {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue