From mboxrd@z Thu Jan 1 00:00:00 1970 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 p738C4gX020124 for ; Wed, 3 Aug 2011 10:12:04 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArgFAHACOU5QW+UMgWdsb2JhbABCmEmPEhQBARYmJYFAAQEFVTQLGBwSEBEbGxmHbgK/RoZCBJADgniJa4Z5 X-IronPort-AV: E=Sophos;i="4.67,309,1309730400"; d="scan'208";a="114835366" Received: from lo.gmane.org ([80.91.229.12]) by mail1-smtp-roc.national.inria.fr with ESMTP; 03 Aug 2011 10:11:36 +0200 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QoWYB-0004gc-Hv for caml-list@inria.fr; Wed, 03 Aug 2011 10:11:35 +0200 Received: from ks368928.kimsufi.com ([94.23.39.26]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Aug 2011 10:11:35 +0200 Received: from sylvain by ks368928.kimsufi.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Aug 2011 10:11:35 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr From: Sylvain Le Gall Date: Wed, 3 Aug 2011 08:11:21 +0000 (UTC) Message-ID: References: X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: ks368928.kimsufi.com User-Agent: slrn/pre1.0.0-18 (Linux) Subject: [Caml-list] Re: Oasis and camlp4of 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 You can get this extra modules, using extra tags : 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