コード例 #1
0
 public ExpressionFactory(
     IExpressionNodeFactory expressionNodeFactory,
     IExpressionTokenizer expressionTokenizer,
     IInfixToPostfixConverter infixToPostfixConverter)
 {
     this.expressionNodeFactory   = expressionNodeFactory;
     this.expressionTokenizer     = expressionTokenizer;
     this.infixToPostfixConverter = infixToPostfixConverter;
 }
コード例 #2
0
 public Expression(IExpressionParser parser, IInfixToPostfixConverter postfixConverter, IPostfixCalculator postfixCalculator)
 {
     this.parser            = parser;
     this.postfixConverter  = postfixConverter;
     this.postfixCalculator = postfixCalculator;
 }
コード例 #3
0
 public Calculator(IInfixToPostfixConverter converter, IExpressionBuilder builder, IInfixTokenizer tokenizer)
 {
     _infixToPostfixConverter = converter;
     _expressionBuilder       = builder;
     _tokenizer = tokenizer;
 }