Takes a string of numbers and operators, parses it, and calculates the value of the expression.