* [Caml-list] Static linking of ppx for iocamljs notebooks
@ 2015-01-10 2:12 Andy Ray
2015-01-10 4:33 ` Peter Zotov
0 siblings, 1 reply; 2+ messages in thread
From: Andy Ray @ 2015-01-10 2:12 UTC (permalink / raw)
To: Ocaml Mailing List
Hi,
Is it possible to statically link and initialise a ppx filter before
an OCaml top level runs? This is needed for IOCaml in it's javascript
variant.
Also, is there a general set of files that should be installed in
order for ppx to work for us static linker types?
Cheers,
Andy
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Caml-list] Static linking of ppx for iocamljs notebooks
2015-01-10 2:12 [Caml-list] Static linking of ppx for iocamljs notebooks Andy Ray
@ 2015-01-10 4:33 ` Peter Zotov
0 siblings, 0 replies; 2+ messages in thread
From: Peter Zotov @ 2015-01-10 4:33 UTC (permalink / raw)
To: Andy Ray; +Cc: Ocaml Mailing List, caml-list-request
On 2015-01-10 05:12, Andy Ray wrote:
> Hi,
>
> Is it possible to statically link and initialise a ppx filter before
> an OCaml top level runs? This is needed for IOCaml in it's javascript
> variant.
>
> Also, is there a general set of files that should be installed in
> order for ppx to work for us static linker types?
Hi,
Currently, ppx in the compiler is hardcoded to invoke external
processes, see Pparse.apply_rewriter. However, it is possible
to work around that by overriding:
* Ast_mapper.register_function, to remember the mapper
structure,
* and Toploop.preprocess_phrase, to apply the mapper
to the incoming phrase.
--
Peter Zotov
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-10 4:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-10 2:12 [Caml-list] Static linking of ppx for iocamljs notebooks Andy Ray
2015-01-10 4:33 ` Peter Zotov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox