blob: 7aaf73594c9345bd2100b9c1b2514e00cce01e16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package bjc.utils.parserutils.pratt.commands;
import bjc.utils.parserutils.pratt.NonInitialCommand;
/*
* A command with constant binding power.
*/
public abstract class BinaryPostCommand<K, V, C> extends NonInitialCommand<K, V, C> {
private final int leftPower;
public BinaryPostCommand(int power) {
leftPower = power;
}
@Override
public int leftBinding() {
return leftPower;
}
}
|