Improve 3.0 list comprehensions

This commit is contained in:
rocky
2018-06-24 06:56:30 -04:00
parent 3daf3732c3
commit 34ec41f274
4 changed files with 38 additions and 0 deletions

View File

@@ -61,6 +61,7 @@ class Python30Parser(Python31Parser):
# JUMP_IF_TRUE POP_TOP as a replacement
comp_if ::= expr jmp_false comp_iter
comp_if ::= expr jmp_false comp_iter JUMP_BACK POP_TOP
comp_iter ::= expr expr SET_ADD
comp_iter ::= expr expr LIST_APPEND