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=0.0 required=5.0 tests=AWL 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 7E39BBC69 for ; Thu, 29 Mar 2007 17:11:44 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l2TFBgvc010954 for ; Thu, 29 Mar 2007 17:11:43 +0200 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by mga09.intel.com with ESMTP; 29 Mar 2007 08:11:40 -0700 Received: from orsmsx335.jf.intel.com ([10.22.226.40]) by fmsmga002.fm.intel.com with ESMTP; 29 Mar 2007 08:11:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: i="4.14,347,1170662400"; d="scan'208"; a="65875407:sNHT22533624" Received: from orsmsx419.amr.corp.intel.com ([10.22.226.88]) by orsmsx335.jf.intel.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 29 Mar 2007 08:11:38 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [Caml-list] Hacking the lexer in the new camlp4 Date: Thu, 29 Mar 2007 08:11:37 -0700 Message-ID: <509223F0BF55E74FA1247D17207E7A0C01433DE5@orsmsx419.amr.corp.intel.com> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [Caml-list] Hacking the lexer in the new camlp4 Thread-Index: Acdx5Omgg7Ms2j2uQnKzHGV4hvO2wgALwKVQ From: "Harrison, John R" To: "Nicolas Pouillard" Cc: "Harrison, John R" , X-OriginalArrivalTime: 29 Mar 2007 15:11:38.0784 (UTC) FILETIME=[8CA45200:01C77214] X-Miltered: at discorde with ID 460BD72E.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; lexer:01 camlp:01 camlp:01 lexer:01 modular:01 caml-list:01 ugly:03 indeed:07 john:09 john:09 curious:09 basically:09 although:09 previous:09 i've:12 | > 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? Indeed, that's exactly what I did in the old camlp4. But I am curious if the new camlp4 offers, or could offer, a more modular solution. John.