I'm implementing a simple calculator which can only do operations sequentially, one at a time. Expressions of the form:
value1 <operator1> value2 <operator2> value3 <operator3> value4
are interpreted as
((value1 <operator1> value2) <operator2> value3) <operator3> value4
This is just like an old-school calculator, where all you have is the previous answer or value to work with.
This would work fine for something like
$$a \times b + c + d$$
Since I'm not implementing the concept of parentheses, nor operator precedence, nor memory, could an expression such as
$$(a + b) \times (c + d)$$
be expressed with this calculator?
I've tried rewriting this formula into a parenthesis-less form, but I can't seem to find a solution. However, that doesn't mean that a solution doesn't exist.
Furthermore, if the previous expression can be rewritten in the sequential form, then the next question is: can all expressions be rewritten that way?