Tradaul is an implementation of Lua as library in Dart.
- Based on Lua 5.4
- Define Lua Functions and Modules in Dart: Offers the flexibility to define custom Lua functions and modules directly in Dart
- Customizable Standard Input/Output: Allows customization of standard input and output sources, providing flexibility for various use cases
- Security Options: Implement security options to restrict the functionality of the processing system and prevent operations that could unintentionally affect the behavior of the application
This implementation is based on Lua 5.4 with the following compatibility details:
- Integer Size: 64-bit
- Floating-Point Numbers: 64-bit; rounding depends on Dart's handling
- Maximum Depth for Long Comments and Strings: Limited to 10
- Garbage Collection Operations: Not supported
collectgarbage
has no effect- The
__gc
metamethod is not supported
- C API: Not supported
- Weak Reference Tables: Not supported
- The
__mode
metamethod is not supported
- The
- Bytecode Compatibility: Not compatible with standard Lua
See API_STATUS.md
To install the Tradaul library, add the following dependency to your pubspec.yaml file:
dependencies:
tradaul:
git:
url: https://github.com/szktty/tradaul
For the purpose of testing and verification, the library can be run in a standalone mode. It's important to note that this mode is not intended for actual production use.
To build the standalone version, use the following command:
make cli
This will compile the library and output the binary to bin/tradaul
. You can then execute this binary to run the
library in a standalone mode for testing and development purposes.
See USAGE.md
See examples. playground
requires Flutter.
Apache 2.0
SUZUKI Tetsuya tetsuya.suzuki@gmail.com