X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=src%2Fedu%2Fberkeley%2Fsbp%2FToken.java;h=41ef3d1401abaae141d2d2ced727183c106b1c17;hp=196f5cacdec082d01b3f88b33c4fa3cfaa627f03;hb=888e9ccbab5f458a727c16da9d9291fd8951d909;hpb=0a0227b9180534d2a431f3d6e08a398bde2244c4
diff --git a/src/edu/berkeley/sbp/Token.java b/src/edu/berkeley/sbp/Token.java
index 196f5ca..41ef3d1 100644
--- a/src/edu/berkeley/sbp/Token.java
+++ b/src/edu/berkeley/sbp/Token.java
@@ -10,25 +10,19 @@ import edu.berkeley.sbp.*;
/** a token of input -- note that this represents an actual input token rather than an Element which matches a token */
public interface Token {
- // FIXME!!! remove this
- /** converts this Token into a standalone result (ie for a non-rewriting pattern) */
- public String result();
-
/** this is declared abstract as a way of forcing subclasses to provide a thoughtful implementation */
public abstract String toString();
- public abstract Location getLocation();
-
/** a sequence of input tokens; returns null when EOF is reached */
public static interface Stream {
public T next() throws IOException;
+ public abstract Location getLocation();
}
/** a location within the input stream */
public static interface Location {
public String toString();
- public String getContext();
}
-
}
+