Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
From: Hendrik Tews <tews@t...>
Subject: Re: [Caml-list] Camlp4 in a Unix pipe
Alessandro Baretta <a.baretta@barettadeit.com> 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/argl.ml) but maybe it
was the other way round.

Bye,

Hendrik