Example #1
0
 def __le__(self, other):
     raise interpreterError("Command is unorderable!")
Example #2
0
 def __mod__(self, other):
     raise interpreterError("Tried to mod a command!")
Example #3
0
 def __pow__(self, other):
     raise interpreterError("Tried to pow a command!")
Example #4
0
 def __mul__(self, other):
     raise interpreterError("Tried to multiply a command!")
Example #5
0
 def __truediv__(self, other):
     raise interpreterError("Tried to divide a command!")
Example #6
0
 def __sub__(self, other):
     raise interpreterError("Tried to subtract a boolean!")
Example #7
0
 def __sub__(self, other):
     raise interpreterError("Tried to subtract a command!")
Example #8
0
 def __add__(self, other):
     if type(self) == type(other):
         return type(self)(self.token + other.token, False)
     raise interpreterError("Tried to add incompatible types!")
Example #9
0
 def __pow__(self, other):
     raise interpreterError("Tried to pow a string!")
Example #10
0
 def __mod__(self, other):
     raise interpreterError("Tried to mod a string!")
Example #11
0
 def __truediv__(self, other):
     raise interpreterError("Tried to divide a string!")
Example #12
0
 def __mul__(self, other):
     raise interpreterError("Tried to multiply a string!")