Shorten Python3 grammars with + and *

This commit is contained in:
rocky
2016-11-28 23:49:43 -05:00
parent a5a0f45dde
commit 9cc2700160
2 changed files with 2 additions and 4 deletions

View File

@@ -17,8 +17,7 @@ class Python36Parser(Python35Parser):
def p_36misc(self, args):
"""
fstring_multi ::= fstring_expr_or_strs BUILD_STRING
fstring_expr_or_strs ::= fstring_expr_or_strs fstring_expr_or_str
fstring_expr_or_strs ::= fstring_expr_or_str
fstring_expr_or_strs ::= fstring_expr_or_str+
"""
def add_custom_rules(self, tokens, customize):