Converts an infix expression to a postfix (Reverse Polish notation) one.