Inheritance: LispEngine.Datums.DatumHelpers
Ejemplo n.º 1
0
 public static Environment AddTo(Environment env)
 {
     env = Arithmetic.Extend(env).ToMutable();
     env = env.Extend("append", Append.Instance);
     env = SymbolFunctions.Extend(env);
     ResourceLoader.ExecuteResource(env, "LispEngine.Bootstrap.Builtins.lisp");
     env = Reader.AddTo(env);
     return(env);
 }
Ejemplo n.º 2
0
 public static LexicalEnvironment AddTo(LexicalEnvironment env)
 {
     env = Arithmetic.Extend(env);
     env.Define("append", Append.Instance);
     env = SymbolFunctions.Extend(env);
     ResourceLoader.ExecuteResource(env, "LispEngine.Bootstrap.Builtins.lisp");
     ResourceLoader.ExecuteResource(env, "LispEngine.Bootstrap.Library.lisp");
     env = Reader.AddTo(env);
     return(env);
 }
Ejemplo n.º 3
0
        public static LexicalEnvironment AddTo(LexicalEnvironment env)
        {
            env = Arithmetic.Extend(env);
            env.Define("append", Append.Instance);
            env = SymbolFunctions.Extend(env);
            var assembly = typeof(Builtins).GetTypeInfo().Assembly;

            ResourceLoader.ExecuteResource(new Statistics(), assembly, env, "LispEngine.Bootstrap.Builtins.lisp");
            ResourceLoader.ExecuteResource(new Statistics(), assembly, env, "LispEngine.Bootstrap.Library.lisp");
            env = Reader.AddTo(env);
            return(env);
        }