public static abstract class Input<Token> implements edu.berkeley.sbp.Input<Token> {
- public abstract Token next() throws IOException;
+ public abstract Token _next() throws IOException;
public abstract boolean isCR();
long then = 0;
private Cartesian.Location location = new Cartesian.Location(0, 1);
public edu.berkeley.sbp.Input.Location getLocation() { return location; }
- public Token next(int numstates, int resets, int waits) throws IOException {
+ public Token next() throws IOException {
int line = location.getRow();
int col = location.getCol();
- Token t = next();
+ Token t = _next();
if (t==null) return null;
String s = " line "+line+", col " + col;
while(s.length() < 20) s += " ";
- s += "[ambiguity level: " + (numstates-1) + "] [resets: " + resets + "] [waits: " + waits + "]";
+ //s += "[ambiguity level: " + (numstates-1) + "] [resets: " + resets + "] [waits: " + waits + "]";
long now = System.currentTimeMillis();
if (now-then > 10) {
then = now;