Exemple #1
0
        public static double Eval(string expression)
        {
            var tokens = Lexer.GetTokens(expression);
            var value  = RawParser.ParseExpression <double>(tokens, eval_operator, eval_operand);

            return(value);
        }
Exemple #2
0
        public static Node Parse(string expr)
        {
            var tokens = Lexer.GetTokens(expr);

            var root = RawParser.ParseExpression <Node>(tokens, eval_operator, eval_operand);

            return(root);
        }