blob: 7de4ada85a18d2ee2b2ea1bf85dc83bc76616fed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
package bjc.pratt.tokens;
/**
* Represents a simple parsing token.
*
* @author EVE
*
* @param <K>
* The key type of this token. Represents the type of the token.
*
* @param <V>
* The value type of this token. Represents any additional data for the
* token.
*
*/
public interface Token<K, V> {
/**
* Get the key for this token.
*
* @return The key for this token
*/
K getKey();
/**
* Get the value for this token.
*
* @return The value for this token.
*/
V getValue();
}
|