}
private void analyzeRepeat(Repeat repeat, int minMatches) {
Expression stop = null;
if (repeat.getParent() instanceof Sequence) {
Sequence s = (Sequence) repeat.getParent();
if (s.getCurrent() == repeat) {
stop = s.getNext();
}
}
while (!EOP() && !stop(stop, minMatches > 0)
&& analyze(repeat.getExpression())) {
cursor++;