caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Daniel de Rauglaudre <daniel.de_rauglaudre@inria.fr>
To: Markus Mottl <markus@mail4.ai.univie.ac.at>
Cc: OCAML <caml-list@inria.fr>
Subject: Re: [Caml-list] canonical camlp4-suffix?
Date: Tue, 4 Sep 2001 16:00:21 +0200	[thread overview]
Message-ID: <20010904160021.Q29263@verdot.inria.fr> (raw)
In-Reply-To: <20010904144335.B9377@chopin.ai.univie.ac.at>; from markus@mail4.ai.univie.ac.at on Tue, Sep 04, 2001 at 02:43:35PM +0200

Hi,

On Tue, Sep 04, 2001 at 02:43:35PM +0200, Markus Mottl wrote:

> The topmost line in a file could read like this:
>   (*pp camlp4o -I some_dir some_quots.cmo some_more_quots.cmo *)

It is almost my syntax! I use just:
   (* camlp4o -I some_dir some_quots.cmo some_more_quots.cmo *)

Therefore my shell script tests "(* camlp4o" in my source file with a simple
grep. With some appropriate "sed", I build the right command lines. And I
have also a "depend" entry which tests the .cmo files of this line to
create the dependencies.

> Then I just check for the 'pp' tag, and if it's there, I just take the
> contents of the comment as parameter for the -pp option. This could then
> also be a completely different preprocessor (cpp? ;).

Yes. If you need other preprocessors, you can do that. You can take the
version in camlp4 (tools/camlp4_comm.sh) or take the ideas in it, if you
want, no problem. It is implementable, since all compilation of camlp4
files use that (including the files not to be preprocessed).

-- 
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-09-04 14:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-03 15:58 Markus Mottl
2001-09-03 16:31 ` Clement Renard
     [not found] ` <Pine.BSF.3.96.1010903120605.42306B-100000@fledge.watson.org>
2001-09-03 16:36   ` Markus Mottl
     [not found] ` <FLELJKKJEIKNBDJGMIHKGEFKCAAA.franka@cs.uu.nl>
2001-09-03 20:26   ` Markus Mottl
2001-09-04  6:20 ` Daniel de Rauglaudre
2001-09-04 12:43   ` Markus Mottl
2001-09-04 14:00     ` 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=20010904160021.Q29263@verdot.inria.fr \
    --to=daniel.de_rauglaudre@inria.fr \
    --cc=caml-list@inria.fr \
    --cc=markus@mail4.ai.univie.ac.at \
    /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).