caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Andre Nathan <andre@digirati.com.br>
To: Eray Ozkural <examachine@gmail.com>
Cc: caml-list <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] AGI research using ocaml
Date: Sat, 13 Mar 2010 12:56:57 -0300	[thread overview]
Message-ID: <1268495817.1962.9.camel@homesick> (raw)
In-Reply-To: <320e992a1003130739x15a49d57q1adda556a2237df6@mail.gmail.com>

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


      reply	other threads:[~2010-03-13 15:56 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-13 10:29 Eray Ozkural
2010-03-13 13:21 ` [Caml-list] " blue storm
2010-03-13 13:38   ` pierre.chambart
2010-03-13 14:01     ` Eray Ozkural
2010-07-29 22:44       ` Eray Ozkural
2010-03-13 15:48     ` Eray Ozkural
2010-03-13 16:00       ` blue storm
2010-03-13 16:57         ` Eray Ozkural
2010-03-13 14:00   ` Eray Ozkural
2010-03-13 14:06     ` Basile Starynkevitch
2010-03-13 14:58       ` Eray Ozkural
2010-03-13 15:36         ` Basile Starynkevitch
2010-03-14 19:38     ` Stefan Monnier
2010-03-13 15:38   ` [Caml-list] " Eliot Handelman
2010-03-13 15:41     ` Eray Ozkural
2010-03-13 15:02 ` Andre Nathan
2010-03-13 15:39   ` Eray Ozkural
2010-03-13 15:56     ` Andre Nathan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1268495817.1962.9.camel@homesick \
    --to=andre@digirati.com.br \
    --cc=caml-list@yquem.inria.fr \
    --cc=examachine@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).