diff options
Diffstat (limited to 'base/src/bjc/dicelang/expr/Lexer.java')
| -rw-r--r-- | base/src/bjc/dicelang/expr/Lexer.java | 13 |
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); |
