About ChaiScript

ChaiScript is the first and only scripting language designed from the ground up with C++ compatibility in mind. It is an ECMAScript-inspired, embedded functional-like language.

ChaiScript is licensed under the BSD license.

Download

Version: 2.3.3 Released: 5/15/2010

Source
Windows
Linux

In-Place Creation

Anonymous Functions

Lambda ::= "fun" "(" [variable] ("," variable)*  ")" block

Creates an anonymous function (sometimes called a lambda).

Vector

In-place Vector ::= "[" [expression ("," expression)*]  "]"

Ranged Vector

In-place Ranged Vector ::= "[" value ".." value "]"

Creates a vector over a range (eg. 1..10)

Map

In-place Map ::= "[" (string ":" expression)+ "]"