コード例 #1
0
        private Tree <string> ExecuteInstructions(Tree <string> instructions)
        {
            var results = new SlimTree();

            foreach (Tree <string> 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);
        }
コード例 #2
0
ファイル: Interpreter.cs プロジェクト: x97mdr/fitsharp
        private Tree <string> ExecuteInstructions(Tree <string> instructions)
        {
            var results = new SlimTree();

            foreach (Tree <string> statement in instructions.Branches)
            {
                var result = processor.Execute(statement).GetValue <Tree <string> >();
                results.AddBranchValue(result);
                if (ComposeException.WasAborted(result.Branches[1].Value))
                {
                    break;
                }
            }
            return(results);
        }