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-23 (09:05)
From: Hendrik Tews <tews@t...>
Subject: Re: [Caml-list] Camlp4 in a Unix pipe
Alessandro Baretta <> writes:

   Cool command line! How did you discover the '-' option? As far as I
   can see it is not documented.
I believe I first tried and later found the following line 

    let ic = if name = "-" then stdin else open_in_bin name in

(in function parse_file in camlp4/camlp4/ but maybe it
was the other way round.