Esempio n. 1
0
 private void ParseCommandLine(IList<string> commandLineArguments, Memory memory)
 {
     messenger = Messenger.Make(int.Parse(commandLineArguments[commandLineArguments.Count - 1]), memory);
     if (commandLineArguments.Count > 1) {
         assemblyPaths = commandLineArguments[0];
     }
 }
Esempio n. 2
0
 private void ParseCommandLine(string[] commandLineArguments)
 {
     messenger = Messenger.Make(int.Parse(commandLineArguments[commandLineArguments.Length - 1]));
     if (commandLineArguments.Length > 1) {
         assemblyPaths = commandLineArguments[0];
     }
 }
Esempio n. 3
0
 public static string ExecuteInstructions(string instructionString) {
     var testSocket = new TestSocket(string.Format("{0:000000}:{1}", instructionString.Length, instructionString));
     var messenger = new Messenger(testSocket);
     var interpreter = new Interpreter(messenger, string.Empty, Builder.Service());
     interpreter.ProcessInstructions();
     return testSocket.Output;
 }
Esempio n. 4
0
 public Interpreter(Messenger messenger, string assemblyPaths, Service processor)
 {
     this.messenger = messenger;
     this.assemblyPaths = assemblyPaths;
     this.processor = processor;
 }
Esempio n. 5
0
 public void SetUp()
 {
     session = new TestSession();
     messenger = new Messenger(session);
 }
Esempio n. 6
0
 public void WritesVersion()
 {
     socket = new TestSocket();
     messenger = new Messenger(socket);
     Assert.AreEqual("Slim -- V0.4\n", socket.GetByteString());
 }
Esempio n. 7
0
 public void SetUp()
 {
     socket = new TestSocket();
     messenger = new Messenger(socket);
     socket.Clear();
 }
Esempio n. 8
0
 public Interpreter(Messenger messenger, string assemblyPaths, Service processor)
 {
     this.messenger     = messenger;
     this.assemblyPaths = assemblyPaths;
     this.processor     = processor;
 }