ProcessCommand() private méthode

private ProcessCommand ( string line ) : void
line string
Résultat void
Exemple #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());
            }