<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2003/07/5d5ef5bdce03b911ac479fbca260d402"
  from="Jean-Christophe Filliatre &lt;Jean-Christophe.Filliatre@l...&gt;"
  author="Jean-Christophe Filliatre"
  date="2003-07-01T09:54:35"
  subject="Re: [Caml-list] scripting ocaml from inside of ocaml"
  prev="2003/07/38ff918930b48285a5e4944329d2855d"
  next="2003/07/cb5a4b17681aa3d47372f3e2b2c6ece0"
  prev-in-thread="2003/06/0f688969537131c0e4ddf87c12a1b7d4"
  next-in-thread="2003/06/83f69d349eb6acf55abed4bc5b4ffbd6"
  prev-thread="2003/06/8f907471516fcac44229f907f8206071"
  next-thread="2003/06/c1264bfdf998e6957d15eb4e1f7c12d3"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] scripting ocaml from inside of ocaml">
<msg 
  url="2003/06/0f688969537131c0e4ddf87c12a1b7d4"
  from="Chris GauthierDickey &lt;chrisg@c...&gt;"
  author="Chris GauthierDickey"
  date="2003-06-27T16:51:41"
  subject="[Caml-list] scripting ocaml from inside of ocaml">
<msg 
  url="2003/07/5d5ef5bdce03b911ac479fbca260d402"
  from="Jean-Christophe Filliatre &lt;Jean-Christophe.Filliatre@l...&gt;"
  author="Jean-Christophe Filliatre"
  date="2003-07-01T09:54:35"
  subject="Re: [Caml-list] scripting ocaml from inside of ocaml">
</msg>
<msg 
  url="2003/06/83f69d349eb6acf55abed4bc5b4ffbd6"
  from="Yamagata Yoriyuki &lt;yoriyuki@m...&gt;"
  author="Yamagata Yoriyuki"
  date="2003-06-27T18:00:16"
  subject="Re: [Caml-list] scripting ocaml from inside of ocaml">
<msg 
  url="2003/06/bcd67fc671cf25c05c4c90c4d5ab7bcd"
  from="Zed Sereg &lt;seregrog@h...&gt;"
  author="Zed Sereg"
  date="2003-06-28T00:47:52"
  subject="[Caml-list] Operation complexity">
<msg 
  url="2003/06/9712b73261287124c56a740f9a30122c"
  from="Karl Zilles &lt;zilles@1...&gt;"
  author="Karl Zilles"
  date="2003-06-28T01:16:33"
  subject="Re: [Caml-list] Operation complexity">
</msg>
</msg>
</msg>
</msg>
</thread>

<contents>

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

</contents>

</message>

