Skip to content
Snippets Groups Projects
Commit f5b8196d authored by Haichen Shen's avatar Haichen Shen
Browse files

basic var

parent a7a6cd52
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,13 @@ class Var(Expr):
self.name = name
self.expr = expr
def assign(self, expr):
self.expr = expr
def children(self):
if self.expr is None:
return ()
return self.expr.children()
def same_as(self, other):
return (self.name == other.name)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment