Пример #1
0
 public ConstantExpressionSolver(
     ITokenizer tokenizer,
     IParser parser,
     IConstantExpressionCalculator calculator)
 {
     _tokenizer  = tokenizer;
     _parser     = parser;
     _calculator = calculator;
 }
Пример #2
0
 public ConstantExpressionSolver()
 {
     _tokenizer  = new Tokenizer();
     _parser     = new ExpressionParser();
     _calculator = new ConstantExpressionCalculator();
 }