Exemple #1
0
        public static void Run(object filespec, params object[] args)
        {
            Load(filespec, args);
            var sym = UserPackage.FindExported("main");

            if (sym == null)
            {
                ThrowError("Entrypoint user:main not found");
            }
            var main = sym.Value as IApply;

            if (main == null)
            {
                ThrowError("Entrypoint user:main found but not a function");
            }
            Funcall(main);
        }