Beispiel #1
0
 def __le__(self, other):
     raise interpreterError("Command is unorderable!")
Beispiel #2
0
 def __mod__(self, other):
     raise interpreterError("Tried to mod a command!")
Beispiel #3
0
 def __pow__(self, other):
     raise interpreterError("Tried to pow a command!")
Beispiel #4
0
 def __mul__(self, other):
     raise interpreterError("Tried to multiply a command!")
Beispiel #5
0
 def __truediv__(self, other):
     raise interpreterError("Tried to divide a command!")
Beispiel #6
0
 def __sub__(self, other):
     raise interpreterError("Tried to subtract a boolean!")
Beispiel #7
0
 def __sub__(self, other):
     raise interpreterError("Tried to subtract a command!")
Beispiel #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!")
Beispiel #9
0
 def __pow__(self, other):
     raise interpreterError("Tried to pow a string!")
Beispiel #10
0
 def __mod__(self, other):
     raise interpreterError("Tried to mod a string!")
Beispiel #11
0
 def __truediv__(self, other):
     raise interpreterError("Tried to divide a string!")
Beispiel #12
0
 def __mul__(self, other):
     raise interpreterError("Tried to multiply a string!")