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 discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id E6A2FBC69 for ; Tue, 1 May 2007 18:27:12 +0200 (CEST) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.228]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l41GRBoU027936 for ; Tue, 1 May 2007 18:27:11 +0200 Received: by nz-out-0506.google.com with SMTP id l8so2427662nzf for ; Tue, 01 May 2007 09:27:10 -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=HaL0umsbQ/ZzJrrIg3yrR6a8eG7bl3dmF1JaQQjleEFidSbPrVkv9yITzWNr8dgT4vh6q2pO/FrEB1aVTVh1VrFO34LCB2GXnLP+4FDvohfv9oReGNiuHDIPEOnVXd+Q+6zrA1sCNDef/cMb1q3BXUQ+zbItfQtYrySgXhMN0ss= 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=RbTgV+B9gdbxb0O2ialovo3AfzyFYlts52+d/3eISKgZdTXk11c+Zr7b6NohtvKXM2+nBEef8mSmtDx7eVn8dn9LUYK1wGfWtOGvb5QhhbDdg629XjdICZ3cSq+gFZ9C9Ad7ZOP95EXVswUiWvtCfx4pt+SEnnzw18LIA89yhLs= Received: by 10.114.211.1 with SMTP id j1mr2446130wag.1178036830237; Tue, 01 May 2007 09:27:10 -0700 (PDT) Received: by 10.114.183.15 with HTTP; Tue, 1 May 2007 09:27:10 -0700 (PDT) Message-ID: Date: Tue, 1 May 2007 18:27:10 +0200 From: "Nicolas Pouillard" To: "Joel Reymont" Subject: Re: Upgrading sexplib-2.7.0 to camlp4 3.10 Cc: "Caml List" In-Reply-To: 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> <08610813-0F6F-4BC4-BB22-42FB0CF5EC84@gmail.com> X-j-chkmail-Score: MSGID : 46376A5F.000 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 46376A5F.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; camlp:01 variants:01 constructors:01 constr:01 camlp:01 variants:01 wrote:01 partial:01 modules:02 poly:02 ast:02 loc:03 loc:03 upgrading:06 apparently:08 On 5/1/07, Joel Reymont wrote: > RfTag is gone, apparently. How do you process variants then? > > The only reference to constructors I could find is with_constr in > Camlp4Ast.partial.ml. It's applicable to modules, apparently. For variants you have: type, t ::= ... | `id | `id of t | `id of & t | t & t << `id >> was encoded as RfTag(_loc, true, []) << `id of t1 & ... & tN >> by RfTag(_loc, false, [t1; ...; tN]) << `id of & t1 & ... & tN >> by RfTag(_loc, true, [t1; ...; tN]) However I suggest you comment that part and try to go further with poly variants at a first glance. -- Nicolas Pouillard