diff options
| author | Ben Culkin <scorpress@gmail.com> | 2020-10-06 19:16:12 -0400 |
|---|---|---|
| committer | Ben Culkin <scorpress@gmail.com> | 2020-10-06 19:16:12 -0400 |
| commit | 747bff446547120d3045685c0c1878251d24c382 (patch) | |
| tree | 1c96d6047bb5fcf71e9d5f3de1034569f172a088 /JPratt/src/main/java/bjc/pratt/commands/AbstractInitialCommand.java | |
| parent | f17d48c56ca631571f32a6e4e4436d244e976fdb (diff) | |
Info cleanup
Diffstat (limited to 'JPratt/src/main/java/bjc/pratt/commands/AbstractInitialCommand.java')
| -rw-r--r-- | JPratt/src/main/java/bjc/pratt/commands/AbstractInitialCommand.java | 27 |
1 files changed, 20 insertions, 7 deletions
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 <K> - * The key type of the tokens. + * The key type of the tokens. * * @param <V> - * The value type of the tokens. + * The value type of the tokens. * * @param <C> - * The state type of the parser. + * The state type of the parser. */ public abstract class AbstractInitialCommand<K, V, C> implements InitialCommand<K, V, C> { @Override - public ITree<Token<K, V>> denote(final Token<K, V> operator, final ParserContext<K, V, C> ctx) - throws ParserException { + public ITree<Token<K, V>> denote(final Token<K, V> operator, + final ParserContext<K, V, C> ctx) throws ParserException { return intNullDenotation(operator, ctx); } - protected abstract ITree<Token<K, V>> intNullDenotation(Token<K, V> operator, ParserContext<K, V, C> 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<Token<K, V>> intNullDenotation(Token<K, V> operator, + ParserContext<K, V, C> ctx) throws ParserException; }
\ No newline at end of file |
