From mboxrd@z Thu Jan 1 00:00:00 1970 X-Sympa-To: caml-list@inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p73C3E5i031815 for ; Wed, 3 Aug 2011 14:03:14 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai8CAGo4OU7RVdy2mGdsb2JhbABCmBWHJwGIGQgUAQEBAQEICQ0HFCWBQAEBAQECARICLAEUBxILAQMBCwYFCw0NISEBAREBBQEKEgYTEggBB4dKBKJsCowxglSEeTuIbQIDBoY8BIJQkCuJa4JhPINe X-IronPort-AV: E=Sophos;i="4.67,310,1309730400"; d="scan'208";a="114858117" Received: from mail-vx0-f182.google.com ([209.85.220.182]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 03 Aug 2011 14:03:08 +0200 Received: by vxh10 with SMTP id 10so566863vxh.27 for ; Wed, 03 Aug 2011 05:03:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=ft8enL21TFngEv00lst1PE1AICBZWAsuvLv5MwYC6kk=; b=GkTw7z7aEOyF+D6NMYEwWLEgPJ2B3kBaYrOWy3K4blh8f/0AM3DCk2w5l4HJV5rdxb hzGcf1+dbKYYhg4YDts9efnyklgDXH0IdIZcdvw4SbQ3u05tsJW4EWT+PAWntP4uma4v GQtOq4sYUzQCHbHi7/eWY7dpjlt4I2Pvctrjw= Received: by 10.220.54.136 with SMTP id q8mr742881vcg.16.1312372987072; Wed, 03 Aug 2011 05:03:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.116.70 with HTTP; Wed, 3 Aug 2011 05:02:47 -0700 (PDT) In-Reply-To: References: From: Philippe Veber Date: Wed, 3 Aug 2011 14:02:47 +0200 Message-ID: To: Sylvain Le Gall Cc: caml-list@inria.fr Content-Type: multipart/alternative; boundary=485b39618be4b50fb404a998a5f5 X-Validation-by: philippe.veber@gmail.com Subject: Re: [Caml-list] Re: Oasis and camlp4of --485b39618be4b50fb404a998a5f5 Content-Type: text/plain; charset=ISO-8859-1 2011/8/3 Sylvain Le Gall > Hello, > > On 02-08-2011, Philippe Veber 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: > > > >: 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 > > : 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 > > --485b39618be4b50fb404a998a5f5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

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=3DISO-8859-1
>
> Well, it seems that I have a much simpler problem (and it is not relat= ed to
> camlp4of specifically): the only thing I'm missing is a '-synt= ax 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 Willia= m !
> ph.
>


Indeed, you need syntax_camlp4o (which is one of the two allowed synt= ax
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 e= xplanation.
=A0

You can get this extra modules, using extra tags

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

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

Full syntax support should be an oasis 0.3 feature.
Th= at is very good news.
Many thanks again,
ph.

=A0

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



--
Caml-list mailing list. =A0Subscription 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


--485b39618be4b50fb404a998a5f5--