2.6.9 list comprehension

This commit is contained in:
rocky
2016-06-30 06:51:20 -04:00
parent da9aeecc60
commit 73a043830c
4 changed files with 12 additions and 5 deletions

View File

@@ -134,6 +134,9 @@ class Python26Parser(Python2Parser):
lc_body ::= LOAD_NAME expr LIST_APPEND
lc_body ::= LOAD_FAST expr LIST_APPEND
comp_for ::= SETUP_LOOP expr _for designator comp_iter JUMP_BACK POP_BLOCK COME_FROM
# Make sure we keep indices the same as 2.7
setup_loop_lf ::= SETUP_LOOP LOAD_FAST
genexpr_func ::= setup_loop_lf FOR_ITER designator comp_iter JUMP_BACK POP_BLOCK COME_FROM