Python 2.6 generator rule with 'and' conditional

Fixes #283.
This commit is contained in:
rocky
2019-08-05 10:36:08 -04:00
parent a781006ff1
commit fd580f3c60
4 changed files with 14 additions and 1 deletions

View File

@@ -241,6 +241,9 @@ class Python26Parser(Python2Parser):
genexpr_func ::= setup_loop_lf FOR_ITER store comp_iter JUMP_ABSOLUTE come_froms
POP_TOP jb_pop jb_pb_come_from
genexpr_func ::= setup_loop_lf FOR_ITER store comp_iter JUMP_BACK come_froms
POP_TOP jb_pb_come_from
generator_exp ::= LOAD_GENEXPR MAKE_FUNCTION_0 expr GET_ITER CALL_FUNCTION_1 COME_FROM
list_if ::= list_if ::= expr jmp_false_then list_iter
'''