X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=src%2Fedu%2Fberkeley%2Fsbp%2FToken.java;h=551ee6d3c34d25bc801922fd43f36c3160164f53;hp=41ef3d1401abaae141d2d2ced727183c106b1c17;hb=08aa6cdd07a882fdedf7a6d5c7bd0d754460965b;hpb=fd97655ce34c3aff1a47bfb2f45775ac711923b1 diff --git a/src/edu/berkeley/sbp/Token.java b/src/edu/berkeley/sbp/Token.java index 41ef3d1..551ee6d 100644 --- a/src/edu/berkeley/sbp/Token.java +++ b/src/edu/berkeley/sbp/Token.java @@ -15,11 +15,11 @@ public interface Token { /** a sequence of input tokens; returns null when EOF is reached */ public static interface Stream { - public T next() throws IOException; + public T next(int numstates) throws IOException; public abstract Location getLocation(); } - /** a location within the input stream */ + /** a location *between tokens* in the input stream */ public static interface Location { public String toString(); }