diff options
| author | Joel Martin <github@martintribe.org> | 2014-04-06 22:13:14 -0500 |
|---|---|---|
| committer | Joel Martin <github@martintribe.org> | 2014-04-06 22:13:14 -0500 |
| commit | 53beaa0a6ddd9d8a5fb531f97c44a9c7129d1de7 (patch) | |
| tree | aad0aa97a9a7f54aed1cc26561aa22cea931f2fe /cs/step0_repl.cs | |
| parent | b2ff794a97a80f8acac1914c679222fda5a3355c (diff) | |
| download | mal-53beaa0a6ddd9d8a5fb531f97c44a9c7129d1de7.tar.gz mal-53beaa0a6ddd9d8a5fb531f97c44a9c7129d1de7.zip | |
CS: add step1_read_print
Diffstat (limited to 'cs/step0_repl.cs')
| -rw-r--r-- | cs/step0_repl.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cs/step0_repl.cs b/cs/step0_repl.cs index 665aab6..de7a6de 100644 --- a/cs/step0_repl.cs +++ b/cs/step0_repl.cs @@ -1,6 +1,6 @@ using System; using System.IO; -using Mono.Terminal; +using Mal; namespace Mal { class step0_repl { @@ -26,12 +26,11 @@ namespace Mal { static void Main(string[] args) { string prompt = "user> "; - LineEditor lineedit = new LineEditor("Mal"); while (true) { string line; try { - line = lineedit.Edit(prompt, ""); + line = Mal.readline.Readline(prompt); if (line == null) { break; } } catch (IOException e) { Console.WriteLine("IOException: " + e.Message); |
