public static Delegate CompileFunc(string input) { input = input.Replace(">=", MoreEqual.ToString()).Replace("<=", LessEqual.ToString()); return(GetLambda(input).Compile()); }
protected static int GetPrior(string arg) { if (IsSkoba(arg) != 0) { return(0); } if (arg == "!" || arg == ":" || arg == ";") { return(1); } if (arg == ">" || arg == "<" || arg == "=" || arg == MoreEqual.ToString() || arg == LessEqual.ToString()) { return(2); } if (arg == "+" || arg == "-") { return(3); } if (arg == "*" || arg == "/") { return(4); } if (arg == "^") { return(5); } if (arg == "N") { return(6); } return(-1); }