package bjc.pratt.commands; /** * A left-associative 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 LeftBinaryCommand extends BinaryCommand { /** * Create a new left-associative operator. * * @param precedence * The precedence of the operator. */ public LeftBinaryCommand(int precedence) { super(precedence); } @Override protected int rightBinding() { return 1 + leftBinding(); } }