return ndx;
}
private static int consumeBraces(final String sql, final int start, final Deque<CompositeNode> parents) throws ParseException {
if (sql.charAt(start) == '{') {
parents.push(new EscapeNode(start));
}
else {
if (parents.peek() instanceof EscapeNode) {
EscapeNode tmp = (EscapeNode) parents.pop();
tmp.setEndPos(start);
parents.peek().add(tmp);
}
else {
throw new ParseException("Mismatched curly brace", start);
}