ChaiScript is an embedded scripting language designed from the ground up to directly target C++ and take advantage of modern C++ development techniques. Being a native C++ application, it has some advantages over existing embedded scripting languages. It uses a header-only approach, which makes it easy to integrate with existing projects. It maintains type safety between your C++ application and user scripts. It supports a variety of C++ techniques including callbacks, overloaded functions, class methods, and STL containers.
| Tags | scripting language embeddable programming language |
|---|---|
| Licenses | BSD Revised |
| Operating Systems | Linux Windows Mac OS X |
| Implementation | C++ Boost c++11 |
| Translations | English |
Recent releases


Release Notes: This release is in the C++11 series, supporting gcc and llvm. It adds support for automatic conversion of arithmetic types when possible and when no ambiguous method dispatch exists. Initial support for MinGW 4.7 with C++11 (ChaiScript 5.2.0) has been added.


Release Notes: This release adds support for automatic conversion of arithmetic types when possible and when no ambiguous method dispatch exists.


Release Notes: This release requires a C++11 compliant compiler. LLVM and GCC are currently supported. Error reporting is now greatly enhanced with the ability to show the complete stack trace and offending code for an error. Integer constants now autosize to match the C++ language standard. An "f" suffix was added for floating point values, and "u," "l," and, "ll" have been added for integer constants.


Release Notes: Error reporting is now greatly enhanced with the ability to show the complete stack trace and offending code for an error. Integer constants now autosize to match the C++ language standard. An "f" suffix was added for floating point values, and "u," "l," and, "ll" have been added for integer constants.


Release Notes: ChaiScript 5.0.0 requires a C++11-compliant compiler. Either clang 3.1 or g++ 4.5 currently work. This release completely drops the need for Boost. The ChaiScript standard library can now (optionally) be compiled separately, cutting compile time in half. Much better runtime error reporting is now available. Performance has increased by about 25%.
Recent comments
08 Dec 2009 07:18
Oops - it seems Chaiscript makes you register every method that you want exposed: www.chaiscript.com/nod...
08 Dec 2009 07:11
I've just noticed chaiscript - elanthis, obviously lots of people wrote scripting languages in C++, but how many scripting languages give you access to all C++ objects, as Jython gives you access to all Java objects - without writing wrapper code.
23 Sep 2009 20:37
It's pretty silly to claim that this is possibly the first script language to target C++. There are dozens of them. Heck, I've written 3, one of which was posted here on Freshmeat years and years ago. ChaiScript may be one of the better ones out there (or not, I don't know -- haven't really looked into it much yet), but it's definitely not even remotely close to the first. :)