On the codegen side, you might be able to make use of the generic transform of GitHub - zth/rescript-embed-lang: A general purpose PPX and library for embedding other languages into ReScript, via code generation. to define an API. Would need to be felt out, though. More generally, ppxs were the typical was to work with the AST, but it involves dipping down into ocaml land.
↧
Output function name based on constant string
↧