Beispiel #1
0
        public ScripterBoo()
        {
            //Notes on threads: http://www.yoda.arachsys.com/csharp/threads/

            //IMPORTANT: runtime compiling of Boo code in this project. The following files must be referenced for this to work:
            //Boo.Lang.dll    Boo.Lang.Compiler.dll    Boo.Lang.Interpreter.dll    Boo.Lang.Parser.dll
            _interpreter = new InteractiveInterpreter();
            // Otherwise the line above will cause an exception!

            _defaultContext = "";

            this._compiler = new Boo.Lang.Compiler.BooCompiler();
            this._compiler.Parameters.Pipeline = new CompileToMemory(); //No need for an on-disk file.
            this._compiler.Parameters.Ducky = true; //By default, all objects will be ducked typed; no need for the user to "var as string" anywhere.

            this._instanceIdToObject = new Hashtable();
            this._instanceIdToClass = new Hashtable();
            this._stalledScripts = new Hashtable();
        }
Beispiel #2
0
        public ScripterBoo()
        {
            //Notes on threads: http://www.yoda.arachsys.com/csharp/threads/

            //IMPORTANT: runtime compiling of Boo code in this project. The following files must be referenced for this to work:
            //Boo.Lang.dll    Boo.Lang.Compiler.dll    Boo.Lang.Interpreter.dll    Boo.Lang.Parser.dll
            _interpreter = new InteractiveInterpreter();
            // Otherwise the line above will cause an exception!

            _defaultContext = "";

            this._compiler = new Boo.Lang.Compiler.BooCompiler();
            this._compiler.Parameters.Pipeline = new CompileToMemory(); //No need for an on-disk file.
            this._compiler.Parameters.Ducky    = true;                  //By default, all objects will be ducked typed; no need for the user to "var as string" anywhere.

            this._instanceIdToObject = new Hashtable();
            this._instanceIdToClass  = new Hashtable();
            this._stalledScripts     = new Hashtable();
        }