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.2 required=5.0 tests=AWL,PORN_URL_SEX,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 4BC19BC69 for ; Mon, 30 Apr 2007 14:59:56 +0200 (CEST) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l3UCxtxd002760 for ; Mon, 30 Apr 2007 14:59:56 +0200 Received: by ug-out-1314.google.com with SMTP id k3so1030990ugf for ; Mon, 30 Apr 2007 05:59:55 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=HNOArn5+mw9GSUCN3alkhE2Eq6j6CoRbBhgElvbLSj1pzle7JvpncYzlFJF55/pP9ufGi/IB1tokXvQZ6w+BX0xaBdip3YkKCc/UxK+jje3zzg62025Dk4t1UF8lSsRbKyt71I5qr2Qsu+aOrpFLY1qHbphtyzUDRsbfW+Nwl8g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=pSgmYf7cbsQ5b0RY7J9NEXGRxQ5pMBqFuRxDNb6EH6p9S39xxfmWXH93eYLog4nhe+XtcC7IqqBgbGjpmVX9BbWG5mcnmwC6BQT+zqT/QwvOt2WfKJmskwaru1miAZAQ5YAf9Ps67EqT87mOEm/emCLKbj1vlR8ZmFz/vsQUAGU= Received: by 10.67.40.12 with SMTP id s12mr895854ugj.1177937995706; Mon, 30 Apr 2007 05:59:55 -0700 (PDT) Received: from ?192.168.1.34? ( [83.52.237.136]) by mx.google.com with ESMTP id o24sm12572777ugd.2007.04.30.05.59.53; Mon, 30 Apr 2007 05:59:55 -0700 (PDT) In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <255FA5A4-FF6D-4360-9CBF-77DD6EE07B26@gmail.com> Cc: "Caml List" Content-Transfer-Encoding: 7bit From: Joel Reymont Subject: Re: [Caml-list] camlp4 3.10: MLast.type_decl Date: Mon, 30 Apr 2007 13:59:50 +0100 To: "Nicolas Pouillard" X-Mailer: Apple Mail (2.752.3) X-j-chkmail-Score: MSGID : 4635E84B.000 on discorde : j-chkmail score : XXX : 5/20 1 0.000 -> 3 X-Miltered: at discorde with ID 4635E84B.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; camlp:01 mlast:01 decl:01 mlast:01 camlp:01 struct:01 sexp:01 ocaml:01 val:01 decl:01 expr:01 struct:01 2007,:98 wrote:01 caml-list:01 Nicolas, On Apr 30, 2007, at 1:47 PM, Nicolas Pouillard wrote: > MLast is the old module that is now replaced by Camlp4.PreCast.Ast Just what I've been looking for. module Ast = Struct.Camlp4Ast.Make Loc; > In fact pa_sexp_conv.ml is not yet up to date for OCaml 3.10. I'm trying to update it as a way of learning camlp4. The issue is with the following... val add_generator : string -> (MLast.type_decl -> (MLast.patt * MLast.expr) list * MLast.type_decl list) I'm looking at various *Ast* files under Camlp4/Struct/ but I can't figure out the types for the above. Could you point me in the right direction? Thanks, Joel -- http://wagerlabs.com/