- 授权协议: BSD
- 开发语言: C/C++
- 操作系统: 跨平台
- 软件首页: http://chaiscript.com/
- 软件文档: http://chaiscript.com/docs.html
- 官方下载: https://github.com/ChaiScript/ChaiScript/releases
软件介绍
ChaiScript 是第一个也是目前唯一一个与C++的兼容性的脚本语言,受 ECMAScript 影响的嵌入式的功能性语言。
示例代码:
#include <chaiscript/chaicript.hpp>std::string helloWorld(const std::string &t_name)
{
return "Hello " + t_name + "!";
}
int main()
{
chaiscript::ChaiScript chai;
chai.add(chaiscript::fun(&helloWorld), "helloWorld");
chai.eval("puts(helloWorld(\"Bob\"));");
}
