package ocaml-migrate-parsetree

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

ocaml-migrate-parsetree-v1.8.0.tbz
sha256=b1c2d176ff1444041f2775786ba605be796e46dfd2acb06c96f35d2bb88b8fb5
sha512=c14ffacbba9fda34243b3e8310ce49414415b530bbd982eaa6c1891517c5a9a6a35887afa7d6f15f7f94e225a7f15cc25417fd3337e685d4a7d6ee160e50e66e

doc/ocaml-migrate-parsetree/Migrate_parsetree_403_402_migrate/Def/index.html

Module Migrate_parsetree_403_402_migrate.Def

type missing_feature =
  1. | Pexp_letexception
  2. | Ppat_open
  3. | Pexp_unreachable
  4. | PSig
  5. | Pcstr_record
  6. | Pconst_integer
  7. | Pconst_float
  8. | Pcl_open
  9. | Pcty_open
  10. | Oinherit
  11. | Pwith_typesubst_longident
  12. | Pwith_modsubst_longident
  13. | Pexp_open
  14. | Pexp_letop
  15. | Psig_typesubst
  16. | Psig_modsubst
  17. | Otyp_module
  18. | Immediate64
  19. | Anonymous_let_module
  20. | Anonymous_unpack
  21. | Anonymous_module_binding
  22. | Anonymous_module_declaration

Features which are not available in all versions of the frontend

exception Migration_error of missing_feature * Location.t

Exception thrown by migration functions when a feature is not supported.

val missing_feature_description : missing_feature -> string

missing_feature_description x is a text describing the feature x.

val missing_feature_minimal_version : missing_feature -> string

missing_feature_minimal_version x is the OCaml version where x was introduced.

val migration_error_message : missing_feature -> string

Turn a missing feature into a reasonable error message.