package bjc.utils.parserutils.pratt.commands; import bjc.utils.data.ITree; import bjc.utils.parserutils.pratt.NonInitialCommand; import bjc.utils.parserutils.pratt.ParserContext; import bjc.utils.parserutils.pratt.Token; /** * 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(ITree> operand, Token operator, ParserContext ctx) { throw new UnsupportedOperationException("Default command has no left denotation"); } @Override public int leftBinding() { return -1; } }