summaryrefslogtreecommitdiff
path: root/src/lvm.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-02-02 22:38:35 +0100
committerBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-02-03 07:07:35 +0100
commit7b844c5caf81ac843a210477ef47fd16e8af2f2c (patch)
tree5464f83feb24355ebe67f8d0f4b41a1a76227ad0 /src/lvm.js
parent9f222971e304d4ec03a3af9015744530f2c8793d (diff)
downloadfengari-7b844c5caf81ac843a210477ef47fd16e8af2f2c.tar.gz
fengari-7b844c5caf81ac843a210477ef47fd16e8af2f2c.tar.bz2
fengari-7b844c5caf81ac843a210477ef47fd16e8af2f2c.zip
Lua VM
Diffstat (limited to 'src/lvm.js')
-rw-r--r--src/lvm.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/lvm.js b/src/lvm.js
new file mode 100644
index 0000000..0ea3342
--- /dev/null
+++ b/src/lvm.js
@@ -0,0 +1,24 @@
+/*jshint esversion: 6 */
+"use strict";
+
+const BytecodeParser = require("./lundump.js");
+
+class LuaVM {
+
+ constructor(cl) {
+ this.cl = cl
+ }
+
+ execute() {
+ newframe:
+ for (;;) {
+
+ }
+ }
+
+}
+
+module.exports = {
+ LuaVM: LuaVM,
+ OpCodes: OpCodes
+}; \ No newline at end of file