Reduce complexity.
Reduce complexity and solve (theoretically) infinitely long operation chains.
Reduce complexity.
Document resolve_innermost_parentheses and resolve_chain_of_operations.
Rename function.