diff 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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Jint.Runtime/VM/Machine.cs	Sun Oct 27 17:23:25 2013 +0400
@@ -0,0 +1,15 @@
+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);
+        }
+    }
+}