summaryrefslogtreecommitdiff
path: root/base/src/bjc/dicelang/expr
diff options
context:
space:
mode:
authorstudent <student@69.161.224.78>2018-02-12 16:20:10 -0500
committerstudent <student@69.161.224.78>2018-02-12 16:20:10 -0500
commit654a69ca0a0c1ab86aea2f6be63fe60eac61105a (patch)
tree53bd2cb7f54577e9220780cc4270ea525e423c0f /base/src/bjc/dicelang/expr
parent5115f1d2a7eab41436debc696870953e18a1b236 (diff)
Formatting pass
Diffstat (limited to 'base/src/bjc/dicelang/expr')
-rw-r--r--base/src/bjc/dicelang/expr/ExprREPL.java2
-rw-r--r--base/src/bjc/dicelang/expr/Ezpr.java4
-rw-r--r--base/src/bjc/dicelang/expr/Lexer.java13
-rw-r--r--base/src/bjc/dicelang/expr/Shunter.java2
-rw-r--r--base/src/bjc/dicelang/expr/Token.java12
-rw-r--r--base/src/bjc/dicelang/expr/Tokens.java4
6 files changed, 18 insertions, 19 deletions
diff --git a/base/src/bjc/dicelang/expr/ExprREPL.java b/base/src/bjc/dicelang/expr/ExprREPL.java
index 84149a0..49b9575 100644
--- a/base/src/bjc/dicelang/expr/ExprREPL.java
+++ b/base/src/bjc/dicelang/expr/ExprREPL.java
@@ -17,7 +17,7 @@ public class ExprREPL {
* Main method.
*
* @param args
- * Unused CLI args.
+ * Unused CLI args.
*/
public static void main(final String[] args) {
/* Create our objects. */
diff --git a/base/src/bjc/dicelang/expr/Ezpr.java b/base/src/bjc/dicelang/expr/Ezpr.java
index b852fd1..4919c81 100644
--- a/base/src/bjc/dicelang/expr/Ezpr.java
+++ b/base/src/bjc/dicelang/expr/Ezpr.java
@@ -1,6 +1,6 @@
/*
- * @TODO 10/08/17 Ben Culkin :EzprFixing
- * Implement these, and make sure they work correctly.
+ * @TODO 10/08/17 Ben Culkin :EzprFixing Implement these, and make sure they
+ * work correctly.
*/
package bjc.dicelang.expr;
diff --git a/base/src/bjc/dicelang/expr/Lexer.java b/base/src/bjc/dicelang/expr/Lexer.java
index 7530ba5..c7dd92f 100644
--- a/base/src/bjc/dicelang/expr/Lexer.java
+++ b/base/src/bjc/dicelang/expr/Lexer.java
@@ -7,10 +7,9 @@ import bjc.utils.funcdata.IList;
import bjc.utils.parserutils.splitter.ConfigurableTokenSplitter;
/*
- * @TODO 10/08/18 :IntExpressions
- * Add support for integer constants, and maybe floating-point ones as well
- * if you feel like. Heck, you could even go for ratio constants and things
- * as well.
+ * @TODO 10/08/18 :IntExpressions Add support for integer constants, and maybe
+ * floating-point ones as well if you feel like. Heck, you could even go for
+ * ratio constants and things as well.
*/
/**
* Implements the lexer for simple expression operations.
@@ -35,10 +34,10 @@ public class Lexer {
* Convert a string from a input command to a series of infix tokens.
*
* @param inp
- * The input command.
+ * The input command.
*
* @param tks
- * The token state.
+ * The token state.
*
* @return A series of infix tokens representing the command.
*/
@@ -52,7 +51,7 @@ public class Lexer {
for (final String spacedToken : spacedTokens) {
/* Split on operators. */
final IList<String> splitTokens = split.split(spacedToken);
-
+
/* Convert strings to tokens. */
final IList<Token> rawTokens = splitTokens.map(tok -> {
return tks.lexToken(tok, spacedToken);
diff --git a/base/src/bjc/dicelang/expr/Shunter.java b/base/src/bjc/dicelang/expr/Shunter.java
index a1b24cb..53c2298 100644
--- a/base/src/bjc/dicelang/expr/Shunter.java
+++ b/base/src/bjc/dicelang/expr/Shunter.java
@@ -16,7 +16,7 @@ public class Shunter {
* Convert a infix series of tokens to a postfix series of tokens.
*
* @param infixTokens
- * The tokens in infix order.
+ * The tokens in infix order.
*
* @return The tokens in postfix order.
*/
diff --git a/base/src/bjc/dicelang/expr/Token.java b/base/src/bjc/dicelang/expr/Token.java
index 3c6b1da..750362d 100644
--- a/base/src/bjc/dicelang/expr/Token.java
+++ b/base/src/bjc/dicelang/expr/Token.java
@@ -3,9 +3,9 @@ package bjc.dicelang.expr;
/*
* @TODO 10/08/17 :TokenReorg
*
- * I am not a fan of this 'having a bunch of subclasses' in one thing I
- * seem to have been doing around this project. This should be multiple
- * subclasses, one for each value for TokenType.
+ * I am not a fan of this 'having a bunch of subclasses' in one thing I seem to
+ * have been doing around this project. This should be multiple subclasses, one
+ * for each value for TokenType.
*/
/**
* Represents a lexical token.
@@ -33,13 +33,13 @@ public class Token {
* Create a new token.
*
* @param type
- * The type of this token.
+ * The type of this token.
*
* @param raw
- * The string this token came from.
+ * The string this token came from.
*
* @param toks
- * The state for this token
+ * The state for this token
*/
public Token(final TokenType type, final String raw, final Tokens toks) {
this.typ = type;
diff --git a/base/src/bjc/dicelang/expr/Tokens.java b/base/src/bjc/dicelang/expr/Tokens.java
index 92416d1..687a414 100644
--- a/base/src/bjc/dicelang/expr/Tokens.java
+++ b/base/src/bjc/dicelang/expr/Tokens.java
@@ -58,9 +58,9 @@ public class Tokens {
* Convert the string representation of a token into a token.
*
* @param tok
- * The string representation of the token.
+ * The string representation of the token.
* @param raw
- * The original string the token came from.
+ * The original string the token came from.
*
* @return The token the string represents.
*/