caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jean-Christophe Filliatre <Jean-Christophe.Filliatre@lri.fr>
To: "Chris GauthierDickey" <chrisg@cs.uoregon.edu>
Cc: <caml-list@inria.fr>
Subject: Re: [Caml-list] scripting ocaml from inside of ocaml
Date: Tue, 1 Jul 2003 11:47:59 +0200	[thread overview]
Message-ID: <16129.22735.42503.470810@gargle.gargle.HOWL> (raw)
In-Reply-To: <001001c33ccc$5e878300$a806df80@chrisgd>


Chris GauthierDickey writes:
 > 
 >   I've searched the FAQs, manuals, and mailing lists to no avail. I have an
 > application that I'm writing in ocaml, and I need to do some scripting for
 > the program. I'd like to use ocaml as the scripting language. I've seen
 > references to using ocaml to interpret scripts from files, etc, but these
 > all assume that your environment is closed to the scripting. In particular,
 > I would like to be able to use ocaml to interpret scripts, have scripts
 > refer to objects that I import into their environment, and be able to take
 > values from their bindings in the scripts environment and use them in my
 > ocaml code.

There may  be another solution  to your problem  if you are  fine with
running bytecode only:  you can build your program on  top of an ocaml
toplevel (with ocamlmktop) and  then use Topdirs.dir_use (the function
which realizes #use in the toplevel) to interpret your ocaml scripts.

Hope this helps,
-- 
Jean-Christophe Filliâtre (http://www.lri.fr/~filliatr)

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


      parent reply	other threads:[~2003-07-01  9:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-27 16:51 Chris GauthierDickey
2003-06-27 18:00 ` Yamagata Yoriyuki
2003-06-28  0:47   ` [Caml-list] Operation complexity Zed Sereg
2003-06-28  1:17     ` Karl Zilles
2003-07-01  9:47 ` Jean-Christophe Filliatre [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=16129.22735.42503.470810@gargle.gargle.HOWL \
    --to=jean-christophe.filliatre@lri.fr \
    --cc=caml-list@inria.fr \
    --cc=chrisg@cs.uoregon.edu \
    /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).