diff options
| author | student <student@localhost> | 2018-02-12 13:56:22 -0500 |
|---|---|---|
| committer | student <student@localhost> | 2018-02-12 13:56:22 -0500 |
| commit | 5115f1d2a7eab41436debc696870953e18a1b236 (patch) | |
| tree | dbb2453580038b9f8102bb5bc53c60d2410f0f00 /base/src/bjc/dicelang/DiceLangEngine.java | |
| parent | 4c8639f361983d97a7b46282b12528b550fff946 (diff) | |
General update
Diffstat (limited to 'base/src/bjc/dicelang/DiceLangEngine.java')
| -rw-r--r-- | base/src/bjc/dicelang/DiceLangEngine.java | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/base/src/bjc/dicelang/DiceLangEngine.java b/base/src/bjc/dicelang/DiceLangEngine.java index faa8a90..128e2a6 100644 --- a/base/src/bjc/dicelang/DiceLangEngine.java +++ b/base/src/bjc/dicelang/DiceLangEngine.java @@ -1,14 +1,5 @@ package bjc.dicelang; -import static bjc.dicelang.Errors.ErrorKey.EK_ENG_NOCLOSING; -import static bjc.dicelang.Errors.ErrorKey.EK_ENG_NOOPENING; -import static bjc.dicelang.Token.Type.CBRACE; -import static bjc.dicelang.Token.Type.CBRACKET; -import static bjc.dicelang.Token.Type.CPAREN; -import static bjc.dicelang.Token.Type.OBRACE; -import static bjc.dicelang.Token.Type.OBRACKET; -import static bjc.dicelang.Token.Type.OPAREN; - import java.util.Deque; import java.util.Iterator; import java.util.LinkedList; @@ -28,6 +19,9 @@ import bjc.utils.funcutils.ListUtils; import bjc.utils.parserutils.TokenUtils; import bjc.utils.parserutils.splitter.ConfigurableTokenSplitter; +import static bjc.dicelang.Errors.ErrorKey.*; +import static bjc.dicelang.Token.Type.*; + /** * Implements the orchestration necessary for processing DiceLang commands. * @@ -224,8 +218,9 @@ public class DiceLangEngine { public boolean runCommand(final String command) { /* Preprocess the command into tokens */ /* - * @NOTE Instead of strings, this should maybe use a RawToken class or - * something. + * @NOTE + * + * Instead of strings, this should maybe use a RawToken class or something. */ final IList<String> preprocessedTokens = preprocessCommand(command); @@ -664,8 +659,10 @@ public class DiceLangEngine { /* Add a string literal to the string literal table. */ /* - * @NOTE The string literal table should be abstracted into some kind of - * auto-numbered map thing. + * @NOTE + * + * The string literal table should be abstracted into some kind of auto-numbered + * map thing. */ void addStringLiteral(final int key, final String val) { stringLits.put(key, val); |
