Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Olivier Andrieu <andrieu@ijm.jussieu.fr>
To: skaller@ozemail.com.au
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Camlp4 integration
Date: Mon, 6 Oct 2003 10:45:21 +0200	[thread overview]
Message-ID: <16257.11169.586317.913000@akasha.ijm.jussieu.fr> (raw)
In-Reply-To: <1065299593.12873.8.camel@pelican>

 skaller [ 5 October 2003] :
 > On Sat, 2003-10-04 at 21:29, Alain.Frisch@ens.fr wrote:
 > > On 4 Oct 2003, skaller wrote:
 > > 
 > > > Just some notes on camlp4. One problem I have noticed
 > > > is that camlp4'd codes don't work so well with other
 > > > tools such as ocamldep and ocamldoc. Both these programs
 > > > parse Ocaml but can't load camlp4 to do the job.
 > > > [I think you have to use pr_o.cmo to print a standard
 > > > Ocaml file to use them?]
 > > 
 > > Both ocamldep and ocamldoc accept the -pp argument.
 > 
 > It isn't not documented?
 > 
 > > Sometimes, it would be more convenient to specify the syntax
 > > extensions directly in the Caml sources.
 > 
 > Yes, i think that would be nice.

You can almost do this since camlp4 recognizes the #load directive in
.ml files. That way you only put `-pp camlp4o' on the command line and
the particular syntax extension is in the .ml file. It simplifies
Makefiles a lot.

-- 
   Olivier

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


  reply	other threads:[~2003-10-06  8:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-03 17:11 [Caml-list] ANNOUNCE: OCaml and XML (OX v0.1) didier plaindoux
2003-10-04  3:16 ` [Caml-list] Camlp4 integration skaller
2003-10-04 11:29   ` Alain.Frisch
2003-10-04 20:33     ` skaller
2003-10-06  8:45       ` Olivier Andrieu [this message]
2003-10-07 10:19         ` Alain.Frisch

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=16257.11169.586317.913000@akasha.ijm.jussieu.fr \
    --to=andrieu@ijm.jussieu.fr \
    --cc=caml-list@inria.fr \
    --cc=skaller@ozemail.com.au \
    /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