Browse thread
AST transformation and scrapping boilerplate code
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Nicolas Pouillard <nicolas.pouillard@g...> |
| Subject: | Re: [Caml-list] AST transformation and scrapping boilerplate code |
On 4/30/07, Joel Reymont <joelr1@gmail.com> 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 "AST.ml";; end;; 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