package visitors

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

archive.tar.gz
md5=e980aa60af068f9e204a6d34004ea085
sha512=89ac8ea0827a58f12a18f24b7a3de39bd9299da5473e744c2a1d00387bd016918a844d19f5a8ec883fac2af83fb1337a7aac0439eb117f899f065117c16f9a35

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: 10 Oct 2025

README

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.36.0"
  5. ocaml >= "4.14.2"

Dev Dependencies

None

Used by (9)

  1. archetype >= "0.1.11"
  2. catala >= "0.3.0" & < "1.0.0~alpha"
  3. clangml-transforms < "0.25"
  4. electrod
  5. flow_parser < "0.229.1"
  6. karamel
  7. kremlin < "transition"
  8. morbig
  9. rotor

Conflicts

None