|
|
@ -26,7 +26,6 @@ condition_ops = { |
|
|
">": "greaterThan", |
|
|
">": "greaterThan", |
|
|
">=": "greaterThanEq" |
|
|
">=": "greaterThanEq" |
|
|
} |
|
|
} |
|
|
#TODO remove negate b/c its deprecated |
|
|
|
|
|
unary_ops = {"~": "not"} |
|
|
unary_ops = {"~": "not"} |
|
|
|
|
|
|
|
|
binary_op_inverses = {"==": "!=", "!=": "==", "<": ">=", "<=": ">", ">": "<=", ">=": "<"} |
|
|
binary_op_inverses = {"==": "!=", "!=": "==", "<": ">=", "<=": ">", ">": "<=", ">=": "<"} |
|
|
@ -35,8 +34,3 @@ func_binary_ops = ["pow", "max", "min", "angle", "len", "land", "idiv", "strictE |
|
|
func_unary_ops = ["abs", "log", "log10", "sin", "cos", "tan", "floor", "ceil", "sqrt", "rand"] |
|
|
func_unary_ops = ["abs", "log", "log10", "sin", "cos", "tan", "floor", "ceil", "sqrt", "rand"] |
|
|
binary_ops.update(dict(zip(func_binary_ops, func_binary_ops))) |
|
|
binary_ops.update(dict(zip(func_binary_ops, func_binary_ops))) |
|
|
unary_ops.update(dict(zip(func_unary_ops, func_unary_ops))) |
|
|
unary_ops.update(dict(zip(func_unary_ops, func_unary_ops))) |
|
|
|
|
|
|
|
|
builtins = [ |
|
|
|
|
|
"print", "printd", "printflush", "radar", "sensor", "enable", "shoot", "get_link", "read", |
|
|
|
|
|
"write", "drawflush", "end" |
|
|
|
|
|
] |
|
|
|