package visitors

  1. Overview
  2. Docs
An OCaml syntax extension for generating visitor classes

Install

Dune Dependency

Authors

Maintainers

Sources

archive.tar.gz
md5=c56a86f81e0c1531e22c89cb8691d02c
sha512=1ddd6654325ce47394239ea36b64e4c11ddbfa4f8061e0a22dac9bc1b822253abd0cbf8d4607c7fc3bb572b0e12075a3cea7632536230057e3e069536c6a5c3b

Description

Annotating an algebraic data type definition with [@@deriving visitors { ... }] causes visitor classes to be automatically generated. A visitor is an object that knows how to traverse and transform a data structure.

Published: 09 Jun 2021

README

README.md

An OCaml syntax extension (technically, a ppx_deriving plugin) which generates object-oriented visitors for traversing and transforming data structures.

Here is the documentation of the latest released version.

The easiest way of installing the latest released version of this package is via opam, the OCaml package manager.

opam update
opam install visitors

To install the latest development version, also via opam, please proceed as follows:

  git clone https://gitlab.inria.fr/fpottier/visitors.git
  cd visitors
  make pin

To install the latest development version, outside of opam, please proceed as follows:

  git clone https://gitlab.inria.fr/fpottier/visitors.git
  cd visitors
  opam install . --deps-only
  make install

Dependencies (5)

  1. dune >= "2.0"
  2. result
  3. ppx_deriving >= "5.0"
  4. ppxlib >= "0.22.0"
  5. ocaml >= "4.05.0"

Dev Dependencies

None

Used by (12)

  1. archetype >= "0.1.11"
  2. ast_generic
  3. catala >= "0.3.0"
  4. clangml = "4.0.0beta1"
  5. clangml-transforms = "0.24"
  6. electrod
  7. flow_parser = "0.159.0"
  8. flowtype >= "0.87.0"
  9. karamel
  10. kremlin < "transition"
  11. morbig
  12. rotor

Conflicts

None

OCaml

Innovation. Community. Security.