From: Sylvain Le Gall <sylvain@le-gall.net>
To: caml-list@inria.fr
Subject: [Caml-list] Re: oasis help: what to put in the _oasis file so that files are preprocessed
Date: Fri, 16 Mar 2012 08:19:17 +0000 (UTC) [thread overview]
Message-ID: <slrnjm5ts5.7tu.sylvain@gallu.homelinux.org> (raw)
In-Reply-To: <4F62D213.6090307@riken.jp>
Hello,
On 16-03-2012, Francois Berenger <berenger@riken.jp> 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)
Cheers,
Sylvain Le Gall
--
Linkedin: http://fr.linkedin.com/in/sylvainlegall
Start an OCaml project here: http://forge.ocamlcore.org
OCaml blogs: http://planet.ocamlcore.org
next prev parent reply other threads:[~2012-03-16 8:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-16 5:39 [Caml-list] " Francois Berenger
2012-03-16 8:19 ` Sylvain Le Gall [this message]
2012-03-21 7:28 ` [Caml-list] " Francois Berenger
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=slrnjm5ts5.7tu.sylvain@gallu.homelinux.org \
--to=sylvain@le-gall.net \
--cc=caml-list@inria.fr \
/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