|
|
@ -38,8 +38,6 @@ class ETHContract(persistent.Persistent): |
|
|
|
str_eval = '' |
|
|
|
str_eval = '' |
|
|
|
easm_code = None |
|
|
|
easm_code = None |
|
|
|
|
|
|
|
|
|
|
|
# tokens = filter(None, re.split("( and | or | not )", expression.replace(" ", ""), re.IGNORECASE)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tokens = re.split("\s+(and|or|not)\s+", expression, re.IGNORECASE) |
|
|
|
tokens = re.split("\s+(and|or|not)\s+", expression, re.IGNORECASE) |
|
|
|
|
|
|
|
|
|
|
|
print(tokens) |
|
|
|
print(tokens) |
|
|
@ -70,6 +68,4 @@ class ETHContract(persistent.Persistent): |
|
|
|
|
|
|
|
|
|
|
|
continue |
|
|
|
continue |
|
|
|
|
|
|
|
|
|
|
|
print(str_eval) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return eval(str_eval.strip()) |
|
|
|
return eval(str_eval.strip()) |
|
|
|