Skip to content

Commit

Permalink
feat(Expression): add expression node
Browse files Browse the repository at this point in the history
  • Loading branch information
aadhithya committed May 16, 2022
1 parent 280e0eb commit f69ffc0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions rajinipp/ast/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ def eval(self):
__vars__[self.var.name] = self.value


# class Expression(Node):
# def __init__(self, value) -> None:
# super().__init__()
# self.value = value
class Expression(Node):
def __init__(self, value) -> None:
super().__init__()
self.value = value

# def eval(self):
# return self.value.eval()
def eval(self):
return self.value.eval()

0 comments on commit f69ffc0

Please sign in to comment.