lua
Luax
A pure-Dart implementation of the Lua 5.3 virtual machine.
homepage: https://github.com/NaivG/Luax
Classes
| Class | Description |
|---|---|
| HookContext | Context for a debug hook. |
| LuaAuxLib | |
| LuaBasicAPI | |
| LuaCoroutineLib | Abstract interface for Lua coroutine operations. Implements the coroutine library functionality. |
| LuaDebug | Abstract interface for Lua debug operations. |
| LuaEventAPI | Abstract interface for the bidirectional event system. |
| LuaState | Abstract base class for Lua state operations. Combines basic API, auxiliary library, coroutine support, and debug features. |
| NativePlatformServices | Native implementation of platform services using dart:io. |
| PlatformServices | Abstract interface for platform-specific services. |
| Userdata<T> | Fix #36: Add per-instance metatable support to Userdata Previously, all Userdata objects shared the same metatable via registry key, which caused setting metatable on one userdata to affect all userdata. |
Exceptions
| Exception | Description |
|---|---|
| LuaYieldException | Exception thrown when a coroutine yields. This is used internally to implement coroutine.yield(). |
Enums
| Enum | Description |
|---|---|
| ArithOp | arithmetic functions |
| CmpOp | comparison functions |
| LuaType | basic ypes |
| ThreadStatus |
Functions
| Function | Description |
|---|---|
| createPlatformServices | Creates the native platform services instance. |
| luaUpvalueIndex | Returns the pseudo-index for an upvalue at the given index (1-based). Use this in Dart closures to access upvalues pushed before the closure. |
Constants
| Constant |
|---|
| luaMaxInteger |
| luaMaxStack |
| luaMinInteger |
| luaMinStack |
| luaMultret |
| luaRegistryIndex |
| luaRidxGlobals |
Typedefs
| Typedef | Description |
|---|---|
| DartFunction | Synchronous Dart function that can be called from Lua. Returns the number of values pushed onto the Lua stack. |
| DartFunctionAsync | Asynchronous Dart function that can be called from Lua. Returns a Future that resolves to the number of values pushed onto the Lua stack. |
| EventCallback | Synchronous Dart event callback. |
| EventCallbackAsync | Asynchronous Dart event callback. |