package bjc.pratt.commands; import bjc.pratt.InitialCommand; import bjc.pratt.ParserContext; import bjc.pratt.Token; import bjc.utils.data.ITree; import bjc.utils.parserutils.ParserException; /** * Abstract base for initial commands. * * @author bjculkin * * @param * The key type of the tokens. * * @param * The value type of the tokens. * * @param * The state type of the parser. */ public abstract class AbstractInitialCommand implements InitialCommand { @Override public ITree> denote(final Token operator, final ParserContext ctx) throws ParserException { return intNullDenotation(operator, ctx); } protected abstract ITree> intNullDenotation(Token operator, ParserContext ctx) throws ParserException; }