fitSharp.Slim.Service.Interpreter.ExecuteInstructions C# (CSharp) Method

ExecuteInstructions() private method

private ExecuteInstructions ( Tree instructions ) : Tree
instructions Tree
return Tree
        private Tree<string> ExecuteInstructions(Tree<string> instructions)
        {
            var results = new SlimTree();
            foreach (var statement in instructions.Branches) {
                var result = processor.Invoke(new SlimInstruction(), new MemberName(string.Empty), statement).GetValue<Tree<string>>();
                results.AddBranchValue(result);
                if (ComposeException.WasAborted(result.ValueAt(1))) break;
            }
            return results;
        }