This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,5 @@
|
|||
(library
|
||||
(name fooppx)
|
||||
(modes byte)
|
||||
(kind ppx_rewriter)
|
||||
(libraries ppxlib))
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
let () =
|
||||
Ppxlib.Driver.register_transformation
|
||||
"linter"
|
||||
~impl:(fun s -> Format.eprintf "running rewriter@.%!"; s)
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
$ cat >dune-project <<EOF
|
||||
> (lang dune 3.12)
|
||||
> EOF
|
||||
|
||||
$ mkdir bin
|
||||
$ cat > bin/dune << EOF
|
||||
> (executable
|
||||
> (name e)
|
||||
> (preprocess (pps fooppx)))
|
||||
> EOF
|
||||
$ cat >bin/e.ml <<EOF
|
||||
> print_endline "Hello World"
|
||||
> EOF
|
||||
|
||||
$ dune exec -- bin/e.exe
|
||||
Hello World
|
||||
Loading…
Add table
Add a link
Reference in a new issue