More grammar isolation. narrow custom rules...

Specifically: _mklambda with load_closure is Python2 only
Add classdefdeco2 rule only when we have seen a LOAD_BUILD_CLASS
This commit is contained in:
rocky
2017-11-17 00:51:03 -05:00
parent 934df7b5c4
commit 58ee49159e
5 changed files with 18 additions and 12 deletions

View File

@@ -103,7 +103,8 @@ class Python2Parser(PythonParser):
delete_subscr ::= expr expr DELETE_SUBSCR
del_stmt ::= expr DELETE_ATTR
kwarg ::= LOAD_CONST expr
_mklambda ::= load_closure mklambda
kwarg ::= LOAD_CONST expr
classdef ::= buildclass designator