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 Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id B0572BC69 for ; Tue, 1 May 2007 16:16:28 +0200 (CEST) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.231]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l41EGPeJ004440 for ; Tue, 1 May 2007 16:16:26 +0200 Received: by wr-out-0506.google.com with SMTP id l58so1823899wrl for ; Tue, 01 May 2007 07:16:25 -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=duxxS1UZFcVmP8M79eI5ReZvk3ZrqAJMb/RQ1VlBxEaMTvEAA0p4t25SEATW/bhizVP4/3DsCuUpEf5ZfGNtXgm+TbQiAbj2ZynpYrEmF5x4SViW/DuUed427NIXdBnRfUb4j0K/fWCQXdcdJih+Hbp00EHaUfV6rPtPmvNJCvo= 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=MbQHbh/fllBpe63hDM0jt9X+hzKZGmK3tJvpvNNPDP+yov1RFIBj+a7KSdjOFAU/DNdu+C6ncFukiBzwEco/AU7B/ZyvK6HJBxr0uhNPQkicqPLjT7qVQIW4ZGVo1z2WnuQgmNIac8SInloofFtdWRKV6ff0vuXi//ZOLTwCkYM= Received: by 10.114.39.16 with SMTP id m16mr2385489wam.1178028984909; Tue, 01 May 2007 07:16:24 -0700 (PDT) Received: by 10.114.183.15 with HTTP; Tue, 1 May 2007 07:16:24 -0700 (PDT) Message-ID: Date: Tue, 1 May 2007 16:16:24 +0200 From: "Nicolas Pouillard" To: "Joel Reymont" Subject: Re: Upgrading sexplib-2.7.0 to camlp4 3.10 Cc: "Caml List" In-Reply-To: <08610813-0F6F-4BC4-BB22-42FB0CF5EC84@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <220DCCF0-FD2D-4116-8E30-992C1AD3FE95@gmail.com> <72EB1952-F2C8-44AC-B1A6-7D8CE5F4A157@gmail.com> <08610813-0F6F-4BC4-BB22-42FB0CF5EC84@gmail.com> X-j-chkmail-Score: MSGID : 46374BB9.000 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 46374BB9.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; camlp:01 bindings:01 sexp:01 expr:01 expr:01 2007,:98 wrote:01 wrote:01 tuples:01 patt:01 patt:01 tuple:02 ast:02 match:02 match:02 On 5/1/07, Joel Reymont wrote: > > On May 1, 2007, at 2:35 PM, Nicolas Pouillard wrote: > > > So where you see (p, e) you can write <:binding< $p$ = $e$ >>. > > I took care of the issue by using the above at the source that > generated bindings. > > In the same sexp_of_tuple there's > > let matching = > ( > <:patt< ( $list:patts$ ) >>, > None, > expr > ) > in > `Match [matching] Here there is two things. The first one is about $list:patts$ that is like the problem with tuples, so you can use <:patt< ( $tup:Ast.paCom_of_list patts$ ) >>. The second one is about match cases, the old type was (patt * expr option * expr) list, now it's match_case match_case, mc ::= (* empty *) | mc1 | mc2 | p -> e | p when e1 -> e2 -- Nicolas Pouillard