caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Philippe Veber <philippe.veber@gmail.com>
To: Sylvain Le Gall <sylvain@le-gall.net>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Re: Oasis and camlp4of
Date: Wed, 3 Aug 2011 14:02:47 +0200	[thread overview]
Message-ID: <CAOOOohSY_d9Ui4Ai2ke3s57FRGRAvc+RQG9GOL2W3rHzc6UwFA@mail.gmail.com> (raw)
In-Reply-To: <slrnj3i0l9.9th.sylvain@gallu.homelinux.org>

[-- Attachment #1: Type: text/plain, Size: 2375 bytes --]

2011/8/3 Sylvain Le Gall <sylvain@le-gall.net>

> 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
>
I see, thanks for the explanation.


>
> You can get this extra modules, using extra tags
>
> <src/syntax/*>: syntax_camlp4o, pkg_camlp4.gramlib, pkg_camlp4.macro
>

Thanks William, Christophe and Sylvain !
The solution suggested by William is not that hackish, and I'm pretty happy
with it. That's incredible how oasis (with findlib and ocamlbuild) has made
starting an ocaml project easier.


>
> Full syntax support should be an oasis 0.3 feature.
>
That is very good news.
Many thanks again,
ph.



>
> 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
>
>
>
> --
> Caml-list mailing list.  Subscription management and archives:
> https://sympa-roc.inria.fr/wws/info/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>
>

[-- Attachment #2: Type: text/html, Size: 3979 bytes --]

      reply	other threads:[~2011-08-03 12:03 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     ` [Caml-list] " Sylvain Le Gall
2011-08-03 12:02       ` Philippe Veber [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=CAOOOohSY_d9Ui4Ai2ke3s57FRGRAvc+RQG9GOL2W3rHzc6UwFA@mail.gmail.com \
    --to=philippe.veber@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=sylvain@le-gall.net \
    /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).