|
43 | 43 | +++ b/shims/ast/dune |
44 | 44 | @@ -0,0 +1,5 @@ |
45 | 45 | +(library |
46 | | -+ (name ppxlib_ast) |
| 46 | ++ (name ppxlib_ast_shim) |
47 | 47 | + (wrapped false) |
48 | 48 | + (public_name ppxlib.ast) |
49 | 49 | + (libraries (re_export ppxlib_ast.ast))) |
50 | 50 | --- /dev/null |
51 | 51 | +++ b/shims/astlib/dune |
52 | 52 | @@ -0,0 +1,5 @@ |
53 | 53 | +(library |
54 | | -+ (name astlib) |
| 54 | ++ (name astlib_shim) |
55 | 55 | + (wrapped false) |
56 | 56 | + (public_name ppxlib.astlib) |
57 | 57 | + (libraries (re_export ppxlib_ast.astlib))) |
58 | 58 | --- /dev/null |
59 | 59 | +++ b/shims/stdppx/dune |
60 | 60 | @@ -0,0 +1,5 @@ |
61 | 61 | +(library |
62 | | -+ (name stdppx) |
| 62 | ++ (name stdppx_shim) |
63 | 63 | + (wrapped false) |
64 | 64 | + (public_name ppxlib.stdppx) |
65 | 65 | + (libraries (re_export ppxlib_ast.stdppx))) |
66 | 66 | --- /dev/null |
67 | 67 | +++ b/shims/traverse_builtins/dune |
68 | 68 | @@ -0,0 +1,5 @@ |
69 | 69 | +(library |
70 | | -+ (name ppxlib_traverse_builtins) |
| 70 | ++ (name ppxlib_traverse_builtins_shim) |
71 | 71 | + (wrapped false) |
72 | 72 | + (public_name ppxlib.traverse_builtins) |
73 | 73 | + (libraries (re_export ppxlib_ast.traverse_builtins))) |
|
99 | 99 | + (run ./gen/gen_ast_builder.exe %{lib:ppxlib_ast.ast:ast.ml}))) |
100 | 100 |
|
101 | 101 | (ocamllex skip_hash_bang) |
| 102 | +--- a/ast/dune |
| 103 | ++++ b/ast/dune |
| 104 | +@@ -4,16 +4,16 @@ |
| 105 | + |
| 106 | + (library |
| 107 | + (name ppxlib_ast) |
| 108 | +- (public_name ppxlib.ast) |
| 109 | +- (libraries astlib stdlib-shims) |
| 110 | ++ (public_name ppxlib_ast.ast) |
| 111 | ++ (libraries astlib compiler-libs.common ocaml-compiler-libs.common ocaml-compiler-libs.shadow stdlib-shims) |
| 112 | + (flags |
| 113 | +- (:standard -safe-string) |
| 114 | ++ (:standard -safe-string -open Ocaml_shadow) |
| 115 | + -w |
| 116 | + -9-27-32) |
| 117 | + (preprocess |
| 118 | + (per_module |
| 119 | + ((action |
| 120 | +- (run %{exe:pp/pp.exe} %{ocaml_version} %{input-file})) |
| 121 | ++ (run %{exe:pp/pp.exe} 9.99 %{input-file})) |
| 122 | + versions))) |
| 123 | + (lint |
| 124 | + (pps ppxlib_traverse -deriving-keep-w32=impl))) |
| 125 | +--- a/astlib/dune |
| 126 | ++++ b/astlib/dune |
| 127 | +@@ -1,6 +1,8 @@ |
| 128 | + (library |
| 129 | + (name astlib) |
| 130 | +- (public_name ppxlib.astlib) |
| 131 | ++ (public_name ppxlib_ast.astlib) |
| 132 | ++ (modules ast_414 ast_500 ast_999 ast_metadata astlib config keyword location longident |
| 133 | ++ migrate_414_500 migrate_500_414 migrate_500_999 migrate_999_500 parse pprintast stdlib0) |
| 134 | + (libraries ocaml-compiler-libs.common compiler-libs.common) |
| 135 | + (flags -w -9) |
| 136 | + (preprocess |
| 137 | +@@ -10,7 +12,7 @@ |
| 138 | + (rule |
| 139 | + (targets ast-version) |
| 140 | + (action |
| 141 | +- (run %{ocaml} %{dep:config/gen.ml} %{ocaml_version}))) |
| 142 | ++ (run %{ocaml} %{dep:config/gen.ml} 9.99))) |
| 143 | + |
| 144 | + (cinaps |
| 145 | + (files *.ml *.mli) |
| 146 | +--- a/stdppx/dune |
| 147 | ++++ b/stdppx/dune |
| 148 | +@@ -1,6 +1,6 @@ |
| 149 | + (library |
| 150 | + (name stdppx) |
| 151 | +- (public_name ppxlib.stdppx) |
| 152 | +- (libraries sexplib0 stdlib-shims) |
| 153 | ++ (public_name ppxlib_ast.stdppx) |
| 154 | ++ (libraries sexplib0 stdlib-shims sexp_type) |
| 155 | + (flags |
| 156 | + (:standard -safe-string))) |
| 157 | +--- a/traverse_builtins/dune |
| 158 | ++++ b/traverse_builtins/dune |
| 159 | +@@ -1,5 +1,5 @@ |
| 160 | + (library |
| 161 | + (name ppxlib_traverse_builtins) |
| 162 | +- (public_name ppxlib.traverse_builtins) |
| 163 | ++ (public_name ppxlib_ast.traverse_builtins) |
| 164 | + (flags |
| 165 | + (:standard -safe-string))) |
| 166 | +--- a/dune-project |
| 167 | ++++ b/dune-project |
| 168 | +@@ -13,6 +13,28 @@ |
| 169 | + (documentation "https://ocaml-ppx.github.io/ppxlib/") |
| 170 | + |
| 171 | + (package |
| 172 | ++ (name ppxlib_ast) |
| 173 | ++ (depends |
| 174 | ++ ocaml |
| 175 | ++ (ocaml-compiler-libs (>= v0.11.0)) |
| 176 | ++ (ppx_derivers (>= 1.0)) |
| 177 | ++ (sexplib0 (>= v0.12)) |
| 178 | ++ stdlib-shims |
| 179 | ++ (synopsis "Standard infrastructure for ppx rewriters") |
| 180 | ++ (description "Ppxlib is the standard infrastructure for ppx rewriters |
| 181 | ++and other programs that manipulate the in-memory representation of |
| 182 | ++OCaml programs, a.k.a the \"Parsetree\". |
| 183 | ++ |
| 184 | ++It also comes bundled with two ppx rewriters that are commonly used to |
| 185 | ++write tools that manipulate and/or generate Parsetree values; |
| 186 | ++`ppxlib.metaquot` which allows to construct Parsetree values using the |
| 187 | ++OCaml syntax directly and `ppxlib.traverse` which provides various |
| 188 | ++ways of automatically traversing values of a given type, in particular |
| 189 | ++allowing to inject a complex structured value into generated code. |
| 190 | ++"))) |
| 191 | ++ |
| 192 | ++ |
| 193 | ++(package |
| 194 | + (name ppxlib) |
| 195 | + (depends |
| 196 | + ocaml |
0 commit comments