Python 2 "for" grammar rule isolation

This commit is contained in:
rocky
2018-03-19 16:15:53 -04:00
parent 5c8f93b735
commit 50e59a37c1
3 changed files with 3 additions and 4 deletions

View File

@@ -93,7 +93,6 @@ class Python36Parser(Python35Parser):
def customize_grammar_rules(self, tokens, customize):
super(Python36Parser, self).customize_grammar_rules(tokens, customize)
self.remove_rules("""
for ::= SETUP_LOOP expr for_iter store for_block POP_BLOCK _come_froms
dict_comp ::= load_closure LOAD_DICTCOMP LOAD_CONST MAKE_CLOSURE_0 expr GET_ITER CALL_FUNCTION_1
""")
self.check_reduce['call_kw'] = 'AST'