Crates.io | luallaby |
lib.rs | luallaby |
version | 0.1.0 |
source | src |
created_at | 2021-08-16 20:07:53.748901 |
updated_at | 2024-02-15 17:47:56.422437 |
description | **Work in progress** A pure-Rust Lua interpreter/compiler |
homepage | https://gitlab.com/dragonblade/luallaby |
repository | https://gitlab.com/dragonblade/luallaby |
max_upload_size | |
id | 438162 |
size | 1,131,645 |
This project is a work in progress. Please do not use this (yet) if you need a reasonably fast Lua interpreter.
A Lua compiler and interpreter fully written in Rust. This project aims to provide a fully compliant Lua implementation including interoperability between Lua and Rust.
A list of features to be implemented, in somewhat particular order:
This crate has its own test suite that mainly contains basic unit tests or sanity checks to verify if all parts of the language and standard library are in at least a semi-working condition. These sanity checks can be run with:
cargo test
A copy of the Lua test suite has also been included in this repository.
These tests can be run by running them as regular Lua files cargo run -- <file>.lua
, the test is considered passed if the output ends with "OK" and the interpreter has returned without error.
The Lua test suite has also been included in the cargo test
suite, but has been marked as ignored.
To include the Lua test suite with the sanity checks run:
cargo test -- --include-ignored
TODO:
luallaby
is distributed under the terms of the MIT license.
See the LICENSE file for more information.