package bjc.utils.parserutils.pratt; import bjc.utils.data.ITree; import bjc.utils.parserutils.ParserException; /** * Represents an initial command in parsing. * * @author EVE * * @param * The key type for the tokens. * * @param * The value type for the tokens. * * @param * The state type of the parser. * * */ public abstract class NullCommand { /** * Construct the null denotation of this command. * * @param operator * The operator for this command. * @param ctx * The context for the command. * * @return The tree for this command. * * @throws ParserException * If something goes wrong during parsing. */ public abstract ITree> nullDenotation(Token operator, ParserContext ctx) throws ParserException; }