From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id OAA11396; Tue, 17 Jul 2001 14:40:17 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id OAA11479 for ; Tue, 17 Jul 2001 14:40:16 +0200 (MET DST) Received: from fichte.ai.univie.ac.at (fichte.ai.univie.ac.at [131.130.174.156]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f6HCdob04100; Tue, 17 Jul 2001 14:39:51 +0200 (MET DST) Received: (from markus@localhost) by fichte.ai.univie.ac.at (8.9.3/8.9.3/Debian 8.9.3-21) id OAA14334; Tue, 17 Jul 2001 14:39:46 +0200 Date: Tue, 17 Jul 2001 14:39:46 +0200 From: Markus Mottl To: Francois Pottier Cc: caml-list@inria.fr Subject: Re: [Caml-list] Some sugar for regexp matching using camlp4 Message-ID: <20010717143946.A13681@fichte.ai.univie.ac.at> References: <20010716175406.A25317@pauillac.inria.fr> <20010717123655.B9902@fichte.ai.univie.ac.at> <20010717141528.A10252@pauillac.inria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010717141528.A10252@pauillac.inria.fr>; from Francois.Pottier@inria.fr on Tue, Jul 17, 2001 at 14:15:28 +0200 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Tue, 17 Jul 2001, Francois Pottier wrote: > > Note that it should be possible to assert the required number of subgroups > > at compile-time if the user supplied a constant string: you'd only have > > to compile the pattern string to a regexp within the camlp4-rule and > > check things there. > > Sounds good, except this would require building a custom version of camlp4, > because it can't dynamically load the Pcre library (as far as I can tell). I am not a camlp4-guru, but if I am not mistaken, such extensions should be quite straightforward. If users have to preprocess their files anyway, they are probably indifferent to whether their preprocessor is the "plain vanilla" one or not. Maybe Daniel could tell us how to implement this extension with least effort? Regards, Markus Mottl -- Markus Mottl markus@oefai.at Austrian Research Institute for Artificial Intelligence http://www.oefai.at/~markus ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr