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 char stream
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-09-11 (20:19)
From: Christophe Raffalli <christophe.raffalli@u...>
Subject: camlp4 char stream

I would like to know how I can access directly the input char stream in 

i want a

c-code { ... }

producing an empty str_item, but consuming the c-code in the { ... "} 
and outputing it in a separate file. An easy way is to access directly 
the char stream, but I do not find it (actually, looking at the source 
it is not stored in an accessible variable.

Someonce see a solution, other that parsing a string ?

[ [ c_code STRING -> ... ] ] would be easy, but is not very satisfactory.