public static List <Element> DecodeEquationIP(string input) { InputEquationDecoder decoder = new InputEquationDecoder(input); decoder.DecodeEquation(); return(decoder.decodedEquation); }
private static InputEquationDecoder HandleEquationDecoder() { try { InputEquationDecoder equation = new InputEquationDecoder(input); equation.DecodeEquation(); return(equation); } catch (InvalidEquationException e) { return(null); } }