MCPcopy
hub / github.com/rocky/python-uncompyle6 / remove_rules_30

Method remove_rules_30

uncompyle6/parsers/parse30.py:218–294  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

216 """
217
218 def remove_rules_30(self):
219 self.remove_rules(
220 """
221
222 # The were found using grammar coverage
223 while1stmt ::= SETUP_LOOP l_stmts COME_FROM JUMP_BACK COME_FROM_LOOP
224 whileTruestmt ::= SETUP_LOOP l_stmts_opt JUMP_BACK POP_BLOCK COME_FROM_LOOP
225 whileelsestmt ::= SETUP_LOOP testexpr l_stmts_opt JUMP_BACK POP_BLOCK
226 else_suitel COME_FROM_LOOP
227 whilestmt ::= SETUP_LOOP testexpr l_stmts_opt JUMP_BACK POP_BLOCK
228 COME_FROM_LOOP
229 whilestmt ::= SETUP_LOOP testexpr l_stmts_opt JUMP_BACK POP_BLOCK JUMP_BACK
230 COME_FROM_LOOP
231 whilestmt ::= SETUP_LOOP testexpr returns POP_TOP POP_BLOCK COME_FROM_LOOP
232 with_as ::= expr SETUP_WITH store suite_stmts_opt POP_BLOCK LOAD_CONST
233 COME_FROM_WITH WITH_CLEANUP END_FINALLY
234 with ::= expr SETUP_WITH POP_TOP suite_stmts_opt POP_BLOCK LOAD_CONST
235 COME_FROM_WITH WITH_CLEANUP END_FINALLY
236
237 # lc_body ::= LOAD_FAST expr LIST_APPEND
238 # lc_body ::= LOAD_NAME expr LIST_APPEND
239 # lc_body ::= expr LIST_APPEND
240 # list_comp ::= BUILD_LIST_0 list_iter
241 list_for ::= expr FOR_ITER store list_iter jb_or_c
242 # list_if ::= expr jmp_false list_iter
243 # list_if ::= expr jmp_false_then list_iter
244 # list_if_not ::= expr jmp_true list_iter
245 # list_iter ::= list_if JUMP_BACK
246 # list_iter ::= list_if JUMP_BACK _come_froms POP_TOP
247 # list_iter ::= list_if_not
248 # load_closure ::= BUILD_TUPLE_0
249 # load_genexpr ::= BUILD_TUPLE_1 LOAD_GENEXPR LOAD_STR
250
251 ##########################################################################################
252
253 iflaststmtl ::= testexpr c_stmts_opt JUMP_BACK COME_FROM_LOOP
254 ifelsestmtl ::= testexpr c_stmts_opt JUMP_BACK else_suitel
255 iflaststmt ::= testexpr c_stmts_opt JUMP_ABSOLUTE
256 _ifstmts_jump ::= c_stmts_opt JUMP_FORWARD _come_froms
257
258 jump_forward_else ::= JUMP_FORWARD ELSE
259 jump_absolute_else ::= JUMP_ABSOLUTE ELSE
260 whilestmt ::= SETUP_LOOP testexpr l_stmts_opt COME_FROM JUMP_BACK POP_BLOCK
261 COME_FROM_LOOP
262 whilestmt ::= SETUP_LOOP testexpr returns
263 POP_BLOCK COME_FROM_LOOP
264
265 assert ::= assert_expr jmp_true LOAD_ASSERT RAISE_VARARGS_1
266
267 return_if_lambda ::= RETURN_END_IF_LAMBDA
268 except_suite ::= c_stmts POP_EXCEPT jump_except
269 whileelsestmt ::= SETUP_LOOP testexpr l_stmts JUMP_BACK POP_BLOCK
270 else_suitel COME_FROM_LOOP
271
272 ################################################################
273 # No JUMP_IF_FALSE_OR_POP, JUMP_IF_TRUE_OR_POP,
274 # POP_JUMP_IF_FALSE, or POP_JUMP_IF_TRUE
275

Callers 2

parse30.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected