ChaiScript is the first and only scripting language designed from the ground up with C++ compatibility and modern design in mind. It is an ECMAScript-inspired, embedded functional-like language.
ChaiScript is licensed under the BSD license.
ChaiScript is the first and only scripting language designed from the ground up with C++ compatibility and modern design in mind. It is an ECMAScript-inspired, embedded functional-like language.
ChaiScript is licensed under the BSD license.
Version: 3.1.0 Released: 6/18/2011
Changes since 3.0.0
Download it from github.
Excellent work! Thanks. I
Excellent work! Thanks.
I wait for the full documentation on scripting language.
Could you clarify what
Could you clarify what documentation you are looking for? The documentation currently posted is fairly robust.
Thanks,
Jason
Language Tutorial/Specification
BNF is not very easy to read so could you put a more comprehensive tutorial up. Also, With it being c-like could you put what features are NOT available in ChaiScript, which can be much more important really.Also! I cannot find out if I can cast.
In that vain, how would I go about the following (for example).
In c++ I have a function:
function(int a, double b) { /*BLAH*/ }In chai is write the following (which is wrong!):
It's much more useful to
It's much more useful to think of ChaiScript as C++ than as C like. That said, I could see adding a section on "what's not in ChaiScript."
Be sure to check out all of the relevant "ChaiScript Language" sections of the documentation too.
As far as your specific question, use the constructor syntax that you might use in C++:
-Jason