* [Caml-list] How to generate source files with ocamlbuild
@ 2017-09-09 2:02 Helmut Brandl
2017-09-09 16:06 ` ygrek
0 siblings, 1 reply; 2+ messages in thread
From: Helmut Brandl @ 2017-09-09 2:02 UTC (permalink / raw)
To: caml users
Dear list,
I have a project which uses ocamlbuild to compile the program. I use the menhir parser generator. With menhir there are no problems since ocambuild ‘knows’ that files with the name ‘*.mly’ are parser files and it generates the sources in the sudirectory ‘_build’ before calling the compiler.
Now I want to use coq to verify the critical part of my project and generate ocaml source files with coq. Is there a simple way to tell ocamlbuild that it has to use coq and some ‘*.v’ files to generate ocaml source files before calling the compiler?
Kind regards
Helmut
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Caml-list] How to generate source files with ocamlbuild
2017-09-09 2:02 [Caml-list] How to generate source files with ocamlbuild Helmut Brandl
@ 2017-09-09 16:06 ` ygrek
0 siblings, 0 replies; 2+ messages in thread
From: ygrek @ 2017-09-09 16:06 UTC (permalink / raw)
To: caml users
On Fri, 8 Sep 2017 21:02:53 -0500
Helmut Brandl <helmut.brandl@gmx.net> wrote:
> Now I want to use coq to verify the critical part of my project and generate ocaml source files with coq. Is there a simple way to tell ocamlbuild that it has to use coq and some ‘*.v’ files to generate ocaml source files before calling the compiler?
Yes, ocamlbuild can be extended to add build rules, see https://ocaml.org/learn/tutorials/ocamlbuild/Making_plugins.html
Example: https://github.com/ygrek/extunix/blob/master/myocamlbuild.ml#L920
--
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-09-09 16:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-09 2:02 [Caml-list] How to generate source files with ocamlbuild Helmut Brandl
2017-09-09 16:06 ` ygrek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox