Parseback: A pure-Lua introspection library for LuaJIT’s FFI ctype objects

parseback is a library for LuaJIT’s FFI that helps recreate useful descriptions of ctype objects using information from ffi.typeinfo(). It provides descriptions in the form of Lua tables, C declarations, and GraphViz diagrams. Simply place the single Lua file in your $LUA_PATH for installation. The library allows for introspection of ctype objects, with key fields including type, name, c definition, size, and fields. The parseback.asdot function creates a diagram of the type structure in the ‘dot’ language, with an optional flag for horizontal alignment. This tool simplifies understanding complex structures but may not work well for highly intricate graphs. (Approximately 98 words)

https://github.com/javierguerragiraldez/parseback

To top