caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Martin Jambon <martin_jambon@emailuser.net>
To: Christophe Raffalli <christophe.raffalli@univ-savoie.fr>
Cc: caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] camlp4 char stream
Date: Sun, 11 Sep 2005 14:51:10 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.63.0509111448570.5635@droopy> (raw)
In-Reply-To: <43249158.4070900@univ-savoie.fr>

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


  reply	other threads:[~2005-09-11 21:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-11 20:19 Christophe Raffalli
2005-09-11 21:51 ` Martin Jambon [this message]
2005-09-12  5:39   ` [Caml-list] " Christophe Raffalli
2005-09-12  6:40     ` Martin Jambon
2005-09-12 13:27     ` Olivier Andrieu
2005-09-12 22:31     ` Pietro Abate

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.63.0509111448570.5635@droopy \
    --to=martin_jambon@emailuser.net \
    --cc=caml-list@inria.fr \
    --cc=christophe.raffalli@univ-savoie.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).