├── .gitignore ├── CHANGES.md ├── CONTRIBUTING.md ├── LICENSE.md ├── Makefile ├── README.md ├── bin ├── ROLL_NEW_VERSION ├── dune ├── ocaml_embed_compiler.ml └── ocaml_embed_compiler.mli ├── dune-project ├── hello_world ├── bin │ ├── dune │ ├── plugin_001.ml │ ├── plugin_001.mli │ ├── plugin_002.ml │ ├── plugin_003.ml │ ├── plugin_004.ml │ ├── plugin_005.ml │ ├── plugin_006.ml │ ├── plugin_007.ml │ └── run.ml └── src │ ├── dune │ └── plugin_intf.ml ├── ocaml_plugin.opam ├── sample ├── bin │ ├── config.ml │ ├── config.mli │ ├── dune │ ├── run.ml │ └── what_to_test.txt ├── config │ ├── config_01.ml │ ├── config_02.ml │ ├── config_util.ml │ ├── config_v1_error.ml │ └── syntax_error.ml └── src │ ├── dsl.ml │ ├── dsl.mli │ └── dune ├── src ├── compiler.ml ├── compiler.mli ├── dune ├── dynloader.ml ├── dynloader.mli ├── import.ml ├── ml_bundle.ml ├── ml_bundle.mli ├── ocaml_fake_archive.c ├── ocaml_plugin.ml ├── ocamldep.ml ├── ocamldep.mli ├── params.ml ├── params.mli ├── plugin_cache.ml ├── plugin_cache.mli ├── plugin_uuid.ml ├── plugin_uuid.mli ├── shell.ml ├── shell.mli ├── tar.ml └── tar.mli └── test ├── dune ├── jbuild-ignore ├── plugin_loader.ml ├── setup-script ├── test-basic.t ├── test-cache.t ├── test-inferred-interface.t ├── test-language-features.t ├── test-ocamldep.t ├── test-persistent-archive.t ├── test-positions.t ├── test-run-plugin-toplevel.t ├── test-trickier.t ├── test-warnings.t ├── test_lib ├── dune ├── sync_default_warnings.ml ├── sync_default_warnings.mli └── test.ml ├── test_with_sexp.ml ├── test_with_sexp.mli ├── test_with_sexp_dep.ml └── test_with_sexp_dep.mli /.gitignore: -------------------------------------------------------------------------------- 1 | _build 2 | *.install 3 | *.merlin 4 | _opam 5 | 6 | -------------------------------------------------------------------------------- /CHANGES.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/CHANGES.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/LICENSE.md -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/README.md -------------------------------------------------------------------------------- /bin/ROLL_NEW_VERSION: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/bin/ROLL_NEW_VERSION -------------------------------------------------------------------------------- /bin/dune: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/bin/dune -------------------------------------------------------------------------------- /bin/ocaml_embed_compiler.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/bin/ocaml_embed_compiler.ml -------------------------------------------------------------------------------- /bin/ocaml_embed_compiler.mli: -------------------------------------------------------------------------------- 1 | (*_ Deliberately empty *) 2 | -------------------------------------------------------------------------------- /dune-project: -------------------------------------------------------------------------------- 1 | (lang dune 1.10) -------------------------------------------------------------------------------- /hello_world/bin/dune: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/hello_world/bin/dune -------------------------------------------------------------------------------- /hello_world/bin/plugin_001.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/hello_world/bin/plugin_001.ml -------------------------------------------------------------------------------- /hello_world/bin/plugin_001.mli: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/hello_world/bin/plugin_001.mli -------------------------------------------------------------------------------- /hello_world/bin/plugin_002.ml: -------------------------------------------------------------------------------- 1 | open! Core 2 | 3 | let message = 42 4 | -------------------------------------------------------------------------------- /hello_world/bin/plugin_003.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/hello_world/bin/plugin_003.ml -------------------------------------------------------------------------------- /hello_world/bin/plugin_004.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/hello_world/bin/plugin_004.ml -------------------------------------------------------------------------------- /hello_world/bin/plugin_005.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/hello_world/bin/plugin_005.ml -------------------------------------------------------------------------------- /hello_world/bin/plugin_006.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/hello_world/bin/plugin_006.ml -------------------------------------------------------------------------------- /hello_world/bin/plugin_007.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/hello_world/bin/plugin_007.ml -------------------------------------------------------------------------------- /hello_world/bin/run.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/hello_world/bin/run.ml -------------------------------------------------------------------------------- /hello_world/src/dune: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/hello_world/src/dune -------------------------------------------------------------------------------- /hello_world/src/plugin_intf.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/hello_world/src/plugin_intf.ml -------------------------------------------------------------------------------- /ocaml_plugin.opam: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/ocaml_plugin.opam -------------------------------------------------------------------------------- /sample/bin/config.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/sample/bin/config.ml -------------------------------------------------------------------------------- /sample/bin/config.mli: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/sample/bin/config.mli -------------------------------------------------------------------------------- /sample/bin/dune: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/sample/bin/dune -------------------------------------------------------------------------------- /sample/bin/run.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/sample/bin/run.ml -------------------------------------------------------------------------------- /sample/bin/what_to_test.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/sample/bin/what_to_test.txt -------------------------------------------------------------------------------- /sample/config/config_01.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/sample/config/config_01.ml -------------------------------------------------------------------------------- /sample/config/config_02.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/sample/config/config_02.ml -------------------------------------------------------------------------------- /sample/config/config_util.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/sample/config/config_util.ml -------------------------------------------------------------------------------- /sample/config/config_v1_error.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/sample/config/config_v1_error.ml -------------------------------------------------------------------------------- /sample/config/syntax_error.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/sample/config/syntax_error.ml -------------------------------------------------------------------------------- /sample/src/dsl.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/sample/src/dsl.ml -------------------------------------------------------------------------------- /sample/src/dsl.mli: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/sample/src/dsl.mli -------------------------------------------------------------------------------- /sample/src/dune: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/sample/src/dune -------------------------------------------------------------------------------- /src/compiler.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/src/compiler.ml -------------------------------------------------------------------------------- /src/compiler.mli: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/src/compiler.mli -------------------------------------------------------------------------------- /src/dune: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/src/dune -------------------------------------------------------------------------------- /src/dynloader.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/src/dynloader.ml -------------------------------------------------------------------------------- /src/dynloader.mli: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/src/dynloader.mli -------------------------------------------------------------------------------- /src/import.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/src/import.ml -------------------------------------------------------------------------------- /src/ml_bundle.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/src/ml_bundle.ml -------------------------------------------------------------------------------- /src/ml_bundle.mli: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/src/ml_bundle.mli -------------------------------------------------------------------------------- /src/ocaml_fake_archive.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/src/ocaml_fake_archive.c -------------------------------------------------------------------------------- /src/ocaml_plugin.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/src/ocaml_plugin.ml -------------------------------------------------------------------------------- /src/ocamldep.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/src/ocamldep.ml -------------------------------------------------------------------------------- /src/ocamldep.mli: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/src/ocamldep.mli -------------------------------------------------------------------------------- /src/params.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/src/params.ml -------------------------------------------------------------------------------- /src/params.mli: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/src/params.mli -------------------------------------------------------------------------------- /src/plugin_cache.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/src/plugin_cache.ml -------------------------------------------------------------------------------- /src/plugin_cache.mli: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/src/plugin_cache.mli -------------------------------------------------------------------------------- /src/plugin_uuid.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/src/plugin_uuid.ml -------------------------------------------------------------------------------- /src/plugin_uuid.mli: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/src/plugin_uuid.mli -------------------------------------------------------------------------------- /src/shell.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/src/shell.ml -------------------------------------------------------------------------------- /src/shell.mli: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/src/shell.mli -------------------------------------------------------------------------------- /src/tar.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/src/tar.ml -------------------------------------------------------------------------------- /src/tar.mli: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/src/tar.mli -------------------------------------------------------------------------------- /test/dune: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/test/dune -------------------------------------------------------------------------------- /test/jbuild-ignore: -------------------------------------------------------------------------------- 1 | tmp_dir 2 | -------------------------------------------------------------------------------- /test/plugin_loader.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/test/plugin_loader.ml -------------------------------------------------------------------------------- /test/setup-script: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/test/setup-script -------------------------------------------------------------------------------- /test/test-basic.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/test/test-basic.t -------------------------------------------------------------------------------- /test/test-cache.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/test/test-cache.t -------------------------------------------------------------------------------- /test/test-inferred-interface.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/test/test-inferred-interface.t -------------------------------------------------------------------------------- /test/test-language-features.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/test/test-language-features.t -------------------------------------------------------------------------------- /test/test-ocamldep.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/test/test-ocamldep.t -------------------------------------------------------------------------------- /test/test-persistent-archive.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/test/test-persistent-archive.t -------------------------------------------------------------------------------- /test/test-positions.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/test/test-positions.t -------------------------------------------------------------------------------- /test/test-run-plugin-toplevel.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/test/test-run-plugin-toplevel.t -------------------------------------------------------------------------------- /test/test-trickier.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/test/test-trickier.t -------------------------------------------------------------------------------- /test/test-warnings.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/test/test-warnings.t -------------------------------------------------------------------------------- /test/test_lib/dune: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/test/test_lib/dune -------------------------------------------------------------------------------- /test/test_lib/sync_default_warnings.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/test/test_lib/sync_default_warnings.ml -------------------------------------------------------------------------------- /test/test_lib/sync_default_warnings.mli: -------------------------------------------------------------------------------- 1 | (*_ Deliberately empty. *) 2 | -------------------------------------------------------------------------------- /test/test_lib/test.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/test/test_lib/test.ml -------------------------------------------------------------------------------- /test/test_with_sexp.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/test/test_with_sexp.ml -------------------------------------------------------------------------------- /test/test_with_sexp.mli: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/test/test_with_sexp.mli -------------------------------------------------------------------------------- /test/test_with_sexp_dep.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/test/test_with_sexp_dep.ml -------------------------------------------------------------------------------- /test/test_with_sexp_dep.mli: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/janestreet/ocaml_plugin/HEAD/test/test_with_sexp_dep.mli --------------------------------------------------------------------------------