/** * Process an input string through the tokenizer and then parser. * * <p>A sequence of <code>$x=(3+5)/2;</code> will return an IExpressionNode with a value of <code> * 4.0</code>. * * @param sequence input to parse * @return IExpressionNode result * @throws ParserException */ public List<IExpressionNode> parse(String sequence) throws ParserException { if (tokenizer == null) { tokenizer = new Tokenizer(); initialiseTokenizer(); } tokenizer.tokenize(sequence); statementList = tokenizer.getStatementList(); return parse(); }