Embedded Scripting Languages...
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?
search the forum theres always a post going on about using scripting. off the top of my head I''d say python.
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.
Don''t listen to me. I''ve had too much coffee.
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
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement