summaryrefslogtreecommitdiff
path: root/BJC-Utils2/src/main/java/bjc/utils/parserutils/pratt/Token.java
blob: 6db8b6303966ceff6bf4d8d221de54ae6f848560 (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.utils.parserutils.pratt;

/**
 * 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();
}