Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
adding a scripting language to an ocaml program
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-07-03 (18:43)
From: Michael Ekstrand <michael@e...>
Subject: Re: adding a scripting language to an ocaml program
On 07/03/2010 02:34 PM, Martin DeMello wrote:
> Has much work been done on adding a scripting language to an OCaml
> program? I googled about a bit, but no one seems to be even talking
> about this - for example, if I wanted to do something emacslike with a
> core in OCaml and (ideally) some sort of scheme as a scripting engine
> in place of elisp, would that be easily doable?

The authors of C-- have implemented a Lua engine in OCaml, with a good,
high-level, type-safe interface for embedding it.  Look for 'lua-ml'.
There is also an OCaml implementation of Scheme called 'ocs'; I do not
have experience with it, so I cannot speak to its API style.  Finally,
there are OCaml bindings to the SpiderMonkey JavaScript engine.

So, it has been done, and ocs is probably closest to what you're looking

- Michael