Extends the Lua C API to provide Moonscript-compatible class support, with or without Moonscript.
- Create, register, and construct Moonscript-like classes from C code
- Create classes for user data objects
- Introspect objects and classes
- Call methods on objects
- Inject (override) class methods
Full documentation is available on Github Pages.
LCL is available on the Arch User Repository:
yay -S luaclasslib
You can also build from source:
git clone --recurse-submodules https://github.com/mousebyte/LuaClassLib.git
cd LuaClassLib
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
make && sudo make install
Next Steps
- Expand documentation with examples
- Add to AUR
- Add to other package managers