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 q2L7T6tQ015488 for ; Wed, 21 Mar 2012 08:29:06 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjMDAN2CaU+GoCGhmWdsb2JhbABEgxCxdoIYAQEBAQEICwsHFCeCCQEBBAE4QAYLCxgJFg8JAwIBAgFFEwYCAQGIAQULtzyNX4MiBIhUjQqFbYNfiVE X-IronPort-AV: E=Sophos;i="4.73,621,1325458800"; d="scan'208";a="150471770" Received: from postman1.riken.jp (HELO postman.riken.jp) ([134.160.33.161]) by mail1-smtp-roc.national.inria.fr with ESMTP; 21 Mar 2012 08:28:59 +0100 Received: from postman.riken.jp (postman1.riken.jp [127.0.0.1]) by postman.riken.jp (Postfix) with SMTP id 3F77832C0297 for ; Wed, 21 Mar 2012 16:28:57 +0900 (JST) Received: from [172.27.98.103] (rikad98.riken.jp [134.160.214.98]) by postman.riken.jp (Postfix) with ESMTPA id 3FE5432A008D for ; Wed, 21 Mar 2012 16:28:50 +0900 (JST) Message-ID: <4F698332.4060105@riken.jp> Date: Wed, 21 Mar 2012 16:28:50 +0900 From: Francois Berenger User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.27) Gecko/20120216 Thunderbird/3.1.19 MIME-Version: 1.0 To: caml-list@inria.fr References: <4F62D213.6090307@riken.jp> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.6.0.2009776, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2011.10.4.82414 Subject: Re: [Caml-list] Re: oasis help: what to put in the _oasis file so that files are preprocessed On 03/16/2012 05:19 PM, Sylvain Le Gall wrote: > Hello, > > On 16-03-2012, Francois Berenger wrote: >> Hello, >> >> Let's say I have this section in an _oasis file: >> >> --- >> Executable "Toto" >> Path: src >> MainIs: toto.ml >> BuildDepends: batteries >> BuildTools: ocamlbuild >> --- >> >> I'd like the .ml file to be preprocessed using: >> -pp 'camlp4o -parser Camlp4MacroParser' >> >> What should I add in the _oasis file to do this? >> >> Thanks a lot, >> F. >> > > For now, there is no native support of syntax directly inside _oasis. > However, you can add to _tags (outside OASIS_START/STOP section): > "src/oasis/OASISGettext.ml": syntax_camlp4o, pkg_camlp4.macro > (see > http://darcs.ocamlcore.org/cgi-bin/darcsweb.cgi?r=oasis/oasis;a=headblob;f=/_tags) Thanks, that fixed my problem. > Cheers, > Sylvain Le Gall