public static double Eval(string expression) { var tokens = Lexer.GetTokens(expression); var value = RawParser.ParseExpression <double>(tokens, eval_operator, eval_operand); return(value); }
public static Node Parse(string expr) { var tokens = Lexer.GetTokens(expr); var root = RawParser.ParseExpression <Node>(tokens, eval_operator, eval_operand); return(root); }