예제 #1
0
 public override ScriptEngine GetEngine(EngineOptions options)
 {
     if (se == null)
     {
         LanguageContext lc = new IronSchemeLanguageContext();
         se = new IronSchemeScriptEngine(this, options ?? GetOptionsParser().EngineOptions, lc);
     }
     return(se);
 }
예제 #2
0
        internal static void Initialize(IronSchemeLanguageProvider ironSchemeLanguageProvider)
        {
            lp = ironSchemeLanguageProvider;
              se = lp.GetEngine() as IronSchemeScriptEngine;

              scriptmodule = ScriptDomainManager.CurrentManager.Host.DefaultModule as ScriptModule;

              ModuleContext mc = new ModuleContext(scriptmodule);

              mc.CompilerContext = new CompilerContext(SourceUnit.CreateSnippet(se, ""));

              cc = new CodeContext(scriptmodule.Scope, se.GetLanguageContext(), mc);

              binder = new IronScheme.Actions.IronSchemeActionBinder(cc);

              Generator.initme = true;
        }
        public override ScriptEngine GetEngine(EngineOptions options)
        {
            if (se == null)
              {
            LanguageContext lc = new IronSchemeLanguageContext();
            se = new IronSchemeScriptEngine(this, options ?? new IronSchemeOptionsParser.IronSchemeEngineOptions(), lc);

              }
              return se;
        }