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.
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.
Lambda ::= "fun" "(" [variable] ("," variable)* ")" block
Creates an anonymous function (sometimes called a lambda).
In-place Vector ::= "[" [expression ("," expression)*] "]"
In-place Ranged Vector ::= "[" value ".." value "]"
Creates a vector over a range (eg. 1..10)
In-place Map ::= "[" (string ":" expression)+ "]"