Example #1
0
        private Transformation(InstructionNode instructionTree, InstructionNode resultInstructionTree, List <Method> filters)
        {
            InstructionTree       = instructionTree;
            ResultInstructionTree = resultInstructionTree;
            Filters = filters;

            LabelSet = new LabelSet(InstructionTree);
            LabelSet.AddUse(ResultInstructionTree);
        }
Example #2
0
        public Transformation(string expression, string filter, string result)
        {
            ExpressionText = expression;
            FilterText     = filter;
            ResultText     = result;

            TokenizedExpression = Tokenizer.Parse(ExpressionText);
            TokenizedFilter     = Tokenizer.Parse(FilterText);
            TokenizedResult     = Tokenizer.Parse(ResultText);

            InstructionTree       = InstructionParser.Parse(TokenizedExpression);
            ResultInstructionTree = ResultParser.Parse(TokenizedResult);
            Filters = FilterParser.ParseAll(TokenizedFilter);

            LabelSet = new LabelSet(InstructionTree);
            LabelSet.AddUse(ResultInstructionTree);
        }