private Transformation(InstructionNode instructionTree, InstructionNode resultInstructionTree, List <Method> filters) { InstructionTree = instructionTree; ResultInstructionTree = resultInstructionTree; Filters = filters; LabelSet = new LabelSet(InstructionTree); LabelSet.AddUse(ResultInstructionTree); }
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); }