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=0.0 required=5.0 tests=none 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 8CEA2BC69 for ; Wed, 21 Mar 2007 01:29:32 +0100 (CET) Received: from out5.smtp.messagingengine.com (out5.smtp.messagingengine.com [66.111.4.29]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l2L0TVKF008626 for ; Wed, 21 Mar 2007 01:29:32 +0100 Received: from out1.internal (unknown [10.202.2.149]) by out1.messagingengine.com (Postfix) with ESMTP id 09C74209C01; Tue, 20 Mar 2007 20:29:29 -0400 (EDT) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by out1.internal (MEProxy); Tue, 20 Mar 2007 20:29:29 -0400 X-Sasl-enc: M3u4JRsodKeAekeMYc3Gw8LOHi9yFtuwxBhtHhra3Piw 1174436971 Received: from adsl-75-28-12-83.dsl.sndg02.sbcglobal.net (adsl-75-28-12-83.dsl.sndg02.sbcglobal.net [75.28.12.83]) by mail.messagingengine.com (Postfix) with ESMTP id 0547D2B9EC; Tue, 20 Mar 2007 20:29:30 -0400 (EDT) Date: Tue, 20 Mar 2007 17:29:21 -0700 (PDT) From: Martin Jambon X-X-Sender: martin@droopy To: Nicolas Pouillard Cc: caml-list@inria.fr Subject: Re: [Caml-list] switching to camlp4 3.10 In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Miltered: at discorde with ID 46007C6B.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ens-lyon:01 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 2007,:98 On Mon, 19 Mar 2007, Nicolas Pouillard wrote: > 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. ok, thanks. > However this incantation should be replaced by: > > camlp4of -printer OCaml pa_foo.ml > > Note: -loc _loc is useless since _loc is the default value. Right, until the default changes :-) It used to be "loc" and one day it suddenly became "_loc". > Note2: -printer o is a shortcut for -printer OCaml Cool. -- Martin Jambon http://martin.jambon.free.fr