I'm interesting in using OCaml as a scripting language for an application written in C++. Similarly to how languages like Lua, Python, or JavaScript can be used.
Is there any library (like there is LuaJIT for Lua, CPython for Python, or V8 for JavaScript) that I can use to run and interace with OCaml?
You can either embed the toplevel (REPL) in your application, or embed the compiler and dynlink the generated code (this is how ocaml_plugin works). The toplevel is provided by the compiler-libs library installed with the compiler.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With