package bjc.pratt.commands; /** * A right-associative binary operator. * * @author bjculkin * * @param * The key type of the tokens. * @param * The value type of the tokens. * @param * The state type of the parser. */ public class RightBinaryCommand extends BinaryCommand { /** * Create a new right-associative operator. * * @param precedence * The precedence of the operator. */ public RightBinaryCommand(int precedence) { super(precedence); } @Override protected int rightBinding() { return leftBinding(); } }