summaryrefslogtreecommitdiff
path: root/JPratt/src/main/java/bjc/pratt/commands/impls/ChainCommand.java
diff options
context:
space:
mode:
authorbjculkin <bjculkin@mix.wvu.edu>2018-02-15 15:25:09 -0500
committerbjculkin <bjculkin@mix.wvu.edu>2018-02-15 15:25:09 -0500
commit5028ad9a1faad0e363d017f18363e8062ba59871 (patch)
tree80df30dc24a2cd79abf7533b98fcfcd28b1f4fee /JPratt/src/main/java/bjc/pratt/commands/impls/ChainCommand.java
parent1112bb1b44bb3aabe439a2b9f88a51a9c1e435de (diff)
Formatting and things
Diffstat (limited to 'JPratt/src/main/java/bjc/pratt/commands/impls/ChainCommand.java')
-rw-r--r--JPratt/src/main/java/bjc/pratt/commands/impls/ChainCommand.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/JPratt/src/main/java/bjc/pratt/commands/impls/ChainCommand.java b/JPratt/src/main/java/bjc/pratt/commands/impls/ChainCommand.java
index 2a9bf35..e971586 100644
--- a/JPratt/src/main/java/bjc/pratt/commands/impls/ChainCommand.java
+++ b/JPratt/src/main/java/bjc/pratt/commands/impls/ChainCommand.java
@@ -15,13 +15,13 @@ 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 class ChainCommand<K, V, C> extends BinaryPostCommand<K, V, C> {
private final Set<K> chainWith;
@@ -32,13 +32,13 @@ public class ChainCommand<K, V, C> extends BinaryPostCommand<K, V, C> {
* Create a new chained operator.
*
* @param precedence
- * The precedence of this operator.
+ * The precedence of this operator.
*
* @param chainSet
- * The operators to chain with.
+ * The operators to chain with.
*
* @param chainMarker
- * The token to use as the node in the AST.
+ * The token to use as the node in the AST.
*/
public ChainCommand(final int precedence, final Set<K> chainSet, final Token<K, V> chainMarker) {
super(precedence);
@@ -55,7 +55,7 @@ public class ChainCommand<K, V, C> extends BinaryPostCommand<K, V, C> {
final ITree<Token<K, V>> res = new Tree<>(operator, operand, tree);
- if (chainWith.contains(ctx.tokens.current().getKey())) {
+ if(chainWith.contains(ctx.tokens.current().getKey())) {
final Token<K, V> tok = ctx.tokens.current();
ctx.tokens.next();