From 4da4974456179168125fd78e5bde09c2de81b258 Mon Sep 17 00:00:00 2001 From: bjculkin Date: Mon, 27 Mar 2017 18:58:46 -0400 Subject: Work on FDS more --- BJC-Utils2/src/main/java/bjc/utils/cli/fds/FDSState.java | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'BJC-Utils2/src/main/java/bjc/utils/cli/fds/FDSState.java') 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 { 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 { 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 { * The modes being used. */ public Stack> modes; - + /** * Function to add a command block to be processed. */ @@ -81,13 +82,19 @@ public class FDSState { * * @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 comQueue, Consumer dataQueue) { state = stat; mode = inputMode; modes = new SimpleStack<>(); - + enqueCommand = comQueue; enqueData = dataQueue; } -- cgit v1.2.3