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=AWL autolearn=disabled version=3.1.3 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 8366BBBC1 for ; Wed, 9 Apr 2008 14:47:36 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAGZX/EfAXQIm/2dsb2JhbACsdQ X-IronPort-AV: E=Sophos;i="4.25,629,1199660400"; d="scan'208";a="9386695" Received: from discorde.inria.fr ([192.93.2.38]) by mail2-smtp-roc.national.inria.fr with ESMTP; 09 Apr 2008 14:47:36 +0200 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id m39ClZ4U009148 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Wed, 9 Apr 2008 14:47:36 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhACAIhX/EdQRFuwiGdsb2JhbACRTQEBAQ8mmnA X-IronPort-AV: E=Sophos;i="4.25,629,1199660400"; d="scan'208";a="11259691" Received: from furbychan.cocan.org ([80.68.91.176]) by mail3-smtp-sop.national.inria.fr with ESMTP; 09 Apr 2008 14:47:35 +0200 Received: from rich by furbychan.cocan.org with local (Exim 4.63) (envelope-from ) id 1JjZi9-00030c-QB; Wed, 09 Apr 2008 13:47:33 +0100 Date: Wed, 9 Apr 2008 13:47:33 +0100 To: Loup Vaillant Cc: Caml List Subject: Re: [Caml-list] Porting camlp4 stuff from 3.09 to 3.10: need help Message-ID: <20080409124733.GA10994@annexia.org> References: <6f9f8f4a0804090246v19f42f3fgfe22a65f48f1f18b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6f9f8f4a0804090246v19f42f3fgfe22a65f48f1f18b@mail.gmail.com> User-Agent: Mutt/1.5.13 (2006-08-11) From: Richard Jones X-Miltered: at discorde with ID 47FCBAE7.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; camlp:01 0200,:01 camlp:01 wiki:01 expr:01 wiki:01 afaik:01 syntax:01 syntax:01 3100:98 wrote:01 abstract:01 caml-list:01 jambon:01 jambon:01 On Wed, Apr 09, 2008 at 11:46:52AM +0200, Loup Vaillant wrote: > I am currently porting code which uses camlp4 from 3.09 to 3.10, and I > am quite stuck. > > I would like to know if there is a document which describes the > compatibility breaking differences between the two versions. (The wiki > doesn't seem to have it yet). > It would also help me to know of the predefined quotations, (<:expr< > >>, <:str_item< >>, and such) and what they allow. I found the camlp4 wiki to be somewhat useful, and Martin Jambon / Nicolas Pouillard's example of the differences between a 3.09 and a 3.10 extension to be a little useful too: http://brion.inria.fr/gallium/index.php/Camlp4 http://martin.jambon.free.fr/examples/pa_json_static_3100beta.html AFAIK the list of predefined quotations is the same as for 3.09, but maybe this page will help: http://brion.inria.fr/gallium/index.php/Abstract_Syntax_Tree > The mentioned line 78 is: > > <:str_item< declare end >> > > It looks like the "declare end" construct is not allowed any more. Is > there any equivalent in 3.10, and is there a specific bit of > documentation about this? Use the ordinary syntax instead? Rich. -- Richard Jones Red Hat