sh-parser

Parser of POSIX Shell Command Language

$ 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

dev-0dev2 years ago17 downloads

Dependencies

fun ~> 0.1.3
LPeg ~> 1.0
lua >= 5.1

Dependency for

sh-parser-cli

Labels

Manifests