Movatterモバイル変換


[0]ホーム

URL:


packageeasy-format

  1. Overview
  2. Docs

You can search for identifiers within the package.

in-package search v0.2.0

High-level and functional interface to the Format module of the OCaml standard library

Install

Dune Dependency

Authors

Maintainers

Sources

easy-format-1.3.4.tbz
sha256=1dbf051e9f68574dde6e2e254a66b9c524ca425e80b36e99af96ed964ab610c3
sha512=90264864dde4cbf51f60fb5c21cf033e11bdeb662e76b62ce27b496c298ca9102174885ed7a6d29a6b8e43089e27d5bb5be247f88d9739c15cfd8470fec29d33

Description

This module offers a high-level and functional interface to the Format module ofthe OCaml standard library. It is a pretty-printing facility, i.e. it takes asinput some code represented as a tree and formats this code into the mostvisually satisfying result, breaking and indenting lines of code whereappropriate.

Input data must be first modelled and converted into a tree using 3 kinds ofnodes:

  • atoms
  • lists
  • labelled nodes

Atoms represent any text that is guaranteed to be printed as-is. Lists can modelany sequence of items such as arrays of data or lists of definitions that arelabelled with something like "int main", "let x =" or "x:".

Published:06 Jun 2022

README

README.md

This project is unmaintained. Pull requests won't be reviewed. If you would like to contribute, please request a transfer toocaml-community.

Easy-format: indentation made easy

Documentation

The documentation is at https://mjambon.github.io/mjambon2016/easy-format.html

Installation

Installation requires dune (formerly known as jbuilder) and ocamlfind.

$ make$ make install

Uninstallation

$ make uninstall

Examples

Some examples can be run withmake test before installing.

More examples that require Easy-format to be installed and possibly dependencies on other packages can be found in theexamples/ subdirectory.

TODO

  • Port documentation from old website to a better place, possibly https://readthedocs.org/.

  • Switch from puremake tojbuilder for both build/install and development.

  • We're looking for an official maintainer for the library and its documentation.

Dependencies (2)

  1. ocaml>= "4.08"
  2. dune>= "3.2" & >= "1.10"

Dev Dependencies (1)

  1. odocwith-doc

Used by (9)

  1. acgtk< "2.0.0"
  2. atd
  3. biniou
  4. dum
  5. esgg
  6. learn-ocaml
  7. piqi< "0.7.6"
  8. piqilib
  9. yojson< "2.0.0"

Conflicts

None


[8]ページ先頭

©2009-2025 Movatter.jp