From b90f1ea0f1a35d04bd1d5ec2741dc8d45c1f3c0f Mon Sep 17 00:00:00 2001 From: Ben Culkin Date: Tue, 1 Dec 2020 20:20:53 -0500 Subject: Add some comments --- .../bjc/pratt/commands/impls/InitialCommands.java | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'JPratt/src/main/java/bjc/pratt/commands/impls/InitialCommands.java') diff --git a/JPratt/src/main/java/bjc/pratt/commands/impls/InitialCommands.java b/JPratt/src/main/java/bjc/pratt/commands/impls/InitialCommands.java index ed21b19..dc8009e 100644 --- a/JPratt/src/main/java/bjc/pratt/commands/impls/InitialCommands.java +++ b/JPratt/src/main/java/bjc/pratt/commands/impls/InitialCommands.java @@ -21,6 +21,10 @@ import bjc.data.ITree; public class InitialCommands { /** * Create a new unary operator. + * + * @param The key type for the tokens. + * @param The value type for the tokens. + * @param The context type for the tokens. * * @param precedence * The precedence of the operator. @@ -34,6 +38,10 @@ public class InitialCommands { /** * Create a new grouping operator. * + * @param The key type for the tokens. + * @param The value type for the tokens. + * @param The context type for the tokens. + * * @param precedence * The precedence of the expression in the operator. * @@ -54,6 +62,10 @@ public class InitialCommands { /** * Create a new leaf operator. + * + * @param The key type for the tokens. + * @param The value type for the tokens. + * @param The context type for the tokens. * * @return A command implementing the operator. */ @@ -64,6 +76,10 @@ public class InitialCommands { /** * Create a new pre-ternary operator, like an if-then-else statement. * + * @param The key type for the tokens. + * @param The value type for the tokens. + * @param The context type for the tokens. + * * @param cond1 * The priority of the first block. * @@ -96,6 +112,10 @@ public class InitialCommands { /** * Create a new named constant. * + * @param The key type for the tokens. + * @param The value type for the tokens. + * @param The context type for the tokens. + * * @param val * The value of the constant. * @@ -108,6 +128,10 @@ public class InitialCommands { /** * Create a new delimited command. This is for block-like constructs. * + * @param The key type for the tokens. + * @param The value type for the tokens. + * @param The context type for the tokens. + * * @param inner * The precedence of the inner blocks. * @@ -156,6 +180,10 @@ public class InitialCommands { * This removes one tree-level, and is useful when combining complex * parse blocks with commands. * + * @param The key type for the tokens. + * @param The value type for the tokens. + * @param The context type for the tokens. + * * @param comm * The command to denest. * -- cgit v1.2.3