Is it possible to use ppx_sexp_conv to generate source code?
I’m considering using s-expressions to interface between js_of_ocaml code and ReScript code, but there’s a question mark over the use of ppxes in ReScript long term (and apparently some short-term issues too).
If I could generate an .ml file from OCaml type definitions and use that on the ReScript side together with sexplib to read and write s-expressions, it seems it would almost eliminate the manual boilerplate interfacing effort compared with using say JSON. Of course there’s also the prospect of ReScript eventually dropping support for ML syntax, but I’m less concerned about that than their ppx support.
If not, is there any other means of doing something similar?