예제 #1
0
        public InputTree Build(IEnumerable <Query> commands, string defaultCommandKey)
        {
            InputTree tree = new InputTree();

            ProcessQueries(tree.Root, commands, defaultCommandKey);
            return(tree);
        }
예제 #2
0
 public InputTreeEvaluationStrategy(InputTree tree, IEnvironmentService environment)
 {
     this.tree        = tree ?? throw new ArgumentNullException(nameof(tree));
     this.environment = environment ?? throw new ArgumentNullException(nameof(environment));
 }