tree: ea8db7bbd7c14f4149cbab2dc18156db11f8f597 [path history] [tgz]
  1. parser/
  2. src/
  3. .gitignore
  4. Cargo.toml
  5. README.md
third_party/luax/README.md

luax

A pure-Rust implementation of Lua. (work in progress)

Built on top of Hexagon VM.

Build & Run

Latest nightly version of Rust is needed.

git clone both this repository and luax-bin into the same directory e.g. some_directory/luax and some_directory/luax-bin.

Run cargo build --release in luax-bin. The binary will be at luax-bin/target/release/luax-bin.

Currently, luax doesn't include a built-in Lua parser. Instead, it takes an AST file generated by parser/parse.lua and parser/transform.py, which depend on Python 3, official Lua 5.1, lua-parser and lua-cjson. See parser/generate.sh as an example of how to generate the AST file.

While this project's goal is to support the full Lua language, only basic features are supported at the moment. See tests/ for things that work.