Re: Ocaml scripting

This is a discussion on Re: Ocaml scripting within the ml forums in Programming Languages category; In article <bec509$7re$1 @ wolfberry.srv.cs.cmu.edu>, Simon H. <sheath @ mail.com> wrote: >Okay. I'm building a text-adventure engine in Ocaml, and basically, I >want certain features to be scriptable. Like, the game-writer can >write a function to trigger an event when certain criteria are met. >This, of course, means that it has to be able to load and /evaluate/ >text files, returning an Ocaml function. Of course I could write my >own interpreter and mini-scripting language, but that seems a little >like overkill since it's gonna have a total of maybe two dozen >functions. I've implemented a version of Lua for ...

Go Back   Application Development Forum > Programming Languages > ml

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 07-23-2003, 10:35 PM
Norman Ramsey
Guest
 
Default Re: Ocaml scripting

In article <bec509$7re$1@wolfberry.srv.cs.cmu.edu>,
Simon H. <sheath@mail.com> wrote:
>Okay. I'm building a text-adventure engine in Ocaml, and basically, I
>want certain features to be scriptable. Like, the game-writer can
>write a function to trigger an event when certain criteria are met.
>This, of course, means that it has to be able to load and /evaluate/
>text files, returning an Ocaml function. Of course I could write my
>own interpreter and mini-scripting language, but that seems a little
>like overkill since it's gonna have a total of maybe two dozen
>functions.


I've implemented a version of Lua for Objective Caml.
The implementation is called Lua-ML.
You can read a paper about it at

http://www.eecs.harvard.edu/~nr/pubs...-abstract.html

You can get the code from http://www.cminusminus.org/code.html

Lua is very popular in the gaming industry; there is lots of info at
www.lua.org.
--
Norman Ramsey
http://www.eecs.harvard.edu/~nr

Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 03:42 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.