This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,5 @@
|
|||
(executable
|
||||
(name main)
|
||||
(root_module root)
|
||||
(libraries unix)
|
||||
(preprocess (pps ppx)))
|
||||
|
|
@ -0,0 +1 @@
|
|||
(lang dune 2.8)
|
||||
|
|
@ -0,0 +1 @@
|
|||
module X = Root.Unix
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
(library
|
||||
(name ppx)
|
||||
(kind ppx_rewriter)
|
||||
(ppx.driver (main Ppx.main)))
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
let main () =
|
||||
let out = ref "" in
|
||||
let args =
|
||||
[ ("-o", Arg.Set_string out, "")
|
||||
; ("--impl", Arg.Set_string (ref ""), "")
|
||||
; ("--as-ppx", Arg.Set (ref false), "")
|
||||
]
|
||||
in
|
||||
let anon _ = () in
|
||||
Arg.parse (Arg.align args) anon "";
|
||||
let out = open_out !out in
|
||||
close_out out;
|
||||
|
|
@ -0,0 +1 @@
|
|||
val main : unit -> unit
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
Attempting to use `(root_module ...)` with an executable that uses PPX results
|
||||
in an unexpected build failure:
|
||||
|
||||
$ dune build
|
||||
Loading…
Add table
Add a link
Reference in a new issue