$ luarocks install simpleclassLua SimpleClass is a modern-style, purely Lua-based OOP library with concise syntax and deep compatibility with the static analysis features of lua-language-server (sumneko.lua).
* Concise DSL syntax - Like `class "Cls" : Base { ... }`
* Lightweight runtime - Less than 500 lines of core code, doing nothing superfluous
* LSP friendly - Automatically generate static type annotations, get rid of hand-written “---@class”
* Zero dependencies - Pure Lua implementation, compatible with Lua 5.1+ and LuaJIT
After installation, if you need static analysis support, please refer to the “Type Inference” section in the README.
Versions
Dependencies
lua >= 5.1