blob: 4aa51208e039c0f2c7f6284ae98533b26590368e (
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 com.ashardalon.pratt.commands;
import com.ashardalon.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);
}
|