caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Daniel de Rauglaudre <daniel.de_rauglaudre@inria.fr>
To: caml-list@inria.fr
Subject: Re: [Caml-list] camlp4 + another preprocessor
Date: Thu, 29 Nov 2001 10:10:40 +0100	[thread overview]
Message-ID: <20011129101040.D4695@verdot.inria.fr> (raw)
In-Reply-To: <3C059E04.64880847@univ-savoie.fr>; from Christophe.Raffalli@univ-savoie.fr on Thu, Nov 29, 2001 at 03:31:32AM +0100

Hi,

On Thu, Nov 29, 2001 at 03:31:32AM +0100, Christophe Raffalli wrote:

> ça pourrait marcher avec camlp4o -impl - qui lit l'entré standard 
> (c'est pas documenté ? mais ça semble marcher ?)

Yes, it works, but the problem is neither camlp4 nor sed, but the pipe:
       sed ... | camlp4o foo.ml
       camlp4o ... | sed foo.ml

In these commands, the input file is not applied to the first command,
the pipe is unuseful. And I am not sure that it is a good idea to ask
ocaml to look at the string parameter. What it does is:
       Sys.command (the_pp_string_parameter ^ " " ^ the_input_file)

If you need sed just to define constants, it is possible with camlp4
alone. Well, I can add a system of macros like #define of C. Like that,
you would not need to program it, but just adding the good predefined
camlp4 cmo file. I am going to think of it.

-- 
Daniel de RAUGLAUDRE
daniel.de_rauglaudre@inria.fr
http://cristal.inria.fr/~ddr/
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


      reply	other threads:[~2001-11-29  9:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-14 12:18 [Caml-list] Ensemble release 1.31 Ohad Rodeh
2001-11-28  0:53 ` [Caml-list] camlp4 + another preprocessor Christophe Raffalli
2001-11-28  9:38   ` Daniel de Rauglaudre
     [not found]     ` <3C05813F.52D9BE90@univ-savoie.fr>
     [not found]       ` <20011129023913.A4302@verdot.inria.fr>
2001-11-29  2:31         ` Christophe Raffalli
2001-11-29  9:10           ` Daniel de Rauglaudre [this message]

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=20011129101040.D4695@verdot.inria.fr \
    --to=daniel.de_rauglaudre@inria.fr \
    --cc=caml-list@inria.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).