package visitors

All checked builds pass
  1. Overview
  2. Docs
An OCaml syntax extension for generating visitor classes

Install

dune-project
 Dependency

Authors

Maintainers

Sources

archive.tar.gz
md5=d0adee657412e542b07b3b8f6eb6409c
sha512=a8a008f18ef2c7cf77d9e7978bdfde322d3d62a52ce70af2fa0169c36f979a515b6edacf8af2b718d0f49bb3f0c52155366ff450e41fe6b71b8ccc1439dfc812

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.

Added to opam-repository:

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

Dev Dependencies

None

Optional Dependencies

None

Used by (10)

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

Conflicts

None

Build status

Results of building visitors with each compiler on check.ci.ocaml.org, run of against opam-repository 7cdc698. All results for this package.

Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
20260520 (this version) n/a good good good good
20250212 good good good n/a n/a
  • good Package successfully built
  • partial One of the dependencies failed to build
  • bad Package failed to build
  • n/a Package is not available in this environment
  • internal Internal failure