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:".

AuthorMartin Jambon
LicenseBSD-3-Clause
Published
Homepagehttps://github.com/mjambon/easy-format
Issue Trackerhttps://github.com/mjambon/easy-format/issues
Maintainersmartin@mjambon.com and rudi.grinberg@gmail.com
Dependencies
Source [http] https://github.com/mjambon/easy-format/releases/download/1.3.3/easy-format-1.3.3.tbz
sha256=eafccae911c26ca23e4ddacee3eaa54654d20f973b8680f84b708cef43adc416
sha512=611b3124f6a0ec6406b7bda8018a94c9c4a9da9d22495a5c34a6312bf7f0f0607a9529b276f7039ce3f3b15a955dac413d6d1229a55d5ac291302a3ddd5807e5
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/easy-format/easy-format.1.3.3/opam
Required by