Browse thread
instanciation of functor using command line
-
Thomas Gazagnaire
-
Sébastien Hinderer
-
Jon Harrop
- Virgile Prevosto
-
Jon Harrop
-
Sébastien Hinderer
[
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: | 2007-08-20 (13:49) |
From: | Virgile Prevosto <virgile.prevosto@m...> |
Subject: | Re: [Caml-list] Re: instanciation of functor using command line |
Hello, Le lun 13 aoû 2007 08:53:36 CEST, Jon Harrop <jon@ffconsultancy.com> a écrit : > > Why not make a little (Caml) script that would parse the > > command-line (or an input file) and produce as output a file > > applying F to the selected implementations ? > > Parsing the command-line may not be that ugly: just define N lists, > > each containing the possible values for the module Mi, so that you > > just have to check that argument n is a member of the corresponding > > list. > > You could also write a camlp4 macro to generate the code for you. > In fact, I've written something like that some time ago. If someone is interested, I might try to find the code (and maybe adapt it to 3.10). -- E tutto per oggi, a la prossima volta. Virgile