From 747bff446547120d3045685c0c1878251d24c382 Mon Sep 17 00:00:00 2001 From: Ben Culkin Date: Tue, 6 Oct 2020 19:16:12 -0400 Subject: Info cleanup --- .../bjc/pratt/commands/AbstractInitialCommand.java | 27 ++++++++++++++++------ 1 file changed, 20 insertions(+), 7 deletions(-) (limited to 'JPratt/src/main/java/bjc/pratt/commands/AbstractInitialCommand.java') diff --git a/JPratt/src/main/java/bjc/pratt/commands/AbstractInitialCommand.java b/JPratt/src/main/java/bjc/pratt/commands/AbstractInitialCommand.java index d8fd6b9..43abd96 100644 --- a/JPratt/src/main/java/bjc/pratt/commands/AbstractInitialCommand.java +++ b/JPratt/src/main/java/bjc/pratt/commands/AbstractInitialCommand.java @@ -11,22 +11,35 @@ import bjc.utils.parserutils.ParserException; * @author bjculkin * * @param - * The key type of the tokens. + * The key type of the tokens. * * @param - * The value type of the tokens. + * The value type of the tokens. * * @param - * The state type of the parser. + * The state type of the parser. */ public abstract class AbstractInitialCommand implements InitialCommand { @Override - public ITree> denote(final Token operator, final ParserContext ctx) - throws ParserException { + 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; + /** + * Internal null denotation method. + * + * @param operator + * The operator that was parsed. + * @param ctx + * The parser context at this point. + * + * @return The tree that this method parsed. + * + * @throws ParserException + * If something went wrong while parsing. + */ + protected abstract ITree> intNullDenotation(Token operator, + ParserContext ctx) throws ParserException; } \ No newline at end of file -- cgit v1.2.3