blob: 24802a65daadb6e945d9fdae65f3610eae2b0fbc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package bjc.utils.parserutils.pratt;
import bjc.utils.data.ITree;
class DefaultLeftCommand<K, V, C> extends LeftCommand<K, V, C> {
@Override
public ITree<Token<K, V>> leftDenote(ITree<Token<K, V>> operand, Token<K, V> operator, ParserContext<K, V, C> ctx) {
throw new UnsupportedOperationException("Default command has no left denotation");
}
@Override
public int leftBinding() {
return -1;
}
}
|