This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,5 @@
|
|||
(library
|
||||
(name reasonppx)
|
||||
(wrapped false)
|
||||
(kind ppx_rewriter)
|
||||
(libraries ppxlib))
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
let lint = ref false
|
||||
|
||||
let () =
|
||||
Ppxlib.Driver.add_arg "-lint" (Arg.Bool (fun l -> lint := l)) ~doc:"";
|
||||
Ppxlib.Driver.register_transformation
|
||||
"reasonppx"
|
||||
~impl:(fun s ->
|
||||
if !lint then (
|
||||
exit 0
|
||||
) else (
|
||||
s
|
||||
)
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue