next.toString() + " does not close " + first.toString(), next);
} else {
elements.add(next);
}
}
return new Tuple(elements, first, next, first.file, first.start, next.end, first.line, first.col);
} else if (depth == 0 && Delimeter.isClose(first)) {
throw new ParserException("unmatched closing delimeter: " + first.toString() +
" does not close any open delimeter", first);
} else {
return first;