With this project, you can run or compile Lua script on your device(iOS Android Web).
You can write UI in Flutter and handle backend data by Luart.
- Read and parse Lua binary.
- A complete Lua VM include Lua Stack, State and etc...
- Execute Lua script.
- Compiler on device.
- Standard library.
- run
dart example/test.dart
- run
dart test
First of all, try dart bin/luart.dart
to enter Luart REPL Terminal to understand which commands are not available.
function | description | eg. | will fix? | platform |
---|---|---|---|---|
os.date() |
different format | 2021-02-25 17:40:06.368250 | will fix | all |
os.getenv() |
unavailable on web | no eg. | will fix | web |
os.execute() |
unavailable | no eg. | may not fix | all |
os.setlocale() |
unavailable | no eg. | may not fix | all |
string.format() |
can't format %q .Will replace %q with %s by default. |
string.format("%q", "One\nTwo") equals to string.format("%s", "One\nTwo") |
may fix | all |
string.format() |
%d ) can't use |
string.find("Deadline is 30/05/1999, firm", "%d%d/%d%d/%d%d%d%d") output:nil |
fixed | |
coroutine | not implement | no eg. | will add | all |
Especially thanks luago
All Contributors 2021
Apache License 2.0