melange-re / melange

A mixture of tooling combined to produce JavaScript from OCaml & Reason
https://melange.re
Other
846 stars 52 forks source link

Create melange-ppx as standalone ppx rewriter #463

Closed jchavarri closed 1 year ago

jchavarri commented 1 year ago

There are a number of syntax transformations that Melange does internally, for example:

The main entry point is bs_builtin_ppx.ml.

For merlin to work properly, we currently run melc as ppx from dune (see https://github.com/ocaml/dune/pull/6476). Ideally in the future there should be a melange-ppx that allows to do this processing like with any other ppx, so that merlin doesn't require any explicit hacks to work with Melange.

anmonteiro commented 1 year ago

this was done in #534