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

            for (int i = 0; i < result.Count; i++)
            {
                result[i] += "(";
            }
            return(result);
        }
예제 #2
0
파일: MainBase.cs 프로젝트: lhmson/FlowArt
        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());
             **/
        }
예제 #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));
        }