From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p2SMH4OY030445 for ; Tue, 29 Mar 2011 00:17:04 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AigGAHoIkU1QW+UMgWdsb2JhbACYSox6FAEBFiYlxXKFaQSMd4Z/ X-IronPort-AV: E=Sophos;i="4.63,258,1299452400"; d="scan'208";a="79372088" Received: from lo.gmane.org ([80.91.229.12]) by mail3-smtp-sop.national.inria.fr with ESMTP; 29 Mar 2011 00:16:59 +0200 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q4Kk5-0003U1-T4 for caml-list@inria.fr; Tue, 29 Mar 2011 00:16:57 +0200 Received: from avelizy-155-1-73-45.w90-2.abo.wanadoo.fr ([90.2.24.45]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Mar 2011 00:16:57 +0200 Received: from sylvain by avelizy-155-1-73-45.w90-2.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Mar 2011 00:16:57 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr From: Sylvain Le Gall Date: Mon, 28 Mar 2011 22:16:47 +0000 (UTC) Message-ID: References: <4E84BA17-E496-4039-842C-B54E18B22E86@gmail.com> X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: avelizy-155-1-73-45.w90-2.abo.wanadoo.fr User-Agent: slrn/pre1.0.0-18 (Linux) Subject: [Caml-list] Re: oasis and camlp4 Hello, On 28-03-2011, Joel Reymont 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