package morsmall

  1. Overview
  2. Docs
A concise AST for POSIX shell

Install

Dune Dependency

Authors

Maintainers

Sources

0.2.0.tar.gz
md5=0882ae5bb8e4ade3749c1d3f45df85ff
sha512=f0aeac41022b06879e92bf864217f7fa1e63deb8815d8bb98bac89ae2146fdeb1eeb118049c143aac0ec2cdddffe8a7038f5042385ef786c9228be0bda3c1b18

README.org.html

README.org

#+TITLE: Morsmall -- A concise AST for POSIX shell
#+STARTUP: indent inlineimages

This library is a small wrapper around [[https://gitlab.inria.fr/regisgia/morbig/][morbig]].  Morbig provides a
parser and a CST representation of POSIX shell scripts which may
contain too much information for certain uses.

Morsmall provides a converter from Morbig's CST to an AST that aims to
be easely understandable and manipulable.  It also provides a printer
from that AST to Shell.

This program is a free software licensed under the GNU General Public
License, version 3. Please refer to the file [[file:LICENSE][LICENSE]].

* Downloading, building and installing
** Download
*** Clone the repository
: git clone https://github.com/colis-anr/morsmall
*** Download the latest release
There is no release yet.
** Install dependencies
Morsmall depends on the following software:
- [[https://ocaml.org/][OCaml]] ≥ 4.04.0
- [[https://github.com/colis-anr/morbig/][Morbig]]
- [[https://github.com/ocaml-ppx/ppx_deriving][ppx_deriving]] ≥ 4.2.0
- [[https://github.com/ocaml/dune][Dune]] (ex jbuilder) with ocaml-migrate-parsetree
- [[http://opam.ocaml.org/][OPAM]]
** Build
: make
** Run tests
: make tests
** Install
: make install

This target recognises the environment variables =PREFIX= and =LIBDIR=.
** Uninstall
: make uninstall

This target recognises the environment variables =PREFIX= and =LIBDIR=.
OCaml

Innovation. Community. Security.