caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Andrej Bauer" <andrej.bauer@andrej.com>
To: caml-list@inria.fr
Subject: Parametrizing ocamlyacc
Date: Wed, 12 Nov 2008 15:30:22 +0100	[thread overview]
Message-ID: <7d8707de0811120630u402fd449t4906834298b3a6dd@mail.gmail.com> (raw)

I have the following situation:

- a signature S
- two modules A and B, which both implement S
- an ocamlyacc file which refers to an implementation of S

I want to generate two executable, one where A is used and another
where B is used.

The most logical thing would be to turn the ocamlyacc part into a
functor which accepts an implementation of S. But there does not seem
to be any way of doing this. What can I do?

Can menhir do this?

Best regards,

Andrej


             reply	other threads:[~2008-11-12 14:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-12 14:30 Andrej Bauer [this message]
2008-11-12 15:35 ` [Caml-list] " Francois Pottier

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=7d8707de0811120630u402fd449t4906834298b3a6dd@mail.gmail.com \
    --to=andrej.bauer@andrej.com \
    --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).