blob: 36ea0e1d3ed7a529c4766b903f608fa35af40db5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package bjc.utils.parserutils.pratt.commands;
public class NonBinaryCommand<K, V, C> extends BinaryCommand<K, V, C> {
public NonBinaryCommand(int leftPower) {
super(leftPower);
}
@Override
protected int rightBinding() {
return 1 + leftBinding();
}
@Override
public int nextBinding() {
return leftBinding() - 1;
}
}
|