{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/19"}],"enrichment":{"capability":"Parses Lua source code into an abstract syntax tree (AST) and provides tools to traverse, analyze, and regenerate Lua code from the AST.","skillfed_tags":["parser","ast","lua"],"use_cases":["Analyze Lua code structure in a static analysis or linting tool.","Extract function definitions, variable names, or call patterns from Lua scripts.","Transform or refactor Lua code by manipulating its AST and regenerating source.","Build development tools that need to understand Lua syntax without executing it.","Convert Lua code to other formats or intermediate representations via AST inspection."],"what_it_does":"Luaparser is a Python library that reads Lua source code and builds an abstract syntax tree (AST), letting you programmatically inspect and manipulate Lua code structure. It ships both as a library for Python code and as a command-line tool. The parser supports Lua 5.3 and 5.4 grammar versions and can output AST data as JSON, XML, or pretty-printed text.\n\nYou can walk the entire AST to find specific node types, use a visitor pattern to process nodes, or construct AST objects directly in Python and regenerate Lua source code from them (though that feature is marked experimental). The library depends on antlr4-python3-runtime for parsing and multimethod for method dispatch.","worth_installing":"Yes. The package is actively maintained, has low install friction, carries a permissive MIT license, and solves a clear problem for anyone needing to parse or analyze Lua code in Python. No known vulnerabilities. The only caveat is that code regeneration is experimental, so rely on that feature cautiously."},"id":"luaparser","links":{"html":"https://skillfed.io/packages/luaparser","md":"https://skillfed.io/packages/luaparser.md","pypi":"https://pypi.org/project/luaparser/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-20","license_spdx":null,"license_treatment":"permissive","name":"luaparser","python_support":"unspecified","summary":"A lua parser in Python"},"popularity":{"monthly_downloads":112195,"position":12378,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"4.1.0"}
