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.
1
const IOTA * 2 {"a6}
2
ZERO // 0
3
TWO // 2
4
FOUR // 4
5
}
Copied!

SCRIPT

The SCRIPT constant returns the path of the current script. If it was not specified, the run name is returned.
1
// compile from file: /home/ak/gentee/scripts/myscript.g
2
run {
3
Println(SCRIPT) // /home/ak/gentee/scripts/myscript.g
4
}
5
6
// compile from memory
7
run my_best_script {
8
Println(SCRIPT) // my_best_script
9
}
Copied!

VERSION

The VERSION constant returns the current version of the Gentee compiler.
Last modified 1yr ago