diff options
| author | student <student@localhost> | 2018-02-12 12:59:01 -0500 |
|---|---|---|
| committer | student <student@localhost> | 2018-02-12 12:59:01 -0500 |
| commit | 8094fc813a29d447555863b6c32816229ff01958 (patch) | |
| tree | 375a00a4f72477dcf711fe2c4ab1293950614209 /base/src/bjc/dicelang/expr/Lexer.java | |
| parent | a15873fb42e8db3b2101330514b2208ef3490d70 (diff) | |
Formatting pass
Diffstat (limited to 'base/src/bjc/dicelang/expr/Lexer.java')
| -rw-r--r-- | base/src/bjc/dicelang/expr/Lexer.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/base/src/bjc/dicelang/expr/Lexer.java b/base/src/bjc/dicelang/expr/Lexer.java index dfa0f76..a8fbcaa 100644 --- a/base/src/bjc/dicelang/expr/Lexer.java +++ b/base/src/bjc/dicelang/expr/Lexer.java @@ -33,10 +33,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. */ @@ -44,14 +44,14 @@ public class Lexer { /* Split tokens on whitespace. */ final String[] spacedTokens = inp.split("[ \t]"); /* Tokens to return. */ - final List<Token> tokens = new LinkedList<>(); + final List<Token> tokens = new LinkedList<>(); /* Process each token. */ 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 -> tks.lexToken(tok, spacedToken)); + final IList<Token> rawTokens = splitTokens.map(tok -> tks.lexToken(tok, spacedToken)); /* Add tokens to results. */ rawTokens.forEach(tokens::add); |
