Archived

This topic is now archived and is closed to further replies.

x19er

Embedded Scripting Languages...

Recommended Posts

I am looking for an embedded scripting language to interface with my C++ code to allow user defined simulations, AI, etc. I have looked at Ruby but it does not appear to interface easily with C++. I want to able to call certain C++ class methods from the script language. Any suggestions?

Share this post


Link to post
Share on other sites
Your best bets are going to be Python, Ruby (the interface is chancy, but it CAN work), and (my favorite) Lua. Some people have also reported success embedding Perl, but IMHO that would be more trouble than it''s worth (the perl interpreter has a huge memory footprint).


Don''t listen to me. I''ve had too much coffee.

Share this post


Link to post
Share on other sites
Hey all,

Just curiouse as to how this embedded scripting works.

Could I say, write a few c++ classes etc. defining a little man and a map.

Then use scripting to call and manipulate these classes?

(i''ve got no idea)

cheers,
Fonz

Share this post


Link to post
Share on other sites
Does anyone know how to embed Lisp or Scheme in a C program? I know it can be done (the Gimp does it for instance), but I couldn''t find how to do it. XLisp was suggested, but I couldn''t find either examples or documentation for it..

Share this post


Link to post
Share on other sites