Add 3.0 gen_comp_body rule.

This commit is contained in:
rocky
2019-11-11 05:10:54 -05:00
parent 07ec8fa1fb
commit bdc24d7f51
3 changed files with 12 additions and 1 deletions

View File

@@ -119,8 +119,9 @@ class Python30Parser(Python31Parser):
call_stmt ::= expr COME_FROM
_ifstmts_jump30 ::= c_stmts POP_TOP
################################################################################
gen_comp_body ::= expr YIELD_VALUE COME_FROM POP_TOP
################################################################################
for_block ::= l_stmts_opt _come_froms POP_TOP JUMP_BACK
except_handler ::= JUMP_FORWARD COME_FROM_EXCEPT except_stmts