Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* [Caml-list] Generating a module implementation from a module signature using camlp4
@ 2012-10-12 17:36 Mike McClurg
  2012-10-12 17:55 ` Wojciech Meyer
  2012-10-13 13:06 ` [Caml-list] ocaml 3.12.1 and delimcc Christophe Raffalli
  0 siblings, 2 replies; 6+ messages in thread
From: Mike McClurg @ 2012-10-12 17:36 UTC (permalink / raw)
  To: caml-list

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-10-13 14:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-12 17:36 [Caml-list] Generating a module implementation from a module signature using camlp4 Mike McClurg
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox