English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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 <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