Expression parsing and postfix notation

Put the operations in an order a calculator can follow. In 2 + 3 × 4, it needs to multiply 3 by 4 first and add 2 afterwards.

Numbers go directly to the output. Operators wait on a stack until their operands have been written. For example, 2 + 3 * 4 becomes 2 3 4 * +. Use integers, parentheses, +, -, * and /. The tokens u- and u+ are unary signs.