Skip to content

Commit

Permalink
Updated function name
Browse files Browse the repository at this point in the history
  • Loading branch information
NielXu committed Jun 2, 2019
1 parent e90bd25 commit 738d423
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ast.py
Expand Up @@ -67,7 +67,7 @@ def add(self, sym):
self.root = node(sym, None)
self.cur = self.root
else:
if expr.is_symbol(sym) or expr.is_func(sym):
if expr.is_operator(sym) or expr.is_func(sym):
if self.cur.right is None:
self.cur.right = node(sym, self.cur)
self.cur = self.cur.right
Expand Down

0 comments on commit 738d423

Please sign in to comment.