{"repo":"colis-anr/morbig","free":true,"listed":false,"github":"https://github.com/colis-anr/morbig","clone":"git clone https://github.com/colis-anr/morbig.git","description":"A static parser for POSIX Shell","language":"OCaml","stars":204,"topics":["shell","shell-scripts","shell-script","posix","posix-sh","parsing","parse","concrete-syntax-trees","ocaml","ocaml-library"],"license":null,"category":"cli-tools","readme_excerpt":"Morbig A trustworthy static parser for POSIX shell Morbig is a parser for shell scripts written in the POSIX shell script language. It parses the scripts statically, that is without executing them, and constructs a concrete syntax tree for each of them. The concrete syntax trees are built using constructors according to the shell grammar of the POSIX standard. Download git clone git@github.com:colis-anr/morbig.git License and copyright See COPYING. Documentation For tagged versions, you can have a look at the [official documentation]. We also provide [custom documentation] for the latest development version. Finally, you can always build the documentation yourself with: make doc [official documentation]: https://ocaml.org/p/morbig/latest/doc/ [custom documentation]: https://colis-anr.github.io/morbig/ Are you in a hurry? Yes? Pull our docker image: docker pull colisanr/morbig:latest Then, define the following shell function: morbig () { D=$(cd \"$(dirname \"$1\")\"; pwd) B=$(basename \"$1\") docker run \\ -v \"$D\":/mnt \\ colisanr/morbig:latest --as simple /mnt/\"$B\" } After that, you should be able to run Morbig like this: morbig my-script.sh This will create a JSON file named my-script.sh.sjson . You can also build a local docker image from the root of this repository: docker build -t morbig . Now if you want to use more features of Morbig, take the time to follow the building instructions of the next section. Manual instructions Install using OPAM Please type opam install morbig to ","default_branch":null,"files":null,"tree":[],"storefront":"/r/colis-anr","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/colis-anr/morbig/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}