caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Sylvain Le Gall <sylvain@le-gall.net>
To: caml-list@inria.fr
Subject: [Caml-list] Re: oasis and camlp4
Date: Mon, 28 Mar 2011 22:16:47 +0000 (UTC)	[thread overview]
Message-ID: <slrnip226f.78h.sylvain@gallu.homelinux.org> (raw)
In-Reply-To: <4E84BA17-E496-4039-842C-B54E18B22E86@gmail.com>

Hello,

On 28-03-2011, Joel Reymont <joelr1@gmail.com> wrote:
> How do you integrate Oasis with camlp4, for example, to make the
> following comment at the beginning of a file take effect?
>
> (* pp camlp4o pa_labelscope.cmo pa_openin.cmo *)
>
>

For now, this kind of syntax extension has to be handled directly into
the _tags file of ocamlbuild. There will probably be a native support in
oasis 0.3.0.

The solution for now is, considering that pa_labelscope.cmo and
pa_openin.cmo are provided by the findlib package piqi.camlp4:

[...]
# OASIS_STOP

"myfile.ml": syntax_camlp4o, pkg_piqi.camlp4


Adding this line enables the syntax extension. You should also 
"BuildDepends: piqi", to notify your dependency on the package (but
don't BuildDepends on piqi.syntax, because piqi.syntax is in between a
build tools and build depends).

Cheers,
Sylvain Le Gall
-- 
My company: http://www.ocamlcore.com
Linkedin:   http://fr.linkedin.com/in/sylvainlegall
Start an OCaml project here: http://forge.ocamlcore.org
OCaml blogs:                 http://planet.ocamlcore.org



  reply	other threads:[~2011-03-28 22:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-28 21:19 [Caml-list] " Joel Reymont
2011-03-28 22:16 ` Sylvain Le Gall [this message]
2011-03-29  2:44 ` Guillaume Yziquel
2011-03-29  2:57   ` Guillaume Yziquel
2011-03-29  7:50   ` [Caml-list] [was: oasis and camlp4] libpcre.so.0 No such file or directory Sylvain Le Gall

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=slrnip226f.78h.sylvain@gallu.homelinux.org \
    --to=sylvain@le-gall.net \
    --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).