Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Mike McClurg <mike.mcclurg@gmail.com>
To: caml-list@inria.fr
Subject: [Caml-list] Generating a module implementation from a module signature using camlp4
Date: Fri, 12 Oct 2012 18:36:40 +0100	[thread overview]
Message-ID: <CALru5wWPvfq9VYyDSHEH=T6bh8FfJyTX9yJrSg-p8fLkAfJO7A@mail.gmail.com> (raw)

Hi list,

I am trying to write a bit of camlp4 that will take as input a module
signature, preferably in mli form, and generate a module
implementation as an ml file. My goal is to implement a mocking
framework for OCaml modules.

It seems that I would want to use a camlp4 filter to do this, but as
far as I can tell it's not possible to create a filter from sig_items
to str_items. Is a filter the right approach? Am I going to have to
define my module signatures as module type definitions from within ml
files? Can anyone give me some some advice on how to do this properly?

Mike

             reply	other threads:[~2012-10-12 17:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-12 17:36 Mike McClurg [this message]
2012-10-12 17:55 ` Wojciech Meyer
2012-10-12 18:03   ` Mike McClurg
     [not found]     ` <507871F9.5040605@gmail.com>
2012-10-12 21:01       ` [Caml-list] " Mike McClurg
2012-10-13 13:06 ` [Caml-list] ocaml 3.12.1 and delimcc Christophe Raffalli
2012-10-13 14:38   ` Anthony Tavener

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='CALru5wWPvfq9VYyDSHEH=T6bh8FfJyTX9yJrSg-p8fLkAfJO7A@mail.gmail.com' \
    --to=mike.mcclurg@gmail.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