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