convert binary and unary operators