view Jint.Runtime/VM/Machine.cs @ 3:aced2ae9957f

temp commit, new virtual machine concept (strongly typed version of VM2).
author cin
date Sun, 27 Oct 2013 17:23:25 +0400
parents
children a6329b092499
line wrap: on
line source

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Jint.Runtime.VM {
    class Machine {
        Frame m_frame;

        public void Run(IInstruction prog) {
            while (prog != null)
                prog = prog.Invoke(m_frame);
        }
    }
}