Re: Ocaml scripting

This is a discussion on Re: Ocaml scripting within the ml forums in Programming Languages category; 1391809388 Hello, Simon! You wrote on Mon, 7 Jul 2003 15:52:41 +0000 (UTC): SH> text files, returning an Ocaml function. Of course I could write my SH> own interpreter and mini-scripting language, but that seems a little SH> like overkill since it's gonna have a total of maybe two dozen SH> functions. Yon can use "traditional" way - integrate O'Caml with (for example) Tcl or Lua. SH> just make things rather more complicated than I would like to deal SH> with, what with having to hack the new toplevel into acting like a SH> game engine instead of a toplevel. ...

Go Back   Application Development Forum > Programming Languages > ml

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 07-08-2003, 11:11 AM
Anton Moscal
Guest
 
Default Re: Ocaml scripting

1391809388
Hello, Simon!
You wrote on Mon, 7 Jul 2003 15:52:41 +0000 (UTC):

SH> text files, returning an Ocaml function. Of course I could write my
SH> own interpreter and mini-scripting language, but that seems a little
SH> like overkill since it's gonna have a total of maybe two dozen
SH> functions.

Yon can use "traditional" way - integrate O'Caml with (for example) Tcl or
Lua.

SH> just make things rather more complicated than I would like to deal
SH> with, what with having to hack the new toplevel into acting like a
SH> game engine instead of a toplevel.

SH> So is there some nice easy way to do this, or shall I start writing
SH> an interpreter?

Yet another approach - use dynamic module loading and simply run ocamlc for
compiling scripts into loadable .cmo file

Anton



Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 03:41 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.