package bjc.pratt.commands.impls; import bjc.pratt.ParserContext; import bjc.pratt.commands.CommandResult; import bjc.pratt.commands.InitialCommand; import bjc.pratt.tokens.Token; import bjc.utils.parserutils.ParserException; /** * Default implementation of an initial command. * * @author EVE * * @param * The key type of the token. * * @param * The value type of the token. * * @param * The state type of the parser. */ public class DefaultInitialCommand implements InitialCommand { @Override public CommandResult denote(final Token operator, final ParserContext ctx) throws ParserException { throw new ParserException("Unexpected token " + operator); } }