chaiscript is a programming language created in 2009.
#393on PLDB | 15Years Old |
git clone https://github.com/ChaiScript/ChaiScript
Embedded Scripting Language Designed for C++
#include <chaiscript/chaiscript.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(R"(
puts(helloWorld("Bob"));
)");
}
Feature | Supported | Example | Token |
---|---|---|---|
Integers | ✓ | ||
Floats | ✓ | ||
Hexadecimals | ✓ |