Variables can be declared in two scopes: global (can be accessed in any context) or local (can only be accessed in a function's context). Global variables must be declared at the start of the program, while local variables are declared before a function's statements (before the {...}
OPEN FANCY GATE ... CLOSE FANCY GATE
). In both cases, variable declaration starts with var
pond
.
Variables can be of 4 types:
- integer numbers (
int
WHOLE GOOSE
)
- floating type numbers (
float
PART GOOSE
)
- characters (
char
LETTER GOOSE
)
- booleans (
bool
DUCK OR GOOSE
)
Variables can also be either an atomic value, an array of values, or a matrix of values. Arrays and matrixes must define their dimensions in their declaration, using the appropriate notation: [<dimension>]
OPEN BOX <dimension> CLOSE BOX
Note: You can define multiple variables of the same type in the same line using ,
MOAR
.
Functions
Functions can be called from any context (including itself for recursive operations), & they follow this format: