diff options
| author | bjculkin <bjculkin@mix.wvu.edu> | 2017-03-27 18:58:46 -0400 |
|---|---|---|
| committer | bjculkin <bjculkin@mix.wvu.edu> | 2017-03-27 18:58:46 -0400 |
| commit | 4da4974456179168125fd78e5bde09c2de81b258 (patch) | |
| tree | 8566c28858eb20a50e225bbfe3cde2e3f8208d3a /BJC-Utils2/src/main/java/bjc/utils/cli/fds/FDSState.java | |
| parent | f6c19bb14bf5be44c2d7bf1fef014d170f1c4343 (diff) | |
Work on FDS more
Diffstat (limited to 'BJC-Utils2/src/main/java/bjc/utils/cli/fds/FDSState.java')
| -rw-r--r-- | BJC-Utils2/src/main/java/bjc/utils/cli/fds/FDSState.java | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/BJC-Utils2/src/main/java/bjc/utils/cli/fds/FDSState.java b/BJC-Utils2/src/main/java/bjc/utils/cli/fds/FDSState.java index 4a6e1c6..bef86ae 100644 --- a/BJC-Utils2/src/main/java/bjc/utils/cli/fds/FDSState.java +++ b/BJC-Utils2/src/main/java/bjc/utils/cli/fds/FDSState.java @@ -34,7 +34,7 @@ public class FDSState<S> { CHORD, /** * Reads every character in the block, but after a terminal - * command, data will be read inline separated by spaces until a + * command, data will be read in-line separated by spaces until a * semicolon is read. * * The semicolon can be escaped with a backslash. @@ -42,11 +42,12 @@ public class FDSState<S> { INLINE, /** * Reads every character in the block, but after a terminal - * command, data will be read inline with each character being a + * command, data will be read in-line with each character being a * separate item until a semicolon is read. * * The semicolon can be escaped with a backslash. */ + CHARINLINE, } /** @@ -62,7 +63,7 @@ public class FDSState<S> { * The modes being used. */ public Stack<FDSMode<S>> modes; - + /** * Function to add a command block to be processed. */ @@ -81,13 +82,19 @@ public class FDSState<S> { * * @param inputMode * The input mode for the interface. + * + * @param comQueue + * The function to call to add a command block. + * + * @param dataQueue + * The function to call to add a data block. */ public FDSState(S stat, InputMode inputMode, Consumer<Block> comQueue, Consumer<Block> dataQueue) { state = stat; mode = inputMode; modes = new SimpleStack<>(); - + enqueCommand = comQueue; enqueData = dataQueue; } |
