https://github.com/mousebyte/luaclasslib
Extends the Lua C API with Moonscript-compatible class support, with or without Moonscript.
https://github.com/mousebyte/luaclasslib
c lua lua-library moonscript
Last synced: 2 months ago
JSON representation
Extends the Lua C API with Moonscript-compatible class support, with or without Moonscript.
- Host: GitHub
- URL: https://github.com/mousebyte/luaclasslib
- Owner: mousebyte
- License: gpl-3.0
- Created: 2023-03-15T00:48:35.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-24T17:38:05.000Z (over 2 years ago)
- Last Synced: 2025-02-25T04:13:08.514Z (11 months ago)
- Topics: c, lua, lua-library, moonscript
- Language: C
- Homepage:
- Size: 361 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LuaClassLib
Extends the Lua C API to provide Moonscript-compatible class support, with or without Moonscript.
## Features
- 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](https://mousebyte.github.io/luaclasslib/) is available on Github Pages.
## Installation
LCL is available on the Arch User Repository:
```bash
yay -S luaclasslib
```
You can also build from source:
```bash
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**
- [x] Expand documentation with examples
- [x] Add to AUR
- [ ] Add to other package managers