fengari_lua 1.0.0 copy "fengari_lua: ^1.0.0" to clipboard
fengari_lua: ^1.0.0 copied to clipboard

outdated

Dart bindings for fengari-web, a Lua 5.3 interpreter.

fengari-lua: Dart bindings for fengari-web, a Lua 5.3 interpreter. #

Installation #

  1. Add the following package to your pubspec:
dependencies:
  fengari_lua:
    git: git@github.com:PixelToast/dart-fengari-lua.git
  1. Add fengari-web.js to your html:
<head>
    ...
    <script src="https://github.com/fengari-lua/fengari-web/releases/download/v0.1.4/fengari-web.js"></script>
</head>

Usage #

This library comes with bindings for most of the Lua API, see https://www.lua.org/manual/5.3/

It also includes a wrapper which greatly simplifies interaction with Lua states, Example:

import 'package:fengari_lua/lua.dart';
main() {
  var state = LuaState();
  state.loadString("""
    print("Hello, World!")
  """);
  state.call();
  state.close();
}
2
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Dart bindings for fengari-web, a Lua 5.3 interpreter.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

js, quiver

More

Packages that depend on fengari_lua