summaryrefslogtreecommitdiff
path: root/base/src/bjc/dicelang/scl/StreamControlConsole.java
diff options
context:
space:
mode:
authorstudent <student@localhost>2018-02-12 12:59:01 -0500
committerstudent <student@localhost>2018-02-12 12:59:01 -0500
commit8094fc813a29d447555863b6c32816229ff01958 (patch)
tree375a00a4f72477dcf711fe2c4ab1293950614209 /base/src/bjc/dicelang/scl/StreamControlConsole.java
parenta15873fb42e8db3b2101330514b2208ef3490d70 (diff)
Formatting pass
Diffstat (limited to 'base/src/bjc/dicelang/scl/StreamControlConsole.java')
-rw-r--r--base/src/bjc/dicelang/scl/StreamControlConsole.java19
1 files changed, 9 insertions, 10 deletions
diff --git a/base/src/bjc/dicelang/scl/StreamControlConsole.java b/base/src/bjc/dicelang/scl/StreamControlConsole.java
index 78b1d49..ca61244 100644
--- a/base/src/bjc/dicelang/scl/StreamControlConsole.java
+++ b/base/src/bjc/dicelang/scl/StreamControlConsole.java
@@ -12,26 +12,25 @@ import java.util.Scanner;
*/
public class StreamControlConsole {
/*
- * @TODO 10/08/17 :SCLArgs
- * Do something useful with the CLI args.
+ * @TODO 10/08/17 :SCLArgs Do something useful with the CLI args.
*
*/
/**
* Main method
*
* @param args
- * Unused CLI args.
+ * Unused CLI args.
*/
public static void main(String[] args) {
/*
* Initialize vars.
- *
- * We can get away with passing the null, because StreamEngine
- * doesn't reference any parts of DiceLangEngine.
+ *
+ * We can get away with passing the null, because StreamEngine doesn't reference
+ * any parts of DiceLangEngine.
*/
- StreamEngine sengine = new StreamEngine(null);
+ StreamEngine sengine = new StreamEngine(null);
StreamControlEngine sclengine = new StreamControlEngine(sengine);
- Scanner scn = new Scanner(System.in);
+ Scanner scn = new Scanner(System.in);
/* Get input from the user. */
System.out.print("Enter a SCL command string (blank to exit): ");
@@ -47,7 +46,7 @@ public class StreamControlConsole {
/* Break the token into strings. */
IList<String> res = new FunctionalList<>();
- String[] tokens = ln.split(" ");
+ String[] tokens = ln.split(" ");
/* Run the stream engine on the tokens. */
boolean succ = sengine.doStreams(tokens, res);
@@ -58,7 +57,7 @@ public class StreamControlConsole {
/* Run the command through SCL. */
tokens = res.toArray(new String[res.getSize()]);
- succ = sclengine.runProgram(tokens);
+ succ = sclengine.runProgram(tokens);
if (!succ) {
System.out.printf("ERROR: SCL engine failed for line '%s'\n", ln);
continue;