package ocaml-migrate-parsetree

  1. Overview
  2. Docs
Convert OCaml parsetrees between different versions






2.4.0 2022-06-17 Valencia

  • Add support for 5.0 (#122, @pitag-ha)

v2.3.0 2021-12-07 Valencia

  • Add support for 4.14 (#119, @kit-ty-kate)

v2.2.0 2021-06-21 Paris

  • Add support for 4.13 (#114, @kit-ty-kate)

v2.1.0 2020-10-22 Bordeaux

  • Add support for 4.12 (#107, @ceastlund)

v2.0.0 2020-08-11 Canterbury

  • No longer expose the unwrapped modules (#94, @jonludlam)

  • Remove everything but Ast versions and upgrade/downgrade conversions (#103, @ceastlund)

v1.7.3 2020-05-07 Canterbury

  • Fix magic numbers for the 4.11 ast (#96, @hhugo)

v1.7.2 2020-04-20 Canterbury

  • Remove toplevel Option module accidentally added in 1.7.0

v1.7.1 2020-04-15 Canterbury

  • Fix build with OCaml < 4.08

v1.7.0 2020-04-09 Canterbury

  • Add support for 4.11 (#92, @diml)

v1.6.0 2020-02-10 Moscow

  • Preserve compiler version of binary ASTs across transformation (#79, @aantron)

  • Allow not exiting on error (#83, @aantron)

v1.5.0 2019-11-18

  • Add support for 4.10 (#86, @diml)

  • Infer file kind (interface or implementation) for binary ASTs that have no extension (#80, @aantron)

  • Add ?argv argument to Driver.run_main (#82, @aantron)

v1.4.0 2019-07-04 London

  • Initial support for 4.09, tested with 4.09+beta1 (#76, @hhugo)

  • When encoding errors into the AST, duplicate the error message for "ocaml.error" nodes for OCaml versions < 4.08 (#75, @xclerc)

v1.3.1 2019-05-20 London

  • Make sure opening Ast_408 doesn't shadow Int or Misc (#71, @hhugo)

  • Fix a couple of issues related to upgrading the AST from 4.07 to 4.08 (#71, @hhugo)

v1.3.0 2019-05-08 London

  • Get rid of the ocamlbuild plugin. Nobody is using it in opam and it is more work to maintain (#63, @diml)

  • Set Location.input_name to the original filename when reading a binary AST (#66, @diml)

  • Add support 4.08 (#70, @xclerc)

v1.2.0 2018-12-19 London

  • Remove unused ocamlfind dependency in the opam file (#53, @diml)

  • Add --print-transformations to list registered transformations (#55, @rgrinberg)

  • Fix Windows compatibility by setting the output to binary mode when writing a binary ast (#57, #59, @bryphe and @dra27)

  • Switch to dune and opam 2.0 (#58, #60, @diml)

v1.1.0 2018-09-05 London

  • Allow ppx rewriters to specify when they should be applied

v1.0.11 2018-06-06 London

  • Fix handling of --impl/--intf. Before the driver would crash if the file extension was neither .ml nor .mli

v1.0.10 2018-04-19 London

  • Add support for OCaml 4.07

v1.0.9 2018-03-20 New York

  • Fix an issue where cookies set from the command line sometimes disappeared

v1.0.8 2018-03-15 London

  • Add a --null argument to suppress the output. This is used to write linters

  • Use the new generic ppx driver support of jbuilder

v1.0.7 2017-10-31 Paris

Contributed by @hhugo:

  • update Magic Number for 4.06

  • fix some compilation warnings

v1.0.6 2017-10-11 Paris

Fix generation of Migrate_parsetree module.

v1.0.5 2017-10-02 Paris

Resynchronize with trunk. Add a migrating version of Parse module.

v1.0.4 2017-08-22 Paris

Resynchronize with trunk. Contributed by Xavier Clerc, @xclerc.

v1.0.3 2017-08-11 Paris

Add a shallow identity mapper (suggested by Anton Bachin, @aantron).

v1.0.2 2017-07-28 Paris

Synchronize with 4.06 AST with trunk. Accept --cookie arguments also when run in --as-ppx mode.

v1.0.1 2017-06-06 Paris

Add support for trunk version (as of today...).

v1.0 2017-04-17 Paris

Driver: add --as-pp and --embed-errors flags.

--embed-errors causes the driver to embed exceptions raised by
rewriters as extension points in the Ast

--as-pp is a shorthand for: --dump-ast --embed-errors

Expose more primitives for embedding the driver.

Fix bug where reset_args functions where not being called. Fix "OCaml OCaml" in error messages (contributed by Adrien Guatto).

v0.7 2017-03-21 Mâcon

Fix findlib predicates:

  • replace omp_driver by ppx_driver

  • replace -custom_ppx by -custom_ppx,-ppx_driver

v0.6 2017-03-21 Mâcon

Add documentation, examples, etc.

v0.5 2017-03-11 Mâcon

Specify ocamlfind dependency in opam file (@yunxing).

v0.4 2017-03-10 Mâcon

API cleanup and extension. Added driver. Switch to jbuilder.

v0.3 2017-02-16 Paris

Use -no-alias-deps to prevent linking failure of Compiler_libs (referencing Parsetree and Asttypes which have no implementation).

v0.2 2017-02-07 London

Install CMXS too (contributed @vbmithr).

v0.1 2017-02-02 London

First release.