Constants
Maximum number of iterations in a cycle. By default, it is 1600000000.
Maximum nesting of executable blocks. Limits the recursion depth. By default, it is equal to 1000.
The IOTA constant is used to automatically calculate the sequence of constants.
const IOTA * 2 {"a6}
ZERO // 0
TWO // 2
FOUR // 4
}
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
}
The VERSION constant returns the current version of the Gentee compiler.
Last modified 2yr ago