Constants

Predefined constants

CYCLE

Maximum number of iterations in a cycle. By default, it is 1600000000.

DEPTH

Maximum nesting of executable blocks. Limits the recursion depth. By default, it is equal to 1000.

IOTA

The IOTA constant is used to automatically calculate the sequence of constants.

const IOTA * 2 {"a6}
ZERO // 0
TWO // 2
FOUR // 4
}

SCRIPT

The SCRIPT constant returns the path of the current script. If it was not specified, the run name is returned.

// compile from file: /home/ak/gentee/scripts/myscript.g
run {
Println(SCRIPT) // /home/ak/gentee/scripts/myscript.g
}
// compile from memory
run my_best_script {
Println(SCRIPT) // my_best_script
}