Inheritance: LispEngine.Datums.DatumHelpers
コード例 #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);
 }
コード例 #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);
 }
コード例 #3
0
ファイル: Builtins.cs プロジェクト: indigotock/FirstClassLisp
        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);
        }