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 concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 93905BC69 for ; Mon, 19 Mar 2007 10:58:28 +0100 (CET) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l2J9wSD8007444 for ; Mon, 19 Mar 2007 10:58:28 +0100 Received: by ug-out-1314.google.com with SMTP id k3so1249133ugf for ; Mon, 19 Mar 2007 02:58:27 -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=GYkPw0QUZ1kxZCh51uISX1i9mCXTgwibox9RzS8ePeFI6sXsS4LV4oH2PlY6GevIBF462FbgiHQRkCozLRGiBZngAOk/3hnTKPN4BObuFhTo5NP876Ygzq9lZlKec9cZbeQgrNQ8VmjYrhAljibhCIhW+kbGJLsuPfSUJdRpmaw= 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=MtY7cidp44sz3HgYX0pWJFHbEdJ9D0CPjAH1CeUaVdQkBoscOn5wrZGYupRRTLfWvHRRseaEF/GzJ51M2X74JkAjvNDR+SwWm1CtNrrka8enrzRPWuUBZfeRQnx1J6noTLTJDIbgS2W4q0u78fvG+rM0keNljpXgvBM2v2IkQ2M= Received: by 10.64.213.3 with SMTP id l3mr7361660qbg.1174298307402; Mon, 19 Mar 2007 02:58:27 -0700 (PDT) Received: by 10.114.183.4 with HTTP; Mon, 19 Mar 2007 02:58:27 -0700 (PDT) Message-ID: Date: Mon, 19 Mar 2007 10:58:27 +0100 From: "Nicolas Pouillard" To: "Martin Jambon" Subject: Re: [Caml-list] switching to camlp4 3.10 Cc: caml-list@inria.fr In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-j-chkmail-Score: MSGID : 45FE5EC4.000 on concorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at concorde with ID 45FE5EC4.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; camlp:01 ens-lyon:01 camlp:01 syntax:01 cmo:01 mlast:01 cmo:01 foo:01 bug:01 mlast:01 ocaml:01 foo:01 ocaml:01 cvs:01 wrote:01 On 3/19/07, Martin Jambon wrote: > Hello, > > I started trying to convert my programs so that they support camlp4 3.10. > > 1) Is there a better source of documentation than > http://gallium.inria.fr/~pouillar/camlp4-changes.html? > > 2) What is the command for preprocessing a simple syntax extension? > > This used to work: > > camlp4o pa_extend.cmo q_MLast.cmo pr_o.cmo -loc _loc pa_foo.ml This command is supposed to works in the new version. In fact module names have changed but ald ones are emulated. However I recently noticed a bug for q_MLast.cmo, it's now fixed in the CVS. However this incantation should be replaced by: camlp4of -printer OCaml pa_foo.ml Note: -loc _loc is useless since _loc is the default value. Note2: -printer o is a shortcut for -printer OCaml -- Nicolas Pouillard