Example #1
0
        public bool Execute(string startFunction)
        {
            try
            {
                SourceCode.Function f = src.GetFunction(startFunction);
                if (f == null)
                {
                    InterpreterErrors.DisplayError(3);
                    return(false);
                }

                Execute(f, new List <Variable>(), f.startLine);

                return(true);
            }
            catch (System.Exception e)
            {
                Debug.Exception(e);
                return(false);
            }
        }