Browse thread
AGI research using ocaml
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Andre Nathan <andre@d...> |
| Subject: | Re: [Caml-list] AGI research using ocaml |
On Sat, 2010-03-13 at 17:39 +0200, Eray Ozkural wrote: > Thanks for the suggestion. Perhaps it is possible to use the toplevel > on a string based file? Then, there wouldn't be the I/O overhead at > least, just buffering overhead. For some reason I can't find the > documentation for this. It's weird. :/ I used to write ocaml libraries > back in 2002 and still not an ocaml hacker! Heh :) Eray, Yes, you can find an "eval" function here, which uses Toploop.execute_phrase: http://pleac.sourceforge.net/pleac_ocaml/strings.html#AEN68 The docs for Toploop are in toplevel/toploop.mli in the OCaml source. Andre