Many games and large applications in C/C++ embed a scripting language, so that game scripts can be changed quickly during development without requiring a full recompile. The language jx9 is one such language.
This has over 300 functions and 139 constants and is thread safe, iuncludes function ovcerloading, is dynamically typed. It's open sourced so if you project game etc is open source then no cost. If its a closed source then you need to license it commercially. It is remarkably powerful and the language is similar to C. Here's an example:
//Declare an empty JSON array
$num = [];
print "Enter a number (Decimal, Hex, Octal or Binary notation)\n";
//Populate the JSON array with the first entry
$num[] = (int)fgets(STDIN) ;
print "Another number\n";
$num[] = (int)fgets(STDIN) ;
print "Finally, one last number\n";
$num[] = (int)fgets(STDIN) ;
//show content
print "Before sorting\n";
print $num;
//Sort the array now
sort($num) ;
print "\nAfter sorting\n";
print $num;
- Permanent link added to Cross platform C Code Library


Very cool stuff David!
Is there any tutorial to start playing with Jx9?
Not yet, but I’ll publish one in a few days.
David
About C,C++, C# and Google Go