summaryrefslogtreecommitdiff
path: root/base/src/bjc/dicelang/expr/Lexer.java
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/Lexer.java
parent5115f1d2a7eab41436debc696870953e18a1b236 (diff)
Formatting pass
Diffstat (limited to 'base/src/bjc/dicelang/expr/Lexer.java')
-rw-r--r--base/src/bjc/dicelang/expr/Lexer.java13
1 files changed, 6 insertions, 7 deletions
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);