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