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