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 A8BAFBC69 for ; Thu, 29 Mar 2007 11:30:20 +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 l2T9UJLN016236 for ; Thu, 29 Mar 2007 11:30:19 +0200 Received: by wr-out-0506.google.com with SMTP id 69so141678wra for ; Thu, 29 Mar 2007 02:30:18 -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=dImwo/+G1ABvrS2kJY8KXjfpy57wj6+4MQIz7z438nTTj4PgGVbyzkHLTaOfuNs2dM4+4xL3aCXjL+5Vq2sgtJ7eW8smCa/UcAD0Zo+qck/79QVAkUxION+du0LKyy0x3wCp427BrtMvsNRYTdXnFdFXVfo6BxiSzQdW7H7cRh0= 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=re/k4taoy0dlrluTDZMIHT46lusGfAHBIKsipGr5xcI43OMdN9LfTPOQ1jg0wHykbfX9iLnvrZcfb1ojASTVM1Ui9exLDXNpdUz7lpKGy9BX1y0hokBIbEUzCsiMvw5zs1P8VsCNCxYPo7astFiMwSvwQJyTb+0B9G24UPAjsK0= Received: by 10.114.156.1 with SMTP id d1mr161392wae.1175160618136; Thu, 29 Mar 2007 02:30:18 -0700 (PDT) Received: by 10.114.183.4 with HTTP; Thu, 29 Mar 2007 02:30:17 -0700 (PDT) Message-ID: Date: Thu, 29 Mar 2007 11:30:17 +0200 From: "Nicolas Pouillard" To: "Harrison, John R" Subject: Re: [Caml-list] Hacking the lexer in the new camlp4 Cc: caml-list@yquem.inria.fr In-Reply-To: <509223F0BF55E74FA1247D17207E7A0C01433C3E@orsmsx419.amr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <509223F0BF55E74FA1247D17207E7A0C01433C3E@orsmsx419.amr.corp.intel.com> X-j-chkmail-Score: MSGID : 460B872B.001 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 460B872B.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; lexer:01 camlp:01 camlp:01 lexer:01 wrote:01 caml-list:01 ugly:03 nicolas:08 nicolas:08 john:09 john:09 basically:09 although:09 previous:09 i've:12 On 3/29/07, Harrison, John R wrote: > [...] > In the current camlp4, the only way I found to do this was basically > > to copy the existing lexer and edit it. Although it works, it's ugly > > and invariably means that I've had to change something with almost > > every new version of camlp4. Does the new camlp4 offer a nicer way of > > changing the lexer? How did you that in the previous one without copy/paste the old lexer? -- Nicolas Pouillard