public abstract boolean isCR();
long then = 0;
- private CartesianLocation location = new CartesianLocation(1, 0);
+ private Input.Location.Cartesian location = new Input.Location.Cartesian(0, 1);
public Input.Location getLocation() { return location; }
public Token next(int numstates, int resets, int waits) throws IOException {
- int line = location.line;
- int col = location.col;
+ int line = location.getRow();
+ int col = location.getCol();
Token t = next();
if (t==null) return null;
String s = " line "+line+", col " + col;
} else {
col++;
}
- location = new CartesianLocation(line, col);
+ location = new Input.Location.Cartesian(col, line);
return t;
}
}