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.0 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 BEC4BBC0A for ; Mon, 2 Apr 2007 14:24:22 +0200 (CEST) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l32COL9M030401 for ; Mon, 2 Apr 2007 14:24:22 +0200 Received: by ug-out-1314.google.com with SMTP id k3so1601212ugf for ; Mon, 02 Apr 2007 05:24:21 -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=UMic2LK8hyDZBc/apX67sm8KXN7r1+d0MnEqgSOrHZx+vXGcNbE78zFYDCInPCut5+Nh3G19zOyX0YVzOLC5j+urgxjp5XYQS86KG4kqurFQ0aXDeQtwOK2xSFKTj0sAyybn7q/R6T16qq9h0PmvGRDYpvaJv1038jUF2cdy4WI= 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=N4DpMLvl8kbUXNzGJnkUJvUeAQBeS0auKzvRCJjlJtlIqYHv/X0vqTzWhtRXA0taOPOr5q93EyeDt9h84oV5XEIuany6Z34UgngBycRbf5Wbvcji1mgsr5c+bGu6nX/RlDu1aheT4NAIk9HA3Q135nENt2R8lQsx/KVTH4Jl7mI= Received: by 10.66.249.16 with SMTP id w16mr4446364ugh.1175516661751; Mon, 02 Apr 2007 05:24:21 -0700 (PDT) Received: from ?192.168.1.34? ( [81.33.210.112]) by mx.google.com with ESMTP id m4sm5365237ugc.2007.04.02.05.24.17; Mon, 02 Apr 2007 05:24:20 -0700 (PDT) In-Reply-To: References: <5526ED79-3406-4700-9E95-20C631FE40BF@gmail.com> <428B8C56-8ADC-43ED-96D0-34B4341E7045@gmail.com> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <6451E47A-657C-4833-8402-66A874DFA824@gmail.com> Cc: "Caml List" Content-Transfer-Encoding: 7bit From: Joel Reymont Subject: Re: [Caml-list] Help with new camlp4 Date: Mon, 2 Apr 2007 13:24:16 +0100 To: "Nicolas Pouillard" X-Mailer: Apple Mail (2.752.3) X-j-chkmail-Score: MSGID : 4610F5F5.000 on discorde : j-chkmail score : XXX : 5/20 1 0.000 -> 3 X-Miltered: at discorde with ID 4610F5F5.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; camlp:01 camlp:01 expr:01 expr:01 cmo:01 2007,:98 wrote:01 caml-list:01 patt:01 patt:01 expression:02 ast:02 ast:02 string:02 string:02 On Apr 2, 2007, at 10:28 AM, Nicolas Pouillard wrote: > Indeed http://gallium.inria.fr/~pouillar/camlp4-changes.html explain > some of these common changes. How do you do the following? Quotation.add "octalxml" (Quotation.ExAst (expand_expr_str,expand_patt)) ;; Quotation.add "octalfile" (Quotation.ExAst (expand_expr_file,expand_patt)) ;; I get an error: This expression has type string -> Camlp4.PreCast.Ast.expr but is here used with type Camlp4.PreCast.Quotation.Ast.expr Camlp4.PreCast.Quotation.expand_fun = Camlp4.PreCast.Quotation.Ast.Loc.t -> string option -> string -> Camlp4.PreCast.Quotation.Ast.expr Type string is not compatible with type Camlp4.PreCast.Quotation.Ast.Loc.t = Camlp4.PreCast.Loc.t make: *** [q_octal.cmo] Error 2 -- http://wagerlabs.com/