Equation parser