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

/**
 * The specifier for what to do for each element of a command.
 * 
 * @author EVE
 *
 */
public class InterleaveSpecifier {
	/**
	 * The type of this specifier.
	 * 
	 * @author EVE
	 *
	 */
	public static enum Type {
		/**
		 * Parse an expression with the given priority.
		 */
		EXPRESSION,
		/**
		 * Parse a statement with the given priority.
		 */
		STATEMENT,
		/**
		 * Expect a token of a certain type to be present.
		 */
		EXPECT, LITERAL;
	}
}