English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] Some sugar for regexp matching using camlp4
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-07-17 (12:40)
From: Markus Mottl <markus@m...>
Subject: Re: [Caml-list] Some sugar for regexp matching using camlp4
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

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