X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=src%2Fedu%2Fberkeley%2Fsbp%2Fmisc%2FCartesian.java;h=56650194b7fdad455505666ca8e0b7a4cc05b69a;hp=23e588412024a2e16ad261d4a1ce5020f9aab919;hb=2cca97362e80d5a3cd3e02d791a10cd7c6f6b29c;hpb=cd8ef445dd069efec7d47ab1df0c1f93caa2beac diff --git a/src/edu/berkeley/sbp/misc/Cartesian.java b/src/edu/berkeley/sbp/misc/Cartesian.java index 23e5884..5665019 100644 --- a/src/edu/berkeley/sbp/misc/Cartesian.java +++ b/src/edu/berkeley/sbp/misc/Cartesian.java @@ -11,21 +11,21 @@ public class Cartesian { public static abstract class Input implements edu.berkeley.sbp.Input { - 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;