checkpoint
[sbp.git] / src / edu / berkeley / sbp / Input.java
1 package edu.berkeley.sbp;
2 import java.io.*;
3 import java.util.*;
4 import java.lang.reflect.*;
5 import java.lang.ref.*;
6 import edu.berkeley.sbp.*;
7 import edu.berkeley.sbp.util.*;
8
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> {
11
12     public Tok next(int numstates, int resets, int waits) throws IOException;
13     public abstract Location getLocation();
14
15     /** a location *between tokens* in the input stream */
16     public static interface Location {
17         public String toString();
18     }
19 }
20
21