package bjc.pratt.commands.impls; import bjc.pratt.ParserContext; import bjc.pratt.commands.NonInitialCommand; import bjc.pratt.tokens.Token; import bjc.data.ITree; /** * Default implementation of a non-initial command. * * @author EVE * * @param * The key type of the tokens. * * @param * The value type of the tokens. * * @param * The state type of the parser. */ public class DefaultNonInitialCommand extends NonInitialCommand { @Override public ITree> denote(final ITree> operand, final Token operator, final ParserContext ctx) { throw new UnsupportedOperationException("Default command has no left denotation"); } @Override public int leftBinding() { return -1; } }