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 camlp4of
Date: Wed, 3 Aug 2011 08:11:21 +0000 (UTC)	[thread overview]
Message-ID: <slrnj3i0l9.9th.sylvain@gallu.homelinux.org> (raw)
In-Reply-To: <CAOOOohTy1Tfrj1o6VAzLkDAPFM_HLRemXqVcxxpr1hTxFVPqpQ@mail.gmail.com>

Hello,

On 02-08-2011, Philippe Veber <philippe.veber@gmail.com> wrote:
>
> --bcaec54ee94203b60304a98d2f09
> Content-Type: text/plain; charset=ISO-8859-1
>
> Well, it seems that I have a much simpler problem (and it is not related to
> camlp4of specifically): the only thing I'm missing is a '-syntax camlp4o'
> when compiling the library. Indeed, adding:
>
><src/syntax/*>: syntax_camlp4o
>
> at the end of _tags fixes the problem. I must have forgotten an option in
> the _oasis file, but I can't see which. Anyway, many thanks William !
> ph.
>


Indeed, you need syntax_camlp4o (which is one of the two allowed syntax
tag with syntax_camlp4r, wrt to ocamlfind). You have done exactly what
is needed to enable it (add it to _tags after OASIS section).

In fact, camlp4of is just camlp4o with extra modules:

gildor@yotta(sid-amd64/chroot):~$ camlp4of -loaded-modules
Camlp4.Printers.OCaml
Camlp4GrammarParser
Camlp4ListComprenhsion
Camlp4MacroParser
Camlp4OCamlParser
Camlp4OCamlParserParser
Camlp4OCamlRevisedParser
Camlp4OCamlRevisedParserParser
Camlp4QuotationExpander

gildor@yotta(sid-amd64/chroot):~$ camlp4o -loaded-modules
Camlp4.Printers.OCaml
Camlp4OCamlParser
Camlp4OCamlParserParser
Camlp4OCamlRevisedParser
Camlp4OCamlRevisedParserParser

You can get this extra modules, using extra tags

<src/syntax/*>: syntax_camlp4o, pkg_camlp4.gramlib, pkg_camlp4.macro

Full syntax support should be an oasis 0.3 feature.

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-08-03  8:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-02 20:32 [Caml-list] " Philippe Veber
2011-08-02 21:54 ` William Le Ferrand
2011-08-02 22:22   ` Philippe Veber
2011-08-03  8:11     ` Sylvain Le Gall [this message]
2011-08-03 12:02       ` [Caml-list] " Philippe Veber

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=slrnj3i0l9.9th.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).