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-0dev7 years ago(revision: 22)50 downloads

Dependencies

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

Dependency for

sh-parser-cli

Labels

Manifests