Start to handle 3.5 build_map_unpack_with_call

3.6 also started but needs even more work
This commit is contained in:
rocky
2016-12-16 20:39:24 -05:00
parent 7755563b65
commit 08dcc7d820
7 changed files with 43 additions and 10 deletions

View File

@@ -18,6 +18,9 @@ class Python36Parser(Python35Parser):
"""
fstring_multi ::= fstring_expr_or_strs BUILD_STRING
fstring_expr_or_strs ::= fstring_expr_or_str+
func_args36 ::= expr BUILD_TUPLE_0
call_function ::= func_args36 unmapexpr CALL_FUNCTION_EX
"""
def add_custom_rules(self, tokens, customize):
@@ -46,6 +49,7 @@ class Python36Parser(Python35Parser):
""" % (fstring_expr_or_str_n, fstring_expr_or_str_n, "fstring_expr_or_str " * v)
self.add_unique_doc_rules(rules_str, customize)
class Python36ParserSingle(Python36Parser, PythonParserSingle):
pass