summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore40
-rw-r--r--LICENSE21
-rw-r--r--README.md8
-rw-r--r--package.json38
4 files changed, 107 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..9dda96a
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,40 @@
+# Logs
+logs
+*.log
+npm-debug.log*
+
+# Runtime data
+pids
+*.pid
+*.seed
+
+# Directory for instrumented libs generated by jscoverage/JSCover
+lib-cov
+
+# Coverage directory used by tools like istanbul
+coverage
+
+# nyc test coverage
+.nyc_output
+
+# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
+.grunt
+
+# node-waf configuration
+.lock-wscript
+
+# Compiled binary addons (http://nodejs.org/api/addons.html)
+build/Release
+
+# Dependency directories
+node_modules
+jspm_packages
+
+# Optional npm cache directory
+.npm
+
+# Optional REPL history
+.node_repl_history
+
+# JSDoc
+help
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..e89b9d4
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2017 Benoit Giannangeli
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..b5d84cd
--- /dev/null
+++ b/README.md
@@ -0,0 +1,8 @@
+# fengari
+🐺 φεγγάρι - A Lua VM written in JS ES6 targeting the browser
+
+## References
+
+- [Lua 5.2 Bytecode and Virtual Machine](http://files.catwell.info/misc/mirror/lua-5.2-bytecode-vm-dirk-laurie/lua52vm.html)
+- [Lua 5.3 Bytecode Reference](http://the-ravi-programming-language.readthedocs.io/en/latest/lua_bytecode_reference.html)
+- [A No-Frills Introduction to Lua 5.1 VM Instructions](http://luaforge.net/docman/83/98/ANoFrillsIntroToLua51VMInstructions.pdf) \ No newline at end of file
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..390136f
--- /dev/null
+++ b/package.json
@@ -0,0 +1,38 @@
+{
+ "name": "fengari",
+ "version": "0.0.1",
+ "description": "A Lua VM written in JS ES6 targeting the browser",
+ "main": "index.js",
+ "directories": {
+ "test": "tests"
+ },
+ "scripts": {
+ "test": "./node_modules/babel-tape-runner/bin/babel-tape-runner tests/*.js | faucet"
+ },
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/giann/fengari.git"
+ },
+ "keywords": [
+ "lua",
+ "vm"
+ ],
+ "author": "Benoit Giannangeli",
+ "license": "MIT",
+ "bugs": {
+ "url": "https://github.com/giann/fengari/issues"
+ },
+ "homepage": "https://github.com/giann/fengari#readme",
+ "devDependencies": {
+ "babel-tape-runner": "^2.0.1",
+ "docdash": "^0.4.0",
+ "faucet": "0.0.1",
+ "js-beautify": "^1.6.8",
+ "jsdoc": "^3.4.3",
+ "tap-bail": "0.0.0",
+ "tmp": "0.0.31"
+ },
+ "dependencies": {
+ "buffer-dataview": "0.0.2"
+ }
+}