Browse thread
[Caml-list] Some sugar for regexp matching using camlp4
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| 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 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