Add GEN_START
support (#392)
* Apparently should be enough ? * Add `GEN_START` test * Add `GEN_START` test compiled * Add `GEN_START` test tokenized * Smaller test since only POP is needed. * Smaller test since only POP is needed. * Smaller test since only POP is needed. * dos2unix
This commit is contained in:

committed by
Michael Hansen

parent
d62c8adf89
commit
b32f231e33
@@ -2419,6 +2419,9 @@ PycRef<ASTNode> BuildFromCode(PycRef<PycCode> code, PycModule* mod)
|
||||
case Pyc::PUSH_NULL:
|
||||
stack.push(nullptr);
|
||||
break;
|
||||
case Pyc::GEN_START_A:
|
||||
stack.pop();
|
||||
break;
|
||||
default:
|
||||
fprintf(stderr, "Unsupported opcode: %s\n", Pyc::OpcodeName(opcode & 0xFF));
|
||||
cleanBuild = false;
|
||||
|
BIN
tests/compiled/GEN_START.3.10.pyc
Normal file
BIN
tests/compiled/GEN_START.3.10.pyc
Normal file
Binary file not shown.
2
tests/input/GEN_START.py
Normal file
2
tests/input/GEN_START.py
Normal file
@@ -0,0 +1,2 @@
|
||||
def GEN_START():
|
||||
yield 0
|
3
tests/tokenized/GEN_START.txt
Normal file
3
tests/tokenized/GEN_START.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
def GEN_START ( ) : <EOL>
|
||||
<INDENT>
|
||||
yield 0 <EOL>
|
Reference in New Issue
Block a user