creatures

This describes the known CAOS language as used in the Creatures Evolution Engine.

basic token types

These are the types of tokens which can be present in CAOS source files.

additional parameter types

These are types which aren't in the above list but can be used as parameters or return values.

languageness

Tokens are normally separated by whitespace of some kind. Newlines are just treated as normal whitespace.

However, there is no need for whitespace directly after a string, bytestring or decimal.

CAOS source files are made up of CAOS commands (functions without a return value), one after another.

Obviously you can use functions too.

conditions

Conditions compare variables/literals. For instance, 'VA00 > 4'.

Condition operators: <> = >= > <= <

Text equivalents (can be used interchangably): NE EQ GE GT LE LT

You can join conditions together with 'AND' or 'OR'.

They're evaluated simply from left to right.

When comparing integer and float, the integer is cast to float first (3.6 eq 4 is not true, but 4.0 eq 4 is).

Used with: DOIF, ELIF, UNTL.