Closed
Description
It would be nice if we could have first-class support for literate programming in dune
. The idea would be to tag certain files as "file which needs to be pre-processed" to generate a file in a way very similar to what is done for the Reason support.
And example is here where the ocaml
code blocks in a markdown file can be extracted into a self-contained .ml
file which can compiled and linked like a normal OCaml file.
A bonus would be to support setting various pre-processor (using different aliases I guess), for instance to set-up cram-tests (e.g. check that ::
and 1>
outputs are correct). This is related to #622 and #771
Metadata
Metadata
Assignees
Labels
No labels