ProcessCommand() private method

private ProcessCommand ( string line ) : void
line string
return void
示例#1
0
            public static string Interpret(string tape)
            {
                var processor = new Interpreter();

                tape.ToList().ForEach(command =>
                {
                    if (processor.ValidCommands.Contains(command))
                    {
                        processor.ProcessCommand(command);
                    }
                });
                System.Console.WriteLine(processor);
                System.Console.WriteLine(processor.GetCurrentMemoryValue());
                return(processor.GetTape());
            }