예제 #1
0
        public double Solve(string expression)
        {
            var tokens = _tokenizer.Tokenize(expression);
            var tree   = _parser.Parse(tokens);
            var result = _calculator.Calculate(tree);

            return(result);
        }