User:Keyacom/sandbox/Thyme (Algodoo)

Thyme is a dynamically, weakly typed scripting language used in Algodoo.

Syntax
The syntax largely resembles C++, Java, JavaScript, and Go syntax. Semicolons are required after every but the last statement in a block. They are not required in the console too.

Notably, the ^ symbol indicates exponentiation.

Thyme only has eight keywords: true, false, null, undefined, +inf, -inf, NaN, and infix.

Data types
Thyme has six immutable primitive data types, two function types, and two structural types.


 * Primitive
 * int: 32-bit integer, corresponds to C++'s long type
 * float: IEEE 754 single-precision float (corresponds to C++'s float type)
 * string: corresponds to C++'s char * type
 * boolean: true and false
 * null
 * undefined
 * Function types
 * function (requires arguments)
 * block (no arguments)
 * Structures
 * list: immutable, ordered collection of mixed-type items
 * ClassObject: mutable, indexed collection of mixed-type items