Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
AST transformation and scrapping boilerplate code
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-04-30 (12:58)
From: Nicolas Pouillard <nicolas.pouillard@g...>
Subject: Re: [Caml-list] AST transformation and scrapping boilerplate code
On 4/30/07, Joel Reymont <> wrote:
> On Apr 30, 2007, at 1:42 PM, Nicolas Pouillard wrote:
> > The generator needs to see youre types definitions.
> What does it mean? Open <AST module> doesn't do it?
> How do I make the type defs in a separate module available to the
> generator?

Here is the hack I use:

module Camlp4Trash = struct
  INCLUDE "";;

Use camlp4of (since INCLUDE is provided by camlp4 macros).
Also add -filter trash to the camlp4 options (after map and fold), in
order to remove the Camlp4Trash module.

Nicolas Pouillard