More 3.7 grammar rules...

largely adapted from 3.6
This commit is contained in:
rocky
2018-04-13 14:24:20 -04:00
parent 9fa7b9ea53
commit 9e652f3fc6
2 changed files with 8 additions and 0 deletions

Binary file not shown.

View File

@@ -248,6 +248,14 @@ class Python36Parser(Python35Parser):
starred ::= expr
call_ex ::= expr starred CALL_FUNCTION_EX
""", nop_func)
if self.version > 3.6:
self.addRule("""
expr ::= call_ex_kw3
call_ex_kw3 ::= expr
build_tuple_unpack_with_call
expr
CALL_FUNCTION_EX
""", nop_func)
pass
else:
super(Python36Parser, self).custom_classfunc_rule(opname, token,