Version française
Home     About     Download     Resources     Contact us    
Browse thread
OCaml expression evaluated in a OCaml program
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Robert Roessler <roessler@r...>
Subject: Re: [Caml-list] OCaml expression evaluated in a OCaml program
Jon Harrop wrote:

> ...
> If you don't really want to execute ocaml code but, rather, simple expressions 
> then you can write your own interpreter quite easily. Many tutorials cover 
> this. If you want to provide access to a few calls in your interpreter then 
> you can simply implement them in your own little language. There are many 
> tutorials on ocaml which describe simple interpreters.

Or there is Ocs (http://will.iki.fi/software/ocs/) - from their page:

"Ocs is an implementation of Scheme, as defined by R5RS. It is
implemented entirely in OCaml and is suitable for embedding in OCaml
programs. It is free, open source software, distributed under a
permissive (two-clause) BSD-style license."

Robert Roessler
robertr@rftp.com
http://www.rftp.com