/disluapp

Parser of compiled Lua scripts

Primary LanguageC++MIT LicenseMIT

DisLua

Language Standard License Release

DisLua is a header-only library that allows you to parse and rewrite the bytecode of compiled Lua scripts. At the moment, the library supports the LuaJIT compiler and a parser for luac v5.4 is being developed (branch luac).

Projects using this library

  • Luad - Disassembler for compiled Lua scripts.

Documentation

You can build Doxygen documentation:

  • Using CMake specifying the DISLUA_DOCS option:
$ cmake .. -DDISLUA_DOCS=ON -B build
$ cd build
$ cmake --build . --target doc
  • Manually using the command doxygen.

Testing

You can test the library using CTest specifying the DISLUA_TESTS option:

$ cmake .. -DDISLUA_TESTS=ON -B build
$ cd build
$ cmake --build .
$ ctest

Use in projects

Install the library using CMake (DISLUA_INSTALL option is enabled by default):

$ cmake .. -B build
$ cd build
$ cmake --build . --target install

Add dislua to your CMake-project by using:

find_package(dislua REQUIRED)

target_link_libraries(yourproject PRIVATE dislua)