コード例 #1
0
        public static Environment Create()
        {
            var env = CreateSandbox();

            // Adding reflection builtins enables a lisp engine
            // to execute any code.
            env = ReflectionBuiltins.AddTo(env);
            return(env);
        }
コード例 #2
0
        public static LexicalEnvironment Create()
        {
            var env = CreateSandbox();

            // Adding reflection builtins enables a lisp engine
            // to execute any code.
            env = ReflectionBuiltins.AddTo(env);
            // Add functions for reading files, executing lisp programs
            // defined in files.
            ResourceLoader.ExecuteResource(new Statistics(), typeof(StandardEnvironment).GetTypeInfo().Assembly, env, "LispEngine.Bootstrap.IO.lisp");
            return(env);
        }