From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=AWL,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id C18ECBC69 for ; Mon, 30 Apr 2007 14:58:08 +0200 (CEST) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.239]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l3UCw7fv002401 for ; Mon, 30 Apr 2007 14:58:08 +0200 Received: by wr-out-0506.google.com with SMTP id l58so1501590wrl for ; Mon, 30 Apr 2007 05:58:06 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=mKisXbEKBfFqdetIRLhquWP9BN5b+g68+0/66BL8+yeuxQjRbJAZLaKfThSaYbcAw4VNUCX2z4qFuqIpU18hDibw2K5WYS6XFNs984AITL0Jm4Gsdce6fV4mU9VRpET60LSge349IrzgM3S9lKS20oGFEW8mn03FDdR/gG52rGQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=uCV0rLtvIsbt+3LCs6rABEW3cSRjWKZ2dxzW49niaFKsOEbPKJb5FTaSSlH1YzeGTJ2gCiUjeK8ny+c7ulJexxkk/hl5mZ2lJa2Of3iIswwu/T+RxFY/zVVOiqUmsGh11f1tO0UT2NnwmWwEzdkYUkTv+OGCWaSMAe1m4qdBuig= Received: by 10.114.181.1 with SMTP id d1mr2025817waf.1177937886102; Mon, 30 Apr 2007 05:58:06 -0700 (PDT) Received: by 10.114.181.18 with HTTP; Mon, 30 Apr 2007 05:58:06 -0700 (PDT) Message-ID: Date: Mon, 30 Apr 2007 14:58:06 +0200 From: "Nicolas Pouillard" To: "Joel Reymont" Subject: Re: [Caml-list] AST transformation and scrapping boilerplate code Cc: "Caml List" In-Reply-To: <57FA2AAF-8F53-48B5-BF13-35BC9C825CE9@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <0DF43C61-05DE-4129-A5F6-06AF8722A8D5@gmail.com> <57FA2AAF-8F53-48B5-BF13-35BC9C825CE9@gmail.com> X-j-chkmail-Score: MSGID : 4635E7DF.000 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 4635E7DF.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; defs:01 camlp:01 struct:01 camlp:01 2007,:98 youre:98 wrote:01 wrote:01 caml-list:01 macros:01 ast:02 ast:02 types:03 module:03 module:03 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 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