8000 GitHub - szktty/tradaul: Lua implementation in Dart
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

szktty/tradaul

Repository files navigation

[WIP] Tradaul

Tradaul is an implementation of Lua as library in Dart.

Features

  • 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

Compatibility

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
  • Bytecode Compatibility: Not compatible with standard Lua

API Implementation Status

See API_STATUS.md

Installation

To install the Tradaul library, add the following dependency to your pubspec.yaml file:

dependencies:
  tradaul:
    git:
      url: https://github.com/szktty/tradaul

Running as a Standalone

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.

Usage

See USAGE.md

Examples

See examples. playground requires Flutter.

License

Apache 2.0

Author

SUZUKI Tetsuya tetsuya.suzuki@gmail.com

About

Lua implementation in Dart

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0