From ccd92f9b09dfbf1f16f50787ef2510e038dccf06 Mon Sep 17 00:00:00 2001 From: student Date: Mon, 5 Mar 2018 16:48:49 -0500 Subject: Update --- .../main/java/bjc/pratt/commands/MetaInitialCommand.java | 14 ++++++++++++++ .../java/bjc/pratt/commands/MetaNonInitialCommand.java | 13 ++++++++++--- 2 files changed, 24 insertions(+), 3 deletions(-) (limited to 'JPratt/src/main/java/bjc/pratt/commands') diff --git a/JPratt/src/main/java/bjc/pratt/commands/MetaInitialCommand.java b/JPratt/src/main/java/bjc/pratt/commands/MetaInitialCommand.java index 9f14f36..d209177 100644 --- a/JPratt/src/main/java/bjc/pratt/commands/MetaInitialCommand.java +++ b/JPratt/src/main/java/bjc/pratt/commands/MetaInitialCommand.java @@ -6,8 +6,22 @@ import bjc.pratt.ParserContext; * A 'meta-command' that yields the actual command to use. * * @author bjculkin + * + * @param + * The key type of the context. + * @param + * The value type of the context. + * @param + * The storage type of the context. * */ public interface MetaInitialCommand { + /** + * Get the command to use. + * + * @param ctx + * The current parser context. + * @return The command to use. + */ InitialCommand getCommand(ParserContext ctx); } diff --git a/JPratt/src/main/java/bjc/pratt/commands/MetaNonInitialCommand.java b/JPratt/src/main/java/bjc/pratt/commands/MetaNonInitialCommand.java index 9d09eef..956dcec 100644 --- a/JPratt/src/main/java/bjc/pratt/commands/MetaNonInitialCommand.java +++ b/JPratt/src/main/java/bjc/pratt/commands/MetaNonInitialCommand.java @@ -8,14 +8,21 @@ import bjc.pratt.ParserContext; * @author bjculkin * * @param - * The token key type. + * The token key type. * * @param - * The token value type. + * The token value type. * * @param - * The parser state type. + * The parser state type. */ public interface MetaNonInitialCommand { + /** + * Get the command to use. + * + * @param ctx + * The context to use. + * @return The command to use. + */ NonInitialCommand getCommand(ParserContext ctx); } -- cgit v1.2.3