static void Main(string[] args) { Console.Title = "Mirage interactive interpreter 1.0.0 alpha"; Console.WriteLine(Console.Title); Interpreter interpreter = new Interpreter(64 * 1024, new ConsoleInput(), new ConsoleOutput()); Stopwatch time = null; string src; if (args.Length > 0) { if (File.Exists(args[0])) { using (TextReader file = new StreamReader(args[0])) { src = file.ReadToEnd(); time = Stopwatch.StartNew(); interpreter.Run(src); time.Stop(); } } } while ((src = GetCmd(time)) != null) { time = Stopwatch.StartNew(); interpreter.Run(src); time.Stop(); } }
public void SetUp() { input = new DebugInput(); output = new DebugOutput(); i = new Interpreter(64 * 1024, input, output); }