From 738d423a5c790651ec10eaab4d23dd951b33db91 Mon Sep 17 00:00:00 2001 From: Daniel Xu Date: Sun, 2 Jun 2019 17:29:34 -0400 Subject: [PATCH] Updated function name --- ast.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ast.py b/ast.py index acbad31..ffa6e0b 100644 --- a/ast.py +++ b/ast.py @@ -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