$ luarocks install --server=https://luarocks.org/dev sh-parser
This is a POSIX shell parser written in LPeg that generates AST of the parsed shell script without evaluating. It supports complete syntax of POSIX Shell Command Language plus few common extensions implemented e.g. by Busybox ash and dash. It does not support Bash/ZSH-specific features.
Versions
Dependencies
fun ~> 0.1.3
LPeg ~> 1.0
lua >= 5.1