Feat: simplify "no * allowed token"
This commit is contained in:
parent
d6e3f774fa
commit
daed07efa3
@ -395,11 +395,7 @@ def missing_times(target):
|
||||
elif not is_operator(tok) and tok != ")":
|
||||
target_.send("*")
|
||||
|
||||
if (
|
||||
isinstance(tok, int)
|
||||
or (isinstance(tok, str) and not is_operator(tok) and not tok == "(")
|
||||
or (isinstance(tok, RdLeaf))
|
||||
):
|
||||
if not ( is_operator(tok) or tok =="(" ):
|
||||
previous = tok
|
||||
|
||||
target_.send(tok)
|
||||
|
Loading…
Reference in New Issue
Block a user