Embedded Scripting Languages...

Started by
8 comments, last by x19er 21 years, 5 months ago
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?
John Lagerquist"The point of a journey is not to arrive..." (Neil Peart)
Advertisement
search the forum theres always a post going on about using scripting. off the top of my head I''d say python.
If the search feature was working I would... I will look into Python.
John Lagerquist"The point of a journey is not to arrive..." (Neil Peart)
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.
Opps yeah that never works
What about Seer?
---------------------http://www.stodge.net
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
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..
Look at Guile for embedding Lisp. If you''re going to use Python, check out Boost''s Python library.
Has anyone played with SimKin? http://www.simkin.co.uk/

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

John
John Lagerquist"The point of a journey is not to arrive..." (Neil Peart)

This topic is closed to new replies.

Advertisement