summaryrefslogtreecommitdiff
path: root/JPratt/src/main/java/bjc/pratt/commands/MetaNonInitialCommand.java
blob: 956dcec96ddfc9c291da557cac5c90dcd1a75f4e (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
package bjc.pratt.commands;

import bjc.pratt.ParserContext;

/**
 * A 'meta-command' for non-initial commands.
 * 
 * @author bjculkin
 *
 * @param <K>
 *            The token key type.
 * 
 * @param <V>
 *            The token value type.
 * 
 * @param <C>
 *            The parser state type.
 */
public interface MetaNonInitialCommand<K, V, C> {
	/**
	 * Get the command to use.
	 * 
	 * @param ctx
	 *            The context to use.
	 * @return The command to use.
	 */
	NonInitialCommand<K, V, C> getCommand(ParserContext<K, V, C> ctx);
}