forked from ocaml-ppx/ocaml-migrate-parsetree
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
- Loading branch information
1 parent
104f80c
commit fbf2a71
Showing
22 changed files
with
107 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
(executables | ||
(names ocaml_migrate_parsetree) | ||
(libraries migrate_parsetree)) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
(install | ||
(section doc) | ||
(package ocaml-migrate-parsetree) | ||
(files MANUAL.md)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(lang dune 1.6) | ||
(name ocaml-migrate-parsetree) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
(library | ||
(name migrate_parsetree_ocamlbuild) | ||
(public_name ocaml-migrate-parsetree-ocamlbuild) | ||
(synopsis "ocamlbuild plugin for automatically generating ppx dirvers") | ||
(libraries ocamlbuild)) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
(library | ||
(name migrate_parsetree) | ||
(public_name ocaml-migrate-parsetree) | ||
(wrapped false) | ||
(libraries compiler-libs.common result ppx_derivers) | ||
(flags :standard -open Result) | ||
(modules :standard \ migrate_parsetree_driver_main) | ||
(preprocess (action (run %{exe:../tools/pp.exe} %{read:ast-version} | ||
%{input-file}))) | ||
(ppx.driver | ||
(main Migrate_parsetree.Driver.run_main) | ||
(flags --dump-ast) | ||
(lint_flags --null))) | ||
|
||
(library | ||
(name migrate_parsetree_driver_main) | ||
(public_name ocaml-migrate-parsetree.driver-main) | ||
(modules migrate_parsetree_driver_main) | ||
(library_flags -linkall) | ||
(libraries migrate_parsetree)) | ||
|
||
(rule | ||
(copy# | ||
compiler-functions/%{read:compiler-functions-file} | ||
migrate_parsetree_compiler_functions.ml)) | ||
|
||
(rule | ||
(targets ast-version compiler-functions-file) | ||
(action (run %{ocaml} %{dep:config/gen.ml} %{ocaml_version}))) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
(executable | ||
(name driver) | ||
(libraries ocaml-migrate-parsetree) | ||
(link_flags -linkall)) | ||
|
||
(rule | ||
(with-stdout-to driver.ml | ||
(echo "Migrate_parsetree.Driver.run_main ()"))) | ||
|
||
(rule | ||
(with-stdout-to file.blah | ||
(echo "let x = 42"))) | ||
|
||
(alias | ||
(name runtest) | ||
(action (ignore-stdout | ||
(run ./driver.exe --impl %{dep:file.blah})))) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
(executable | ||
(name ppx) | ||
(flags :standard -linkall) | ||
(libraries ppx1 ppx2)) | ||
|
||
(rule | ||
(with-stdout-to null.output (run ./ppx.exe --null))) | ||
|
||
(rule | ||
(with-stdout-to null.expected (echo ""))) | ||
|
||
(alias | ||
(name runtest) | ||
(deps null.expected null.output) | ||
(action (run diff -u null.expected null.output))) | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
(executable | ||
(name foo) | ||
(preprocess (pps ppx1 ppx2 -- | ||
-message "Hello, world!" | ||
--cookie "plop=\"Chocolate\""))) | ||
|
||
(rule | ||
(with-stdout-to foo.output (run ./foo.exe))) | ||
|
||
(alias | ||
(name runtest) | ||
(deps foo.expected foo.output) | ||
(action (run diff -u foo.expected foo.output))) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
(library | ||
(name ppx1) | ||
(kind ppx_rewriter) | ||
(libraries ocaml-migrate-parsetree)) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
(library | ||
(name ppx2) | ||
(kind ppx_rewriter) | ||
(libraries ocaml-migrate-parsetree)) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
(executables | ||
(names add_special_comments pp) | ||
(libraries compiler-libs.common)) | ||
|
||
(ocamllex pp_rewrite) |
This file was deleted.
Oops, something went wrong.