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.3 required=5.0 tests=AWL autolearn=disabled version=3.1.3 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 8BE73BBC1 for ; Wed, 9 Apr 2008 15:31:28 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAPJh/EfAXQIm/2dsb2JhbACmdYV6 X-IronPort-AV: E=Sophos;i="4.25,629,1199660400"; d="scan'208";a="10651021" Received: from discorde.inria.fr ([192.93.2.38]) by mail1-smtp-roc.national.inria.fr with ESMTP; 09 Apr 2008 15:31:28 +0200 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id m39DVRe3011297 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Wed, 9 Apr 2008 15:31:28 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aq8BALZh/EfRVYT2c2dsb2JhbACRTQEMAwQFCRSUcIV6 X-IronPort-AV: E=Sophos;i="4.25,629,1199660400"; d="scan'208";a="24800032" Received: from an-out-0708.google.com ([209.85.132.246]) by mail4-smtp-sop.national.inria.fr with ESMTP; 09 Apr 2008 15:31:27 +0200 Received: by an-out-0708.google.com with SMTP id c24so599429ana.97 for ; Wed, 09 Apr 2008 06:31:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; 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; bh=uWOP0CLVCN5fv1Ts+OYGaGQljz19zQEwRe9SE2Fyj40=; b=tlEeOcGvt7fRbuP+K4+OAkcKxyKEq6FU/s+1w52NxpNjQAu6Ho4iNqGaxn0mnHMsrDrZtQYx+8pu06cfnWdEQ1uZ8YrIGcXgCpLhubQdI+FeNS+pPyba+MkGEowtXeGLyY9ysVzH12QSZTXrtMFindyghVbeDTB2sXy2Vrk4jAw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=F0Ji6AAJseBrDHLhetrbeFEf+SDN6chhw2X33g3YwA4Phc/zBc46OXaUbAeipobhlGPmeJqQbOSto0FJudBwx/gUTflsMEN2WdqT+Lw6bnXkeomNnOz/EeLsIHTavg8QEuuVp9ymX0P0OS8s13E5gKpUF5PyQe9rMzwXo+Bnacw= Received: by 10.100.33.13 with SMTP id g13mr204614ang.96.1207747886182; Wed, 09 Apr 2008 06:31:26 -0700 (PDT) Received: by 10.100.119.19 with HTTP; Wed, 9 Apr 2008 06:31:26 -0700 (PDT) Message-ID: <6f9f8f4a0804090631s7a0dabf1w19cdb7cbc88ce0fb@mail.gmail.com> Date: Wed, 9 Apr 2008 15:31:26 +0200 From: "Loup Vaillant" To: "Matthieu Wipliez" Subject: Re: Re : [Caml-list] Porting camlp4 stuff from 3.09 to 3.10: need help Cc: "Caml List" In-Reply-To: <243732.71350.qm@web27014.mail.ukl.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <243732.71350.qm@web27014.mail.ukl.yahoo.com> X-Miltered: at discorde with ID 47FCC52F.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; camlp:01 matthieu:01 afaik:01 syntax:01 camlp:01 syntax:01 stl:01 abstract:01 abstract:01 caml-list:01 emulate:01 caml:02 tree:02 tree:02 declaration:02 2008/4/9, Matthieu Wipliez : > > > 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 > > This seems unlikely: > http://camltest.inria.fr/pub/old_caml_site/camlp4/manual/manual010.html#toc39 > http://brion.inria.fr/gallium/index.php/Abstract_Syntax_Tree But it helped me, anyway: I saw there is an "empty" case in the str_item declaration. For my use case, it does the job. (They are still errors left, but I saw where they are documented --about the EXTEND statement changes). > the following quotation was available in camlp4 3.09, but not in the 3.10 > version: > <:str_item< declare $list:stl$ end >>: declare. > [...] > I'd suggest you either use a module as I did above to emulate the "declare" > behavior, or that you declare everything at the top level (have a look at > str_items in the Camlp4OCamlRevisedParser if you need inspiration). I'll do that if I need to. > Hope this helps, It did. Thanks. Loup