Archived

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

Embedded Scripting Languages...

This topic is 5552 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
search the forum theres always a post going on about using scripting. off the top of my head I''d say python.

Share this post


Link to post
Share on other sites
If the search feature was working I would... I will look into Python.

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
Has anyone played with SimKin? http://www.simkin.co.uk/

It looks like it may be what I am looking for.

John

Share this post


Link to post
Share on other sites