Gentee
  • Gentee script programming language
  • Language Reference
    • Lexical elements
    • Types
    • Declarations
    • Statements
    • Error handling
    • Expressions
    • Running programs
    • Multithreading
    • Include and import
  • Standard Library Reference
    • Archiving
    • Array
    • Boolean
    • Buffer
    • Characters
    • Console
    • Constants
    • Context
    • Cryptography
    • Encoding
    • Files
    • Float numbers
    • Integer
    • Map
    • Multithreading
    • Network
    • Object
    • Path
    • Process
    • Regular expressions
    • Runtime
    • Sets
    • Strings
    • System
    • Time
  • Go Integration
    • Reference
    • Compilation and execution
    • Advanced features
    • Playground
  • Change language
    • Русский
Powered by GitBook
On this page
  • Predefined constants
  • CYCLE
  • DEPTH
  • IOTA
  • SCRIPT
  • VERSION

Was this helpful?

  1. Standard Library Reference

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
}

VERSION

The VERSION constant returns the current version of the Gentee compiler.

PreviousConsoleNextContext

Last updated 4 years ago

Was this helpful?