/** * Parses a sql text and try to construct the AST by ignoring all the parsing exceptions and moving to the start * token of the next possible statement; * * @param text sql text to be parsed * @param parameters parameter used by parser * @return <code>ParsingResult</code> containing root AST node and <code>ParseException</code>s. */ public synchronized ParsingResult parse(String text, ParserParameters parameters) { ParserParameters oldParameters = _parameters; setParameters(parameters); _input = text; ParsingResult result = doParse(text); result.setScope(getScope()); setParameters(oldParameters); return result; }