GithubHelp home page GithubHelp logo

dartlua / lua_vm Goto Github PK

View Code? Open in Web Editor NEW
14.0 3.0 0.0 402 KB

Lua compiler and vm written in Dart.

License: Apache License 2.0

Dart 98.76% Lua 1.24%
dart lua compiler vm hotfix flutter hotreload

lua_vm's Introduction

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

lua_vm's People

Contributors

lollipopkit avatar xtyxtyx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.