From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 1E545BB9D for ; Sun, 11 Sep 2005 23:52:24 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j8BLqN6X028469 for ; Sun, 11 Sep 2005 23:52:23 +0200 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id XAA21034 for ; Sun, 11 Sep 2005 23:52:23 +0200 (MET DST) Received: from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com [66.111.4.28]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j8BLqMvk028464 for ; Sun, 11 Sep 2005 23:52:22 +0200 Received: from frontend1.internal (mysql-sessions.internal [10.202.2.149]) by frontend1.messagingengine.com (Postfix) with ESMTP id 70135CCF1A7; Sun, 11 Sep 2005 17:52:20 -0400 (EDT) Received: from frontend2.messagingengine.com ([10.202.2.151]) by frontend1.internal (MEProxy); Sun, 11 Sep 2005 17:52:20 -0400 X-Sasl-enc: EYoeCb0s1cTxTPrQg0DT8pT48RTCUI1u8TcLiiW/3c4I 1126475538 Received: from [172.16.13.149] (burnham.ljcrf.edu [192.231.106.2]) by frontend2.messagingengine.com (Postfix) with ESMTP id AA0895703A8; Sun, 11 Sep 2005 17:52:16 -0400 (EDT) Date: Sun, 11 Sep 2005 14:51:10 -0700 (PDT) From: Martin Jambon X-X-Sender: martin@droopy To: Christophe Raffalli Cc: caml-list Subject: Re: [Caml-list] camlp4 char stream In-Reply-To: <43249158.4070900@univ-savoie.fr> Message-ID: References: <43249158.4070900@univ-savoie.fr> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Miltered: at concorde with ID 4324A717.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 4324A716.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 char:01 christophe:01 raffalli:01 char:01 parsing:01 tews:01 2005,:98 ...:98 ...:98 wrote:01 tu-dresden:01 jambon:01 jambon:01 string:03 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=disabled version=3.0.3 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