Skip to content

Commit

Permalink
Cleaned up Value superclass.
Browse files Browse the repository at this point in the history
  • Loading branch information
nrubin29 committed Dec 4, 2017
1 parent a211b94 commit 1d5a725
Showing 1 changed file with 2 additions and 41 deletions.
43 changes: 2 additions & 41 deletions vartypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,47 +16,8 @@ def __init__(self):
def __str__(self):
return str(self.value)

def pos(self):
raise EvaluationException('Operation not defined for ' + self.type)

def neg(self):
raise EvaluationException('Operation not defined for ' + self.type)

def add(self, other):
raise EvaluationException('Operation not defined for ' + self.type)

def sub(self, other):
raise EvaluationException('Operation not defined for ' + self.type)

def mul(self, other):
raise EvaluationException('Operation not defined for ' + self.type)

def div(self, other):
raise EvaluationException('Operation not defined for ' + self.type)

def mod(self, other):
raise EvaluationException('Operation not defined for ' + self.type)

def pow(self, other):
raise EvaluationException('Operation not defined for ' + self.type)

def sqrt(self):
raise EvaluationException('Operation not defined for ' + self.type)

def exp(self):
raise EvaluationException('Operation not defined for ' + self.type)

def identity(self):
raise EvaluationException('Operation not defined for ' + self.type)

def solve(self, other):
raise EvaluationException('Operation not defined for ' + self.type)

def eval(self, other):
raise EvaluationException('Operation not defined for ' + self.type)

def ls(self, other):
raise EvaluationException('Operation not defined for ' + self.type)
def __getattr__(self, item):
raise EvaluationException('{} does not have operation {}'.format(self.type, item))


class VariableValue(Value):
Expand Down

0 comments on commit 1d5a725

Please sign in to comment.