Example #1
0
 public ILTranslator(Bytecode bytecode)
 {
     builder = new AntlrRunnableBuilder();
     builder.Load(bytecode.Script);
     runnable = builder.Build();
     name = bytecode.FunctionNames[0];
 }
        public RuntimeContext(Runnable runnable)
        {
            Runnable = runnable;

            Hospedagem = new Hospedagem();

            executor = new Executor(this);
        }
        public RuntimeContext(Runnable runnable, IHospedagem hospedagem)
        {
            Runnable = runnable;

            Hospedagem = hospedagem;

            executor = new Executor(this);
        }
        public RuntimeContext CreateContext(Runnable runnable)
        {
            var script = runnable;

            return  new RuntimeContext(script);
        }