Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (16 sloc) 632 Bytes
operators = {"+": lambda x, y: (x+y,),
"-": lambda x, y: (x - y,),
"*": lambda x, y: (x * y,),
"/": lambda x, y: (x / y,),
"mod": lambda x, y: (x % y,),
"and": lambda x, y: (x and y,),
"or": lambda x, y: (x or y,),
"not": lambda x: (not x,),
"xor": lambda x, y: (x ^ y,),
"==": lambda x, y: (x == y,),
"!=": lambda x, y: (x != y,),
"<=": lambda x, y: (x <= y,),
">=": lambda x, y: (x >= y,),
"<": lambda x, y: (x < y,),
">": lambda x, y: (x < y,),
}