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