123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354(**************************************************************************)(* *)(* OCaml Migrate Parsetree *)(* *)(* Frédéric Bour *)(* Jérémie Dimino, Jane Street Europe *)(* *)(* Copyright 2017 Institut National de Recherche en Informatique et *)(* en Automatique (INRIA). *)(* *)(* All rights reserved. This file is distributed under the terms of *)(* the GNU Lesser General Public License version 2.1, with the *)(* special exception on linking described in the file LICENSE. *)(* *)(**************************************************************************)(*$ open Astlib_cinaps_helpers
open Printf $*)(* Copy of OCaml parsetrees *)(*$
foreach_version (fun suffix _ ->
printf "module Ast_%s = Ast_%s\n" suffix suffix)
*)moduleAst_414=Ast_414moduleAst_500=Ast_500moduleAst_999=Ast_999(*$*)(* Manual migration between versions *)(*$
foreach_version_pair (fun x y ->
printf "module Migrate_%s_%s = Migrate_%s_%s\n" x y x y;
printf "module Migrate_%s_%s = Migrate_%s_%s\n" y x y x)
*)moduleMigrate_414_500=Migrate_414_500moduleMigrate_500_414=Migrate_500_414moduleMigrate_500_999=Migrate_500_999moduleMigrate_999_500=Migrate_999_500(*$*)(* Compiler modules *)moduleAst_metadata=Ast_metadatamoduleConfig=ConfigmoduleKeyword=KeywordmoduleLocation=LocationmoduleLongident=LongidentmoduleParse=Parsemodule Pprintast=Pprintastletinit_error_reporting_style_using_env_vars ()=(*IF_AT_LEAST 408 Ocaml_common.Compmisc.read_clflags_from_env () *)(*IF_NOT_AT_LEAST 408 () *)(** Adjust the reporting style of error messages to the environment variables OCAML_COLOR and OCAML_ERROR_STYLE. *)