* @throws ParseCancellationException
* throws if equation is invalid
*/
List<TerminalNode> parseEquation(final String equation) throws ParseCancellationException {
final EquationGrammarParser parser = getParser(equation);
final ProgContext tree = parser.prog();
return parseTree(tree);
}
private EquationGrammarParser getParser(final String equation) {
final ANTLRInputStream input = new ANTLRInputStream(equation);