genjsapi is based on the following ideas:
All syntactic processing is done by authors of bindings: the client code is normal OCaml code and does not depend on custom syntax nor on JS-specific types.
genjsapi can be used in two complementary ways:
Generating .ml implementations from annotated .mli interfaces, in order to create the code for stub libraries.
As a ppx preprocessor on implementations to define local bindings.
Some ad hoc test to exercise various features.
An example of a self-contained program, a simple calculator, implementing local .bindings
jsofocaml: The compiler and runtime system on which genjsapi relies. (Note: genjsapi doesn't depend on jsofocaml's OCaml library, nor on its language extension.)
This genjsapi package is licensed by LexiFi under the terms of the MIT license.
See see Changelog
Contact: [email protected]