scripting language with c++ like syntax?

Started by
35 comments, last by HansDampf 17 years, 11 months ago
Hi do you know any scripting languages that use the c++ syntax? thx
http://www.8ung.at/basiror/theironcross.html
Advertisement
squirrel.

But i am having serious troubles with embedding it, if you find any good sources, let me know.
Game Monkey is pretty heavily based on C++ syntax.

http://www.somedude.net/gamemonkey/
Angelscript: http://www.angelcode.com/angelscript
Quote:Original post by Basiror
Hi do you know any scripting languages that use the c++ syntax?


If you have Visual Studio 2005 (VS8, Express version is free), you can download the Squirrel/SqPlus .zip, compile and run in about 5 minutes.

If using a gcc compiler and a Unix like environment (or cygwin on Win32), simple GNUMake files are provided.
Thx guys I need to read up the feature sets of the individual languages before I decide for one

thx
http://www.8ung.at/basiror/theironcross.html
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.
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.
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

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
------------------------------ BOOMZAPTry our latest game, Jewels of Cleopatra

This topic is closed to new replies.

Advertisement