Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Ensemble release 1.31
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ 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

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
       camlp4o ... | sed

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.

Bug reports:  FAQ:
To unsubscribe, mail  Archives: