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
Camlp4 in a Unix pipe
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-11-22 (16:42)
From: Alessandro Baretta <a.baretta@b...>
Subject: Re: [Caml-list] Camlp4 in a Unix pipe
Hendrik Tews wrote:
> Alessandro Baretta <> writes:
>    Short of writing my own Pr_stdout module, is there any way to achieve
>    the result of interactively getting camlp4 to preprocess some code and
>    print it back to stdout?
> cat - | camlp4 pa_o.cmo pr_r.cmo -impl -

Cool command line! How did you discover the '-' option? As far as I can see it 
is not documented.