Beispiel #1
0
        private List <string> FindAllFuncName()
        {
            List <string> result = FunctionHandler.GetAllFunctionsName();

            for (int i = 0; i < result.Count; i++)
            {
                result[i] += "(";
            }
            return(result);
        }
Beispiel #2
0
        public static void Main(string[] args)
        {
            /// initialize backend
            FunctionHandler.InitBuiltInFunctions();
            SpecialConstHandler.InitBuiltInConst();

            Application.EnableVisualStyles();
            //Application.Run(new MainInterface());
            Application.Run(MainInterface.Instance);

            /**
             * Application.Run(new frmMain());
             **/
        }
Beispiel #3
0
        private VarInfo HandleFunction(string expression)
        {
            expression = RemoveSpacing(expression);
            List <string> splittedElements = SplitFunctionParameters(expression);

            if (splittedElements[0] == "#ERROR_CODE")
            {
                return(VarInfo.NullVal);
            }

            string         functionName = splittedElements[0].ToUpper();
            List <VarInfo> parameters   = new List <VarInfo>();

            for (int i = 1; i < splittedElements.Count; i++)
            {
                string ErrorReportTemp = "";
                parameters.Add(HandleExpression(splittedElements[i], out ErrorReportTemp));
            }

            return(FunctionHandler.Execute(functionName, parameters));
        }