Browse thread
[Caml-list] Ensemble release 1.31
-
Ohad Rodeh
-
Christophe Raffalli
-
Daniel de Rauglaudre
-
Christophe Raffalli
- Daniel de Rauglaudre
-
Christophe Raffalli
-
Daniel de Rauglaudre
-
Christophe Raffalli
[
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: | Daniel de Rauglaudre <daniel.de_rauglaudre@i...> |
| Subject: | Re: [Caml-list] camlp4 + another preprocessor |
Hi,
On Thu, Nov 29, 2001 at 03:31:32AM +0100, Christophe Raffalli wrote:
> ça pourrait marcher avec camlp4o -impl - qui lit l'entré standard
> (c'est pas documenté ? mais ça semble marcher ?)
Yes, it works, but the problem is neither camlp4 nor sed, but the pipe:
sed ... | camlp4o foo.ml
camlp4o ... | sed foo.ml
In these commands, the input file is not applied to the first command,
the pipe is unuseful. And I am not sure that it is a good idea to ask
ocaml to look at the string parameter. What it does is:
Sys.command (the_pp_string_parameter ^ " " ^ the_input_file)
If you need sed just to define constants, it is possible with camlp4
alone. Well, I can add a system of macros like #define of C. Like that,
you would not need to program it, but just adding the good predefined
camlp4 cmo file. I am going to think of it.
--
Daniel de RAUGLAUDRE
daniel.de_rauglaudre@inria.fr
http://cristal.inria.fr/~ddr/
-------------------
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