Full Garbage Collection
Incremental tri-color mark-and-sweep with __gc finalizers, weak tables, and the standard collectgarbage() API.
Embeddable, async-ready, with web and Flutter support. Maintained since the LuaDardo lineage.
# pubspec.yaml
dependencies:
luax:
git: https://github.com/NaivG/Luax.gitdart pub getimport 'package:luax/lua.dart';
void main() {
final state = LuaState.newState();
state.openLibs();
state.doString(r'''
for i = 1, 5 do
print("Hello from Luax!", i)
end
''');
}Output:
Hello from Luax! 1
Hello from Luax! 2
Hello from Luax! 3
Hello from Luax! 4
Hello from Luax! 5goto/label, integers, bitwise ops, and pattern matching__gc finalizers, weak tablesawait, or use coroutine.resumeAsyncflutter_luax package for widget bindingsReady to dive in? Start with the Getting Started guide.