caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Helmut Brandl <helmut.brandl@gmx.net>
To: caml users <caml-list@inria.fr>
Subject: [Caml-list] How to generate source files with ocamlbuild
Date: Fri, 8 Sep 2017 21:02:53 -0500	[thread overview]
Message-ID: <6543AF55-7E89-462E-8AF9-DFF3091C1599@gmx.net> (raw)

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

             reply	other threads:[~2017-09-09  2:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-09  2:02 Helmut Brandl [this message]
2017-09-09 16:06 ` ygrek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6543AF55-7E89-462E-8AF9-DFF3091C1599@gmx.net \
    --to=helmut.brandl@gmx.net \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).