More bugs found via sre_parse.py decompilation

This commit is contained in:
rocky
2020-02-15 05:10:11 -05:00
parent fd36c77d2d
commit 28ef04d141
6 changed files with 32 additions and 1 deletions

View File

@@ -45,6 +45,8 @@ class Python23Parser(Python24Parser):
# a "break" inside "l_stmts".
while1stmt ::= _while1test l_stmts COME_FROM JUMP_BACK
POP_TOP POP_BLOCK COME_FROM
while1stmt ::= _while1test l_stmts JUMP_BACK
POP_TOP POP_BLOCK
list_comp ::= BUILD_LIST_0 DUP_TOP LOAD_ATTR store list_iter del_stmt
list_for ::= expr for_iter store list_iter JUMP_BACK come_froms POP_TOP JUMP_BACK

View File

@@ -43,6 +43,8 @@ class Python24Parser(Python25Parser):
while1stmt ::= SETUP_LOOP l_stmts_opt JUMP_BACK
POP_TOP POP_BLOCK
continue ::= JUMP_BACK JUMP_ABSOLUTE
# Python 2.4
# The following has no "JUMP_BACK" after l_stmts because
# l_stmts ends in a "break", "return", or "continue"