A calculator: builds an expression tree from an arithmetic expression