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 354B3BC0A for ; Mon, 2 Apr 2007 14:30:28 +0200 (CEST) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l32CURYh031638 for ; Mon, 2 Apr 2007 14:30:27 +0200 Received: by ug-out-1314.google.com with SMTP id k3so1602730ugf for ; Mon, 02 Apr 2007 05:30:27 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:mime-version:in-reply-to:references:content-type:message-id:content-transfer-encoding:from:subject:date:to:x-mailer; b=h5u6Y11k44gXnsICgHd9kUNa2MlObmFEYMzG+8roloXAUmqvxP0ThAQLXDS5mO6leNet4LU72fTHN5rk8sf/ltSIG4h0gyu3raKtLKIotaKFPaILv+A+84k/KviLpN23hrTrcUPWE9HiWG4QJeqpmhKiLdZ+QN5oj3qPJxMC4zw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:mime-version:in-reply-to:references:content-type:message-id:content-transfer-encoding:from:subject:date:to:x-mailer; b=KNyoTDiRYWt7hpopCu9VKgIGRHMTzFiTW3aODwXjqG+vFu2AKw/1IjnWlm864+u0gxjci4G7PY5biooXgWT52UtkpvLsROaPVR+RPvKhP1Ic35l3otRBTlJMR5VWgPsp5dA4+yMQ1AMVLIcVCLzaQQO6rBO2fu7aQIu9ZQzQuOU= Received: by 10.66.242.20 with SMTP id p20mr4222981ugh.1175517027463; Mon, 02 Apr 2007 05:30:27 -0700 (PDT) Received: from ?192.168.1.34? ( [81.33.210.112]) by mx.google.com with ESMTP id 54sm7058547ugp.2007.04.02.05.30.25; Mon, 02 Apr 2007 05:30:26 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <6451E47A-657C-4833-8402-66A874DFA824@gmail.com> References: <5526ED79-3406-4700-9E95-20C631FE40BF@gmail.com> <428B8C56-8ADC-43ED-96D0-34B4341E7045@gmail.com> <6451E47A-657C-4833-8402-66A874DFA824@gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Joel Reymont Subject: Re: [Caml-list] Help with new camlp4 Date: Mon, 2 Apr 2007 13:30:26 +0100 To: Caml List X-Mailer: Apple Mail (2.752.3) X-j-chkmail-Score: MSGID : 4610F763.001 on discorde : j-chkmail score : XXX : 5/20 1 0.000 -> 3 X-Miltered: at discorde with ID 4610F763.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; camlp:01 expr:01 expr:01 2007,:98 wrote:01 caml-list:01 patt:01 patt:01 loc:03 loc:03 let:03 opt:05 apr:06 quotation:08 quotation:08 On Apr 2, 2007, at 1:24 PM, Joel Reymont wrote: > 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)) ;; expand_expr_str has to have a particular signature, i.e. let expand_str_expr loc loc_name_opt s and it doesn't. Working on it... -- http://wagerlabs.com/