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