Skip to content

Commit 2ffc1f5

Browse files
committed
Something that can pass for a REPL
1 parent e82cdb5 commit 2ffc1f5

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

ngi/Program.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Linq;
4+
using System.IO;
45
using System.Text;
6+
using Naggum.Runtime;
57

68
namespace ngi
79
{
810
class Program
911
{
1012
static void Main(string[] args)
1113
{
14+
Stream input = System.Console.OpenStandardInput();
15+
for (; ; )
16+
{
17+
System.Console.Out.Write(">");
18+
Object obj = Reader.Read(input);
19+
System.Console.Out.WriteLine(obj.ToString());
20+
}
21+
input.Close();
1222
}
1323
}
1424
}

0 commit comments

Comments
 (0)