Jump to content
  • Advertisement
Sign in to follow this  
Basiror

scripting language with c++ like syntax?

This topic is 4532 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

Advertisement
squirrel.

But i am having serious troubles with embedding it, if you find any good sources, let me know.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Angelscript: http://www.angelcode.com/angelscript

Share this post


Link to post
Share on other sites
Thx guys I need to read up the feature sets of the individual languages before I decide for one

thx

Share this post


Link to post
Share on other sites
Yeah, Squirrel is really nice, especially Sqplus/SquirrelPlus (By John Schultz :D), I literally got it up and running within a minute of downloading it :') It's built with lua's faults in mind.

Share this post


Link to post
Share on other sites
Do you want C++-like syntax or C++-syntax? If the latter, check out CINT (http://root.cern.ch/root/Cint.html), a C++-Interpreter, which is somewhere around 90%-compliant. But beware, it's a mighty tool.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Quote:
Original post by Basiror
Hi do you know any scripting languages that use the c++ syntax?


Is there any comprehensive overview of the the various most popular scripting languages (suited for embedding) and their major features available? Or maybe even some searchable database, where you could search for certain characteristics (i.e. license,ECMA-like,OO,concurrency etc.)?

Thanks

Share this post


Link to post
Share on other sites
I'd question WHY you want a C++ syntax in the first place...

You might want to ask yourself a couple of questions:

- Who's using the system? Unless it's all programmers, C++ syntax can be very painfull (i.e. artists, designers, scripters).

- What's the reason for moving stuff to script? There are some good reasons (run-time recompile, data-driven binding, etc), but by going for a very C++ like langauge, you're loosing the higher level functionality from languages like Python or Lua.

- At the same time you loose the kick-ass debugger you're used to in C++, and probably loose some of your speed as well.

You might be better off using some other option:
- Higher level language (Lua, Python, or even a functional language)
- Run-time linked DLLs; combined with dynamic loading/unloading you can get run-time recompile, while at the same time keeping the debugger and the C++ speed
- If you're running on .NET, you could consider going for C# as your scripting language; there's a sample of how to do that in the DX SDK.... might be worth doing.


Good luck,

Allan

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!