Skip to content

dartlua/lua_vm

Repository files navigation

Banner Lua

Luart

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.

TODO

  • Read and parse Lua binary.
  • A complete Lua VM include Lua Stack, State and etc...
  • Execute Lua script.
  • Compiler on device.
  • Standard library.

Test

  • run dart example/test.dart
  • run dart test

Known Issue

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() Formatter match(like %d) can't use stdin:string.find("Deadline is 30/05/1999, firm", "%d%d/%d%d/%d%d%d%d")output:nil fixed all
coroutine not implement no eg. will add all

Thanks

Especially thanks luago

License

All Contributors 2021
Apache License 2.0