Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
From: Martin Jambon <martin_jambon@e...>
Subject: Re: [Caml-list] camlp4 char stream
On Sun, 11 Sep 2005, Christophe Raffalli wrote:

> I would like to know how I can access directly the input char stream in 
> camlp4
>
> 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.

See paragraph "Do it yourself" at
http://wwwtcs.inf.tu-dresden.de/~tews/ocamlp4/camlp4-undoc.html#power



Martin

--
Martin Jambon, PhD
http://martin.jambon.free.fr