Simple calculator with operator precedence that parses strings.