1 package edu.berkeley.sbp;
4 import java.lang.reflect.*;
5 import java.lang.ref.*;
6 import edu.berkeley.sbp.*;
7 import edu.berkeley.sbp.util.*;
9 /** a token of input -- note that this represents an <i>actual input token</i> rather than an <tt>Element</tt> which <i>matches</i> a token */
10 public interface Input<Tok> {
12 public Tok next(int numstates, int resets, int waits) throws IOException;
13 public abstract Location getLocation();
15 /** a location *between tokens* in the input stream */
16 public static interface Location {
17 public String toString();