easy-formatversion
High-level and functional interface to the Format module of the OCaml standard library
This module offers a high-level and functional interface to the Format module of the OCaml standard library. It is a pretty-printing facility, i.e. it takes as input some code represented as a tree and formats this code into the most visually satisfying result, breaking and indenting lines of code where appropriate.
Input data must be first modelled and converted into a tree using 3 kinds of nodes:
- atoms
- lists
- labelled nodes
Atoms represent any text that is guaranteed to be printed as-is. Lists can model any sequence of items such as arrays of data or lists of definitions that are labelled with something like "int main", "let x =" or "x:".
Author | Martin Jambon |
---|---|
License | BSD-3-Clause |
Published | |
Homepage | https://github.com/ocaml-community/easy-format |
Issue Tracker | https://github.com/ocaml-community/easy-format/issues |
Maintainers | martin@mjambon.com and rudi.grinberg@gmail.com |
Dependencies | |
Source [http] | https://github.com/ocaml-community/easy-format/releases/download/1.3.4/easy-format-1.3.4.tbz sha256=1dbf051e9f68574dde6e2e254a66b9c524ca425e80b36e99af96ed964ab610c3 sha512=90264864dde4cbf51f60fb5c21cf033e11bdeb662e76b62ce27b496c298ca9102174885ed7a6d29a6b8e43089e27d5bb5be247f88d9739c15cfd8470fec29d33 |
Edit | https://github.com/ocaml/opam-repository/tree/master/packages/easy-format/easy-format.1.3.4/opam |