caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] oasis help: what to put in the _oasis file so that files are preprocessed
@ 2012-03-16  5:39 Francois Berenger
  2012-03-16  8:19 ` [Caml-list] " Sylvain Le Gall
  0 siblings, 1 reply; 3+ messages in thread
From: Francois Berenger @ 2012-03-16  5:39 UTC (permalink / raw)
  To: caml-list

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Caml-list] Re: oasis help: what to put in the _oasis file so that files are preprocessed
  2012-03-16  5:39 [Caml-list] oasis help: what to put in the _oasis file so that files are preprocessed Francois Berenger
@ 2012-03-16  8:19 ` Sylvain Le Gall
  2012-03-21  7:28   ` Francois Berenger
  0 siblings, 1 reply; 3+ messages in thread
From: Sylvain Le Gall @ 2012-03-16  8:19 UTC (permalink / raw)
  To: caml-list

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] Re: oasis help: what to put in the _oasis file so that files are preprocessed
  2012-03-16  8:19 ` [Caml-list] " Sylvain Le Gall
@ 2012-03-21  7:28   ` Francois Berenger
  0 siblings, 0 replies; 3+ messages in thread
From: Francois Berenger @ 2012-03-21  7:28 UTC (permalink / raw)
  To: caml-list

On 03/16/2012 05:19 PM, Sylvain Le Gall wrote:
> 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)

Thanks, that fixed my problem.

> Cheers,
> Sylvain Le Gall


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-03-21  7:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-16  5:39 [Caml-list] oasis help: what to put in the _oasis file so that files are preprocessed Francois Berenger
2012-03-16  8:19 ` [Caml-list] " Sylvain Le Gall
2012-03-21  7:28   ` Francois Berenger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).