aboutsummaryrefslogtreecommitdiff
path: root/cs/step0_repl.cs
diff options
context:
space:
mode:
Diffstat (limited to 'cs/step0_repl.cs')
-rw-r--r--cs/step0_repl.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/cs/step0_repl.cs b/cs/step0_repl.cs
index 616e154..68cac94 100644
--- a/cs/step0_repl.cs
+++ b/cs/step0_repl.cs
@@ -25,13 +25,17 @@ namespace Mal {
}
static void Main(string[] args) {
- string prompt = "user> ";
+ if (args.Length > 0 && args[0] == "--raw") {
+ Mal.readline.mode = Mal.readline.Mode.Raw;
+ }
+ // repl loop
while (true) {
string line;
try {
- line = Mal.readline.Readline(prompt);
+ line = Mal.readline.Readline("user> ");
if (line == null) { break; }
+ if (line == "") { continue; }
} catch (IOException e) {
Console.WriteLine("IOException: " + e.Message);
break;