summaryrefslogtreecommitdiff
path: root/JPratt/src/main/java/bjc/pratt/commands/impls/InitialCommands.java
diff options
context:
space:
mode:
authorBen Culkin <scorpress@gmail.com>2020-12-01 20:20:53 -0500
committerBen Culkin <scorpress@gmail.com>2020-12-01 20:20:53 -0500
commitb90f1ea0f1a35d04bd1d5ec2741dc8d45c1f3c0f (patch)
tree45a3779b1d41fa2b72bcb063bf64be002569c01b /JPratt/src/main/java/bjc/pratt/commands/impls/InitialCommands.java
parent747bff446547120d3045685c0c1878251d24c382 (diff)
Add some comments
Diffstat (limited to 'JPratt/src/main/java/bjc/pratt/commands/impls/InitialCommands.java')
-rw-r--r--JPratt/src/main/java/bjc/pratt/commands/impls/InitialCommands.java28
1 files changed, 28 insertions, 0 deletions
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 <K> The key type for the tokens.
+ * @param <V> The value type for the tokens.
+ * @param <C> 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 <K> The key type for the tokens.
+ * @param <V> The value type for the tokens.
+ * @param <C> 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 <K> The key type for the tokens.
+ * @param <V> The value type for the tokens.
+ * @param <C> 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 <K> The key type for the tokens.
+ * @param <V> The value type for the tokens.
+ * @param <C> 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 <K> The key type for the tokens.
+ * @param <V> The value type for the tokens.
+ * @param <C> 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 <K> The key type for the tokens.
+ * @param <V> The value type for the tokens.
+ * @param <C> 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 <K> The key type for the tokens.
+ * @param <V> The value type for the tokens.
+ * @param <C> The context type for the tokens.
+ *
* @param comm
* The command to denest.
*