Need to back off set_comp change a little...

There was set_comp already. So what had been setcomp_func is now
merely set_comp_func rather than set_comp. Small improvement but
in the right direction, still
This commit is contained in:
rocky
2018-03-05 11:41:21 -05:00
parent 9f66694056
commit 61534ceed5
4 changed files with 19 additions and 19 deletions

View File

@@ -19,7 +19,7 @@ class Python27Parser(Python2Parser):
lc_body ::= expr LIST_APPEND
for_iter ::= GET_ITER COME_FROM FOR_ITER
stmt ::= set_comp
stmt ::= set_comp_func
# Dictionary and set comprehensions were added in Python 2.7
@@ -30,8 +30,8 @@ class Python27Parser(Python2Parser):
dict_comp_func ::= BUILD_MAP_0 LOAD_FAST FOR_ITER store
comp_iter JUMP_BACK RETURN_VALUE RETURN_LAST
set_comp ::= BUILD_SET_0 LOAD_FAST FOR_ITER store comp_iter
JUMP_BACK RETURN_VALUE RETURN_LAST
set_comp_func ::= BUILD_SET_0 LOAD_FAST FOR_ITER store comp_iter
JUMP_BACK RETURN_VALUE RETURN_LAST
comp_body ::= dict_comp_body
comp_body ::= set_comp_body