package org.spoofax.jsglr2.recovery;

import org.spoofax.jsglr2.parser.Position;

public class RecoveryJob {

    public Position position;
    public int iteration;
    public int quota;

    public RecoveryJob(Position position) {
        this.position = position;
        this.iteration = 0;
    }

    boolean hasNextIteration() {
        return iteration < 3;
    }

    int nextIteration() {
        quota = iteration++;

        return iteration;
    }

}

@@ -407,16 +407,18 @@
 quota = 
+++
 iteratio
@@ -418,18 +418,16 @@
 teration
-++
 ;%0A%0A     

Fix that first recovery iterations have quota